English

Streamlining Redundant Layers to Compress Large Language Models

Computation and Language 2025-01-28 v5 Artificial Intelligence

Abstract

This paper introduces LLM-Streamline, a pioneer work on layer pruning for large language models (LLMs). It is based on the observation that different layers have varying impacts on hidden states, enabling the identification of less important layers to be pruned.LLM-Streamline comprises two parts: layer pruning, which removes consecutive layers with the lowest importance based on target sparsity, and layer replacement, a novel module that trains a lightweight network to replace the pruned layers to mitigate performance loss. Additionally, a new metric called stability is proposed to address the limitations of the widely used accuracy metric in evaluating model compression. Experiments show that LLM-Streamline outperforms both previous and concurrent state-of-the-art pruning methods in terms of both performance and training efficiency.Our code is available at https://github.com/RUCKBReasoning/LLM-Streamline

Keywords

Cite

@article{arxiv.2403.19135,
  title  = {Streamlining Redundant Layers to Compress Large Language Models},
  author = {Xiaodong Chen and Yuxuan Hu and Jing Zhang and Yanling Wang and Cuiping Li and Hong Chen},
  journal= {arXiv preprint arXiv:2403.19135},
  year   = {2025}
}
R2 v1 2026-06-28T15:36:37.463Z