atlas

Research map / Architectures and efficiency / Attention and transformers

Radar: Fast Long-Context Decoding for Any Transformer

ICLR 2025 · Architectures and efficiency › Attention and transformers · approach: Sparse efficient transformers for long context · 1 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Radar is a training-free decoding accelerator that groups cached keys into segments summarized by random-feature (performer-style) averages, selects top segments per query, and attends only to those tokens plus a sliding window, giving O(t^1.5) total decoding time for any pre-trained Transformer.

Problem

Dot-product attention cost grows linearly per decoded token (quadratically overall), and existing fixes either need retraining (kernelized/linear attention) or permanently evict tokens via heuristics (StreamingLLM, H2O, SnapKV), losing information needed later.

Approach

Use random-feature kernel approximations of exp-dot attention to pre-compute per-segment mean embeddings, so segment importance for a query is found in O(1) per segment; restructure segments only at perfect-square lengths and keep a sliding-window buffer, with a high-probability guarantee of recovering the top segment.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use Radar instead of vanilla attentionLlama-7b · LongBenchAvg. Score: 25.80 -> 25.84Helped
Use Radar instead of SnapKV with 1024 middle tokensLlama-7b · LongBenchAvg. Score: 25.76 -> 25.84Helped
Use Radar instead of SnapKV with 1024 middle tokensLlama-2-7b-chat-hf · LongBenchAvg. Score: 32.41 -> 32.93Helped
Use Radar instead of SnapKV with 4096 middle tokensMistral-7B-Instruct-v0.2 · LongBenchAvg. Score: 42.25 -> 42.30Helped
Increase projection dimension n (ablation)Radar · PG-19 sampleperplexityHelped
Increase the number of selected segments k (ablation)Radar · PG-19 samplegeneration qualityHelped
Select segments with the lowest approximate segment-attention scores instead of the highest (ablation)Radar · PG-19 sampleperplexityHurt
Randomly select segments instead of using approximate attention scores (ablation)Radar · PG-19 sampleperplexityHurt
Use approximate segment search instead of exact segment search (ablation)Radar · PG-19 sampleperplexityHurt
Use Radar instead of vanilla attentionLlama and Mistral · PG-19 and The Stack code sample with 16,384-token promptsperplexity: around 0.2Hurt
Use Radar instead of StreamingLLMLlama and Mistral · PG-19 and The Stack code sample with 16,384-token promptsperplexityHelped
Use Radar instead of H2OMistral · PG-19 without promptsperplexity: 0.05Helped

Surprising findings

Limitations

Experimental setup

Datasets: PG-19 (first sample) The Stack (NASA CDF Python sample) LongBench (16 English and code subtasks)

Benchmarks: PG-19 LongBench

Metrics: perplexity elapsed time / generation throughput average score average percentile

Baselines: vanilla attention StreamingLLM H2O SnapKV Landmark attention SubGen

Builds on: attention kernelization (random features / performer) StreamingLLM H2O SnapKV

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy