Abstract
Current techniques for deep neural network (DNN) pruning often involve intricate multi-step processes that require domain-specific expertise, making their widespread adoption challenging. To address the limitation, the Only-Train-Once (OTO) and OTOv2 are proposed to eliminate the need for additional fine-tuning steps by directly training and compressing a general DNN from scratch. Nevertheless, the static design of optimizers (in OTO) can lead to convergence issues of local optima. In this paper, we proposed the Auto-Train-Once (ATO), an innovative network pruning algorithm designed to automatically reduce the computational and storage costs of DNNs. During the model training phase, our approach not only trains the target model but also leverages a controller network as an architecture generator to guide the learning of target model weights. Furthermore, we developed a novel stochastic gradient algorithm that enhances the coordination between model training and controller network training, thereby improving pruning performance. We provide a comprehensive convergence analysis as well as extensive experiments, and the results show that our approach achieves state-of-the-art performance across various model architectures (including ResNet18, ResNet34, ResNet50, ResNet56, and MobileNetv2) on standard benchmark datasets (CIFAR-10, CIFAR-100, and ImageNet).
Introduction
Deep neural networks (DNNs) have become the backbone of modern AI, yet their deployment on resource-constrained edge devices remains difficult due to high computational and memory demands. Structural pruning—the process of removing entire neurons or channels—is a primary solution to this problem. However, traditional pruning workflows are notoriously labor-intensive, typically requiring a three-stage "train-prune-fine-tune" cycle.
While recent "one-shot" methods like Only-Train-Once (OTO) attempted to simplify this into a single training pass, they often suffer from convergence issues because their pruning decisions are static. This paper introduces Auto-Train-Once (ATO), a framework that automates pruning by treating it as a dynamic, collaborative process between the target model and an auxiliary controller network.
The ATO Framework
ATO conceptualizes pruning as a game where two networks work in tandem:
- The Target Model: The primary DNN (e.g., ResNet or MobileNet) being optimized for a specific task.
- The Controller Network: A secondary architecture generator based on Bi-directional Gated Recurrent Units (Bi-GRUs). It analyzes the target model's structure and generates binary masks ($w$) that dictate which groups of weights should be prioritized or eliminated.
Zero-Invariant Groups (ZIGs)
To ensure that pruning does not break the network's functional flow, ATO utilizes Zero-Invariant Groups (ZIGs). These are sets of parameters that can be zeroed out simultaneously to effectively remove a channel or neuron without creating mathematical inconsistencies in the architecture.
Dynamic Guidance and Optimization
Unlike previous methods where pruning targets were fixed at the start, ATO’s controller network updates its decisions dynamically during the training phase. To manage this simultaneous training, the authors developed a novel Stochastic Mirror Descent (SMD) algorithm. This ensures that the target model and the controller network converge toward an optimal, pruned architecture without the instability common in dual-network training. Notably, the authors provide a rigorous mathematical proof of convergence for both SGD and adaptive optimizers like ADAM.
Experimental Evaluation
The researchers evaluated ATO on standard computer vision benchmarks, including CIFAR-10, CIFAR-100, and ImageNet, using architectures such as ResNet-18, 34, 50, 56, and MobileNetV2.
Key Performance Metrics
- ImageNet (ResNet-50): ATO achieved a 76.59% Top-1 accuracy while reducing FLOPs (floating-point operations) by over 55%. This represents a +0.46% accuracy improvement over the unpruned baseline, demonstrating that ATO can act as an effective regularizer.
- CIFAR-10 (MobileNetV2): The algorithm pruned 45.8% of FLOPs while increasing accuracy by 0.33%, outperforming specialized methods like SCOP and DMC.
- Efficiency: The computational overhead of the controller is minimal. By using only 5% of the training data to update the controller, the extra training time is kept below 5%.
Discussion and Limitations
ATO successfully shifts the pruning paradigm from a manual "cut-and-fix" approach to an automated "discovery" process. By allowing the model weights to "grow" into a smaller structure during the initial training, it eliminates the need for post-hoc fine-tuning.
However, some challenges remain. The method currently relies on the manual definition of ZIGs for different architectures, which may be complex for non-standard models. Additionally, while ATO reduces the need for manual pruning expertise, it still requires the tuning of hyperparameters that balance the trade-off between model size and accuracy. Future work may involve extending this "Auto-Train-Once" philosophy to Large Language Models (LLMs) and generative architectures.
Conclusion
Auto-Train-Once (ATO) provides a mathematically grounded and highly efficient path to DNN compression. By integrating a dynamic controller network and a novel stochastic optimization strategy, ATO achieves state-of-the-art results in a single training pass, making high-performance model deployment more accessible for real-world applications.
Summary updated