NeurIPS 2026QuestionsPapersAreasAboutMarkdown

CutAttn: Discovering Cognitive Transition Layers for Efficient Long-Context Prefilling

Wentao Liu, Xiabao Wu, Yongchao Liu, Haitao Zhang, Jiajun Zheng, Ruiting Zhou

NeurIPS page · OpenReview · Open on the map

Category: Efficient LLM Inference & Training › Sparse Long-Context Attention · Type: new method · Keywords: long-context LLM inference, cognitive transition layers, context pruning, prefill acceleration, theoretical speedup bounds

Areas: Long Context › Long-context mechanisms › Efficient attention; Model Architectures & Sequence Modeling › Language Model Architectures › Sparse Attention

Summary

CutAttn discovers cognitive transition layers to prune redundant context and achieve up to 2.02× prefill speedup for long-context LLM inference.

Explained to a 5-year-old

When a big computer reads a long story, it needs to look at many words, which takes a lot of time. We found that the computer has special layers where it changes from looking everywhere to focusing on a few words. By using these layers, we can cut out the parts that are not needed, making the reading faster. This works without having to teach the computer new tricks. It helps the computer finish reading long stories quicker.

Explained to a 5-year-old, longer

Big computers that read long texts have to look at a lot of words, which is slow. Some tricks exist to make them faster, but they only help part of the work. We noticed that these computers have special places where they switch from looking everywhere to focusing on a few important words. By finding these special places, we can cut out the boring parts of the text that aren't needed. This cutting happens in small chunks, like slicing a cake, and is guided by how mixed up the information is. The method works without needing to train the computer again, so it's easy to use. It reduces the work both for looking at words and for processing them later. When we test it, the computer still gives correct answers but runs much faster. On very long texts with 128,000 words, it can be more than twice as fast. If we combine it with other speed tricks, it can be even faster, almost three times as fast. We also proved mathematically why this works and how fast it can get. This helps people use big language models on long documents without waiting a long time.

For a technical reader

CutAttn is a training-free framework that identifies architecture-determined cognitive transition layers (CTLs) by measuring inter-layer Jensen-Shannon divergence. It prunes redundant context at the chunk level using a normalized-entropy gate, thereby reducing both attention and feed-forward network computation. The method operates on hidden states, making it orthogonal to existing acceleration techniques such as sparse attention or KV-cache compression. Evaluations on RULER, InfiniteBench, and LongBench show that CutAttn retains full-attention accuracy while delivering up to 2.02× prefill speedup on 128K-token sequences, and up to 2.81× when combined with sparse attention. The paper also provides theoretical insights, including approximation bounds, an entropy-compression limit for the gating, and a closed-form speedup expression.

Problem

Adapting large language models to long contexts is computationally expensive, especially during prefill, and existing acceleration methods fail to address both attention and feed-forward network costs simultaneously.

Method

The approach identifies architecture-determined cognitive transition layers using inter-layer Jensen-Shannon divergence, prunes redundant context at chunk granularity guided by a normalized-entropy criterion, and operates at the hidden-state level to reduce both attention and feed-forward network costs, composing orthogonally with other acceleration methods.

Results

The approach preserves full-attention accuracy while achieving up to a 2.02× prefill speedup on 128K sequences, and up to 2.81× when combined with sparse attention.

Contributions

It provides a training-free framework that discovers cognitive transition layers and dynamically prunes context, reducing both attention and feed-forward costs, and offers theoretical analysis with approximation bounds and an entropy-compression limit.

Research questions this paper is counted under

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction