atlas

Research map / Large language models / Language, safety and interpretability

ParallelComp: Parallel Long-Context Compressor for Length Extrapolation

ICML 2025 · Large language models › Language, safety and interpretability · approach: LLM pruning and scaling data · 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 ParallelComp, a training-free parallel chunk-based long-context compression method with KV cache eviction and attention-bias calibration that lets 8B LLMs trained on 8K extrapolate to 128K on one A100 80GB.

Problem

Length extrapolation to ultra-long contexts (>128K) in LLMs is limited by memory bottlenecks and attention sink in training-free methods, especially chunk-based parallel attention.

Approach

Split input into chunks encoded in parallel with reused position encodings, rank chunks by query self-information and evict low-attention KV tokens per chunk, and calibrate attention bias by evicting tokens with abnormally high attention scores.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
apply ParallelComp with reused position encodings and parallel KV cache evictionLLaMA3.1 · LongBench (24K KV cache)AVG: 36.94 -> 38.15Helped
apply ParallelComp with reused position encodings and parallel KV cache evictionQwen2.5 · LongBench (24K KV cache)AVG: 40.60 -> 41.54Helped
apply ParallelComp with reused position encodings and parallel KV cache evictionLLaMA3.1 · InfiniteBench (24K KV cache)AVG: 26.36 -> 59.55Helped
apply ParallelComp with reused position encodings and parallel KV cache evictionQwen2.5 · InfiniteBench (24K KV cache)AVG: 53.72 -> 70.64Helped
add attention calibration by evicting high-attention bias tokens (ablation)ParallelComp, Llama2-7B-chat-hf · LongBenchAVG: 36.60 -> 37.21Helped
add attention calibration by evicting high-attention bias tokens (ablation)ParallelComp, Llama3-8B-instruct · LongBenchAVG: 44.93 -> 45.21Helped
compress KV cache by evicting low-attention tokens (ablation)ParallelComp, Llama3-8B-instruct · LongBenchAVG: 44.93 -> 43.31Hurt
compress KV cache by evicting low-attention tokens (ablation)ParallelComp, Llama2-7B-chat-hf · LongBenchAVG: 36.60 -> 36.37Hurt
combine high-attention calibration with low-attention KV cache compression (ablation)ParallelComp, Llama3-8B-instruct · LongBenchAVG: 44.93 -> 44.31Hurt
evict sink-bias tokens in layers 1-8 (ablation)ParallelComp, Llama2-7B-chat-hf · InfiniteBenchAverage: 49.45 -> 36.98Hurt
evict sink-bias tokens in layers 17-23 (ablation)ParallelComp, Llama2-7B-chat-hf · InfiniteBenchAverage: 49.45 -> 50.32Helped
evict recency-bias tokens in layers 1-8 (ablation)ParallelComp, Llama2-7B-chat-hf · InfiniteBenchAverage: 49.45 -> 44.63Hurt

Surprising findings

Limitations

Experimental setup

Datasets: LongBench InfiniteBench NarrativeQA

Benchmarks: LongBench InfiniteBench NarrativeQA perplexity

Metrics: accuracy F1 rouge perplexity throughput peak memory

Baselines: Dynamic-PI NTK-Aware ChunkLlama InfLLM AttenCalibration-NTK APE StarAttention GPT-4 Claude-2 Kimi-Chat

Builds on: ChunkLlama InfLLM NTK-Aware scaled RoPE Flash Attention AttenCalibration

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