Profile

Settings

Loading…

← Papers

Help

FAQ

Which features require signing in?

You can read the commentary, paper info, Model Structure and related papers of public papers without signing in. Sign in to manage your account or contact us about your inquiries.

Can I upload a PDF file?

Upload papers with an arXiv or DOI link; the commentary is public to everyone. Papers whose source and terms of use can't be verified, so the commentary can't be made public, can't be uploaded. Uploading PDF files and keeping papers private are for subscribers only, and a paper uploaded as a file is saved as private only. Searching for official info by title runs only when you press the button.

Are the figures and AI commentary accurate?

Figures come only from the original paper, and only those whose terms of use are verified are shown. The commentary is written by AI and may be wrong. Check important claims, numbers and figure context against the evidence in the original paper.

I want to report a copyright issue.

Terms of use and the source of the original paper are on the Paper info tab. If there's a problem, choose "Paper content, figures and copyright" under Contact us and send the paper link, the part in question, and evidence that you hold the rights. Receiving your report doesn't confirm any rights or remove anything right away. You can see the result of the review under My inquiries.

I forgot my password.

If you signed up with email, use Forgot password in the sign-in window to reset it with your verified email. If you signed up with Google, Naver or Kakao, change your password with that service.

What should I include in an inquiry?

Tell us which screen you were on and what you were doing when the problem happened, along with the paper link. Don't include personal information such as passwords, API keys, verification codes or phone numbers. Inquiries and replies are stored in Refivu and you can see them under My inquiries.

How do I delete my account?

In Settings, under My account, press Delete account. Review what will be deleted and complete identity verification to delete your account. For other requests, choose "Account" under Contact us.

Paper commentary

Where Should a KV-Cache Repair Budget Go? Distractor Structure and Contextual Compatibility in Non-Prefix Reuse

Repair budgets recover more when spent on the target than on distractors

  • Problem Non-prefix KV-cache reuse encodes retrieved chunks separately and joins their caches, so it loses 19 to 100 percent of context-dependent questions that full prefill answers. Similar distractor chunks make the loss larger.
  • Method The authors recompute only the known target chunk while the other chunks keep their reused caches. The question then attends to the target together with that context, instead of a copy of its full-prefill KV.
  • Results Recomputing the target beat inserting its full-prefill KV in all seven settings tested. Recomputing the top retrieved chunk beat InfoFlow-style reordering in six of nine open-domain QA and API-documentation settings.

Table 1: Recomputing chosen chunks instead of tokens. Token: retention of the token-level selector at the budget.
The other columns give paired gains over Toke…

Table 1 : Recomputing chosen chunks instead of tokens. Token: retention of the token-level selector at the budget. The other columns give paired gains over Token when the same budget is spent on the target chunk alone (Target), on the target and its four most similar chunks (Target+4), or on the BGE-M3 top-1 chunk alone or with its four most similar chunks (Retrieved, Retrieved+4). On open-domain QA and API documentation, a single chunk is about 3% of the context and is recomputed in full, except on a few questions at 5%. Target and Retrieved therefore score identically at both budgets outside LoCoMo, and their 10% gains differ from their 5% gains only because the 10% Token baseline is stronger. Bold gains have 95% intervals that exclude zero (Appendix Tables 20 and 21). A LoCoMo session is longer than a passage, and a whole session fits within the 5% budget on few questions (Section 5).

Original paper · CC BY 4.0 · Yuxing Peng, Zhiqing Tang, Weijia Jia · Where Should a KV-Cache Repair Budget Go? Distractor Structure and Contextual Compatibility in Non-Prefix Reuse · Original paper figure · Extracted the figure area from page 7 of the original PDF.

Where reuse loses answers

Non-prefix KV-cache reuse skips much of the prefill work for retrieved context, because each chunk is encoded once and its caches are joined at query time. On the questions that full prefill answers and that need the retrieved context, called Q∗, position-corrected reuse loses 19 to 100 percent across the settings. The loss is larger when the other chunks resemble the target, which matters because retrievers return exactly such chunks.

To separate these causes, the authors fix the answer-bearing target and its position, and they vary only the other chunks. Qwen3-8B, Llama-3.1-8B-Instruct and Mistral-7B-Instruct-v0.2 are run on LoCoMo, NQ-Open, TriviaQA and Gorilla, and each model and dataset pair counts as one setting. In the Figure 1 example, Qwen3-8B answers Jessica Simpson from full prefill but answers Catherine Bach under reuse, because a similar passage supplies a different actress.

