OTOv3: Automatic Architecture-Agnostic Neural Network Training and Compression from Structured Pruning to Erasing Operators

Tianyi Chen, Tianyu Ding, Zhihui Zhu, Zeyu Chen, HsiangTao Wu +2 more
12/15/2023
cs.LGcs.AIcs.CL

No official code found. Best implementation: tianyic/only_train_once_personal_footprint (311 stars, MIT, PyTorch, last commit 2024-09-16).

Abstract

Compressing a predefined deep neural network (DNN) into a compact sub-network with competitive performance is crucial in the efficient machine learning realm. This topic spans various techniques, from structured pruning to neural architecture search, encompassing both pruning and erasing operators perspectives. Despite advancements, existing methods suffers from complex, multi-stage processes that demand substantial engineering and domain knowledge, limiting their broader applications. We introduce the third-generation Only-Train-Once (OTOv3), which first automatically trains and compresses a general DNN through pruning and erasing operations, creating a compact and competitive sub-network without the need of fine-tuning. OTOv3 simplifies and automates the training and compression process, minimizes the engineering efforts required from users. It offers key technological advancements: (i) automatic search space construction for general DNNs based on dependency graph analysis; (ii) Dual Half-Space Projected Gradient (DHSPG) and its enhanced version with hierarchical search (H2SPG) to reliably solve (hierarchical) structured sparsity problems and ensure sub-network validity; and (iii) automated sub-network construction using solutions from DHSPG/H2SPG and dependency graphs. Our empirical results demonstrate the efficacy of OTOv3 across various benchmarks in structured pruning and neural architecture search. OTOv3 produces sub-networks that match or exceed the state-of-the-arts. The source code will be available at https://github.com/tianyic/only_train_once.

View on arXivView PDF

Code Implementations(1)

PyTorchMIT

OTOv1-v3, NeurIPS, ICLR, TMLR, DNN Training, Compression, Structured Pruning, Erasing Operators, CNN, Diffusion, LLM

31147Python, Jupyter NotebookOct 19, 20212 years agoMIT
automldeep-learningerasing-operatorsmodel-compressionone-shot+4 more

Similar Papers

Cite this paper

@article{chen2023otov,
  title  = {OTOv3: Automatic Architecture-Agnostic Neural Network Training and Compression from Structured Pruning to Erasing Operators},
  author = {Tianyi Chen and Tianyu Ding and Zhihui Zhu and Zeyu Chen and HsiangTao Wu and Ilya Zharkov and Luming Liang},
  year   = {2023},
  eprint = {2312.09411},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2312.09411v1}
}

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

Discussion