通过机制可解释性分析微调语言模型中的道德偏见
Analysing Moral Bias in Finetuned LLMs through Mechanistic Interpretability
AI总结:
研究微调后大语言模型中的道德偏见,通过层修补分析发现诺布效应不仅在微调时习得且定位在特定层,将预训练模型激活修补到关键层可消除该效应,为通过干预解释、定位和缓解模型社会偏见提供新证据。
摘要:
大语言模型(LLMs)在微调过程中会内化类人偏见,但其表现机制尚不清楚。本研究调查了著名的诺布效应(一种意向性判断中的道德偏见)是否出现在微调后的LLMs中,以及是否可追溯到模型的特定组件。通过对3个开放权重的LLMs进行层修补分析,发现该偏见不仅在微调时习得,还定位在特定层集。令人惊讶的是,将预训练模型的激活修补到几个关键层就能消除该效应。研究结果表明LLMs中的社会偏见可通过有针对性的干预来解释、定位和缓解,无需重新训练模型。
英文摘要:
Large language models (LLMs) have been shown to internalize human-like biases during finetuning, yet the mechanisms by which these biases manifest remain unclear. In this work, we investigated whether the well-known Knobe effect, a moral bias in intentionality judgements, emerges in finetuned LLMs and whether it can be traced back to specific components of the model. We conducted a Layer-Patching analysis across 3 open-weights LLMs and demonstrated that the bias is not only learned during finetuning but also localized in a specific set of layers. Surprisingly, we found that patching activations from the corresponding pretrained model into just a few critical layers is sufficient to eliminate the effect. Our findings offer new evidence that social biases in LLMs can be interpreted, localized, and mitigated through targeted interventions, without the need for model retraining.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。