arXiv:2410.02343cs.CLcs.LG2024-10被引 4

通过选择性注意力头提升大模型多选题答题能力

Listening to the Wise Few: Select-and-Copy Attention Heads for Multiple-Choice QA

  • 挖掘特定注意力头的查询-键交互与注意力权重得分
  • 在多选题数据集上提升7%~16%的知识提取效果
  • 适合研究大模型推理机制与评测方法的学者

评估大模型能力的常用方法是给出多选题并选择对数几率最高的选项作为答案。然而,即使模型知道正确答案,也可能因难以遵循严格格式而选错。为此,我们提出新评分机制:基于注意力头中查询与键表示交互的查询-键得分(QK-score),以及基于注意力权重的注意力得分。这些分数来自表现稳定的“选择-复制”注意力头,在多个主流多选题问答数据集上具有持续性能。基于此,我们的方法在LLaMA2-7B上实现最高16%的改进,更大模型提升达10%。在模型明确知晓答案的合成数据集上,准确率提升近60%,接近完美,证明该方法能有效缓解多选题格式限制。实验覆盖70亿至700亿参数模型,涵盖零样本与少样本设置。

原文摘要 · Abstract (English)

A standard way to evaluate the abilities of LLM involves presenting a multiple-choice question and selecting the option with the highest logit as the model's predicted answer. However, such a format for evaluating LLMs has limitations, since even if the model knows the correct answer, it may struggle to select the corresponding letter simply due to difficulties in following this rigid format. To address this, we introduce new scores that better capture and reveal model's underlying knowledge: the Query-Key Score (QK-score), derived from the interaction between query and key representations in attention heads, and the Attention Score, based on attention weights. These scores are extracted from specific \textit{select-and-copy} heads, which show consistent performance across popular Multi-Choice Question Answering (MCQA) datasets. Based on these scores, our method improves knowledge extraction, yielding up to 16\% gain for LLaMA2-7B and up to 10\% for larger models on popular MCQA benchmarks. At the same time, the accuracy on a simple synthetic dataset, where the model explicitly knows the right answer, increases by almost 60\%, achieving nearly perfect accuracy, therefore demonstrating the method's efficiency in mitigating MCQA format limitations. To support our claims, we conduct experiments on models ranging from 7 billion to 70 billion parameters in both zero- and few-shot setups.

大模型评测注意力机制多选题

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。