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

翻译头:在基于LLM的机器翻译中分离意义与语言

Translation Heads: Disentangling meaning from language in LLM-based machine translation

Department of XXX, University of YYY, Location, Country(XXX系,YYY大学,地点,国家);School of ZZZ, Institute of WWW, Location, Country(ZZZ学院,WWW研究所,地点,国家);Inria, Paris, France(Inria,巴黎,法国)

Théo Lasnier, Armel Zebaze, Djamé Seddah, Rachel Bawden, Benoît Sagot

AI总结:

通过分析注意力头,将机器翻译分解为目标语言识别和句子等价两个子任务,发现稀疏的注意力头分别专攻每个子任务,并利用此发现实现无需指令的翻译性能。

摘要:

机械可解释性(MI)旨在解释神经网络如何实现其能力,但大型语言模型(LLM)的规模限制了先前MI在机器翻译(MT)中的工作,仅限于词级分析。我们从机械角度研究句子级MT,通过分析注意力头来理解LLM如何在内部编码和分配翻译功能。我们将MT分解为两个子任务:生成目标语言文本(即目标语言识别)和保留输入句子的意义(即句子等价)。在三个开源模型家族和20个翻译方向上,我们发现不同且稀疏的注意力头集合专门负责每个子任务。基于这一发现,我们构建了子任务特定的转向向量,并表明仅修改1%的相关头即可实现与基于指令的提示相当的无需指令的翻译性能,而消融这些头则会选择性地破坏其对应的翻译功能。

英文摘要:

Mechanistic Interpretability (MI) seeks to explain how neural networks implement their capabilities, but the scale of Large Language Models (LLMs) has limited prior MI work in Machine Translation (MT) to word-level analyses. We study sentence-level MT from a mechanistic perspective by analyzing attention heads to understand how LLMs internally encode and distribute translation functions. We decompose MT into two subtasks: producing text in the target language (i.e. target language identification) and preserving the input sentence's meaning (i.e. sentence equivalence). Across three families of open-source models and 20 translation directions, we find that distinct, sparse sets of attention heads specialize in each subtask. Based on this insight, we construct subtask-specific steering vectors and show that modifying just 1% of the relevant heads enables instruction-free MT performance comparable to instruction-based prompting, while ablating these heads selectively disrupts their corresponding translation functions.

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

↑