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

GPT-2中的花园路径句遍历

Garden-Path Traversal in GPT-2

Brown University(布朗大学)

William Jurayj, William Rudman, Carsten Eickhoff

AI总结:

本研究提出分析GPT-2隐藏状态的方法,构建最大花园路径句数据集,发现曼哈顿距离和余弦相似度优于惊奇度方法,并能揭示惊奇度分析遗漏的潜在花园路径效应时期。

摘要:

近年来,诸如GPT-x系列模型等大规模Transformer解码器变得越来越流行。对这些模型行为的研究往往只关注语言建模头的输出,而避免分析Transformer解码器的内部状态。在本研究中,我们提出了一系列分析GPT-2隐藏状态的方法,并以模型对花园路径句的导航作为案例研究。为此,我们编制了目前最大的花园路径句数据集。我们表明,与已建立的、分析由语言建模头计算的下一词概率的惊奇度方法相比,曼哈顿距离和余弦相似度能提供更可靠的见解。使用这些方法,我们发现,对于仅在动词宾语是什么上存在歧义的明确句式,否定词对模型表征的影响最小,但对于歧义源于动词语态的明确句子,否定词对表征的影响更为显著。此外,我们发现分析解码器模型的隐藏状态能揭示可能以花园路径效应结束但实际并未发生的歧义时期,而惊奇度分析通常会遗漏这一细节。

英文摘要:

In recent years, large-scale transformer decoders such as the GPT-x family of models have become increasingly popular. Studies examining the behavior of these models tend to focus only on the output of the language modeling head and avoid analysis of the internal states of the transformer decoder. In this study, we present a collection of methods to analyze the hidden states of GPT-2 and use the model's navigation of garden path sentences as a case study. To enable this, we compile the largest currently available dataset of garden path sentences. We show that Manhattan distances and cosine similarities provide more reliable insights compared to established surprisal methods that analyze next-token probabilities computed by a language modeling head. Using these methods, we find that negating tokens have minimal impacts on the model's representations for unambiguous forms of sentences with ambiguity solely over what the object of a verb is, but have a more substantial impact of representations for unambiguous sentences whose ambiguity would stem from the voice of a verb. Further, we find that analyzing the decoder model's hidden states reveals periods of ambiguity that might conclude in a garden path effect but happen not to, whereas surprisal analyses routinely miss this detail.

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

↑