High-Rate Mixout: Revisiting Mixout for Robust Domain Generalization

Masih Aminbeidokhti, Heitor Rapela Medeiros, Srikanth Muralidharan, Eric Granger, Marco Pedersoli

TL;DR

This paper introduces "High-rate Mixout," a novel regularization technique that significantly improves domain generalization by dynamically swapping a large portion of fine-tuned model weights with their pre-trained counterparts. This approach achieves performance comparable to computationally expensive ensemble methods while drastically reducing training costs and memory usage.

What Problem Does This Paper Address?

Deep neural networks excel in many computer vision tasks, but their performance degrades significantly when faced with distribution shifts between training and testing data. Domain Generalization (DG) aims to build models that can generalize to unseen domains without explicit retraining. While ensembling fine-tuned models initialized from powerful pre-trained weights is a common strategy for robust DG, it incurs substantial computational overhead due to training and storing multiple models. Dropout, a popular regularization technique, can disrupt critical pre-trained knowledge when applied to these models, leading to over-regularization. This paper addresses the need for a computationally efficient method that can achieve the robustness of ensembling for DG, without the associated costs.

Methods

The core contribution is High-rate Mixout, a stochastic regularization technique that acts as an alternative to Dropout for DG. Instead of deactivating neurons, Mixout probabilistically swaps a subset of fine-tuned weights with their pre-trained counterparts during training. This "swapping" mechanism aims to strike a balance between adapting the model to new data and retaining valuable pre-trained knowledge.

Key aspects of their method include:

  • High Masking Probability: The paper's central finding is that achieving strong DG performance with Mixout requires a high masking probability (0.9 for ViTs, 0.8 for ResNets). This aggressive swapping penalizes deviations from pre-trained parameters more strongly, promoting better generalization.
  • Structured Mixout for CNNs: For convolutional neural networks (CNNs), unstructured weight swapping can be less effective due to spatial correlations. The authors propose a structured Mixout variant that swaps entire convolutional kernels, preserving spatial coherence and improving regularization.
  • Computational Efficiency: By swapping a large fraction of weights, Mixout significantly reduces computational overhead. Gradient computation is cut by up to 45%, and gradient memory usage by up to 90%, making it much more efficient than traditional ensembling.
  • Connection to Ensembling: The paper demonstrates that High-rate Mixout can effectively approximate the benefits of ensembling by dynamically creating diverse subnetworks within a single training run. At inference, a weight scaling approximation is used, matching the efficiency of ERM baselines.

Datasets

The paper evaluates their method on five standard domain generalization benchmarks from the DomainBed framework:

  • PACS
  • VLCS
  • OfficeHome
  • TerraIncognita
  • DomainNet

They use ResNet50 and ViT-S/16 architectures for their experiments.

Key Insights and Ideas

  • High-rate is Key: The most surprising finding is that simply increasing the Mixout probability to very high values (0.8-0.9) is crucial for achieving strong domain generalization, a departure from typical regularization strategies that often favor lower rates.
  • Structured Mixout for CNNs is Necessary: Unstructured Mixout works well for ViTs, but for CNNs, structured kernel swapping is essential to overcome spatial correlations and achieve significant performance gains.
  • Ensembling Without the Cost: High-rate Mixout offers a compelling way to achieve the robustness of ensemble methods without the prohibitive computational burden of training and storing multiple models.
  • Balancing Adaptation and Retention: The dynamic swapping mechanism of Mixout is effective because it allows for adaptation while strongly encouraging the retention of valuable pre-trained features, which is critical for DG.

Key Results

  • Comparable to Ensembles: High-rate Mixout achieves out-of-domain accuracy comparable to ensemble-based methods (ENS and DiWA) on the evaluated benchmarks.
  • Significant Computational Savings:
    • Training cost reduction: Mixout uses approximately 0.73x (ResNet50) and 0.69x (ViT-S/16) the training cost of ERM, compared to 18x for ENS/DiWA.
  • Gradient computation reduction: Up to 45%.
  • Gradient memory usage reduction: Up to 90%.
  • Improved Performance on Challenging Datasets: On TerraIncognita, which exhibits high feature diversity shifts, High-rate Mixout shows significantly higher performance, aligning with the hypothesis that richer representations are beneficial.
  • Structured Mixout Advantage: For ResNet50, structured Mixout showed a 1.6% performance gap over unstructured Mixout, highlighting its effectiveness for CNNs.

Limitations and Future Work

  • "Large Dropout" Reproducibility: The authors note that they were unable to reproduce the reported results for "Large Dropout" from Zhang and Bottou [56] under their experimental setup, suggesting potential differences in optimizer, training iterations, or configurations.
  • ResNet50 Swap Rate Sensitivity: While ViTs maintain consistent performance gains at higher swap rates, ResNet50 showed a sharp drop at a 0.9 swap rate, indicating sensitivity to excessive swapping in convolutional layers. This suggests that optimal rates might be architecture-dependent.
  • Future Work: The paper implicitly suggests exploring optimal swap rates for different architectures and investigating further structured approaches for other network types. The connection to other PEFT methods and their interplay with Mixout also presents an avenue for future research.

Summary updated

BibTeX
@inproceedings{aminbeidokhti2026high,
  author = {Masih Aminbeidokhti and Heitor Rapela Medeiros and Srikanth Muralidharan and Eric Granger and Marco Pedersoli},
  title = {{High-Rate Mixout: Revisiting Mixout for Robust Domain Generalization}},
  booktitle = {IEEE/CVF Winter Conference on Applications of Computer Vision},
  year = {2026},
}
Figure