On the Proper Treatment of Tokenization in Psycholinguistics

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Giulianelli, Mario, Malagutti, Luca, Gastaldi, Juan Luis, DuSell, Brian, Vieira, Tim, Cotterell, Ryan
Format: Preprint
Published: 2024
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866913599944916992
author Giulianelli, Mario
Malagutti, Luca
Gastaldi, Juan Luis
DuSell, Brian
Vieira, Tim
Cotterell, Ryan
author_facet Giulianelli, Mario
Malagutti, Luca
Gastaldi, Juan Luis
DuSell, Brian
Vieira, Tim
Cotterell, Ryan
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2410_02691
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle On the Proper Treatment of Tokenization in Psycholinguistics
Giulianelli, Mario
Malagutti, Luca
Gastaldi, Juan Luis
DuSell, Brian
Vieira, Tim
Cotterell, Ryan
Computation and Language
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.
title On the Proper Treatment of Tokenization in Psycholinguistics
topic Computation and Language
url https://arxiv.org/abs/2410.02691