Papers
Topics
Authors
Recent
Search
2000 character limit reached

Mixout: Regularizing Finetuning in Deep Learning

Updated 15 July 2026
  • Mixout is a stochastic regularization method that blends current parameters with pretrained weights to mitigate overfitting and parameter drift in low-data regimes.
  • The technique uses a binary mask to intermittently replace parameters with anchor values, preserving meaningful structure unlike traditional dropout.
  • Empirical validations on NLP and vision models demonstrate that Mixout boosts performance, improves domain robustness, and reduces computational overhead.

Searching arXiv for the cited Mixout papers to ground the article in current records. I’m checking arXiv entries for Mixout and its later variants. Mixout is a stochastic regularization technique for finetuning pretrained models in which the effective training parameters are obtained by mixing the current parameters with a reference parameter vector, typically the pretrained initialization. It was introduced to address the observation that finetuning a large-scale pretrained LLM on a downstream task can exhibit degenerate performance when only a small number of training instances are available, despite the broader success of pretrained LLMs. Although motivated by dropout, Mixout does not deactivate neurons; instead, it intermittently replaces parameters by their anchor values, thereby biasing optimization toward the pretrained solution. The method was first validated on BERT finetuning for GLUE and was later revisited in vision for domain generalization and robust finetuning under distribution shift, where high masking rates, structured masking, adaptive anchors, and implicit-ensemble interpretations became central design dimensions (Lee et al., 2019, Aminbeidokhti et al., 8 Oct 2025, Aminbeidokhti et al., 8 Oct 2025).

1. Origins and problem setting

The original motivation for Mixout arose in natural language processing, where finetuning a large-scale LLM pretrained on a large unlabeled corpus had recently been observed to improve generalization, yet also to be prone to unstable or degenerate downstream behavior in low-data regimes. The 2019 formulation targets this specific failure mode: when the downstream sample size is small, direct finetuning of a large pretrained model can move parameters too far from the pretrained solution, causing collapse in some training restarts (Lee et al., 2019).

Later work reframed the same core mechanism in vision. In domain generalization, the relevant problem is not merely low-sample instability but degradation under distribution shift after standard finetuning. In robust finetuning of vision foundation models, the concern is that in-domain gains can come at the expense of out-of-domain robustness. These later papers retain the central intuition of Mixout—regularizing deviation from pretrained weights—but reinterpret it as a weight-sharing implicit ensemble and as a robustness-oriented alternative to dropout and explicit ensembling (Aminbeidokhti et al., 8 Oct 2025, Aminbeidokhti et al., 8 Oct 2025).

A common misconception is to treat Mixout as ordinary dropout applied in parameter space. The distinction is substantive: dropout removes or deactivates units, whereas Mixout swaps trainable parameters with anchor parameters. This means that the regularizer preserves a meaningful reference model during training rather than injecting zero-valued perturbations.

2. Mathematical formulation

In the original definition, let θRd\theta \in \mathbb{R}^d denote the current parameters of a model being fine-tuned and let θ0Rd\theta_0 \in \mathbb{R}^d denote the fixed, pretrained parameters. A random binary mask m{0,1}dm \in \{0,1\}^d is drawn with entries that are i.i.d. Bernoulli(1p)\mathrm{Bernoulli}(1-p). During forward and backward passes, Mixout replaces each coordinate of θ\theta by either its own value or the corresponding coordinate of θ0\theta_0 according to

θ=mθ+(1m)θ0.\theta' = m \odot \theta + (1-m)\odot \theta_0.

