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

训练期间的线性近因偏差提升Transformer对阅读时长的拟合度

Linear Recency Bias During Training Improves Transformers' Fit to Reading Times

The Ohio State University(俄亥俄州立大学);New York University(纽约大学)

Christian Clark, Byung-Doh Oh, William Schuler

AI总结:

为弥合标准Transformer无损上下文表征与人类语言加工记忆衰减特性的差距,本研究引入带ALiBi近因偏差的Transformer,发现其惊奇值对阅读时长拟合更优,且斜率混合通过支持不同语言依赖追踪助力提升。

摘要:

近期心理语言学研究将人类阅读时长与语言模型的 surprisal(惊奇值)估计值进行对比,以探究影响人类句子加工难度的因素。已有研究表明,Transformer的惊奇值与阅读时长之间存在较强的拟合关系。然而,标准Transformer对前文所有语言上下文采用无损表征,这与包含记忆衰减机制的人类语言加工模型存在差异。为弥补这一差距,本文评估了一种改进的Transformer模型,该模型引入ALiBi(Press等人,2022,即注意力线性偏置)——一种添加到注意力分数上的近因偏差。与标准Transformer基线相比,采用ALiBi的惊奇值估计对人类阅读时长的拟合效果更优。后续对注意力头的分析表明,ALiBi的斜率混合(决定每个注意力头的记忆衰减速率)可能通过帮助含ALiBi的模型追踪不同类型的语言依赖关系,在性能提升中发挥作用。

英文摘要:

Recent psycholinguistic research has compared human reading times to surprisal estimates from language models to study the factors shaping human sentence processing difficulty. Previous studies have shown a strong fit between surprisal values from Transformers and reading times. However, standard Transformers work with a lossless representation of the entire previous linguistic context, unlike models of human language processing that include memory decay. To bridge this gap, this paper evaluates a modification of the Transformer model that uses ALiBi (Press et al., 2022), a recency bias added to attention scores. Surprisal estimates with ALiBi show an improved fit to human reading times compared to a standard Transformer baseline. A subsequent analysis of attention heads suggests that ALiBi's mixture of slopes -- which determine the rate of memory decay in each attention head -- may play a role in the improvement by helping models with ALiBi to track different kinds of linguistic dependencies.

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

↑