[Paper Review] Adaptive Layer Selection for Layer-Wise Token Pruning in LLM Inference
ASL adaptively selects the token selection layer during prefilling by monitoring variance of token ranks, enabling task-aware KV cache reduction for LLM inference without extra training.
Due to the prevalence of large language models (LLMs), key-value (KV) cache reduction for LLM inference has received remarkable attention. Among numerous works that have been proposed in recent years, layer-wise token pruning approaches, which select a subset of tokens at particular layers to retain in KV cache and prune others, are one of the most popular schemes. They primarily adopt a set of pre-defined layers, at which tokens are selected. Such design is inflexible in the sense that the accuracy significantly varies across tasks and deteriorates in harder tasks such as KV retrieval. In this paper, we propose ASL, a training-free method that adaptively chooses the selection layer for KV cache reduction, exploiting the variance of token ranks ordered by attention score. The proposed method balances the performance across different tasks while meeting the user-specified KV budget requirement. ASL operates during the prefilling stage and can be jointly used with existing KV cache reduction methods such as SnapKV to optimize the decoding stage. By evaluations on the InfiniteBench, RULER, and NIAH benchmarks, we show that equipped with one-shot token selection, where tokens are selected at a layer and propagated to deeper layers, ASL outperforms state-of-the-art layer-wise token selection methods in accuracy while maintaining decoding speed and KV cache reduction.
Motivation & Objective
- Identify the inflexibility of fixed selection layers across tasks in existing layer-wise token pruning methods.
- Propose ASL, a training-free adaptive method that selects the pruning layer based on attention rank variance.
- Enable ASL to work with existing KV cache reduction techniques to meet specified KV budgets.
- Demonstrate ASL's accuracy-efficiency trade-offs across multiple long-context benchmarks.
Proposed method
- Monitor the variance of token ranks ordered by attention scores across consecutive layers during prefilling.
- Compute pooled attention scores from recent layers and identify a union of top tokens for variance calculation.
- Trigger token selection when the relative variance falls below a user-specified threshold, designating the current layer as the selection layer.
- Select tokens in one-shot fashion and propagate them to deeper layers for KV cache reduction.
- Optionally integrate ASL with existing KV reduction methods (e.g., SnapKV, GemFilter) to meet KV budget constraints during decoding.

Experimental results
Research questions
- RQ1Can an adaptive, training-free layer selection criterion improve robustness of layer-wise token pruning across diverse tasks?
- RQ2Does monitoring variance of attention-driven token ranks effectively indicate the optimal moment to prune tokens?
- RQ3How does ASL perform relative to fixed-layer pruning methods under varying KV budgets and task difficulties?
- RQ4Can ASL be seamlessly combined with existing KV cache reduction techniques without additional training?
Key findings
- ASL achieves superior accuracy versus state-of-the-art fixed-layer pruning methods on long-context benchmarks.
- ASL maintains decoding speed and KV cache reduction while improving task-specific performance, especially on harder tasks like KV retrieval.
- ASL can be deployed as a one-shot selection method during prefilling, and can be paired with SnapKV or GemFilter to meet target KV budgets.
- ASL’s adaptive selection layer reduces performance gaps between easy and hard tasks without task-specific tuning.
- ASL demonstrates favorable accuracy-efficiency trade-offs across InfiniteBench, RULER, and Needle in a Haystack (NIAH).

Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.