arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2310.05914cs.CLcs.LG
收藏

NEFTune:噪声嵌入改进指令微调

NEFTune: Noisy Embeddings Improve Instruction Finetuning

University of Maryland(马里兰大学);Lawrence Livermore National Laboratory(劳伦斯利弗莫尔国家实验室);New York University(纽约大学)
Neel Jain, Ping-yeh Chiang, Yuxin Wen, John Kirchenbauer, Hong-Min Chu, Gowthami Somepalli, Brian R. Bartoldson, Bhavya Kailkhura, Avi Schwarzschild, Aniruddha … 展开作者

Neel Jain, Ping-yeh Chiang, Yuxin Wen, John Kirchenbauer, Hong-Min Chu, Gowthami Somepalli, Brian R. Bartoldson, Bhavya Kailkhura, Avi Schwarzschild, Aniruddha Saha, Micah Goldblum, Jonas Geiping, Tom Goldstein

AI总结:

本文提出NEFTune,通过在训练时向嵌入向量添加噪声来改进指令微调,显著提升LLaMA-2-7B在AlpacaEval上的性能(从29.79%升至64.69%),并在多个现代指令数据集上超越强基线。

摘要:

我们表明,语言模型微调可以通过一种简单的增强方法得到改进,有时甚至显著改进。NEFTune在训练期间向嵌入向量添加噪声。使用Alpaca对LLaMA-2-7B进行标准微调在AlpacaEval上达到29.79%,而使用噪声嵌入则提升至64.69%。NEFTune还在现代指令数据集上优于强基线。使用Evol-Instruct训练的模型提升10%,使用ShareGPT提升8%,使用OpenPlatypus提升8%。即使是经过RLHF进一步优化的强大模型(如LLaMA-2-Chat)也能从NEFTune的额外训练中受益。

英文摘要:

We show that language model finetuning can be improved, sometimes dramatically, with a simple augmentation. NEFTune adds noise to the embedding vectors during training. Standard finetuning of LLaMA-2-7B using Alpaca achieves 29.79% on AlpacaEval, which rises to 64.69% using noisy embeddings. NEFTune also improves over strong baselines on modern instruction datasets. Models trained with Evol-Instruct see a 10% improvement, with ShareGPT an 8% improvement, and with OpenPlatypus an 8% improvement. Even powerful models further refined with RLHF such as LLaMA-2-Chat benefit from additional training with NEFTune.

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

↑