The formulation uses inverted-mask scaling, as in inverted dropout, so that E[θ]=θ\mathbb{E}[\theta']=\theta (Lee et al., 2019).

The same paper also presents Mixout as a special case of “MixConnect,” a more general mixing scheme over two weight vectors with E[m]=μ\mathbb{E}[m]=\mu and Var(m)=σ2\mathrm{Var}(m)=\sigma^2. In the Mixout setting, θ0Rd\theta_0 \in \mathbb{R}^d0 and θ0Rd\theta_0 \in \mathbb{R}^d1 (Lee et al., 2019).

A later formulation writes the fine-tuned weights as θ0Rd\theta_0 \in \mathbb{R}^d2, with θ0Rd\theta_0 \in \mathbb{R}^d3 the pretrained anchor and θ0Rd\theta_0 \in \mathbb{R}^d4. The effective weights are

θ0Rd\theta_0 \in \mathbb{R}^d5

and, after re-scaling by θ0Rd\theta_0 \in \mathbb{R}^d6, the objective becomes

θ0Rd\theta_0 \in \mathbb{R}^d7

This notation makes the residual parameterization around the pretrained point explicit (Aminbeidokhti et al., 8 Oct 2025).

In the domain-generalization formulation, Mixout is also written as a mask-conditioned parameter vector

θ0Rd\theta_0 \in \mathbb{R}^d8

with one Monte Carlo mask per mini-batch during training and deterministic “weight-scaled” parameters at inference,

θ0Rd\theta_0 \in \mathbb{R}^d9

This formulation foregrounds the expected-loss and inference-time averaging viewpoints (Aminbeidokhti et al., 8 Oct 2025).

3. Regularization mechanism and design variants

The central theoretical claim of Mixout is that it regularizes learning to minimize deviation from one of the two mixed models, ordinarily the pretrained model. Under the assumption that m{0,1}dm \in \{0,1\}^d0 is strongly convex in the neighborhood of m{0,1}dm \in \{0,1\}^d1 or well approximated by a quadratic, Theorem 3.1 yields

m{0,1}dm \in \{0,1\}^d2

In the Mixout setting, this becomes

m{0,1}dm \in \{0,1\}^d3

Thus, minimizing m{0,1}dm \in \{0,1\}^d4 implicitly adds an m{0,1}dm \in \{0,1\}^d5 penalty that pulls m{0,1}dm \in \{0,1\}^d6 toward m{0,1}dm \in \{0,1\}^d7, with strength increasing as m{0,1}dm \in \{0,1\}^d8 (Lee et al., 2019).

This adaptive penalty differs from fixed weight decay toward zero. The coefficient depends on the local curvature through m{0,1}dm \in \{0,1\}^d9 and on Bernoulli(1p)\mathrm{Bernoulli}(1-p)0, so the effective regularization adapts along the optimization trajectory. The original presentation emphasizes that, as the optimizer moves farther from Bernoulli(1p)\mathrm{Bernoulli}(1-p)1, the Mixout penalty pushes it back more strongly, thereby preventing catastrophic drift. At the endpoints, Bernoulli(1p)\mathrm{Bernoulli}(1-p)2 reduces Mixout to the identity, while Bernoulli(1p)\mathrm{Bernoulli}(1-p)3 forces the model to remain almost at Bernoulli(1p)\mathrm{Bernoulli}(1-p)4 (Lee et al., 2019).

Several variants are explicit in the literature. In “Mixout,” the mask is shared across all outgoing weights of each neuron, so a dropped neuron’s entire outgoing weight vector is replaced by the pretrained copy. In “MixConnect,” one can instead drop individual weights independently. Mixout can also be applied only to a subset of layers; in that case, the lower-bound argument holds with Bernoulli(1p)\mathrm{Bernoulli}(1-p)5 restricted to that subset. For layers not covered by pretraining, such as a final task-specific classification head, “MixoutBernoulli(1p)\mathrm{Bernoulli}(1-p)6” mixes toward the randomly initialized Bernoulli(1p)\mathrm{Bernoulli}(1-p)7 of that head and still behaves differently from dropout when the head dimension is large, because it provides an adaptive pull toward the initial head parameters (Lee et al., 2019).

The original practical guidelines are tied to data regime. For small-data fine-tuning with Bernoulli(1p)\mathrm{Bernoulli}(1-p)8, the recommended range is Bernoulli(1p)\mathrm{Bernoulli}(1-p)9, and the reported experiments found θ\theta0 to provide the best trade-off between stability and flexibility. For larger datasets, lower θ\theta1 such as θ\theta2 suffices, and one can sweep θ\theta3. When a randomly initialized classification head is added, Mixoutθ\theta4 with θ\theta5 is recommended for that head. The method is described as integrating seamlessly with standard optimizers, including Adam and LAMB, and with learning-rate warm-up and decay schedules (Lee et al., 2019).

4. Empirical validation on BERT and GLUE

The original empirical study evaluates Mixout on finetuning BERT Large (340M) over GLUE, with particular emphasis on low-resource tasks. The small-data tasks are RTE (2.5 K), MRPC (3.7 K), CoLA (8.5 K), and STS-B (7 K). The setup uses 20 random restarts per task, learning rate θ\theta6, batch size 32, and 3 epochs. The baseline is Dropout(0.1) + weight-decay(0.01), following Devlin et al. (2018); a further comparison uses weight-decay(0.01) alone, following Wiese et al. (2017). Mixout is tested with θ\theta7, optionally together with weight-decay(0.01) (Lee et al., 2019).

Under the baseline, many restarts collapse to chance-level accuracy; the paper gives CoLA as an example, with approximately θ\theta8–θ\theta9 failures. With Mixout(θ0\theta_00), the number of failures drops to θ0\theta_01 on all four small-data tasks. The reported mean development scores for the baseline and Mixout(θ0\theta_02) are as follows (Lee et al., 2019):

Task Baseline mean Mixout(θ0\theta_03) mean
RTE 56.5% 64.0%
MRPC 83.4 89.0
CoLA 38.8 (Mcc) 57.9
STS-B 82.4 (θ0\theta_04) 89.4

The same study reports gains in the best development score over 20 restarts. CoLA increases from θ0\theta_05 Mcc, RTE from θ0\theta_06 acc, MRPC from θ0\theta_07 F1, and STS-B remains θ0\theta_08 θ0\theta_09. On the large-data task SST-2 (67 K), Mixout(θ=mθ+(1m)θ0.\theta' = m \odot \theta + (1-m)\odot \theta_0.0) + decay matches dropout + decay on both mean and max development accuracy, approximately θ=mθ+(1m)θ0.\theta' = m \odot \theta + (1-m)\odot \theta_0.1–θ=mθ+(1m)θ0.\theta' = m \odot \theta + (1-m)\odot \theta_0.2. The reported conclusion is that Mixout does no harm when examples are plentiful. In aggregate, the 2019 study characterizes Mixout as dramatically stabilizing BERT finetuning on low-resource tasks while boosting both average and peak performance on GLUE, with minimal additional wall-time cost and no architectural changes (Lee et al., 2019).

5. High-rate Mixout for domain generalization

The 2025 domain-generalization work revisits Mixout outside NLP and argues that strong performance on domain generalization benchmarks requires notably high masking probabilities: θ=mθ+(1m)θ0.\theta' = m \odot \theta + (1-m)\odot \theta_0.3 for Vision Transformers and θ=mθ+(1m)θ0.\theta' = m \odot \theta + (1-m)\odot \theta_0.4 for ResNets. These high rates are motivated by two claimed advantages: they more strongly penalize deviation from the pretrained parameters, promoting better generalization to unseen domains, and they substantially reduce computational overhead by freezing θ=mθ+(1m)θ0.\theta' = m \odot \theta + (1-m)\odot \theta_0.5 of weights each step (Aminbeidokhti et al., 8 Oct 2025).

This work also introduces structured Mixout for convolutional layers in ResNet50. Instead of randomly swapping individual scalars, each entire convolutional kernel is swapped with its pretrained copy. The paper states that this respects spatial correlations and leads to better regularization. MLP layers, such as those in ViTs, continue to use unstructured, elementwise swapping (Aminbeidokhti et al., 8 Oct 2025).

The training protocol is evaluated on PACS, VLCS, OfficeHome, TerraIncognita, and DomainNet under the DomainBed leave-one-domain-out protocol, using ResNet50 and ViT-S/16. Baselines include ERM, CORAL, Large Dropout (“Very Large Dropout”), original Mixout, Dropout/DropFilter, deep ensembles (ENS, 18 models), and weight-averaging ensemble (DiWA). Average out-of-domain accuracy over the five benchmarks is reported as follows (Aminbeidokhti et al., 8 Oct 2025):

Architecture ERM High-Rate Mixout
ResNet50 67.77% 69.12%
ViT-S/16 65.36% 66.32%

For comparison, DiWA reports θ=mθ+(1m)θ0.\theta' = m \odot \theta + (1-m)\odot \theta_0.6 on ResNet50 and θ=mθ+(1m)θ0.\theta' = m \odot \theta + (1-m)\odot \theta_0.7 on ViT-S/16, while ENS reports θ=mθ+(1m)θ0.\theta' = m \odot \theta + (1-m)\odot \theta_0.8 and θ=mθ+(1m)θ0.\theta' = m \odot \theta + (1-m)\odot \theta_0.9, respectively, at E[θ]=θ\mathbb{E}[\theta']=\theta0 cost. The paper further reports that detailed per-dataset gains are largest on TerraIncognita (Aminbeidokhti et al., 8 Oct 2025).

The computational account is explicit. Forward FLOPs are unchanged, backward-weight FLOPs are reduced by E[θ]=θ\mathbb{E}[\theta']=\theta1 because gradients for E[θ]=θ\mathbb{E}[\theta']=\theta2 need not be computed, and gradient memory is reduced by E[θ]=θ\mathbb{E}[\theta']=\theta3 for the frozen weights. At swap rates E[θ]=θ\mathbb{E}[\theta']=\theta4, the reported reductions are approximately E[θ]=θ\mathbb{E}[\theta']=\theta5 in gradient-compute FLOPs and approximately E[θ]=θ\mathbb{E}[\theta']=\theta6 in gradient memory. The same work recommends E[θ]=θ\mathbb{E}[\theta']=\theta7 for ViTs and E[θ]=θ\mathbb{E}[\theta']=\theta8 for ResNets, notes that E[θ]=θ\mathbb{E}[\theta']=\theta9 can undertrain ResNets because convolutional layers have few filters, and suggests combining High-Rate Mixout with LP-FT, L2SP, or model averaging for modest extra gains. Open questions include time-varying schedules for E[m]=μ\mathbb{E}[m]=\mu0, extension to other modalities such as NLP and audio, and interaction with parameter-efficient fine-tuning methods beyond LoRA (Aminbeidokhti et al., 8 Oct 2025).

6. Implicit ensembles, GMixout, and robust finetuning

A separate 2025 line of work analyzes Mixout through the lens of a single-run, weight-sharing implicit ensemble and identifies three levers governing the in-domain versus out-of-domain trade-off: the masking anchor, the resampling frequency, and the mask sparsity. In this perspective, a single Mixout run traverses a collection of subnetworks defined by different masks, and the expected OOD error of their weight average is decomposed into bias, variance, covariance, and a locality term:

E[m]=μ\mathbb{E}[m]=\mu1

Within this account, mask sparsity E[m]=μ\mathbb{E}[m]=\mu2 controls overlap among active parameters, resampling frequency controls the number of distinct subnetworks versus per-subnetwork adaptation, and the fixed anchor E[m]=μ\mathbb{E}[m]=\mu3 reduces E[m]=μ\mathbb{E}[m]=\mu4 but can increase bias by preventing gradual task-specific drift (Aminbeidokhti et al., 8 Oct 2025).

Guided by this analysis, Aminbeidokhti et al. introduce GMixout. The first change is an adaptive anchor based on an exponential moving average:

E[m]=μ\mathbb{E}[m]=\mu5

where E[m]=μ\mathbb{E}[m]=\mu6 is the total residual learned in episode E[m]=μ\mathbb{E}[m]=\mu7 and E[m]=μ\mathbb{E}[m]=\mu8 is the EMA decay. After the update, E[m]=μ\mathbb{E}[m]=\mu9 is reset to zero and a fresh mask is drawn. The second change is an explicit resampling frequency Var(m)=σ2\mathrm{Var}(m)=\sigma^20, where Var(m)=σ2\mathrm{Var}(m)=\sigma^21 is the number of episodes, so the mask is held fixed for Var(m)=σ2\mathrm{Var}(m)=\sigma^22 steps. The third is a sparse-kernel implementation that stores only the indices of unmasked parameters and the corresponding residuals, reconstructing the masked residual on the fly; at inference, the residual merges into the anchor with zero extra cost (Aminbeidokhti et al., 8 Oct 2025).

The reported empirical scope is broad: covariate shift on DomainNet, WILDS/iWildCam, and ImageNet-{V2,R,Sketch,A}; common corruptions on CIFAR100-C; and long-tail imbalance on ImageNet-LT and CIFAR100-LT. Baselines include zero-shot CLIP, full finetuning, moving-average finetuning, Model Soups, LoRA (rank 64), Random Masking, and original Mixout. The headline results include DomainNet (train on Sketch), where zero-shot average is Var(m)=σ2\mathrm{Var}(m)=\sigma^23, Model Soups is Var(m)=σ2\mathrm{Var}(m)=\sigma^24, Mixout is Var(m)=σ2\mathrm{Var}(m)=\sigma^25, and GMixout is Var(m)=σ2\mathrm{Var}(m)=\sigma^26; iWildCam, where zero-shot achieves ID/OOD Var(m)=σ2\mathrm{Var}(m)=\sigma^27, LoRA Var(m)=σ2\mathrm{Var}(m)=\sigma^28, and GMixout Var(m)=σ2\mathrm{Var}(m)=\sigma^29; CIFAR100/CIFAR100-C, where zero-shot is θ0Rd\theta_0 \in \mathbb{R}^d00 and GMixout is θ0Rd\theta_0 \in \mathbb{R}^d01; ImageNet-LT, where zero-shot is θ0Rd\theta_0 \in \mathbb{R}^d02 and GMixout is θ0Rd\theta_0 \in \mathbb{R}^d03 versus the best PEFT result of θ0Rd\theta_0 \in \mathbb{R}^d04; CIFAR100-LT, where zero-shot is θ0Rd\theta_0 \in \mathbb{R}^d05 and GMixout is θ0Rd\theta_0 \in \mathbb{R}^d06 versus the best PEFT result of θ0Rd\theta_0 \in \mathbb{R}^d07; and ImageNet-1K full, where zero-shot ID/OOD is θ0Rd\theta_0 \in \mathbb{R}^d08, Model Soups is θ0Rd\theta_0 \in \mathbb{R}^d09, LoRA is θ0Rd\theta_0 \in \mathbb{R}^d10, and GMixout is θ0Rd\theta_0 \in \mathbb{R}^d11, the best OOD average (Aminbeidokhti et al., 8 Oct 2025).

The ablations emphasize the same three levers. Higher θ0Rd\theta_0 \in \mathbb{R}^d12 improves OOD at slight ID cost; moderate θ0Rd\theta_0 \in \mathbb{R}^d13 improves both ID and OOD; and across θ0Rd\theta_0 \in \mathbb{R}^d14–θ0Rd\theta_0 \in \mathbb{R}^d15 trainable parameters, GMixout yields the highest OOD accuracy for a given ID level. The method is reported to work with CLIP ViT-B/16, ImageNet-21k ViT-B/16, and ViT-L/14@336 with θ0Rd\theta_0 \in \mathbb{R}^d16 update, and to preserve zero-shot features better than full finetuning on Flowers102, Food101, Pets, DTD, and Caltech101, though slightly behind LoRA. The recommended defaults are mask sparsity θ0Rd\theta_0 \in \mathbb{R}^d17, EMA decay θ0Rd\theta_0 \in \mathbb{R}^d18 with θ0Rd\theta_0 \in \mathbb{R}^d19 performing well across tasks, and approximately θ0Rd\theta_0 \in \mathbb{R}^d20 episodes. This suggests that, in later robust-finetuning settings, Mixout is best understood not only as an adaptive θ0Rd\theta_0 \in \mathbb{R}^d21 regularizer toward initialization but also as a mechanism for controlling the bias, variance, covariance, and locality of a single-run implicit ensemble (Aminbeidokhti et al., 8 Oct 2025).

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Mixout.