CEDAR: Error-Bounded Residual Routing for Efficient Long-Context Attention

Siyu Li, Dong Wang, Jie Zhou, Wei Li, Yang Xu +1 more
9/7/2026
cs.CL

No confident code implementation found for this paper.

Abstract

Post-hoc sparse attention accelerates long-context prefill by routing each query to a small set of token-level interactions. Hard selection, however, assigns zero probability to every omitted chunk: a routing miss cannot be recovered, and a fixed expansion budget spends the same work on easy and ambiguous queries.

Show full abstract

We introduce Coarse-to-fine Error-aware Dynamic Attention Routing (CEDAR), a coarse-to-fine method that keeps the language model frozen while preserving global coverage. Each semantic chunk contributes a cheap key--value summary to a residual attention path; chunks with high estimated approximation error are then expanded to exact token attention. Exact and summarized contributions are combined in a single softmax normalization, so refinement replaces, rather than duplicates, coarse evidence. We derive an output-error bound governed by within-chunk key/value dispersion and use it to allocate a variable refinement budget. A controlled clustered-attention study shows that residual summaries reduce reconstruction error by more than 98% relative to hard dropping at equal exact-chunk budgets. Experiments on long-context benchmarks demonstrate that CEDAR recovers most of the quality lost by hard sparse routing while maintaining approximately $3\times$ kernel speedup at 128K context.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{li2026cedar,
  title  = {CEDAR: Error-Bounded Residual Routing for Efficient Long-Context Attention},
  author = {Siyu Li and Dong Wang and Jie Zhou and Wei Li and Yang Xu and Sijie Song},
  year   = {2026},
  eprint = {2609.07237},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2609.07237v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2609.07237.svg)](https://codeofpaper.com/paper/2609.07237)

Discussion