Humans and language models diverge when predicting repeating text

Aditya R. Vaidya, Javier Turek, Alexander G. Huth
10/10/2023
cs.CL

No official code found. Best implementation: HuthLab/lm-repeating-text (2 stars, last commit 2024-10-17).

Abstract

Language models that are trained on the next-word prediction task have been shown to accurately model human behavior in word prediction and reading speed. In contrast with these findings, we present a scenario in which the performance of humans and LMs diverges. We collected a dataset of human next-word predictions for five stimuli that are formed by repeating spans of text. Human and GPT-2 LM predictions are strongly aligned in the first presentation of a text span, but their performance quickly diverges when memory (or in-context learning) begins to play a role. We traced the cause of this divergence to specific attention heads in a middle layer. Adding a power-law recency bias to these attention heads yielded a model that performs much more similarly to humans. We hope that this scenario will spur future work in bringing LMs closer to human behavior.

View on arXivView PDF

Code Implementations(1)

Code for CoNLL 2023 paper "Humans and language models diverge when predicting repeating text"

20Shell, PythonOct 20, 20232 years ago

Similar Papers

Cite this paper

@article{vaidya2023humans,
  title  = {Humans and language models diverge when predicting repeating text},
  author = {Aditya R. Vaidya and Javier Turek and Alexander G. Huth},
  year   = {2023},
  eprint = {2310.06408},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2310.06408v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2310.06408.svg)](https://codeofpaper.com/paper/2310.06408)

Discussion