Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

AdaSkip: Adaptive Sublayer Skipping for Accelerating Long-Context LLM Inference

About

Long-context large language models (LLMs) inference is increasingly critical, motivating a number of studies devoted to alleviating the substantial storage and computational costs in such scenarios. Layer-wise skipping methods are promising optimizations but rarely explored in long-context inference. We observe that existing layer-wise skipping strategies have several limitations when applied in long-context inference, including the inability to adapt to model and context variability, disregard for sublayer significance, and inapplicability for the prefilling phase. This paper proposes \sysname, an adaptive sublayer skipping method specifically designed for long-context inference. \sysname adaptively identifies less important layers by leveraging on-the-fly similarity information, enables sublayer-wise skipping, and accelerates both the prefilling and decoding phases. The effectiveness of \sysname is demonstrated through extensive experiments on various long-context benchmarks and models, showcasing its superior inference performance over existing baselines.

Zhuomin He, Yizhen Yao, Pengfei Zuo, Bin Gao, Qinya Li, Zhenzhe Zheng, Fan Wu• 2025

Related benchmarks

TaskDatasetResultRank
ReasoningBBH
Accuracy36.1
770
Instruction FollowingAlpacaEval--
423
Code GenerationHumanEval
pass@116.2
329
Language ModelingOpenWebText
Perplexity12.65
190
Instruction FollowingAlpaca--
173
ReasoningBig-Bench Hard (BBH)
Accuracy26.8
60
Multitask Language UnderstandingMMLU
MMLU Accuracy41.2
41
Language ModelingOWT
PPL11.42
6
Showing 8 of 8 rows

Other info

Follow for update