PEER pressure: Model-to-Model Regularization for Single Source Domain Generalization

Dong Kyu Cho, Inwoo Hwang, Sanghack Lee

TL;DR

Data augmentation is a powerful tool for helping machine learning models generalize to unseen domains, but it introduces severe out-of-distribution (OOD) performance fluctuations during training due to feature distortion. To solve this, the authors propose PEER, a framework that uses a parameter-averaged "task model" to regularize an active "proxy model," stabilizing the training process and achieving state-of-the-art generalization using simple random augmentations.

What Problem Does This Paper Address?

In Single Source Domain Generalization (sDG), a model is trained on a single source domain (e.g., real photos) but must perform well on completely unseen target domains (e.g., cartoons or sketches). To bridge this gap, researchers heavily rely on data augmentation to simulate diverse target domains.

However, the authors identify a major, overlooked issue: mid-train OOD fluctuation. As a model trains on highly diverse augmentations, its performance on target domains swings wildly from epoch to epoch.

Figure 1. Despite its generalization effect, data augmentation in- duces fluctuations in target domain accuracy during the training. This phenomenon becomes more pronounced as the complexity of the augmentation increases, complicating model selection. We address this issue of fluctuation with a simple model-to-model reg- ularization method that cushions the effect of data augmentation.

The paper demonstrates that these fluctuations happen because the model suffers from "feature distortion"—it essentially overwrites or forgets useful features learned in previous steps to adapt to the current batch of heavily augmented data. This instability makes reliable model selection (like early stopping) incredibly difficult in practical scenarios.

Figure 2. Illustration of pitfalls of augmentation in generalizing to unseen target domains. (a) Augmentation-based methods expand the source domain by providing diverse augmented samples (i.e., Source+). This enhances the model’s generalization capability to- wards the unseen target domain (i.e., Target A). (b) Throughout the course of training, it iteratively simulates diverse unseen do- mains. However, at the same time, diverse augmentations lead to the distortion of the learned representations, thereby triggering OOD fluctuation.

Methods

The authors introduce PEER (Parameter-Space Ensemble with Entropy Regularization), a framework consisting of two identical model architectures that interact during training:

  1. The Proxy Model ($P$): The active learner that trains directly on the augmented data using standard classification loss.
  2. The Task Model ($F$): A frozen model that acts as a stable regulator to guide the proxy model.

To prevent the proxy model from deviating too far into distorted feature spaces, PEER maximizes the mutual information between the intermediate feature representations of both models. In practice, this is achieved using a feature decorrelation loss (specifically, the Barlow Twins loss function).

Crucially, the task model is not static. Every $k$ epochs, the task model is updated by parameter-averaging across the proxy model's historical learning trajectory, and the data augmentation strategy is reinitialized. This allows the task model to progressively accumulate knowledge from diverse augmentations without suffering from sudden feature distortion.

Datasets

The PEER framework was evaluated across several standard and challenging sDG benchmarks:

  • PACS: Photo (source), Art, Cartoon, and Sketch.
  • Digits: MNIST (source), SVHN, MNIST-M, SYNDIGIT, and USPS.
  • Office-Home: Real-world (source), Art, Clipart, and Product.
  • VLCS: PASCAL-VOC (source), LabelMe, Caltech-101, and SUN09.
  • Terra Incognita: Included as an additional real-world benchmark.

Key Insights and Ideas

  • The Augmentation Paradox: While complex data augmentations are necessary to simulate domain shifts, their sheer diversity actively harms the stability of the model's internal representations, pulling the weights in conflicting directions.
  • Parameter Averaging as a Memory Buffer: Averaging weights across a model's training trajectory acts similarly to a memory buffer in continual learning. It smooths out the loss landscape and ensures the model retains past knowledge rather than over-indexing on the latest augmentation style.
  • Asymmetric Input Guidance: In PEER, the frozen task model processes the original, clean image, while the proxy model processes the augmented version. This ensures the task model provides a clean, undistorted feature anchor to guide the proxy model's learning.

Key Results

  • Smoother Training: PEER successfully minimized the variance of target domain accuracy throughout the training process across all benchmarks, proving highly effective at stabilizing mid-train OOD fluctuations.
  • SOTA with Simple Augmentations: Despite using only simple random augmentations (RandAug), PEER outperformed existing state-of-the-art sDG methods that rely on complex adversarial or meta-learning augmentation strategies. It achieved a mean accuracy of 59.42% on PACS and 81.06% on Digits.
  • Massive Boosts on Hard Benchmarks: On challenging datasets where data augmentation typically yields negative or negligible results, PEER provided massive performance leaps, boosting random augmentation accuracy by 10.62% on Office-Home and 6.66% on VLCS.

Limitations and Future Work

  • Theoretical Gaps: While the empirical results demonstrate excellent mode connectivity and model alignment in the loss landscape, a rigorous theoretical analysis of why this parameter-space alignment works so well for deep architectures remains an open question.
  • Hyperparameter Dependency: The framework introduces an update interval ($k$), though ablation studies show the model is reasonably resilient to variations in this parameter.
  • Memory Overhead: Although computationally lighter than standard deep ensembles (because only one model computes gradients), PEER still requires maintaining two copies of the model architecture in memory during training.

Summary updated

BibTeX
@inproceedings{cho2025peer,
  author = {Dong Kyu Cho and Inwoo Hwang and Sanghack Lee},
  title = {{PEER pressure: Model-to-Model Regularization for Single Source Domain Generalization}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2025},
  doi = {10.1109/cvpr52734.2025.01431},
}
Figure