通过条件尺度熵理解解码器-only语言模型中的隐喻处理
Post-Hoc Understanding of Metaphor Processing in Decoder-Only Language Models via Conditional Scale Entropy
AI总结:
研究探讨了解码器-only语言模型中隐喻处理的机制,通过条件尺度熵(CSE)分析不同层位的频率尺度变化,发现隐喻性词 token 在连续层位上产生显著更高的频谱宽度,且该效应不受语义复杂度或命题内容影响,验证了多尺度协调作为隐喻语言处理的特征。
摘要:
隐喻要求语言模型解析一个词的上下文意义与基本字面意义相异。理解transformer模型如何在深度层面组织这种重新解释仍然是机械可解释性中的开放问题。我们引入了条件尺度熵(CSE),这是一种基于小波的度量,用于衡量transformer计算在每个层位置上跨频率尺度的广泛参与程度。两个定理证明了CSE对更新幅度具有不变性,从而将更新的结构模式与强度分离。使用CSE,我们发现隐喻性词在测试的每种解码器-only架构中(从124M到20B参数,包括GPT-2家族、LLaMA-2 7B、GPT-oss 20B)在连续层位置上产生显著更高的频谱宽度。该效应经聚类置换校正后仍然存在,且在模型的早期到中期相对深度范围内重现,并通过独立分析200对自然VUA对收敛。特定性控制进一步显示,该效应不被语义复杂度或匹配的命题内容所解释。这些结果将多尺度协调确定为所考察的解码器-only架构中隐喻语言处理的一致特征,并确立CSE作为表征transformer跨深度结构的原理性工具。
英文摘要:
Metaphor requires a language model to resolve a token whose contextual meaning diverges from its basic literal sense. Understanding how transformer models organize this reinterpretation across depth remains an open problem in mechanistic interpretability. We introduce conditional scale entropy (CSE), a wavelet-derived measure of how broadly transformer computation engages across frequency scales at each layer position. Two theorems establish that CSE is invariant to update magnitude, isolating the structural pattern of updates from their intensity. Using CSE, we find that metaphorical tokens produce significantly higher spectral breadth than literal tokens at contiguous layer positions on every decoder-only architecture tested, from 124M to 20B parameters (GPT-2 family, LLaMA-2 7B, GPT-oss 20B). The effect survives cluster-based permutation correction, recurs in the early-to-mid relative depth range across models, and converges with an independent analysis of 200 naturalistic VUA pairs. Specificity controls further show that the effect is not explained by semantic complexity or by matched propositional content. These results identify multi-scale coordination as a consistent signature of metaphorical language processing in the decoder-only architectures examined, and establish CSE as a principled tool for characterizing cross-depth structure in transformers.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。