arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2602.22453cs.CL
收藏

通过检索-过渡头桥接潜在推理与目标语言生成

Identifying Crucial Attention Heads for Multilingual Language Models: Retrieval and Retrieval-Transition Heads

New York University(纽约大学)

Shaswat Patel, Vishvesh Trivedi, Yue Han, Yihuai Hong, Eunsol Choi

AI总结:

本研究通过引入检索-过渡头(RTH)揭示多语言模型中负责目标语言生成的关键注意力机制,并通过实验验证其在链式推理中的重要性。

摘要:

最近的工作已经识别出Transformer中的一组注意力头作为检索头,负责从上下文中检索信息。在本工作中,我们首先研究了多语言环境中的检索头。在多语言语言模型中,我们发现检索头往往在多种语言之间共享。将研究扩展到跨语言设置,我们识别出检索-过渡头(RTH),它们负责向特定目标语言输出的过渡。我们的实验表明,RTH不同于检索头,且在多语言LLM中的链式推理中更为关键。在四个多语言基准(MMLU-ProX、MGSM、MLQA和XQuaD)和两个模型家族(Qwen-2.5和Llama-3.1)中,我们证明屏蔽RTH会导致比屏蔽检索头(RH)更大的性能下降。我们的工作通过隔离负责映射到目标语言的注意力头,推进了对多语言LM的理解。

英文摘要:

Retrieval heads, a subset of attention heads in Transformers, were studied in English, showing its crucial role in retrieving information from the context. We expand the study of retrieval heads to multilingual context and find that while nearly half of all retrieval heads are often shared across multiple languages, language-specific retrieval heads also emerge. We further design a cross-lingual needle-in-the-haystack task, to identify $\textit{Retrieval Transition Heads (RTH)}$ that retrieve key information and further map it to target-language output. Our experiments reveal that RTHs do not always overlap with RH, and can be more vital for Chain-of-Thought reasoning in multilingual LLMs. Across four multilingual benchmarks (MMLU-ProX, MGSM, MLQA, and XQuAD) and two model families (Qwen2.5-7B Instruct and Llama3.1-8B Instruct), we demonstrate that masking RTH induces bigger performance drop than masking Retrieval Heads (RH). Specifically, for Llama3.1-8B Instruct, masking the top-25 RTHs results in an average 37.3-point drop (against 19.5-point drop from RH masking) in reasoning accuracy (MMLU-ProX, MGSM) and 9.0 F1-score reduction (against 5.1 drop for RH) in extractive QA (MLQA, XQuAD). Our work advances the understanding of multilingual LMs by isolating the attention heads responsible for mapping to target languages.

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

↑