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

探索低秩适配对RLHF性能、效率与正则化的影响

Exploring the impact of low-rank adaptation on the performance, efficiency, and regularization of RLHF

University of Massachusetts Amherst(马萨诸塞大学阿默斯特分校)

Simeng Sun, Dhawal Gupta, Mohit Iyyer

AI总结:

本文研究用LoRA高效实现RLHF,仅微调LLaMA 7B的0.2%参数并在两块A100上训练,性能超过全模型微调的AlpacaFarm,同时分析了KL正则化项的影响,发现移除惩罚项不损害性能、Jensen-Shannon散度可提升性能,且LoRA能缓解PPO对事实性的负面影响。

摘要:

在RLHF的最后阶段,大型语言模型通过PPO训练与人类意图对齐,这一过程通常需要大规模计算资源。在本技术报告中,我们实证研究了一种使用低秩适配(LoRA)的高效RLHF实现,该实现使我们能够在Alpaca数据集上仅使用两块A100 GPU对齐LLaMA 7B检查点,而全模型微调需要八块GPU。尽管仅微调了LLaMA 7B参数的0.2%,我们的实现在性能上优于公开发布的采用全模型微调的AlpacaFarm检查点。接下来,我们分析了基于LoRA的PPO实现的几种配置,改变训练目标中KL正则化项的形式。我们发现:(1)在我们的LoRA设置下,移除该惩罚项不会损害AlpacaFarm评估集上的性能;(2)其他正则化器,如Jensen-Shannon散度,能带来性能提升;(3)虽然PPO训练会对模型生成响应的事实性产生负面影响,但使用LoRA训练在很大程度上缓解了这一影响。我们发布了代码和预训练检查点,以促进未来对更高效RLHF的研究。

英文摘要:

During the last stage of RLHF, a large language model is aligned to human intents via PPO training, a process that generally requires large-scale computational resources. In this technical report, we empirically investigate an efficient implementation of RLHF using low-rank adaptation (LoRA), which allows us to align the LLaMA 7B checkpoint on the Alpaca dataset using only two A100 GPUs instead of the eight required for full model fine-tuning. Despite tuning only 0.2% of LLaMA 7B's parameters, our implementation achieves better performance than the publicly-released AlpacaFarm checkpoint with full model fine-tuning. Next, we analyze several configurations of our LoRA-based PPO implementation, varying the form of the KL regularization term in the training objective. We find that (1) removing this penalty term does not harm performance on the AlpacaFarm evaluation set under our LoRA setup; (2) other regularizers, such as Jensen-Shannon divergence, lead to improved performance; and (3) while PPO training negatively impacts the factuality of model-generated responses, training with LoRA largely mitigates this effect. We release our code and pretrained checkpoints to facilitate future research on more efficient RLHF.

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

↑