QRAE: Query-Relevant Attention Entropy for Context Compression in DeepSearch Agents
Yingjie Tan, Haiquan Qiu, Quanming Yao, Manyi Zhong, Xianzhi Yu, Yaqing Wang
Abstract
DeepSearch LLM agents repeatedly search and carry retrieved sources into subsequent reasoning steps. This expanding context increases token consumption and latency, although many results do not contribute to later reasoning. We propose Query-Relevant Attention Entropy (QRAE), an online context compression method that uses sparse evidence-assessment heads to decide which intact retrieved chunks should persist across reasoning steps. It scores bounded candidate batches through paired prefills: a query-free control suppresses shared attention responses, while normalized entropy measures the breadth of the positive response within each chunk. High-scoring chunks enter a persistent evidence whitelist and are included in the reasoning context. Uncertain chunks remain outside the reasoning context but are retained in a candidate cache, where they can be retrieved for later reevaluation. QRAE requires neither an additional generative compression pass nor modification of the attention operator. Across multiple DeepSearch benchmarks and reasoning models, QRAE improves task success by an average of 2.35 percentage points and reduces end-to-end latency and reported token usage by an average of 30% and 45%, respectively. These benefits generalize to a model with nearly 100B parameters.
Create a lesson
Metadata
- Comments
- 29 pages, including appendices
Related papers
State Space Attention: Learning Context-Dependent Memory Retention
Shared title terminologycs.LGEge Çakar, Cengiz Pehlevan
Value or Attention: Investigating Layer-wise Relevance Propagation for Graph Attention Networks
Shared title terminologycs.LGKen Schreiber, René P. Klausen, Sebastian Lapuschkin et al.
AttnSR: Attention Step Reward for Long-Horizon Agentic RL
Shared title terminologycs.LGMengsong Wu, Tianchen Zhou, Zhaochen Su et al.
Compute-Aware Submodular Online Learning in Open Multi-Agent Systems
Shared title terminologycs.LGJing Liu, Luca Ballotta, Fangfei Li et al.
Agent-as-a-Verifier: From Scores to Evidence for General Verification
Shared title terminologycs.LGYuxuan Sun, Hao, Chen et al.
Unstable Action Boundaries in Lethal Drone Agents
Shared title terminologycs.LGJacques Dumora, André-Louis Rochet, Simon Roburin