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

较小的大型语言模型能够进行道德自我修正

Smaller Large Language Models Can Do Moral Self-Correction

Michigan State University(密歇根州立大学);University of California Santa Barbara(加州大学圣巴巴拉分校)

Guangliang Liu, Zhiyu Xue, Xitong Zhang, Rongrong Wang, Kristen Marie Johnson

AI总结:

本文实证发现,经过安全对齐微调的3.8B参数小型LLMs也能取得良好的道德自我修正表现,挑战了小模型无法进行道德自我修正的假设,并揭示了安全对齐的关键作用及模型规模在理解社会规范上的差异。

摘要:

自我修正是大型语言模型(LLMs)最令人惊叹的新兴能力之一,它使LLMs能够根据描述输出问题的自然语言反馈,自我修正不恰当的输出。道德自我修正是一种事后方法,可在不需要梯度更新的情况下纠正不道德的生成内容,这使得它在计算上轻量化,并且能够保留语言建模能力。先前的工作表明,LLMs能够自我去偏,并且有报告指出,小模型(即参数少于22B的模型)不具备道德自我修正的能力。然而,关于这些较小模型为何无法进行道德自我修正,目前没有直接证据,尽管先前的研究假设较大的模型擅长遵循指令和理解抽象的社会规范。在本文中,我们通过细致的提示,在社会刻板印象的背景下实证验证了这一假设。我们的实验结果表明:(i)令人惊讶的是,经过适当安全对齐微调的3.8B LLMs能够取得非常好的道德自我修正表现,突显了安全对齐的显著作用;(ii)在通过CoT理解社会规范和自我解释方面,小型LLMs确实弱于更大规模的模型,但在给定不道德指令的情况下,所有规模的LLMs都表现出糟糕的自我修正表现。

英文摘要:

Self-correction is one of the most amazing emerging capabilities of Large Language Models (LLMs), enabling LLMs to self-modify an inappropriate output given a natural language feedback which describes the problems of that output. Moral self-correction is a post-hoc approach correcting unethical generations without requiring a gradient update, making it both computationally lightweight and capable of preserving the language modeling ability. Previous works have shown that LLMs can self-debias, and it has been reported that small models, i.e., those with less than 22B parameters, are not capable of moral self-correction. However, there is no direct proof as to why such smaller models fall short of moral self-correction, though previous research hypothesizes that larger models are skilled in following instructions and understanding abstract social norms. In this paper, we empirically validate this hypothesis in the context of social stereotyping, through meticulous prompting. Our experimental results indicate that (i) surprisingly, 3.8B LLMs with proper safety alignment fine-tuning can achieve very good moral self-correction performance, highlighting the significant effects of safety alignment; and (ii) small LLMs are indeed weaker than larger-scale models in terms of comprehending social norms and self-explanation through CoT, but all scales of LLMs show bad self-correction performance given unethical instructions.

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

↑