CEDAR: Error-Bounded Residual Routing for Efficient Long-Context Attention
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. 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 kernel speedup at 128K context.
Create a lesson
Related papers
RouteRelay: Event-Triggered Cross-Layer Route Reuse for Efficient Dynamic Sparse Attention
Shared title terminologycs.CLBin Li, Sisi Liu, Chenyang Hu et al.
PARSER: Read in Parallel, Reason in Depth for Long-Context LLM Agents
Shared title terminologycs.CLKun Li, Zexuan Qiu, Tianhua Zhang et al.
LimeTree: Linear-Memory Graph Neural Networks over Tree-Graphs for Resource-Efficient Language Modeling and Context Extrapolation
Shared title terminologycs.CLElisabeth Fink
Larger Context Window, Fewer Overcorrections: Optimizing Prompts and Batching for Minimal-Edit Grammatical Error Correction
Shared title terminologycs.CLKateryna Karpo, Artem Chernodub
Do New Attention Mechanisms Actually Fix Attention Sinks at Million-Token Context?
Shared title terminologycs.CLSara Rizwan, Samaanah Abdus Salam, Mohammed Mudassir Uddin
Signed Rescue Routing: Harm-Aware Cascades for Efficient LLM Inference
Shared title terminologycs.CLZheyuan Wang, Siyu Li, Peiqiao Song et al.