DiffSkip: Differential Layer Skipping in Large Language Models

1Citations
Citations of this article
6Readers
Mendeley users who have this article in their library.
Get full text

Abstract

Existing Large Language Models (LLMs) enforce uniform computation across all tokens. We analyze the correlation between the input-output difference of self-attention block and Feed-Forward Network (FFN) within the same transformer layer, and find that these two differential vectors are highly correlated. Thus, we propose to dynamically skip the FFN blocks based on the self-attention difference and introduce Diffential Layer Skipping (DiffSkip) to show that LLMs are inherently dynamic-depth models, capable of adjusting computational depth when generating different tokens. DiffSkip employs a lightweight router module to dynamically skip a set of FFN blocks in LLMs and only requires efficient fine-tuning while keeping the pre-trained LLM frozen. Experimental results demonstrate that DiffSkip effectively enables dynamic FFN skipping in decoder-only language models, even in continuous token generation tasks where many layer-skipping methods struggle. We open sourced our model at DiffSkip-Llama-3-8B-Instruct.

Cite

CITATION STYLE

APA

Luo, X., Wang, W., & Yan, X. (2025). DiffSkip: Differential Layer Skipping in Large Language Models. In Proceedings of the Annual Meeting of the Association for Computational Linguistics (pp. 7221–7231). Association for Computational Linguistics (ACL). https://doi.org/10.18653/v1/2025.findings-acl.377

Register to see more suggestions

Mendeley helps you to discover research relevant for your work.

Already have an account?

Save time finding and organizing research with Mendeley

Sign up for free