atlas

Research map / Architectures and efficiency / Attention and transformers

UniGist: Towards General and Hardware-aligned Sequence-level Long Context Compression

NeurIPS 2025 · Architectures and efficiency › Attention and transformers · approach: KV cache eviction and compression · 0 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.

Proposes UniGist, a sequence-level long-context compression method that replaces raw tokens with interleaved gist tokens under a unified chunk-free sparse attention layout, with a hardware-aligned Triton kernel (gist shift trick) for faster training and real KV removal at inference.

Problem

Gist-token-based sequence-level KV compression loses detail and cross-chunk information because chunk-wise training lets tokens rely on nearby uncompressed tokens, and its fragmented sparse attention is inefficient on GPUs.

Approach

Remove chunk-wise training in favor of one-pass training with a unified sparse gist attention pattern (sink tokens, gist tokens, local window), align position ids so gists share the next raw token's position, and apply a gist shift trick that moves gist tokens to the right so GPU kernels can skip non-visible blocks.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use UniGist instead of Activation BeaconLlama-3.1-8B-Instruct · HELMET Syntheticscore: 91.3 vs 61.8Helped
Use UniGist instead of Activation BeaconLlama-3.2-3B-Instruct · HELMET ICLscore: 73.8 vs 57.4Helped
Use UniGist instead of Activation BeaconLlama-3.1-8B-Instruct · HELMET Summ.score: 22.9 vs 21.0Helped
Use UniGist instead of Activation BeaconLlama-3.2-3B-Instruct · HELMET Averagescore: 47.8 vs 37.9Helped
Train UniGist with 128 sink tokens rather than without sink tokens (ablation)UniGist · Training steps 50–100lossHelped
Train UniGist with 128 sink tokens rather than without sink tokens (ablation)UniGist · Training steps 50–100gradient norm stabilityHelped
Vary the local attention window size (ablation)UniGist · RAG and synthetic recall tasksscoreMixed
Set the local attention window size to 128 (ablation)UniGist · RAG and synthetic recall tasksscoreHelped
Apply compression-specific training with UniGist rather than full attentionUniGist · MMLU-Pro, GSM8K, and HellaSwagscore: 47.7 vs 47.6; 83.6 vs 83.9; 60.2 vs 60.1No clear effect

Surprising findings

Limitations

Experimental setup

Datasets: ProLong 64K dataset (restructured to 32K) Magpie-Llama-3.1-Pro-MT-300K-Filtered LongAlpaca BookSum

Benchmarks: HELMET MMLU-Pro GSM8K HellaSwag

Metrics: SubEM SumEM NDCG@5 ROUGE Accuracy peak memory forward/backward latency

Baselines: StreamingLLM SnapKV PyramidKV AdaKV AutoCompressors Activation Beacon Full Attention Full Attention (FT)

Builds on: gist tokens Activation Beacon AutoCompressors FlashAttention StreamingLLM

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