Why restoring distractors costs too much

The damage from reuse is spread over the distractors rather than sitting in the target chunk. If the loss sat in one chunk, restoring that chunk would recover most of it, but that is not what the paper finds. That gap is significant in eleven of the twelve settings.

Restoring a single distractor is a much smaller intervention, and it barely moves the numbers. The authors read this as evidence that the effects of distractors add up rather than come from any one chunk. From those two points it predicts how retention grows as random distractors are restored.

Restoring distractors needs the full prefill that reuse is meant to avoid. The authors argue that the same budget does more when it goes to the target. Recomputing only the known target chunk makes up a median of 2.5 to 3.3% of the context. That recomputation beats the token-level selector chosen for each setting at a 5% budget, by 0.10 to 0.49.

The odds model was fitted to the paper's own restoration curves, so its fit is worth checking on the data. At k equal to 24, the odds prediction falls below the measured interval in three of the settings. Restoring the 16 distractors most similar to the target first changes retention by −0.05 to +0.03, and never significantly.

Recomputing the target in reused context

Recomputing the target in reused context is the repair that the authors favour when the budget is small. The target chunk is recomputed while the other chunks keep their reused caches, so the question attends to the target together with those caches. The authors call this contextual compatibility, and they treat it as different from closeness to full prefill.

The target gets the context that the question actually reads, rather than a copy of its full-prefill KV.

Four of those seven comparisons stay significant after Holm's correction. This holds even though the recomputed KV stays at a median relative distance of 0.23 to 0.30 from the full-prefill KV. Because the recomputed KV stays that far from full prefill, the gain cannot come from closeness to the full-prefill cache.

At a 5% budget, the known target makes up a median of 2.5 to 3.3% of the context. Recomputing only this chunk beats the token-level selector chosen for each setting by 0.10 to 0.49 in all nine open-domain QA and API-documentation settings. Budgets are counted in recomputed tokens, so the comparison holds the token count fixed. On dialogue memory, the 7B to 8B models showed no significant gain over the token-level selector.

The target is unknown in deployment, so the authors also test how to find it. A retriever finds the target more often, so the authors move its top-ranked chunk next to the question and recompute it there. These gains are bounded by retrieval, because a wrong top chunk leaves the moved chunk doing worse than selected tokens.

Why the position term does not explain the gain

Proposition 1 compares the attention output of a token under full prefill with its output under reuse, for one head. Under full prefill, the keys a token sees split into its own chunk and the earlier chunks, with the output weighted by alpha_u. Under reuse, the token sees only the keys of its own chunk and the shared prefix, so the cross-chunk term disappears.

The authors subtract the reuse output from the full-prefill output, which gives Equation 3.

The equivalence depends on the hidden states of the two encodings being the same. If they match, the queries, keys and values agree up to the rotary position, and values carry no rotation. Within a chunk the logit differences are identical under both encodings, so the logits on the chunk's own keys agree. On the prefix the logits differ, because reuse shortens the distance by si minus P, so the second term vanishes only when si equals P.

For the first chunk there are no earlier chunks, so both encodings give the same output in the first layer. In later layers the hidden states of the earlier and current chunks differ, so the second term is no longer only a position effect.

The authors measured both sides of Equation 3 in the first layer on the first 30 Q* questions of each setting. The attention mass that a chunk places on earlier chunks rises with its position in all nine settings. Its Spearman correlation with slot ranges from 0.94 to 1.00. The position term is 0.31 to 0.63 times the size of the cross-chunk term, so the two terms partly cancel.

Restoring distractors then tests how the effects of the reused caches add up.

Moving the top-ranked chunk next to the question

When question attention can't find the target, the paper moves the retriever's top-ranked chunk to the position just before the question. The reason is that a recomputed chunk attends only to the chunks before it, so a chunk placed last sees every other cached chunk. Instead, the question's summed attention selects the last chunk before the question in 58 to 100% of them.

The retriever sees only the request, and the moved chunk is then recomputed under the 5% budget.

The authors use a 5% budget, while the InfoFlow default is 15%, and they use their question suffix as the query. Five of those differences remain significant after Holm's correction. The gap in these six settings runs from 0.14 to 0.34.

It is significantly better in four settings, which the authors report in the same section. The comparison matches the token budget, not latency. Table 28 spends the same 5% budget on the same reordered prompts, and the moved chunk uses 48 to 67% as many tokens as the token-level rule.

