High-Rate Mixout: Revisiting Mixout for Robust Domain Generalization

Masih Aminbeidokhti, Heitor Rapela Medeiros, Srikanth Muralidharan, Eric Granger, Marco Pedersoli
10/8/2025
cs.LGcs.CV

No official code found. Best implementation: Masseeh/HR-Mixout (4 stars, MIT, last commit 2025-12-11).

Abstract

Ensembling fine-tuned models initialized from powerful pre-trained weights is a common strategy to improve robustness under distribution shifts, but it comes with substantial computational costs due to the need to train and store multiple models. Dropout offers a lightweight alternative by simulating ensembles through random neuron deactivation; however, when applied to pre-trained models, it tends to over-regularize and disrupt critical representations necessary for generalization. In this work, we investigate Mixout, a stochastic regularization technique that provides an alternative to Dropout for domain generalization. Rather than deactivating neurons, Mixout mitigates overfitting by probabilistically swapping a subset of fine-tuned weights with their pre-trained counterparts during training, thereby maintaining a balance between adaptation and retention of prior knowledge. Our study reveals that achieving strong performance with Mixout on domain generalization benchmarks requires a notably high masking probability of 0.9 for ViTs and 0.8 for ResNets. While this may seem like a simple adjustment, it yields two key advantages for domain generalization: (1) higher masking rates more strongly penalize deviations from the pre-trained parameters, promoting better generalization to unseen domains; and (2) high-rate masking substantially reduces computational overhead, cutting gradient computation by up to 45% and gradient memory usage by up to 90%. Experiments across five domain generalization benchmarks, PACS, VLCS, OfficeHome, TerraIncognita, and DomainNet, using ResNet and ViT architectures, show that our approach, High-rate Mixout, achieves out-of-domain accuracy comparable to ensemble-based methods while significantly reducing training costs.

View on arXivView PDF

Code Implementations(1)

Masseeh/HR-MixoutCommunity63%
MIT

High-Rate Mixout: Revisiting Mixout for Robust Domain Generalization (Accepted at WACV 2025)

40Shell, PythonOct 8, 202510 months agoMIT

Similar Papers

Cite this paper

@article{aminbeidokhti2025highrate,
  title  = {High-Rate Mixout: Revisiting Mixout for Robust Domain Generalization},
  author = {Masih Aminbeidokhti and Heitor Rapela Medeiros and Srikanth Muralidharan and Eric Granger and Marco Pedersoli},
  year   = {2025},
  eprint = {2510.06955},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2510.06955v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2510.06955.svg)](https://codeofpaper.com/paper/2510.06955)

Discussion