DepGraph: Towards Any Structural Pruning

Gongfan Fang, Xinyin Ma, Mingli Song, M. B. Mi, Xinchao Wang
2/14/2026

No official code found. Best implementation: VainF/Torch-Pruning (3,354 stars, MIT, last commit 2025-09-07).

Abstract

Structural pruning enables model acceleration by removing structurally-grouped parameters from neural networks. However, the parameter-grouping patterns vary widely across different models, making architecture-specific pruners, which rely on manually-designed grouping schemes, non-generalizable to new architectures. In this work, we study a highly-challenging yet barely-explored task, any structural pruning, to tackle general structural pruning of arbitrary architecture like CNNs, RNNs, GNNs and Transformers. The most prominent obstacle towards this goal lies in the structural coupling, which not only forces different layers to be pruned simultaneously, but also expects all removed parameters to be consistently unimportant, thereby avoiding structural issues and significant performance degradation after pruning. To address this problem, we propose a general and fully automatic method, Dependency Graph (DepGraph), to explicitly model the dependency between layers and comprehensively group coupled parameters for pruning. In this work, we extensively evaluate our method on several architectures and tasks, including ResNe(X)t, DenseNet, MobileNet and Vision transformer for images, GAT for graph, DGCNN for 3D point cloud, alongside LSTM for language, and demonstrate that, even with a simple norm-based criterion, the proposed method consistently yields gratifying performances.

View on arXivView PDF

Code Implementations(1)

VainF/Torch-PruningCommunity100%
MIT

[CVPR 2023] DepGraph: Towards Any Structural Pruning; LLMs, Vision Foundation Models, etc.

3,354387Shell, PythonDec 15, 20191 years agoMIT
efficient-deep-learningllmmodel-compressionpruningtransformers+1 more

Similar Papers

Cite this paper

@article{fang2026depgraph,
  title  = {DepGraph: Towards Any Structural Pruning},
  author = {Gongfan Fang and Xinyin Ma and Mingli Song and M. B. Mi and Xinchao Wang},
  year   = {2026},
  eprint = {2301.12900},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/pdf/2301.12900},
  journal = {CVPR 2023 2023}
}

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/2301.12900.svg)](https://codeofpaper.com/paper/2301.12900)

Discussion