arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2305.11206cs.CLcs.AIcs.LG
收藏

LIMA:在 Alignment 中少即是多

LIMA: Less Is More for Alignment

Meta AI;University of Southern California(南加州大学);Tel Aviv University(特拉维夫大学);Carnegie Mellon University(卡内基梅隆大学)

Chunting Zhou, Pengfei Liu, Puxin Xu, Srini Iyer, Jiao Sun, Yuning Mao, Xuezhe Ma, Avia Efrat, Ping Yu, Lili Yu, Susan Zhang, Gargi Ghosh, Mike Lewis, Luke Zettlemoyer, Omer Levy

AI总结:

通过仅用1,000个精选样本微调65B参数的LLaMa模型(LIMA),发现几乎所有知识都在预训练阶段习得,仅需少量指令微调数据即可产生高质量输出。

摘要:

大型语言模型的训练分为两个阶段:(1)从原始文本进行无监督预训练,以学习通用表示;(2)大规模指令微调与强化学习,以更好地对齐到最终任务和用户偏好。我们通过训练 LIMA 来衡量这两个阶段的相对重要性。LIMA 是一个 65B 参数的 LLaMa 语言模型,仅在 1,000 个精心筛选的提示和响应上使用标准监督损失进行微调,不使用任何强化学习或人类偏好建模。LIMA 展现出极其出色的性能,仅凭训练数据中的少量示例就能学会遵循特定的响应格式,包括从规划旅行行程到推测替代历史等复杂查询。此外,该模型往往能很好地泛化到训练数据中未出现的未见任务上。在一项受控的人类研究中,LIMA 的响应在 43% 的情况下与 GPT-4 相当或严格优于 GPT-4;与 Bard 相比时,这一比例高达 58%,而与使用人类反馈训练的 DaVinci003 相比则为 65%。综合来看,这些结果有力地表明,大型语言模型中几乎所有的知识都是在预训练阶段习得的,仅需有限的指令微调数据即可教会模型产生高质量的输出。

英文摘要:

Large language models are trained in two stages: (1) unsupervised pretraining from raw text, to learn general-purpose representations, and (2) large scale instruction tuning and reinforcement learning, to better align to end tasks and user preferences. We measure the relative importance of these two stages by training LIMA, a 65B parameter LLaMa language model fine-tuned with the standard supervised loss on only 1,000 carefully curated prompts and responses, without any reinforcement learning or human preference modeling. LIMA demonstrates remarkably strong performance, learning to follow specific response formats from only a handful of examples in the training data, including complex queries that range from planning trip itineraries to speculating about alternate history. Moreover, the model tends to generalize well to unseen tasks that did not appear in the training data. In a controlled human study, responses from LIMA are either equivalent or strictly preferred to GPT-4 in 43% of cases; this statistic is as high as 58% when compared to Bard and 65% versus DaVinci003, which was trained with human feedback. Taken together, these results strongly suggest that almost all knowledge in large language models is learned during pretraining, and only limited instruction tuning data is necessary to teach models to produce high quality output.

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

↑