锚定答案:揭示 GPT-2 多项选择题中的位置偏差
Anchored Answers: Unravelling Positional Bias in GPT-2's Multiple-Choice Questions
AI总结:
本研究利用机械可解释性方法识别GPT-2模型中导致多项选择题锚定偏差的MLP层和注意力头,通过更新值向量与重校准注意力模式实施最小干预,有效缓解了偏差并提升了整体预测准确率。
摘要:
大型语言模型(LLMs),例如 GPT 和 LLaMA 家族,在包括多项选择题(MCQs)在内的多种任务中展现出了显著的成功。然而,这些模型表现出位置偏差,特别是 GPT-2 家族中存在更严重的锚定偏差,即在推理过程中,它们在多项选择题中始终偏好第一个选项 'A'。这种锚定偏差损害了 GPT-2 决策过程的完整性,因为它基于选项的位置而非内容来扭曲性能表现。在本研究中,我们利用机械可解释性方法来识别 GPT-2 模型内部负责该偏差的模块。我们重点关注多层感知机(MLP)层和注意力头,使用 "logit lens" 方法追踪并修改导致该偏差的特定值向量。通过更新 MLP 中的这些向量并重新校准注意力模式以消除对首选 'A' 的偏好,我们有效缓解了锚定偏差。我们的干预不仅减轻了偏差,还提高了 GPT-2 家族在多个数据集上的整体多项选择题预测准确率。这项工作首次对 GPT-2 模型多项选择题失败案例中的锚定偏差进行了全面的机械分析,引入了针对性的最小干预策略,显著提升了 GPT-2 模型在多项选择题中的鲁棒性和准确率。我们的代码可在 https://github.com/ruizheliUOA/Anchored_Bias_GPT2 获取。
英文摘要:
Large Language Models (LLMs), such as the GPT-4 and LLaMA families, have demonstrated considerable success across diverse tasks, including multiple-choice questions (MCQs). However, these models exhibit a positional bias, particularly an even worse anchored bias in the GPT-2 family, where they consistently favour the first choice 'A' in MCQs during inference. This anchored bias challenges the integrity of GPT-2's decision-making process, as it skews performance based on the position rather than the content of the choices in MCQs. In this study, we utilise the mechanistic interpretability approach to identify the internal modules within GPT-2 models responsible for this bias. We focus on the Multi-Layer Perceptron (MLP) layers and attention heads, using the "logit lens" method to trace and modify the specific value vectors that contribute to the bias. By updating these vectors within MLP and recalibrating attention patterns to neutralise the preference for the first choice 'A', we effectively mitigate the anchored bias. Our interventions not only mitigate the bias but also improve the overall MCQ prediction accuracy for the GPT-2 family across various datasets. This work represents the first comprehensive mechanistic analysis of anchored bias from the failing cases in MCQs within the GPT-2 models, introducing targeted, minimal-intervention strategies that significantly enhance GPT2 model robustness and accuracy in MCQs. Our code is available at https://github.com/ruizheliUOA/Anchored_Bias_GPT2.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。