arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2305.08298cs.CL
收藏

符号微调改进语言模型中的上下文学习

Symbol tuning improves in-context learning in language models

Google(谷歌);Stanford University(斯坦福大学)

Jerry Wei, Le Hou, Andrew Lampinen, Xiangning Chen, Da Huang, Yi Tay, Xinyun Chen, Yifeng Lu, Denny Zhou, Tengyu Ma, Quoc V. Le

AI总结:

提出符号微调方法,通过用任意符号替换自然语言标签来微调语言模型,显著提升了模型在未见任务、未充分指定提示、算法推理及遵循翻转标签等场景下的上下文学习能力。

摘要:

我们提出了符号微调——即在上下文输入-标签对上微调语言模型,其中自然语言标签(例如“正面/负面情感”)被替换为任意符号(例如“foo/bar”)。符号微调利用了这样的直觉:当模型无法使用指令或自然语言标签来弄清任务时,它必须转而通过学习输入-标签映射来完成。我们在高达540B参数的Flan-PaLM模型上对符号微调进行了实验,并观察到在各种设置下的益处。首先,符号微调提升了在未见过的上下文学习任务上的性能,并且对未充分指定的提示(例如没有指令或没有自然语言标签的提示)具有更强的鲁棒性。其次,经过符号微调的模型在算法推理任务上表现更强,在List Functions基准上性能提升高达18.2%,在Simple Turing Concepts基准上性能提升高达15.3%。最后,经过符号微调的模型在遵循上下文中呈现的翻转标签方面表现出大幅提升,这意味着它们更有能力使用上下文信息来覆盖先前的语义知识。

英文摘要:

We present symbol tuning - finetuning language models on in-context input-label pairs where natural language labels (e.g., "positive/negative sentiment") are replaced with arbitrary symbols (e.g., "foo/bar"). Symbol tuning leverages the intuition that when a model cannot use instructions or natural language labels to figure out a task, it must instead do so by learning the input-label mappings. We experiment with symbol tuning across Flan-PaLM models up to 540B parameters and observe benefits across various settings. First, symbol tuning boosts performance on unseen in-context learning tasks and is much more robust to underspecified prompts, such as those without instructions or without natural language labels. Second, symbol-tuned models are much stronger at algorithmic reasoning tasks, with up to 18.2% better performance on the List Functions benchmark and up to 15.3% better performance on the Simple Turing Concepts benchmark. Finally, symbol-tuned models show large improvements in following flipped-labels presented in-context, meaning that they are more capable of using in-context information to override prior semantic knowledge.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