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

Transformer语言模型中关系解码的线性

Linearity of Relation Decoding in Transformer Language Models

Massachusetts Institute of Technology(麻省理工学院);Northeastern University(东北大学);Technion IIT(以色列理工学院);Harvard University(哈佛大学)

Evan Hernandez, Arnab Sen Sharma, Tal Haklay, Kevin Meng, Martin Wattenberg, Jacob Andreas, Yonatan Belinkov, David Bau

AI总结:

本文发现Transformer语言模型中部分关系知识可通过主体表示的单次线性变换近似,揭示了简单、可解释但异构部署的知识表示策略。

摘要:

Transformer语言模型(LMs)编码的许多知识可以以关系的形式表达:词与其同义词之间的关系、实体与其属性之间的关系等。我们表明,对于一部分关系,这种计算可以通过对主体表示进行单次线性变换来很好地近似。线性关系表示可以通过从单个提示构建LM的一阶近似来获得,并且它们存在于各种事实、常识和语言关系中。然而,我们也发现了许多情况,其中LM预测准确地捕获了关系知识,但这种知识并未在其表示中线性编码。因此,我们的结果揭示了Transformer LMs中一种简单、可解释但异构部署的知识表示策略。

英文摘要:

Much of the knowledge encoded in transformer language models (LMs) may be expressed in terms of relations: relations between words and their synonyms, entities and their attributes, etc. We show that, for a subset of relations, this computation is well-approximated by a single linear transformation on the subject representation. Linear relation representations may be obtained by constructing a first-order approximation to the LM from a single prompt, and they exist for a variety of factual, commonsense, and linguistic relations. However, we also identify many cases in which LM predictions capture relational knowledge accurately, but this knowledge is not linearly encoded in their representations. Our results thus reveal a simple, interpretable, but heterogeneously deployed knowledge representation strategy in transformer LMs.

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

↑