组合、注意力,还是两者兼备?
Composition, Attention, or Both?
AI总结:
本文提出组合注意力文法(CAGs),通过受控实验证明组合函数与自注意力机制均能提升语言模型的类人句法泛化能力,并发现组合函数仅传递句法特征而非语义特征。
摘要:
在本文中,我们提出了一种名为组合注意力文法(Composition Attention Grammars, CAGs)的新颖架构,该架构通过组合函数将子树递归地组合为单一向量表示,并利用自注意力机制选择性地关注先前的结构信息。我们研究了这些组件——组合函数和自注意力机制——是否都能诱导出类似人类的句法泛化能力。具体来说,我们在严格控制模型规模的情况下,训练了带有和不带有这两个组件的语言模型(LMs),并在SyntaxGym基准上针对六个测试回路评估了它们的句法泛化性能。结果表明,组合函数和自注意力机制在使语言模型更接近人类表现方面都发挥着重要作用,而对语言现象的进一步分析表明,组合函数允许句法特征(而非语义特征)渗透到子树表示中。
英文摘要:
In this paper, we propose a novel architecture called Composition Attention Grammars (CAGs) that recursively compose subtrees into a single vector representation with a composition function, and selectively attend to previous structural information with a self-attention mechanism. We investigate whether these components -- the composition function and the self-attention mechanism -- can both induce human-like syntactic generalization. Specifically, we train language models (LMs) with and without these two components with the model sizes carefully controlled, and evaluate their syntactic generalization performance against six test circuits on the SyntaxGym benchmark. The results demonstrated that the composition function and the self-attention mechanism both play an important role to make LMs more human-like, and closer inspection of linguistic phenomenon implied that the composition function allowed syntactic features, but not semantic features, to percolate into subtree representations.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。