atlas

Research map / Architectures and efficiency / Attention and transformers

Core Context Aware Transformers for Long Context Language Modeling

ICML 2025 · Architectures and efficiency › Attention and transformers · approach: Sparse attention for long-context LLMs · 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.

Proposes Core Context Aware (CCA) Attention, a plug-and-play attention replacement that pools token groups into weighted core tokens plus a local window, and fine-tunes pretrained LLMs for linear-cost long-context modeling.

Problem

Full self-attention over very long contexts (e.g., 128K) is computationally and memory expensive, and redundant context dilutes representations; existing sparse/fixed-pattern methods drop cross-token information.

Approach

Partition tokens into groups and compress each group into one core token via importance-weighted pooling (scored by the group's last token), attend to core tokens for distant context and raw neighboring tokens for local context, and fuse both in a single softmax; this reuses pretrained projections and needs only brief fine-tuning.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
replace full self-attention with CCA-AttentionLLaMA2-7B-80K · Multi-document QA, 128KEM score: 30.3 -> 32.0Helped
replace full self-attention with CCA-AttentionLLaMA2-7B-80K · Multi-document QA, 128KFTL latency: 124.85 -> 15.89Helped
replace full self-attention with CCA-AttentionLLaMA2-7B-80K · RULER (8K–64K)Avg. score: 63.71 -> 62.56Hurt
replace full self-attention with CCA-AttentionLLaMA2-7B-32K · LongBench-EAvg. score: 22.11 -> 21.86Hurt
replace MInference with CCA-AttentionQwen2.5-7B-128K · LongBench-EAvg. score: 36.72 -> 38.08Helped
use weighted group pooling instead of mean pooling (ablation)CCA-Attention · Proof-pile test, LLaMA2-7B-16KPPL: 2.99 -> 2.85Helped
use weighted group pooling instead of max pooling (ablation)CCA-Attention · Proof-pile test, LLaMA2-7B-16KPPL: 2.99 -> 2.85Helped
increase group size from 2 to 64 (ablation)CCA-Attention · Proof-pile test, LLaMA2-7B-16KPPL: 2.75 -> 2.93Hurt
increase group size from 2 to 64 (ablation)CCA-Attention · Proof-pile test, LLaMA2-7B-16KLatency: 546.7 -> 456.0Helped
increase local window size from 256 to 4096 (ablation)CCA-Attention · Proof-pile test, LLaMA2-7B-16KPPL: 2.98 -> 2.73Helped
increase local window size from 256 to 4096 (ablation)CCA-Attention · Proof-pile test, LLaMA2-7B-16KLatency: 457.4 -> 473.1Hurt
update only WQ, WK, and WV instead of full finetuning (ablation)CCA-LLM · LongBench-EAvg. score: 22.24 -> 21.96Hurt

Surprising findings

Limitations

Experimental setup

Datasets: SlimPajama

Benchmarks: LongBench-E LongBench RULER multi-document EM score (Lost in the Middle) MMLU Proof-pile

Metrics: average score exact match first token latency memory footprint perplexity accuracy

Baselines: LLaMA2-7B-32K LLaMA2-7B-80K StreamingLLM LM-Infinite MInference LongLoRA

Builds on: LongLoRA Position Interpolation FlashAttention

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