cs.LGNov 5, 2026

QRAE: Query-Relevant Attention Entropy for Context Compression in DeepSearch Agents

Authors: Yingjie Tan, Haiquan Qiu, Quanming Yao, Manyi Zhong, Xianzhi Yu, Yaqing Wang

Organizations: Tsinghua University · Huawei Technologies Ltd.

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.

Figures & tables

Appendix figures & tables16 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. CORE: Coarse-to-Fine Search with Context Management for Deep Research

    Nov 5, 2026Hoang Tran Vuong, Ngoc Quan Pham, Hung Bui +2Agentic RetrievalInformation Retrieval

  2. EnComp: Lightweight Encoder-Only Context Compression for Retrieval-Augmented Question Answering

    Mar 10, 2026Thao Do, Dinh Phu Tran, An Vo +2Efficient Language Model InferenceKnowledge-Intensive QA

  3. Compression Beyond the Uncompressed: A Two-Stage Training Recipe for Soft Context Compression in RAG

    Sep 4, 2026Shuyu Guo, Shuo Zhang, Zhaochun RenRL for RAGLLM Inference Acceleration