arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2501.08618cs.CLcs.AI
收藏

大型语言模型中层次语法与线性语法的分离加工机制

Disjoint Processing Mechanisms of Hierarchical and Linear Grammars in Large Language Models

CSAIL, MIT(麻省理工学院计算机科学与人工智能实验室);Northeastern University(东北大学)

Aruna Sankaranarayanan, Dylan Hadfield-Menell, Aaron Mueller

AI总结:

该研究通过多语言及无意义词构造层次与线性语法输入,发现LLM中存在功能分离的语法加工组件,并经消融实验因果验证其层次敏感性独立于语义和分布。

摘要:

所有自然语言都具有层次结构。在人类中,这种结构限制具有神经编码基础:当呈现两套词汇完全相同的语法时,负责语言加工的脑区只对层次语法敏感。我们利用大型语言模型(LLM),研究这种功能上不同的层次加工区域是否能够仅通过接触大规模语言分布而产生。我们使用英语、意大利语、日语或无意义词生成输入,并改变底层语法,使其符合层次规则或线性/位置规则。利用这些语法,我们首先观察到语言模型在层次结构输入与线性结构输入上表现出不同行为。随后,我们发现负责加工层次语法的组件不同于加工线性语法的组件;我们通过消融实验对这一点进行了因果验证。最后,我们观察到层次选择性组件在无意义词语法上也处于活跃状态;这表明层次敏感性并不依赖于意义,也不局限于分布内输入。

英文摘要:

All natural languages are structured hierarchically. In humans, this structural restriction is neurologically coded: when two grammars are presented with identical vocabularies, brain areas responsible for language processing are only sensitive to hierarchical grammars. Using large language models (LLMs), we investigate whether such functionally distinct hierarchical processing regions can arise solely from exposure to large-scale language distributions. We generate inputs using English, Italian, Japanese, or nonce words, varying the underlying grammars to conform to either hierarchical or linear/positional rules. Using these grammars, we first observe that language models show distinct behaviors on hierarchical versus linearly structured inputs. Then, we find that the components responsible for processing hierarchical grammars are distinct from those that process linear grammars; we causally verify this in ablation experiments. Finally, we observe that hierarchy-selective components are also active on nonce grammars; this suggests that hierarchy sensitivity is not tied to meaning, nor in-distribution inputs.

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

↑