arXiv:2610.21893cs.IROct 2026

Manuscript Offprint

arXiv:2610.21893

GACC-Bench: Benchmarking Goal-Adaptive Context Compression Ability across Large Language Models

Weiting Liu, Zhiyu Pan, Shuhong Wang, Zhenquan Yao, Jungang Li, Li Zhao, Jian Jiang, Jianfeng Feng, Ai Han, Wenlian Lu

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

Abstract

Context compression in long-running applications of large language models (LLMs) must preserve goal-relevant information, often before specific downstream questions are known. We introduce GACC-Bench, a benchmark for Goal-Adaptive Context Compression that evaluates how reliably LLMs adapt information retention to specified high-level goals. For each source context, we derive one or more high-level goals by grouping source-grounded questions according to shared downstream objectives. The benchmark contains 500 goals and 2,571 questions over 281 document and agent-trace contexts from seven collections spanning diverse domains, with all instances reviewed by human experts. The compressor receives a source context, a goal, and a context-length budget, with the associated evaluation questions withheld. A fixed reader answers these questions individually using the same compressed context. Our evaluation of ten LLM compressors reveals substantial gaps to full-context performance even for the best-performing model, particularly in supporting correct answers to every question associated with a goal. Compared with goal-agnostic compression, target-goal conditioning consistently improves accuracy, whereas mismatched-goal conditioning reduces it. GACC-Bench is available at https://github.com/weiting24/GACC-Bench.

1 Introduction

Large language models (LLMs) (Singh et al., 2025; Yang et al., 2025; Xu et al., 2026) are increasingly deployed for long-horizon tasks (Yao et al., 2023; Yang et al., 2024), where accumulated instructions and intermediate findings can exceed the available context budget. Coding assistants such as Codex CLI and Claude Code already use context compaction in long sessions. Claude Code also allows users to specify the focus of compaction. At compression time, users may know their next objective even when the specific questions needed to pursue it are unknown. We define a goal as a high-level description of the intended future use of a source context. Goal-adaptive compression aims to preserve information for multiple subsequent questions associated with that goal.

Prior work has studied query-aware (Jiang et al., 2024; Xu et al., 2024), query-agnostic (Pan et al., 2024), and task-aware (Corallo et al., 2026) compression. However, it remains unclear how reliably a compressed context supports multiple withheld questions for a context-specific goal, and whether gains depend on which goal guides compression. In a motivating experiment, we use DeepSeek-V4-Pro (Xu et al., 2026) to compress each context separately for each associated goal and evaluate each compressed context on questions associated with all goals for that context. Figure 1 reports changes in question-level accuracy relative to goal-agnostic compression: matched-goal compression consistently improves accuracy, whereas most mismatched-goal conditions reduce it. These results indicate that the gains from goal-guided compression are goal-specific.

Motivated by these findings, we introduce GACC-Bench to evaluate Goal-Adaptive Context Compression in LLMs. We generate source-grounded questions with reference answers and supporting evidence, group them by shared downstream objectives, and formulate a high-level goal for each group. After quality control, each source context is paired with one or more goals and their associated questions. Figure 2 illustrates how different goals for the same context prioritize different information. At evaluation time, the compressor

Figure

Figure 1: Goal-specific gains from goal-guided compression. Results are based on 20 contexts from each of three sources: LongCodeBench, L-Eval, and agent trajectories collected from SWE-Bench Verified tasks. DeepSeek-V4-Pro serves as both the compressor and reader. Rows indicate compression goals, while columns indicate the goals associated with the evaluation questions. Each cell reports the change in question-level accuracy relative to goal-agnostic compression, aggregated across contexts and expressed in percentage points. Red outlines mark matched goals. All matched-goal cells show gains, whereas 42 of the 44 mismatched-goal cells show losses.

receives the source context, a goal, and a token budget, without access to the associated evaluation questions. A fixed reader answers these questions individually using the same compressed context, and a fixed judge evaluates answer correctness against the original source context and reference answers.

Our contributions are threefold. First, we introduce GACC-Bench, to the best of our knowledge, the first benchmark for goal-adaptive context compression. It contains 500 goals and 2,571 questions over 281 document and agent-trace contexts from seven collections spanning diverse domains, with all instances reviewed by human experts. Second, we design a compressor-reader-judge framework to evaluate goal-adaptive compression under different retention budgets, with the reader and judge held fixed. Third, we evaluate ten LLM compressors and conduct goal ablations across six models. Our experiments show that target-goal conditioning improves accuracy over goal-agnostic compression, yet even the best-performing compressor falls substantially short of full-context performance in supporting correct answers to every question associated with a goal.

References (16)