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

并非一切皆你所需:面向大语言模型对齐的低冗余优化

Not Everything is All You Need: Toward Low-Redundant Optimization for Large Language Model Alignment

Gaoling School of Artificial Intelligence, Renmin University of China(中国人民大学高瓴人工智能学院);School of Information, Renmin University of China(中国人民大学信息学院);School of Computer Science and Engineering, Beihang University(北京航空航天大学计算机科学与工程学院)

Zhipeng Chen, Kun Zhou, Wayne Xin Zhao, Jingyuan Wang, Ji-Rong Wen

AI总结:

本文提出低冗余对齐方法ALLO,通过仅优化与人类偏好最相关的神经元和关键token,并将对齐过程分解为遗忘与学习两阶段,在10个数据集上验证了其有效性。

摘要:

大语言模型(LLMs)在复杂任务和场景中与人类偏好对齐方面仍然面临困难。它们容易过拟合训练数据中的意外模式或表面风格。我们进行了一项实证研究,仅选择LLMs中更新幅度最大的前10%参数进行对齐训练,并观察到收敛过程和最终性能的改善。这表明LLMs中存在对对齐训练而言冗余的神经元。为减少其影响,我们提出了一种名为ALLO的低冗余对齐方法,专注于利用最有用的监督信号优化最相关的神经元。具体而言,我们首先通过基于梯度的策略识别与人类偏好数据相关的神经元,然后利用奖励模型识别与对齐相关的关键token以计算损失。此外,我们还将对齐过程分解为遗忘阶段和学习阶段,在遗忘阶段首先遗忘具有未对齐知识的token,然后在学习阶段学习对齐知识,分别通过更新不同比例的神经元来实现。在10个数据集上的实验结果证明了ALLO的有效性。我们的代码和数据可在https://github.com/RUCAIBox/ALLO获取。

英文摘要:

Large language models (LLMs) are still struggling in aligning with human preference in complex tasks and scenarios. They are prone to overfit into the unexpected patterns or superficial styles in the training data. We conduct an empirical study that only selects the top-10\% most updated parameters in LLMs for alignment training, and see improvements in the convergence process and final performance. It indicates the existence of redundant neurons in LLMs for alignment training. To reduce its influence, we propose a low-redundant alignment method named \textbf{ALLO}, focusing on optimizing the most related neurons with the most useful supervised signals. Concretely, we first identify the neurons that are related to the human preference data by a gradient-based strategy, then identify the alignment-related key tokens by reward models for computing loss. Besides, we also decompose the alignment process into the forgetting and learning stages, where we first forget the tokens with unaligned knowledge and then learn aligned knowledge, by updating different ratios of neurons, respectively. Experimental results on 10 datasets have shown the effectiveness of ALLO. Our code and data are available at \url{https://github.com/RUCAIBox/ALLO}.

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

↑