Prompt-based Depth Pruning of Large Language Models

Juyun Wee, Minjae Park, Jaeho Lee
2/14/2026

No confident code implementation found for this paper.

Abstract

Depth pruning aims to reduce the inference cost of a large language model without any hardware-specific complications, by simply removing several less important transformer blocks. However, our empirical findings suggest that the importance of a transformer block may be highly task-dependent -- a block that is crucial for a task can be removed without degrading the accuracy on another task. Based on this observation, we develop a dynamic depth pruning algorithm, coined PuDDing (Prompt-routed Dynamic Depth Pruning), which determines which blocks to omit from the model based on the input prompt. PuDDing operates by training a lightweight router to predict the best omission set among a set of options, where this option set has also been constructed in a data-driven manner. Empirical results on commonsense reasoning benchmarks demonstrate that PuDDing effectively accelerates the inference language models, and achieves better on-task performance than static depth pruning baselines.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{wee2026promptbased,
  title  = {Prompt-based Depth Pruning of Large Language Models},
  author = {Juyun Wee and Minjae Park and Jaeho Lee},
  year   = {2026},
  eprint = {2502.04348},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2502.04348},
  journal = {ICML 2025 2025}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2502.04348.svg)](https://codeofpaper.com/paper/2502.04348)

Discussion