arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2410.12292cs.CL
收藏

上下文化表示在多大程度上编码了长程上下文?

How much do contextualized representations encode long-range context?

NVIDIA(英伟达)

Simeng Sun, Cheng-Ping Hsieh

AI总结:

本文通过扰动实验和几何度量分析语言模型表示中的长程上下文编码,发现相近困惑度下模型表现差异源于长程上下文化程度不同,并比较了不同架构、规模与训练配置的影响。

摘要:

我们分析神经自回归语言模型中的上下文化表示,重点关注跨越数千个 token 的长程上下文。我们的方法采用扰动设置和度量“各向异性校准余弦相似度”,从表示几何的视角刻画长程模式的上下文化程度。我们首先以标准仅解码器 Transformer 为案例展开分析,证明相近的困惑度可能表现出明显不同的下游任务性能,而这可以由长程内容上下文化的差异来解释。接着,我们将分析扩展到其他模型,涵盖近期新颖的架构设计和各种训练配置。表示层面的结果表明,不同架构对高复杂度(即较不可压缩)序列的编码能力有所下降;完全循环模型严重依赖局部上下文,而混合模型能更有效地编码整个序列结构。最后,关于模型规模和训练配置对长程上下文编码影响的初步分析,为改进现有语言模型提示了潜在方向。

英文摘要:

We analyze contextual representations in neural autoregressive language models, emphasizing long-range contexts that span several thousand tokens. Our methodology employs a perturbation setup and the metric \emph{Anisotropy-Calibrated Cosine Similarity}, to capture the degree of contextualization of long-range patterns from the perspective of representation geometry. We begin the analysis with a case study on standard decoder-only Transformers, demonstrating that similar perplexity can exhibit markedly different downstream task performance, which can be explained by the difference in contextualization of long-range content. Next, we extend the analysis to other models, covering recent novel architectural designs and various training configurations. The representation-level results illustrate a reduced capacity for high-complexity (i.e., less compressible) sequences across architectures, and that fully recurrent models rely heavily on local context, whereas hybrid models more effectively encode the entire sequence structure. Finally, preliminary analysis of model size and training configurations on the encoding of long-range context suggest potential directions for improving existing language models.

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

↑