atlas

Research map / Large language models / Language, safety and interpretability

Streamlining Redundant Layers to Compress Large Language Models

ICLR 2025 · Large language models › Language, safety and interpretability · approach: LLM pruning and scaling data · 3 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes LLM-Streamline, which prunes consecutive low-importance layers (by cosine similarity of hidden states) and trains a lightweight network to replace them, plus a new "stability" metric for evaluating pruned classifiers.

Problem

Layer pruning of LLMs removes layers and degrades performance, and accuracy on multiple-choice classification benchmarks can overestimate compressed-model quality because pruned models guess correctly on uncertain samples.

Approach

Identify contiguous layers with highest input-output cosine similarity to prune, then train a lightweight network (FFN, SwiGLU, or Transformer layer) with MSE on hidden states to replace them; additionally introduce a stability metric weighting prediction consistency before/after pruning by the original model's PPL-based confidence (std via exp weighting).

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
add an FFN replacement network after layer pruning (ablation)LLM-Streamline on Llama2-7B · Classification benchmarks (average)accuracy: 44.0 -> 45.8Helped
add a lightweight replacement network after layer pruning (ablation)LLM-Streamline on Llama2-13B · Generation benchmarks (average)accuracy / ROUGE1 average: 22.0 -> 28.4Helped
use FFN rather than SwiGLU as the replacement network (ablation)LLM-Streamline on Llama2-7B · Classification benchmarks (average)accuracy: 44.2 -> 45.8Helped
halve the FFN replacement network's intermediate size (ablation)LLM-Streamline on Llama2-7B · Classification benchmarks (average)accuracy: 45.8 -> 46.0Helped
initialize the replacement Transformer layer from the last pruned layer rather than averaging pruned-layer weights (ablation)LLM-Streamline on Llama2-7B · Classification benchmarks (average)accuracy: 44.4 -> 45.6Helped
replace layer replacement with LoRA rank 128LLM-Streamline on Llama2-7B · Classification benchmarks (average)accuracy: 46.8 -> 44.5Hurt
replace layer replacement with LoRA rank 128LLM-Streamline on Llama2-7B · Classification benchmarks (average)stability: 85.7 -> 82.1Hurt
prune using perplexity rather than cosine similarity (ablation)Llama2-7B pruning · Classification and generation benchmarks (average)average: 39.1 -> 35.0Hurt
use cosine similarity rather than perplexity to select pruned layers (ablation)Llama2-7B pruning · SlimPajamaperplexity: 12.1 -> 19.7Hurt
add a Transformer-layer replacement network (ablation)LLM-Streamline on Llama2-7B · Inference (sequence length 128)tokens/s: 25.68 -> 25.68No clear effect
use layer replacement rather than direct layer pruning (ablation)LLM-Streamline on Llama2-7B · GSM8Kaccuracy: 1.97 -> 1.82Hurt
use a Transformer-layer replacement rather than no replacement (ablation)LLM-Streamline on OPT-6.7B · Generation benchmarks (average)accuracy / ROUGE1 average: 1.6 -> 21.8Helped

Surprising findings

Limitations

Experimental setup

Datasets: SlimPajama-6B SlimPajama

Benchmarks: CMNLI HellaSwag PIQA CHID WSC CommonSenseQA BoolQ MMLU CMMLU Race-M Race-H C3

Metrics: accuracy stability ROUGE-1 retained performance

Baselines: LLM-Pruner SliceGPT LaCo ShortGPT (Ours None) SLEB UIDL LoRA

Builds on: ShortGPT LaCo LoRA Sheared LLaMA

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy