Research

Paper

AI LLM March 20, 2026

BEAVER: A Training-Free Hierarchical Prompt Compression Method via Structure-Aware Page Selection

Authors

Zhengpei Hu, Kai Li, Dapeng Fu, Chang Zeng, Yue Li, Yuanhao Tang, Jianqiang Huang

Abstract

The exponential expansion of context windows in LLMs has unlocked capabilities for long-document understanding but introduced severe bottlenecks in inference latency and information utilization. Existing compression methods often suffer from high training costs or semantic fragmentation due to aggressive token pruning. In this paper, we propose BEAVER, a novel training-free framework that shifts compression from linear token removal to structure-aware hierarchical selection. BEAVER maximizes hardware parallelism by mapping variable-length contexts into dense page-level tensors via dual-path pooling, and preserves discourse integrity through a hybrid planner combining semantic and lexical dual-branch selection with sentence smoothing. Extensive evaluations on four long-context benchmarks demonstrate that BEAVER achieves comparable performance to state-of-the-art (SOTA) methods like LongLLMLingua. Notably, on the RULER benchmark, BEAVER maintains high fidelity in multi-needle retrieval where baselines deteriorate. Regarding efficiency, BEAVER reduces latency by 26.4x on 128k contexts, offering a scalable solution for high-throughput applications. Our code is available at https://cslikai.cn/BEAVER/.

Metadata

arXiv ID: 2603.19635
Provider: ARXIV
Primary Category: cs.CL
Published: 2026-03-20
Fetched: 2026-03-23 16:54

Related papers

Raw Data (Debug)
{
  "raw_xml": "<entry>\n    <id>http://arxiv.org/abs/2603.19635v1</id>\n    <title>BEAVER: A Training-Free Hierarchical Prompt Compression Method via Structure-Aware Page Selection</title>\n    <updated>2026-03-20T04:35:04Z</updated>\n    <link href='https://arxiv.org/abs/2603.19635v1' rel='alternate' type='text/html'/>\n    <link href='https://arxiv.org/pdf/2603.19635v1' rel='related' title='pdf' type='application/pdf'/>\n    <summary>The exponential expansion of context windows in LLMs has unlocked capabilities for long-document understanding but introduced severe bottlenecks in inference latency and information utilization. Existing compression methods often suffer from high training costs or semantic fragmentation due to aggressive token pruning. In this paper, we propose BEAVER, a novel training-free framework that shifts compression from linear token removal to structure-aware hierarchical selection. BEAVER maximizes hardware parallelism by mapping variable-length contexts into dense page-level tensors via dual-path pooling, and preserves discourse integrity through a hybrid planner combining semantic and lexical dual-branch selection with sentence smoothing. Extensive evaluations on four long-context benchmarks demonstrate that BEAVER achieves comparable performance to state-of-the-art (SOTA) methods like LongLLMLingua. Notably, on the RULER benchmark, BEAVER maintains high fidelity in multi-needle retrieval where baselines deteriorate. Regarding efficiency, BEAVER reduces latency by 26.4x on 128k contexts, offering a scalable solution for high-throughput applications. Our code is available at https://cslikai.cn/BEAVER/.</summary>\n    <category scheme='http://arxiv.org/schemas/atom' term='cs.CL'/>\n    <published>2026-03-20T04:35:04Z</published>\n    <arxiv:comment>Technical Report</arxiv:comment>\n    <arxiv:primary_category term='cs.CL'/>\n    <author>\n      <name>Zhengpei Hu</name>\n    </author>\n    <author>\n      <name>Kai Li</name>\n    </author>\n    <author>\n      <name>Dapeng Fu</name>\n    </author>\n    <author>\n      <name>Chang Zeng</name>\n    </author>\n    <author>\n      <name>Yue Li</name>\n    </author>\n    <author>\n      <name>Yuanhao Tang</name>\n    </author>\n    <author>\n      <name>Jianqiang Huang</name>\n    </author>\n  </entry>"
}