Generalized Measures of Anticipation and Responsivity in Online Language Processing

Mario Giulianelli, Andreas Opedal, Ryan Cotterell

Abstract

We introduce a generalization of classic information-theoretic measures of predictive uncertainty in online language processing, based on the simulation of expected continuations of incremental linguistic contexts. Our framework provides a formal definition of anticipatory and responsive measures, and it equips experimenters with the tools to define new, more expressive measures beyond standard next-symbol entropy and surprisal. While extracting these standard quantities from language models is convenient, we demonstrate that using Monte Carlo simulation to estimate alternative responsive and anticipatory measures pays off empirically: New special cases of our generalized formula exhibit enhanced predictive power compared to surprisal for human cloze completion probability as well as ELAN, LAN, and N400 amplitudes, and greater complementarity with surprisal in predicting reading times.

Introduction

In psycholinguistics, the human brain is often conceptualized as a "prediction machine," continuously generating hypotheses about upcoming linguistic input. Traditionally, researchers have modeled this process using two primary information-theoretic metrics: surprisal, a responsive measure of unexpectedness after a word appears, and entropy, an anticipatory measure of uncertainty before the word is known.

However, standard formulations of these measures—typically based on negative log-probabilities—are inherently rigid. They treat all incorrect predictions as equally erroneous, failing to account for semantic similarity or the potential non-linear "warping" of cognitive effort. This research addresses these limitations by introducing a flexible mathematical framework that unifies and expands the toolkit for measuring linguistic uncertainty.

Methods and Framework

The authors propose a generalized formula for surprisal: $$\gamma_p(w; c) = f(\mathbb{E}_{v \sim p(\cdot|c)} [g(v, w, c)])$$

This framework is built on three modular components:

  1. The Scoring Function ($g$): Defines the "closeness" between words. It can range from a simple binary identity check to complex semantic distances, such as cosine distance between vector embeddings.
  2. The Warping Function ($f$): Maps the expected score to a cognitive cost, allowing for identity, logarithmic, or power function transformations.
  3. Monte Carlo Simulation: Since many generalized measures lack closed-form solutions, the authors utilize Large Language Models (LLMs like GPT-2 Small and GPT-Neo 125M) to sample thousands of possible continuations, estimating values through simulation.
Stability and runtime of Monte Carlo estimates for generalized information-theoretic measures across varying sample sizes.

The study validates this approach using the Aligned dataset, which maps 1,726 target-context pairs from English novels to behavioral traces (cloze probabilities), neural responses (ERPs like ELAN, N400), and reading times (eye-tracking and self-paced reading).

Key Results and Insights

The generalized framework reveals that the "scale" of uncertainty is task-dependent. While surprisal (logarithmic) effectively predicts subjective predictability ratings, raw probability (linear) is a superior predictor of human cloze completion behavior.

Predictive power ($\Delta R^2$) of surprisal, probability, and information value across neural (ERP) and behavioral (reading time) measures.

Neural and Behavioral Predictive Power

  • N400 and Semantics: The N400 ERP component, traditionally linked to semantic processing, is better predicted by "Information Value" (which incorporates semantic distance) than by standard surprisal. This suggests the brain's response is sensitive to the semantic magnitude of a prediction error.
  • Early Anticipation (ELAN): Sequence-level entropy emerged as the sole significant predictor for the early-onset ELAN component, indicating that the brain processes structural difficulty before specific word identification.
  • Reading Times: Although surprisal remains a dominant predictor for reading speed, incorporating new anticipatory measures significantly enhances the overall predictive performance of reading time models.

Discussion and Future Directions

The research demonstrates that Monte Carlo estimation is a robust and viable method for psycholinguistic research, with stable estimates achievable even at moderate sample sizes. However, the computational cost of sampling remains a challenge, suggesting that future work should explore more efficient techniques like importance sampling.

Furthermore, while this study focuses on English, expanding the framework to multilingual contexts and broader discourse (beyond single sentences) is essential. Integrating multimodal inputs, such as visual context, represents a promising frontier for modeling the full complexity of human language processing.

Summary updated

BibTeX
@inproceedings{giulianelli2024generalized,
  author = {Mario Giulianelli and Andreas Opedal and Ryan Cotterell},
  title = {{Generalized Measures of Anticipation and Responsivity in Online Language Processing}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2024},
  url = {https://openreview.net/forum?id=hGquFyOiyZ},
}
Figure