Good Papers

A Conditional No-Hair Theorem for Transformers: How Language Models Forget Their Prompt

Transformer hidden-state differences between prompts decay as a power law with exponent near 0.55, 0.7 in trained models, proving prompt influence vanishes as generated text lengthens.

Published Oct 16, 2026▲ 7 on Hugging FaceCode

54%
OverallWorth a look
?
OverallWorth a lookVote to see the score
Readers
–

Only vote on papers you've read. Sign in to vote.

AI panel9/20reviewers recommend it
lenient 3/5
medium 4/10
strict 2/5
AI panel?Vote to see what the 20 AI reviewers said

Abstract

We ask how much an autoregressive transformer retains of its prompt after generating t tokens. Consider two different prompts followed by the same continuation text, so that any difference in their hidden states comes from the prompt alone, and we find that the distance between their hidden states decays approximately as a power law t^-α, where α=1 is the rate at which a fixed prompt's share of uniform attention shrinks and smaller values mean longer memory. Trained models forget fast (α≈0.55--0.7), untrained ones slowly (α≈0.2--0.5). We prove that this offset is O(P(log t)^L-1/t) for a prompt of length P and depth L. The bound holds for finite-depth pre-LN softmax transformers with bounded attention logits, under one additional condition: the pre-norm activations stay away from zero. The mechanism is geometric: the prompt's direct influence is diluted as the context grows, and relay --- continuation tokens passing on what earlier tokens read from the prompt --- can only add logarithmic factors. This is what we call the conditional no-hair theorem: given the text generated so far, the prompt's influence on the next token vanishes as t grows, so any property of the prompt that survives, such as its language, must be carried by the text itself. An exactly solvable linear relay model shows that the bound cannot be improved and reproduces the rise of the local exponent towards 1 seen in untrained networks. Cancelling the dilution with a logit bias stops the decay early in training and reverses it after, so dilution is necessary for the forgetting we measure; untrained networks and the solvable model show it is also sufficient.

Are you an author?

Good Papers badgeAuthor of this paper? Add this badge to your README or page
[![Good Papers](https://www.goodpapers.org/badge/arxiv-2610.24133.svg)](https://www.goodpapers.org/paper/arxiv-2610.24133)