arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2506.01723cs.CLcs.AI
收藏

在LLMs中习语的比喻和字面解释之间的拉力战

Tug-of-war between idioms' figurative and literal interpretations in LLMs

Saarland University(萨尔兰大学);Max Planck Institute for Software Systems(马克斯·普朗克软件系统研究所);Max Planck Institute for Informatics(马克斯·普朗克信息学研究所)

Soyoung Oh, Xinting Huang, Mathis Pink, Michael Hahn, Vera Demberg

AI总结:

本文研究了LLMs在处理习语时比喻与字面解释的冲突机制,通过因果追溯法揭示了模型如何在不同层之间竞争性地处理歧义。

摘要:

习语对语言模型构成了独特挑战,因为它们的非组合性比喻解释往往强烈偏离习语的字面解释。在本文中,我们采用因果追溯法,系统分析预训练的因果变换器如何处理这种歧义。我们定位了三种机制:(i)早期子层和特定注意力头检索习语的比喻解释,同时抑制其字面解释。(ii)当歧义上下文在习语之前时,模型利用它从最早的层开始,后来的层在上下文冲突时会进一步细化解释。(iii)然后,选择性的、竞争性的路径同时携带两种解释:中间路径优先考虑比喻解释,而并行的直接路径则更倾向于字面解释,确保两种解读都保持可用。我们的发现为自回归变换器中的习语理解提供了机制性证据。

英文摘要:

Idioms present a unique challenge for language models due to their non-compositional figurative interpretations, which often strongly diverge from the idiom's literal interpretation. In this paper, we employ causal tracing to systematically analyze how pretrained causal transformers deal with this ambiguity. We localize three mechanisms: (i) Early sublayers and specific attention heads retrieve an idiom's figurative interpretation, while suppressing its literal interpretation. (ii) When disambiguating context precedes the idiom, the model leverages it from the earliest layer and later layers refine the interpretation if the context conflicts with the retrieved interpretation. (iii) Then, selective, competing pathways carry both interpretations: an intermediate pathway prioritizes the figurative interpretation and a parallel direct route favors the literal interpretation, ensuring that both readings remain available. Our findings provide mechanistic evidence for idiom comprehension in autoregressive transformers.

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

↑