Hugging Face Trending Papers

Sentence-Level Contextual Entrainment in Large Language Models

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.

arXiv Computation and Language
Nov 5

Llama See, Llama Do: A Mechanistic Perspective on Contextual Entrainment and Distraction in LLMs

The paper reports a new phenomenon called contextual entrainment, where language models give higher probability to tokens that have appeared earlier in the prompt, even if those tokens are irrelevant. This effect is largely mechanistic but is modulated by semantic factors, with counterfactual prompts amplifying it more than factual ones. The authors identify a set of attention heads—entrainment heads—responsible for this behavior, and show that disabling these heads reduces the entrainment effect, suggesting a path toward mitigating distraction in large language models.

By Jingcheng Niu, Xingdi Yuan, Tong Wang, Hamidreza Saghir, Amir H. Abdi
Hugging Face Trending Papers
Jul 14

The Illusion of Robustness: Aggregate Accuracy Hides Prediction Flips under Task-Irrelevant Context

As large language models (LLMs) grow more capable, they are increasingly deployed in context-rich settings where task inputs are often accompanied by long, partially irrelevant context. In a controlled setting, we find that state-of-the-art models often appear robust to task-irrelevant context at the aggregate level: prepending it to benchmark questions causes little change in overall accuracy.

arXiv Machine Learning
Oct 23

How Depth Growth and Looping Shape In-Context Learning in Language Models

The paper investigates how depth growth and looping in language models influence in-context learning (ICL). It shows that models with these architectural features rely more on contextual information, acquire ICL earlier, and retain it better than fully dense counterparts. Attention analysis reveals that depth growth propagates early induction heads across layers, and ablations confirm that these models depend more on induction-ranked heads for few‑shot performance and token prediction.

By Ferdinand Kapl, Kaitlin Maile, Stefan Bauer, Johannes von Oswald
arXiv AI
Oct 31

Prompts and probabilities in the linguistic assessment of language models: Evidence from semantic focus-sensitivity

The study examines how language models (LMs) perform on semantic focus-sensitivity tasks using two evaluation methods: explicit prompting and token-probability-based scoring. Across models of varying sizes, token probabilities consistently achieve above-chance performance, while prompting generally aligns with prior findings but can surpass token probabilities in larger models. The authors attribute this to LMs’ limited use of focus markers, which can distort token-probability results, and demonstrate that prompting remains robust even when focus markers are randomized.

By Robert Pasternak
arXiv Computation and Language
Oct 23

A Reality Check of Inference-Time Context Augmentation Methods

The paper evaluates five inference-time context augmentation methods across seven large language models and three datasets. It finds that accuracy improvements are often not genuine, as the methods can both correct and break predictions, especially when the added text only increases computational time. The study shows that methods adding no new content mainly affect predictions near the decision boundary.

By Haeun Yu, Geert Heyman, Pepa Atanasova, Isabelle Augenstein
arXiv Machine Learning
Jun 5

Masks Can Be Distracting: On Context Comprehension in Diffusion Language Models

arXiv:2511. 21338v2 Announce Type: replace Abstract: Masked Diffusion Language Models (MDLMs) have recently emerged as a promising alternative to Autoregressive Language Models (ARLMs), leveraging a denoising objective that, in principle, should enable more uniform context utilisation.

By Julianna Piskorz, Cristina Pinneri, Alvaro Correia, Motasem Alfarra, Risheek Garrepalli, Christos Louizos