On the Proper Treatment of Tokenization in Psycholinguistics
Mario Giulianelli, Luca Malagutti, Juan Luis Gastaldi, Brian DuSell, Tim Vieira, Ryan Cotterell
Abstract
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. https://github.com/rycolab/ psycho-toke * The gray bars above each character of the title are proportional to its character-level surprisal under GPT-2.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
13 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- Is Your LLM Overcharging You? Tokenization, Transparency, and Incentives cites Where is the signal in tokenization space?
- Is Your LLM Overcharging You? Tokenization, Transparency, and Incentives cites You should evaluate your language model on marginal likelihood over tokenisations
- The Impact of Token Granularity on the Predictive Power of Language Model Surprisal cites Words, Subwords, and Morphemes: What Really Matters in the Surprisal-Reading Time Relationship?
- The Impact of Token Granularity on the Predictive Power of Language Model Surprisal cites How to Compute the Probability of a Word
- Where is the signal in tokenization space? cites You should evaluate your language model on marginal likelihood over tokenisations
- How to Compute the Probability of a Word cites You should evaluate your language model on marginal likelihood over tokenisations
- The Harmonic Structure of Information Contours cites Revisiting the Uniform Information Density Hypothesis
- Tokenisation is NP-Complete cites Where is the signal in tokenization space?
- Tokenisation is NP-Complete cites How to Compute the Probability of a Word
Cited by top-tier papers13
- Is Your LLM Overcharging You? Tokenization, Transparency, and IncentivesAnder Artola Velasco, Stratis Tsirtsis, Nastaran Okati, Manuel Gomez-RodriguezICML 2026 · 16 citations
- The Impact of Token Granularity on the Predictive Power of Language Model SurprisalByung-Doh Oh, William SchulerACL 2025 · 7 citations
- The Harmonic Structure of Information ContoursEleftheria Tsipidi, Samuel Kiegeland, Franz Nowak, Tianyang Xu et al.ACL 2025 · 6 citations
- Tokenisation is NP-CompletePhilip Whittington, Gregor Bachmann, Tiago PimentelACL 2025 · 6 citations
- If Attention Serves as a Cognitive Model of Human Memory Retrieval, What is the Plausible Memory Representation?Ryo Yoshida, Shinnosuke Isono, Kohei Kajikawa, Taiga Someya et al.ACL 2025 · 3 citations
Builds on8
- Words, Subwords, and Morphemes: What Really Matters in the Surprisal-Reading Time Relationship?Sathvik Nair, Philip ResnikEMNLP Findings 2023 · 13 citations
- You should evaluate your language model on marginal likelihood over tokenisationsKris Cao, Laura RimellEMNLP 2021 · 6 citations
- Revisiting the Uniform Information Density HypothesisClara Meister, Tiago Pimentel, Patrick Haller, Lena A. Jäger et al.EMNLP 2021 · 4 citations
- How to Compute the Probability of a WordTiago Pimentel, Clara MeisterEMNLP 2024 · 2 citations
- Where is the signal in tokenization space?Renato Lui Geh, Honghua Zhang, Kareem Ahmed, Benjie Wang et al.EMNLP 2024 · 1 citation
Related papers
- On the Proper Treatment of Units in Surprisal TheorySamuel Kiegeland, Vésteinn Snæbjarnarson, Tim Vieira, Ryan CotterellACL 2026
- From Language Models over Tokens to Language Models over CharactersTim Vieira, Benjamin LeBrun, Mario Giulianelli, Juan Luis Gastaldi et al.ICML 2025
- Causal Estimation of Tokenisation BiasPietro Lesci, Clara Meister, Thomas Hofmann, Andreas Vlachos et al.ACL 2025
- Surprisal Estimators for Human Reading Times Need Character ModelsByung-Doh Oh, Christian Clark, William SchulerACL 2021
- Transformer-Based Language Model Surprisal Predicts Human Reading Times Best with About Two Billion Training TokensByung-Doh Oh, William SchulerEMNLP Findings 2023 · 21 citations
