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

论心理语言学中对分词(Tokenization)的恰当处理

On the Proper Treatment of Tokenization in Psycholinguistics

Mario Giulianelli, Luca Malagutti, Juan Luis Gastaldi, Brian DuSell, Tim Vieira, Ryan Cotterell

AI总结:

针对心理语言学中 token 边界与字符级感兴趣区域不对齐的问题,本文提出将 token 级语言模型近似边缘化为字符级模型以计算惊异度,并实证发现若干焦点区域具有更强预测力。

摘要:

语言模型被广泛应用于计算心理语言学,以检验相关理论:这些理论将语言模型下某一感兴趣区域(一个字符子串)的负对数概率(即惊异度,surprisal)与读者所经历的认知成本联系起来;认知成本例如通过该区域上的注视时长来操作化。然而,将现代语言模型应用于心理语言学研究时,会因在模型训练中使用分词作为中间步骤这一做法而变得复杂。这样做产生的是一个作用于 token 字符串而非字符字符串的语言模型。令人困扰的是,感兴趣区域通常与这些 token 字符串不对齐。本文主张,在将 token 级语言模型用于心理语言学研究、计算感兴趣区域的惊异度之前,应当将其(近似地)边缘化为字符级语言模型;随后,可使用边缘化后的字符级语言模型计算任意字符子串的惊异度,我们将该任意字符子串称为焦点区域(focal area),实验者可能希望将其用作预测变量。我们提出的将 token 级模型边缘化为字符级模型的方案,可独立于分词方案解决这种不对齐问题。在实证方面,我们发现了多个焦点区域,其惊异度比感兴趣区域本身的惊异度是更好的心理测量预测因子。

英文摘要:

Language models are widely used in computational psycholinguistics to test theories that relate the negative log probability (the surprisal) of a region of interest (a substring of characters) under a language model to its cognitive cost experienced by readers, as operationalized, for example, by gaze duration on the region. However, the application of modern language models to psycholinguistic studies is complicated by the practice of using tokenization as an intermediate step in training a model. Doing so results in a language model over token strings rather than one over character strings. Vexingly, regions of interest are generally misaligned with these token strings. The paper argues that token-level language models should be (approximately) marginalized into character-level language models before they are used in psycholinguistic studies to compute the surprisal of a region of interest; then, the marginalized character-level language model can be used to compute the surprisal of an arbitrary character substring, which we term a focal area, that the experimenter may wish to use as a predictor. Our proposal of marginalizing a token-level model into a character-level one solves this misalignment issue independently of the tokenization scheme. Empirically, we discover various focal areas whose surprisal is a better psychometric predictor than the surprisal of the region of interest itself.

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

↑