The gain is bounded by retrieval, because on questions where the top chunk is not the target, moving it does worse than recomputing selected tokens.

How far the moved-chunk gain goes when the retriever misses the target

Gains from the moved chunk are therefore bounded by how often the retriever ranks the target first.

On questions where the retriever does not rank the target first, recomputing the retrieved chunk with its four most similar chunks, called Retrieved+4, beats recomputing the retrieved chunk alone. That gain is significant in seven of nine settings at 10%, but Retrieved+4 never significantly beats the token-level selector. Retrieved+4 mostly stays with the retrieved chunk, so the extra chunks help only where the selector is not already strong.

Replacing a single distractor changes retention significantly in only two of 24 cases, so one distractor rarely matters much. The retriever's misses are a separate limit: the moved chunk cannot recover a target it never ranks first.

Limitations of the repair study

The results rest on 7B–8B instruction-tuned models, and the authors don't test larger models or other languages beyond two larger Qwen3 models. The two larger Qwen3 models repeat only the main conditions, so the wider comparison stays limited to the 7B–8B models. Four English datasets carry all the evidence, so other languages remain outside what these experiments can support.

Models fine-tuned for chunked encoding are represented by one released model, Tulu3-Block-FT, and the authors don't test repairs on it. The Tulu3 comparison uses the released checkpoints and their block-mode inference procedure, so it doesn't cover other fine-tuned models.

The study covers only small budgets, and the authors count them in recomputed tokens. Latency is measured only in the authors' research engine, and an optimised serving system may time a contiguous chunk and scattered tokens differently. Table 26 reports time to first token for Qwen3-8B in that engine, so its absolute times don't transfer to other systems.

InfoFlow KV was compared through the authors' own re-implementation, on their models and datasets. The re-implementation follows the released code at commit 725b75c, but it still differs from the original runs.

The Gorilla development settings contain only 11–16 questions that full prefill answers, so the estimates there are coarse. Even the strongest existing combinations leave retention at 0.41–0.63 on NQ-Open and at 0.33–0.39 on Gorilla. Gorilla also has a Q∗ set where retention under RAND is zero, so some similarity estimates there are coarse too.

Paper info

Authors
Yuxing Peng, Zhiqing Tang, Weijia Jia
Venue
arXiv · Preprint
First published
2026-11-4
Added
2026-11-6
Updated
2026-11-4
Version
v1
arXiv
2611.06397
Category
cs.CL
Original paper terms
CC BY 4.0
What we show
Paper info, commentary and permitted figures from the original paper

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

Abstract

Non-prefix KV-cache reuse encodes retrieved chunks independently and concatenates their caches. To find where a small repair budget should be spent, we vary the chunks around the answer-bearing one (the target) across three 7B-8B models and four datasets of dialogue memory, open-domain QA and API documentation. Reuse loses 19-100% of the context-dependent questions that full prefill answers, and it loses more when the other chunks are of the same kind as the target. Because the recoverable damage is spread over these other chunks, restoring a few of them recovers little, and the budget is better spent on the target. This works through contextual compatibility: recomputing the target against the reused cache beats inserting its full-prefill KV in all seven settings tested, although the recomputed KV stays far from the full-prefill KV. Question attention over reused caches, however, selects the target in at most 18.8% of development questions. A retriever finds it more often, and recomputing its top chunk after moving it next to the question significantly beats InfoFlow-style reordering at the same 5% budget in six of nine open-domain QA and API-documentation settings. On dialogue memory, though, recomputing chunks never significantly beats the token-level selector chosen for each setting.

Figures from the paper

Quote from the paper

Yuxing Peng, Zhiqing Tang, Weijia Jia (2026). Where Should a KV-Cache Repair Budget Go? Distractor Structure and Contextual Compatibility in Non-Prefix Reuse. arXiv:2611.06397v1. https://arxiv.org/abs/2611.06397v1

BibTeX
@misc{peng2026where,
  title = {{Where Should a KV-Cache Repair Budget Go? Distractor Structure and Contextual Compatibility in Non-Prefix Reuse}},
  author = {Yuxing Peng and Zhiqing Tang and Weijia Jia},
  year = {2026},
  eprint = {2611.06397},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.06397v1}
}

See related papersBrowse other papers

Paper preview
Account security

Connect Google account

If you connect a Google account, you can sign in with it too.

Refivu

Delete account

Refivu
Refivu

Sign up