Sentence-Level Contextual Entrainment in Large Language Models

Yang Liu, Chenhui Chu
6/23/2026
cs.CL

No confident code implementation found for this paper.

Abstract

Contextual entrainment, which is a newly discovered phenomenon in large language models (LLMs), refers to the tendency of a model to assign higher probabilities to tokens that appear in its context. In this work, we extend this phenomenon from the token level to the sentence level by examining the per-token mean log-probability of a sentence instead of the probabilities of individual tokens. We investigate sentence-level contextual entrainment across 26 LLMs from seven families and two datasets, which cover both subjective and objective tasks. We find that sentence-level contextual entrainment exists. This means that the sentences in the prompt (even if they are counterfactual statements) can significantly increase their probability during model inference time. As the model size increases, contextual entrainment gradually decreases. We also find that contextual entrainment is controlled by 2% to 4% of the attention heads. Turning off these attention heads can effectively mitigate contextual entrainment without hurting the model's performance.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{liu2026sentencelevel,
  title  = {Sentence-Level Contextual Entrainment in Large Language Models},
  author = {Yang Liu and Chenhui Chu},
  year   = {2026},
  eprint = {2606.24077},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2606.24077v1}
}

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/2606.24077.svg)](https://codeofpaper.com/paper/2606.24077)

Discussion