Abstract
Generalization of Neural Networks is crucial for deploying them safely in the real world. Common training strategies to improve generalization involve the use of data augmentations, ensembling and model averaging. In this work, we first establish a surprisingly simple but strong benchmark for generalization which utilizes diverse augmentations within a training minibatch, and show that this can learn a more balanced distribution of features. Further, we propose Diversify-Aggregate-Repeat Training (DART) strategy that first trains diverse models using different augmentations (or domains) to explore the loss basin, and further Aggregates their weights to combine their expertise and obtain improved generalization. We find that Repeating the step of Aggregation throughout training improves the overall optimization trajectory and also ensures that the individual models have sufficiently low loss barrier to obtain improved generalization on combining them. We theoretically justify the proposed approach and show that it indeed generalizes better. In addition to improvements in In-Domain generalization, we demonstrate SOTA performance on the Domain Generalization benchmarks in the popular DomainBed framework as well.
Introduction
Deep neural networks often suffer from Simplicity Bias, where they prioritize easy-to-learn but non-robust features (spurious correlations) over core semantic features. This leads to high performance on in-domain (ID) data but significant failure on out-of-domain (OOD) data. While data augmentation and ensembling mitigate this, they either lack capacity or impose high training/inference costs. DART addresses this by capturing diverse expert knowledge into a single model through iterative weight averaging, achieving the benefits of an ensemble with the efficiency of a single model.
Methodology: The DART Framework
DART (Diversify-Aggregate-Repeat Training) is an iterative four-step algorithm designed to push models toward flatter, more robust minima:
- Traversing to the Basin: Initial training using Empirical Risk Minimization (ERM) on a mixture of augmentations establishes a baseline in the loss landscape.
- Diversify: The model is branched into $M$ specialists, each trained on specific augmentations or domains.
- Aggregate: Specialist weights are averaged. Since they share an initialization, they remain within the same loss basin, enabling linear weight interpolation.
- Repeat: The aggregated model serves as the new starting point for the next cycle of diversification.
The "Repeat" step is critical; theoretical analysis suggests it delays the convergence of noisy features while allowing robust features to stabilize, effectively filtering the model's learned representations.
Experimental Evaluation
The authors evaluated DART across diverse benchmarks, including CIFAR-10/100, ImageNet-1K, and the DomainBed benchmark (VLCS, PACS, OfficeHome, TerraIncognita, DomainNet).
Key Results
DART achieves state-of-the-art (SOTA) results on DomainBed with an average OOD accuracy of 67.9%, significantly outperforming SWAD (66.9%) and ERM (63.3%). On CIFAR-100, DART reached 86.46% accuracy. Notably, the final model is a single set of weights, incurring zero additional inference cost compared to standard models.
Discussion and Insights
A core mechanism of DART is its ability to find flatter regions of the loss landscape. Quantitative metrics show DART's "Worst Case Flatness" score is 2.037, nearly half that of standard ERM (4.173). Flatter minima are empirically linked to better generalization.
The method is also highly compatible with other techniques like Sharpness-Aware Minimization (SAM) and Stochastic Weight Averaging (SWA). Furthermore, the authors introduced "Mixed-Training" (MT)—applying different augmentations to each image in a minibatch—as a surprisingly strong baseline that DART further improves upon.
Conclusion
DART provides a robust framework for improving neural network generalization by leveraging the benefits of diverse specialists without the overhead of ensembles. While training compute increases with the number of branches ($M$), the resulting gains in OOD robustness and the lack of inference-time penalties make it a compelling strategy for real-world deployment. Future work may explore non-linear aggregation methods to further enhance performance.
Summary updated