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

使用健忘因果语言模型实现更好的Few-Shot和微调性能

Towards Better Few-Shot and Finetuning Performance with Forgetful Causal Language Models

UC Berkeley(加州大学伯克利分校);Google Research(谷歌研究院)

Hao Liu, Xinyang Geng, Lisa Lee, Igor Mordatch, Sergey Levine, Sharan Narang, Pieter Abbeel

摘要:

使用下一个标记预测目标训练的大语言模型(LLM),如GPT 3和PaLM,近年来通过在广泛的任务中显示令人印象深刻的zero-shot和Few-Shot能力,彻底改变了自然语言处理。在这项工作中,我们提出了一个简单的技术,显着提高LLM的性能,而不增加计算成本。我们的关键观察是,通过执行下一个标记预测任务,随机选择过去的标记屏蔽,我们可以提高下游语言理解任务的学习表示的质量。我们假设,随机屏蔽过去的令牌防止过度关注最近的令牌,并鼓励注意令牌在遥远的过去。我们发现,我们的方法,遗忘因果掩蔽(FCM),显着提高了Few-Shot和微调性能的PaLM。我们进一步考虑了一个简单的扩展,T-FCM,它引入了双向上下文因果语言模型,而不改变序列顺序,并进一步提高微调性能。

英文摘要:

Large language models (LLM) trained using the next-token-prediction objective, such as GPT3 and PaLM, have revolutionized natural language processing in recent years by showing impressive zero-shot and few-shot capabilities across a wide range of tasks. In this work, we propose a simple technique that significantly boosts the performance of LLMs without adding computational cost. Our key observation is that, by performing the next token prediction task with randomly selected past tokens masked out, we can improve the quality of the learned representations for downstream language understanding tasks. We hypothesize that randomly masking past tokens prevents over-attending to recent tokens and encourages attention to tokens in the distant past. We find that our method, Forgetful Causal Masking (FCM), significantly improves both few-shot and finetuning performance of PaLM. We further consider a simple extension, T-FCM, which introduces bidirectional context to causal language model without altering the sequence order, and further improves finetuning performance.

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

↑