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

语言模型中共享句法机制的细粒度分析

Fine-Grained Analysis of Shared Syntactic Mechanisms in Language Models

The University of Tokyo(东京大学);RIKEN(日本理化学研究所);Tohoku University(东北大学)

Ryoma Kumon, Hitomi Yanaka

AI总结:

本研究通过细粒度分析探讨语言模型在不同句法结构中是否共享神经机制,发现填词-缺口依赖在早期至中期层有高度局部化的共享机制,而否定极性项目许可则无统一机制。

摘要:

尽管语言模型展现出复杂的句法能力,但其内部机制与语言学中跨结构原则的契合程度仍不明确。本研究通过因果可解释性方法,探讨模型在不同句法结构中是否共享神经机制。聚焦于填词-缺口依赖和否定极性项目许可,利用激活修补技术识别特定注意力头和MLP块的功能作用。结果发现,填词-缺口依赖在早期至中期层存在高度局部化的共享机制,而否定极性项目处理则无此类统一机制。此外,发现通过激活修补识别的机制可泛化至分布外情况,而分布式对齐搜索,一种监督可解释性方法,易过拟合于狭窄的语言分布。最后,通过证明操纵识别出的组件可提升模型在可接受性判断基准上的表现,验证了发现。

英文摘要:

While language models demonstrate sophisticated syntactic capabilities, the extent to which their internal mechanisms align with cross-constructional principles studied in linguistics remains poorly understood. This study investigates whether models employ shared neural mechanisms across different syntactic constructions by applying causal interpretability methods at a granular level. Focusing on filler-gap dependencies and negative polarity item (NPI) licensing, we utilize activation patching to identify the functional roles of specific attention heads and MLP blocks. Our results reveal a highly localized and shared mechanism for filler-gap dependencies located in the early to middle layers, whereas NPI processing exhibits no such unified mechanism. Furthermore, we find that these mechanisms identified by activation patching generalize to out-of-distribution, while distributed alignment search, a supervised interpretability method, is susceptible to overfitting on narrow linguistic distributions. Finally, we validate our findings by demonstrating that the manipulation of the identified components improves model performance on acceptability judgment benchmarks.

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

↑