STILL: Selecting Tokens for Intra-Layer Hybrid Attention to Linearize LLMs
Weikang Meng, Liangyu Huo, Yadan Luo, Jiawen Guan, Jingyi Zhang, Yingjian Li, Zheng Zhang
NeurIPS page · OpenReview · Open on the map
Category: Efficient LLM Inference & Training › Efficient Attention Mechanisms · Type: new method · Keywords: linear attention, token selection, LLM efficiency, self-saliency, norm preservation
Areas: LLM Reasoning › Efficient Reasoning › Sparse Attention; Long Context › Long-context mechanisms › Efficient attention; Model Architectures & Sequence Modeling › Language Model Architectures › Linearized Transformers
Summary
STILL is an intra-layer hybrid linearization framework that selects salient tokens via a self-saliency score and uses a norm-preserved feature map to linearize LLMs efficiently.
Explained to a 5-year-old
Large language models are like big brains that read many words but take a long time to think. To help them think faster, we want them to focus only on the most important words instead of all words. We created a smart way to pick those important words by looking at nearby words and also the whole sentence. We also made a special trick to keep the numbers the brain uses unchanged, so it still works well. This helps the models answer questions quickly while still being accurate.
Explained to a 5-year-old, longer
Big computer programs called language models can understand and write text, but they need a lot of time to think about every word. To help them think faster, researchers want them to focus only on the words that matter most. They came up with a way to decide which words are important by looking at small groups of words and also at the whole paragraph. This helps the model see both the nearby context and the bigger picture. They also invented a method to keep the numbers the model uses unchanged, so the model’s knowledge stays the same. The model then uses a fast kind of calculation for most words and a slower, more careful calculation for the important ones. This mix makes the model work quickly while still being accurate. The new system can handle longer pieces of text without slowing down too much. It works like a smart assistant that remembers what it has learned and uses it wisely. The result is a faster, more efficient language model that can answer questions and do tasks more quickly. It also saves computer power, which means less energy is needed. Overall, the approach makes large language models easier to use in real-world situations where speed matters.
For a technical reader
The paper addresses the quadratic memory cost of standard softmax attention in large language models by hybridizing attention layers. It introduces a saliency scoring mechanism that evaluates token importance using sliding-window computations, allowing a subset of tokens to be processed with sparse softmax attention while the remainder are handled by a linear attention module. To avoid distortion of pretrained representations, a norm-preserved feature map is employed that separates direction from magnitude and re-injects original norms. The system is organized with chunk-wise parallelization and delayed selection, improving hardware utilization during both training and inference. Empirical results show performance on par with the original model on reasoning benchmarks and up to an 86.2% relative gain over existing linearized methods on long-context tasks.
Problem
Linearizing pretrained large language models while preserving performance is challenging because existing token selection is position-based and linear attention distorts pretrained feature magnitudes.
Method
The approach uses a self-saliency score computed with sliding-window computation to select important tokens for sparse softmax attention, while summarizing the rest with linear attention via a norm-preserved feature map that retains pretrained norms, and employs chunk-wise parallelization with delayed selection for hardware efficiency.
Results
The approach matches or surpasses the original pretrained model on commonsense and general reasoning tasks and achieves up to an 86.2% relative improvement over prior linearized attention methods on long-context benchmarks.
Contributions
A self-saliency score for token selection with local-global consistency, a norm-preserved feature map that retains pretrained norms, and a unified training-inference architecture with chunk-wise parallelization and delayed selection for efficient linearization of LLMs.
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