arXiv(opens in a new tab)cs.CLOct 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2610.27301

Evaluating Context Compaction on the Questions That Come Later

Junwei Yao, Yongxi Zhou, Zike Yang, Zhijun Wang, Jianan Liu, Yanxian Chen, Wenbo Ye

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Junwei Yao

Independent Researcher

yao.junw@northeastern.edu

Yongxi Zhou

Independent Researcher

zhou.yongx@northeastern.edu

Zike Yang

Independent Researcher

zikeyang@alumni.usc.edu

Zhijun Wang

Independent Researcher

g674901087@gmail.com

Jianan Liu

Independent Researcher

jiananliu2408@gmail.com

Yanxian Chen

Independent Researcher

chen.yanx@northeastern.edu

Wenbo Ye

Independent Researcher

ywb6113@gmail.com

Abstract

Language-model agents compact their context for the question at hand, but the compacted context must also serve questions that come later. We evaluate compaction on these later questions, using four corpora that annotate the evidence of several questions per text and recorded agent trajectories, and compare every method with random deletion at the same budget. On MultiRC, keeping the sentences that gpt-6-luna (through the OpenAI Decisions API) judges necessary for the current question raises its accuracy on that question by 11.4 points at 25% of the tokens. On the later questions, however, no method that selects sentences for the current question does detectably better than deleting sentences at random. Deleting words instead of sentences does better: LLMLingua-2, which ignores the question, beats random sentence deletion at the same token count by 12.5 points on the later MultiRC questions. It keeps about twice random deletion's share of the evidence's content words, and at equal content-word retention its gain shrinks to 7.3 points (exploratory). On FEVER, label accuracy can overstate what the kept text supports: the gain of sentence selection is no longer detected when answers are scored against the kept evidence, and the 21.0-point gain of LLMLingua-2 is not shown to rest on the kept text. The ranking also depends on the setting: on Evidence Inference sentence selection beats LLMLingua-2 at a nominal 25% budget, and on τ\tau-bench trajectories, whose later tool calls need exact identifiers, it beats random deletion while LLMLingua-2 shows no detected gain. Scores on the question a compaction was made for do not reliably show how it serves later ones.

AI assistance: The authors used Claude Code (Anthropic) during the preparation of this work.

State (a MultiRC paragraph; “...” marks words omitted here)

1 Born in Moscow, Pushkin published his first poem at the age of fifteen.

2 By the time he finished school ... his talent was ... recognized within the Russian literary scene.

3 After school, Pushkin plunged into the ... intellectual youth culture of the capital, Saint Petersburg.

4 In 1820 he published his first long poem, Ruslan and Lyudmila, amidst much controversy ...

5 Pushkin gradually became committed to social reform and emerged as a spokesman for literary radicals.

6 This angered the government, and led to his transfer from the capital (1820).

7 He went to the Caucasus and to the Crimea, then to Kamenka and Chisinau ...

Known question: “Was Pushkin a published author and recognized by the Russian literary scene?” (evidence: sentences 1, 2; correct answer “Yes”).

Hidden question: “What was going on with Pushkin in 1820?” (evidence: sentences 4, 6; correct answer “He was being transferred from the capital”).

text the reader seessentences keptknown answerhidden answerhidden sufficiency
full paragraph1–71.000.991.00
typed selection, 25% budget1, 21.000.000.00
random deletion, 25% budget2, 60.761.001.00

Figure 1: Typed selection keeps the known question's evidence and deletes the hidden question's (one MultiRC paragraph, chosen for illustration; Section 3 gives averages). At a 25% budget two of seven sentences are kept. Typed selection asks gpt-6-luna whether each sentence is needed for the known question and keeps the two most probable; random deletion happens to keep sentence 6. The columns give the probabilities the same model assigns after reading each text: that the gold answer is correct, and that the text contains what the hidden question needs (the sufficiency check of Section 3).

1 Introduction

Applications that call a language model many times, such as agents, assistants and multi-step pipelines, carry text from one call to the next: documents read so far, conversation turns, tool outputs. We call this text the state. Every call pays for it in tokens and the context window bounds it, so applications compact it: they delete parts of it to fit a budget. At compaction time the application usually knows its current question, and the natural choice is to keep what that question needs. The state, however, outlives that question. Later questions, unknown when the deletion was made, must be answered from whatever survived, and a deleted sentence is gone for all of them. We call the question available at compaction time known and the later ones hidden. Query-aware compressors are usually evaluated on the question they compress for; we evaluate them on the hidden ones.

We compare query-aware selection, which keeps what the known question needs, with question-agnostic compressors. Our main instance uses typed decision models, which take a state and typed questions about it (a Boolean, a Choice among options or a Score) and return a probability for each answer (TypeSafe AI, 2026; OpenAI, 2026). Typed selection asks one Boolean per sentence, “is this sentence needed to answer the question?”, and keeps the most probable sentences; the same model then answers the questions, and in this role we call it the reader. Figure 1 shows the risk. We compare it with random deletion, question-agnostic selection by the same model, TF-IDF (term frequency-inverse document frequency) selection and lead (the first sentences). We also run LLMLingua-2 (Pan et al., 2024), which deletes individual words without any question, and, at token budgets, LongLLMLingua (Jiang et al., 2024) and maximal marginal relevance (MMR; Carbonell & Goldstein, 1998), two established compressors that use the question. The corpora are MultiRC (Khashabi et al., 2018; Wang et al., 2019), ERASER’s FEVER (Thorne et al., 2018; DeYoung et al., 2020), Evidence Inference (Lehman et al., 2019) and LoCoMo conversation memory (Maharana et al., 2024), in which several questions share one text and each question’s evidence is annotated, and recorded τ\tau -bench agent trajectories (Yao et al., 2024), whose questions ask for the identifiers that later tool calls pass. Our findings are:

• Selection for the known question beats random deletion on that question. On MultiRC, typed selection, MMR and LongLLMLingua raise known-question accuracy over random deletion at 25%, but none shows a detected advantage on hidden questions on average. On MultiRC, hidden questions gain only where they share the known question's evidence. On FEVER, a gain in recovering a claim's label is not detected when the kept text is scored for what it supports (Section 3). The label-accuracy gain of word-level compression there is not shown to rest on the kept text either (Section 4).

• On MultiRC, picking words beats picking sentences by the same scores. With the same importance scores, picking words instead of sentences raises hidden-question accuracy, and LLMLingua-2 and a hybrid of typed sentences and LLMLingua-2 words lead on hidden questions. They keep about as many evidence words as random deletion but far more of the evidence's content words, which partly explains the lead: at equal content-word retention it shrinks from 12.5 to 7.3 points with gpt-6-luna (Section 4).

• The ordering is not stable across settings. On Evidence Inference typed selection beats LLMLingua-2 on hidden claims at a nominal 25% budget. On agent trajectories, whose later calls need exact identifiers, typed selection beats random deletion and LLMLingua-2 shows no detected gain (Section 5).

Concurrent work shows that compaction can serve the current query and fail later ones (Liu et al., 2026; Zhang, 2026). We add an evaluation on annotated evidence that compares sentence- and word-level compression and locates where each serves later questions.

References (86)