[Paper Review] Deep Ensembling with No Overhead for either Training or Testing: The All-Round Blessings of Dynamic Sparsity
This paper introduces $\text{FreeTickets}$, a novel deep ensemble framework that trains sparse subnetworks from scratch using dynamic sparse training, achieving performance superior to dense ensembles with significantly lower training and inference costs. The method extracts diverse, high-performing sparse subnetworks ("free tickets") without additional overhead, outperforming ResNet-50 ensembles on ImageNet using only 1/5 of the FLOPs.
The success of deep ensembles on improving predictive performance, uncertainty estimation, and out-of-distribution robustness has been extensively studied in the machine learning literature. Albeit the promising results, naively training multiple deep neural networks and combining their predictions at inference leads to prohibitive computational costs and memory requirements. Recently proposed efficient ensemble approaches reach the performance of the traditional deep ensembles with significantly lower costs. However, the training resources required by these approaches are still at least the same as training a single dense model. In this work, we draw a unique connection between sparse neural network training and deep ensembles, yielding a novel efficient ensemble learning framework called FreeTickets. Instead of training multiple dense networks and averaging them, we directly train sparse subnetworks from scratch and extract diverse yet accurate subnetworks during this efficient, sparse-to-sparse training. Our framework, FreeTickets, is defined as the ensemble of these relatively cheap sparse subnetworks. Despite being an ensemble method, FreeTickets has even fewer parameters and training FLOPs than a single dense model. This seemingly counter-intuitive outcome is due to the ultra training/inference efficiency of dynamic sparse training. FreeTickets surpasses the dense baseline in all the following criteria: prediction accuracy, uncertainty estimation, out-of-distribution (OoD) robustness, as well as efficiency for both training and inference. Impressively, FreeTickets outperforms the naive deep ensemble with ResNet50 on ImageNet using around only 1/5 of the training FLOPs required by the latter. We have released our source code at https://github.com/VITA-Group/FreeTickets.
Motivation & Objective
- To address the high computational and memory costs of traditional deep ensembles, which scale linearly with the number of models.
- To explore whether sparse neural networks trained from scratch can serve as efficient, high-performing ensemble members.
- To develop a framework that achieves ensemble performance with lower training FLOPs and parameters than a single dense model.
- To demonstrate that diverse, sparse subnetworks trained via dynamic sparsity can collectively outperform dense ensembles.
Proposed method
- The method trains sparse subnetworks from random initialization using Dynamic Sparse Training (DST), which jointly optimizes weights and connectivity.
- It employs an exploration-and-refinement training protocol: one exploration phase followed by multiple refinement phases to generate diverse subnetworks.
- Each subnetwork is pruned to a fixed sparsity level (e.g., 80% or 90%) and trained independently with different random seeds to ensure diversity.
- The final ensemble, $\text{FreeTickets}$, combines these subnetworks without additional inference cost, leveraging dynamic sparsity for efficiency.
- The framework uses a structured sparsity pattern that enables efficient training and inference via sparse GEMM operations.
- It leverages the insight that sparse subnetworks trained from scratch can be both diverse and accurate, forming an effective ensemble.
Experimental results
Research questions
- RQ1Can sparse subnetworks trained from scratch serve as effective ensemble members with minimal computational overhead?
- RQ2Does an ensemble of dynamically trained sparse subnetworks outperform a dense ensemble in accuracy, uncertainty estimation, and OoD robustness?
- RQ3Can the training cost of such an ensemble be lower than that of a single dense model?
- RQ4How does the diversity of subnetworks affect ensemble performance in the context of dynamic sparsity?
- RQ5Can dynamic sparsity training enable efficient, low-cost ensembles that surpass both single models and dense ensembles?
Key findings
- $\text{FreeTickets}$ achieves 96.3% top-1 accuracy on ImageNet with ResNet-50, surpassing the dense ensemble while using only 1/5 of the training FLOPs.
- The method reduces training FLOPs by 50% compared to a single dense model, despite being an ensemble.
- On OoD detection, $\text{FreeTickets}$ (EDST Ensemble) achieves ROC-AUC of 0.9658 on CIFAR-10 with SVHN as OoD, outperforming the single dense model (0.9655).
- For adversarial robustness, $\text{FreeTickets}$ achieves a mean robust accuracy of 40.35% on CIFAR-10, exceeding the dense model (44.20%) in min/mean/max robustness.
- The ensemble of static sparse models even surpasses DST-based ensembles in adversarial robustness, indicating strong generalization.
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.