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

语言模型抗拒对齐:来自数据压缩的证据

Language Models Resist Alignment: Evidence From Data Compression

Institute for Artificial Intelligence, Peking University(北京大学人工智能研究院);Beijing Academy of Artificial Intelligence(北京人工智能研究院);School of Computer Science, Peking University(北京大学计算机科学学院)

Jiaming Ji, Kaile Wang, Tianyi Qiu, Boyuan Chen, Jiayi Zhou, Changye Li, Hantao Lou, Juntao Dai, Yunhuai Liu, Yaodong Yang

AI总结:

本研究从理论与实证角度首次探索语言模型对齐的稳健性,提出并验证对齐后模型存在弹性(易恢复预训练行为分布),揭示其与模型规模、预训练数据正相关,强调需解决该弹性以提升对齐效果。

摘要:

大型语言模型(LLMs)可能表现出非预期或不良行为。近期研究集中于对齐LLMs以减轻有害输出。尽管有这些努力,一些异常现象表明,即使是精心实施的对齐过程也可能被轻易规避,无论是有意还是无意。对齐微调是否对模型产生稳健影响,还是其影响仅为表面?在本研究中,我们首次从理论和实证角度探索这一现象。实证上,我们证明了对齐后模型的弹性,即进一步微调时倾向于恢复到预训练阶段形成的行为分布。利用压缩理论,我们正式推导出微调对对齐的破坏程度不成比例地高于预训练,可能达到数量级。我们通过对不同类型和规模的模型进行实验验证了弹性的存在。具体而言,我们发现模型性能在恢复到预训练分布前迅速下降,之后下降速率显著降低。此外,我们进一步揭示弹性与模型规模增大和预训练数据扩展呈正相关。我们的研究结果强调需要解决LLMs固有的弹性,以减轻其对对齐的抗拒。模型权重和代码可在pku-lm-resist-alignment.github.io获取。

英文摘要:

Large language models (LLMs) may exhibit unintended or undesirable behaviors. Recent works have concentrated on aligning LLMs to mitigate harmful outputs. Despite these efforts, some anomalies indicate that even a well-conducted alignment process can be easily circumvented, whether intentionally or accidentally. Does alignment fine-tuning yield have robust effects on models, or are its impacts merely superficial? In this work, we make the first exploration of this phenomenon from both theoretical and empirical perspectives. Empirically, we demonstrate the $\mathbf{elasticity}$ of post-alignment models, i.e., the tendency to revert to the behavior distribution formed during the pre-training phase upon further fine-tuning. Leveraging compression theory, we formally deduce that fine-tuning disproportionately undermines alignment relative to pre-training, potentially by orders of magnitude. We validate the presence of elasticity through experiments on models of varying types and scales. Specifically, we find that model performance declines rapidly before reverting to the pre-training distribution, after which the rate of decline drops significantly. Furthermore, we further reveal that elasticity positively correlates with the increased model size and the expansion of pre-training data. Our findings underscore the need to address the inherent elasticity of LLMs to mitigate their resistance to alignment. The model weight and code are available at pku-lm-resist-alignment.github.io.

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

↑