TRANSMISSION // 2611.29006v1
A middle ground for deciding what an AI model keeps
Source published
NoHairCache combines attention and recency in one scoring rule for selecting tokens to keep in an AI model’s key-value cache. In tests on five small models, a setting calibrated on one text corpus generally transferred to others, though results varied with cache size and model. The arXiv preprint does not establish performance on larger models or longer contexts.

When an AI model generates text, it stores information about earlier tokens in a key-value (KV) cache. That cache can grow large, so systems may discard some entries. NoHairCache proposes a middle ground between keeping tokens that drew attention in the past and keeping only the newest tokens. Its authors report lower language-modeling perplexity than two comparison methods on three datasets, using a setting calibrated on one. But the evaluation covers five models of up to 1.5 billion parameters and 2,048-token sequences; performance beyond that scope remains untested.
Long prompts and conversations require language models to use information about earlier tokens as they generate each new one. They do this with a key-value (KV) cache, a working store used during attention. Keeping everything can consume substantial memory and computation, so some systems remove cache entries as they go. The practical question is which entries to keep.
Two approaches emphasize different signals. H2O favors tokens that have accumulated attention from later tokens. StreamingLLM favors recent tokens while also preserving an initial “attention sink”—an early token that can attract attention. NoHairCache asks whether these approaches can be understood as endpoints of one rule, and whether an intermediate setting can be measured once for a model and reused across datasets.
One score, from attention to recency
The proposed score multiplies a token’s accumulated attention by an age penalty: older tokens are discounted according to a power law, with an exponent called alpha. At alpha equal to zero, age has no effect, giving the H2O scoring term. As alpha grows very large, age dominates and the rule approaches a sliding window that favors newer tokens. StreamingLLM’s attention-sink patch is separate: the authors say the power-law score alone does not reproduce it.
NoHairCache estimates alpha by comparing pairs of nearly identical prompts as the model continues generating the same text. The researchers measure how the prompt difference persists in the model’s hidden states at different depths and generation steps, then fit a decay rate. They calibrate on WikiText-103 and freeze the resulting setting for other evaluations. During decoding, the score combines accumulated attention with a precomputed age penalty.
This proposed link between a measured property of hidden states and a practical cache-scoring rule is not proof that one exponent is universally optimal. The paper also invokes a “no-hair” bound from the author’s earlier work. That bound motivates the range to examine, but the paper notes it does not itself establish that power-law scoring is the right model.
What the tests found
The experiments cover five Pythia and Qwen models, from 410 million to 1.5 billion parameters. For the largest Qwen model, measured layer values ranged from 0.556 to 0.822. Across all five models, reported mean values fell between 0.602 and 0.663. A separate sweep of alpha values found the lowest perplexity—a measure of how well a model predicts text, where lower is better—around 0.6–0.8 on WikiText, PG19 and arXiv. The measured values overlapped that region.
At a cache budget of 512 tokens, the Qwen model’s alpha was calibrated on WikiText and then used unchanged on all three datasets. NoHairCache had lower perplexity than both H2O and StreamingLLM in each case. Its advantage over StreamingLLM was modest: 0.057 points on WikiText, 0.090 on PG19 and 0.104 on arXiv. Paired statistical tests reported the differences as significant for those 50-sequence evaluations. These results support transfer across the tested datasets, not every domain or model.
The advantage also depended on cache budget. On PG19, NoHairCache performed better than StreamingLLM at moderate compression, while StreamingLLM did better at the tightest budgets. The crossover differed by dataset. In a separate four-choice question-answering evaluation, NoHairCache was never worse than StreamingLLM across nine task-and-budget combinations. However, per-cell McNemar tests were not significant (exact p-values were at least 0.125); after Holm correction, adjusted p-values were 1.00. The authors treat QA as corroborating evidence, not confirmation of a reliable accuracy improvement.
What remains uncertain
The evaluation is limited to five models of at most 1.5 billion parameters and sequences of 2,048 tokens. The paper expects the measured behavior may persist at larger scales, but says this has not been tested. Its perplexity evaluation uses 50 sequences per dataset; its QA evaluation uses 100 examples per cell. These experiments offer evidence within their scope, not a broad assessment of deployment performance.
The paper also does not directly test whether NoHairCache preserves middle-of-context information better, despite suggesting that finite age penalties can retain some older, useful tokens. Nor does it establish that calibration transfers to longer contexts, other architectures or real-world tasks. The claim that alpha is an intrinsic model property should therefore be read as an interpretation of measurements on the models and settings studied.
NoHairCache is described in an arXiv preprint, which may not have been peer reviewed. The authors state that they will release calibration and scoring tools upon publication. Independent reproduction and broader evaluation could help establish whether one-time calibration is practical beyond these experiments.
- KV cache
- language models
- KV cache eviction
- inference efficiency
- NoHairCache
- long-context AI
Related reading
Automatically matched by shared topic keywords. These links do not imply that the sources agree or establish a consensus.
Can a language model reconsider what it keeps in memory?
Source published
Shared keywords: kv cache eviction, language models
How Mosaic coordinates CPUs and GPUs for long-context AI
Source published
Shared keywords: kv cache
A Second Memory State Could Help Linear Attention Remember Longer
Source published
Shared keywords: language models, long context ai
When turning text into images makes AI think longer
Source published
Shared keywords: long context ai
When long-context AI gains vanish after calibration
Source published
Shared keywords: language models