arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2310.15151cs.CLcs.AIcs.LG
收藏

Transformer中的动词变位由主语数的线性编码决定

Verb Conjugation in Transformers Is Determined by Linear Encodings of Subject Number

New York University(纽约大学)

Sophie Hao, Tal Linzen

AI总结:

本文通过因果干预分析证明,BERT的动词变位能力依赖于主语数的线性可解释编码,该编码在不同网络层中呈现位置分布差异。

摘要:

诸如Transformer之类的深度架构有时因具有不可解释的“黑箱”表示而受到批评。我们使用因果干预分析表明,事实上,某些语言特征是以线性的、可解释的格式表示的。具体而言,我们表明BERT对动词进行变位的能力依赖于主语数的线性编码,该编码可以被操纵,并对变位准确性产生可预测的影响。这种编码在第一层的主语位置和最后一层的动词位置中被发现,但在中间层中分布在各个位置上,特别是当存在多个主语数线索时。

英文摘要:

Deep architectures such as Transformers are sometimes criticized for having uninterpretable "black-box" representations. We use causal intervention analysis to show that, in fact, some linguistic features are represented in a linear, interpretable format. Specifically, we show that BERT's ability to conjugate verbs relies on a linear encoding of subject number that can be manipulated with predictable effects on conjugation accuracy. This encoding is found in the subject position at the first layer and the verb position at the last layer, but distributed across positions at middle layers, particularly when there are multiple cues to subject number.

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

↑