[Paper Review] AC/DC: Alternating Compressed/DeCompressed Training of Deep Neural Networks
AC/DC proposes a novel alternating compressed/decompressed training method for deep neural networks that co-trains sparse and dense models by cycling between dense training phases and sparse optimization phases over a fixed support. It achieves state-of-the-art accuracy in sparse training, outperforming both existing sparse training methods and post-training sparsification, even at high sparsity levels, while ensuring convergence under smooth non-convex objectives.
The increasing computational requirements of deep neural networks (DNNs) have led to significant interest in obtaining DNN models that are sparse, yet accurate. Recent work has investigated the even harder case of sparse training, where the DNN weights are, for as much as possible, already sparse to reduce computational costs during training. Existing sparse training methods are often empirical and can have lower accuracy relative to the dense baseline. In this paper, we present a general approach called Alternating Compressed/DeCompressed (AC/DC) training of DNNs, demonstrate convergence for a variant of the algorithm, and show that AC/DC outperforms existing sparse training methods in accuracy at similar computational budgets; at high sparsity levels, AC/DC even outperforms existing methods that rely on accurate pre-trained dense models. An important property of AC/DC is that it allows co-training of dense and sparse models, yielding accurate sparse-dense model pairs at the end of the training process. This is useful in practice, where compressed variants may be desirable for deployment in resource-constrained settings without re-doing the entire training flow, and also provides us with insights into the accuracy gap between dense and compressed models. The code is available at: https://github.com/IST-DASLab/ACDC .
Motivation & Objective
- To address the lack of theoretical convergence guarantees in existing sparse training methods.
- To reduce the accuracy gap between sparse and dense models during training.
- To enable co-training of accurate sparse and dense models in a single training process.
- To provide a practical, efficient training regime that maintains high accuracy while reducing computational costs.
- To understand the correlation between sparse and dense model predictions during training.
Proposed method
- AC/DC alternates between standard dense training phases and sparse optimization phases over a fixed, pruned weight support.
- During sparse phases, only a subset of weights (determined by a pruning mask) are updated, while others are fixed at zero, enabling FLOP savings.
- The method uses iterative hard thresholding (IHT) principles to maintain sparsity and ensure convergence under smooth non-convex objectives.
- The training process uses the same hyperparameters (e.g., learning rate, batch size) as standard training, with phase lengths set to standard values (e.g., 5–10 epochs).
- The final model returned is the sparse model from the last sparse phase, while the dense model from the last dense phase is fine-tuned to match the dense baseline accuracy.
- Sparsity schedules are designed to minimize mask differences between consecutive phases, improving model quality.
Experimental results
Research questions
- RQ1Can a sparse training method with alternating dense and sparse phases achieve theoretical convergence for smooth non-convex objectives?
- RQ2Does co-training of sparse and dense models reduce the accuracy gap between sparse and dense baselines?
- RQ3Can AC/DC outperform post-training sparsification and existing sparse training methods at high sparsity levels?
- RQ4How do phase lengths and sparsity schedules affect model accuracy and computational efficiency?
- RQ5What is the relationship between individual predictions of sparse and dense models during co-training?
Key findings
- AC/DC achieves 75.18% top-1 accuracy on ImageNet with ResNet50 at 90% sparsity, outperforming existing sparse training methods and matching or exceeding post-training sparsification at high sparsity.
- The fine-tuned dense model from AC/DC reaches 76.87% accuracy, closely matching the dense baseline, demonstrating effective co-training.
- AC/DC with 100 epochs and alternating phases every 10 epochs achieves 0.7× training FLOPs compared to the dense baseline, with minimal accuracy loss.
- Longer final decompression phases improve the fine-tuned dense model accuracy, suggesting that extended fine-tuning enhances model recovery.
- Sparsity schedules with non-trivial mask differences between phases lead to better sparse model performance.
- Mixed-precision training with FP16 introduces a 0.2–0.3% accuracy drop in AC/DC compared to FP32, indicating sensitivity to precision in the alternating regime.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.