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

Transformer语言模型中的合理性处理:聚焦GPT中注意力头的作用

Plausibility Processing in Transformer Language Models: Focusing on the Role of Attention Heads in GPT

University of Michigan(密歇根大学)

Soo Hyun Ryu

AI总结:

本文探索Transformer语言模型如何处理名词与动词关系的合理性,发现GPT2与人类处理方式高度相似,并证实其内部多个注意力头共同因果地促成了这种合理性处理能力。

摘要:

本文旨在探索Transformer语言模型如何处理语义知识,特别是名词与动词关系的合理性。首先,我证明与其他Transformer语言模型相比,GPT2在合理性处理上与人类表现出更高的相似度。接着,我深入探讨合理性知识如何包含在GPT2的注意力头中,以及这些注意力头如何因果地促成GPT2的合理性处理能力。通过几项实验发现:i) GPT2拥有多个能检测合理名词与动词关系的注意力头;ii) 这些注意力头共同促成了Transformer处理合理性的能力,尽管程度有所不同;iii) 注意力头在检测合理性方面的个体表现,不一定与其对GPT2合理性处理能力的贡献程度相关。

英文摘要:

The goal of this paper is to explore how Transformer language models process semantic knowledge, especially regarding the plausibility of noun-verb relations. First, I demonstrate GPT2 exhibits a higher degree of similarity with humans in plausibility processing compared to other Transformer language models. Next, I delve into how knowledge of plausibility is contained within attention heads of GPT2 and how these heads causally contribute to GPT2's plausibility processing ability. Through several experiments, it was found that: i) GPT2 has a number of attention heads that detect plausible noun-verb relationships; ii) these heads collectively contribute to the Transformer's ability to process plausibility, albeit to varying degrees; and iii) attention heads' individual performance in detecting plausibility does not necessarily correlate with how much they contribute to GPT2's plausibility processing ability.

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

↑