NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

On the Benefits of Over-parameterization for Out-of-Distribution Generalization

Yifan Hao, Yong Lin, Difan Zou, Tong ZhangarXiv 2024 · DOI

Abstract

Traditional statistical learning theory suggests that massive, over-parameterized models should fail when encountering new environments due to overfitting. However, empirical evidence in deep learning often shows the opposite: larger models frequently exhibit superior generalization. This paper explores the "benign overfitting" paradox in the context of Out-of-Distribution (OOD) generalization. By analyzing a ReLU-based random feature model under covariate shift, we demonstrate that increasing model capacity helps mitigate errors caused by natural distributional shifts. Our analysis shows that over-parameterization reduces the variance component of OOD risk by restoring feature orthogonality in high-dimensional spaces, providing a theoretical foundation for the empirical success of large-scale models and ensembles.

Introduction: The OOD Generalization Problem

In classical machine learning, a model with more parameters than data points is expected to overfit to noise. Modern deep learning has challenged this view through "benign overfitting," where over-parameterized models generalize well on in-distribution (ID) data. However, real-world applications often involve Out-of-Distribution (OOD) scenarios, such as a vision system trained on clear images needing to operate in rain or different artistic styles.

Examples of domain shifts in the DomainNet dataset, illustrating the OOD challenge across clipart, sketches, and real images.

While some theories suggest larger models might latch onto spurious features, this work demonstrates that scale is actually a defense against natural distributional shifts. The authors address the gap between pessimistic theories and the empirical reality that larger models consistently perform better on OOD benchmarks like DomainNet.

Methodology and Problem Setup

The authors utilize a ReLU-based random feature model to study OOD risk mathematically. They focus on "ridgeless" estimators—models that fit the training data perfectly by choosing the solution with the minimum norm.

Covariate Shift Model

The study defines a "natural shift" where the test input is perturbed by a random variable $\delta$ that is independent of the input $x$ itself.

The covariate shift model where the test input is a combination of the original feature $X$ and a domain-specific shift $\delta$.

As shown in the diagram, the relationship $P(y|x)$ remains stable, but the input distribution $P(x)$ changes. The authors employ non-asymptotic analysis and kernel linearization (via the Neural Tangent Kernel framework) to derive precise error bounds for finite samples and parameters.

Key Theoretical Insights

The paper identifies several mechanisms through which over-parameterization aids OOD performance:

  • The Orthogonality Advantage: In high dimensions, features in the "long-tail" of the data distribution are naturally orthogonal. While these features might fit noise, they do not interfere significantly with the primary signal during ID testing.
  • Variance Reduction via Scale: Distributional shifts typically cause a variance explosion in the loss. By increasing the hidden dimension ($m$), the model maps features into a higher-dimensional space, effectively "restoring" the orthogonality weakened by the shift and reducing OOD error.
  • Ensembles as Capacity Boosters: The research mathematically proves that ensembling $K$ independently trained models is functionally similar to increasing the capacity of a single model, as both techniques average out the harmful variance introduced by the shift.

Results and Empirical Validation

The theoretical framework leads to several key results:

  • The OOD Floor (Theorem 1): Without sufficient model size, OOD risk remains high even if ID risk is near zero.
  • The Benefit of Scale (Theorem 3): OOD excess risk is shown to be proportional to the ratio of input dimensions to hidden parameters ($p/m$). Increasing $m$ directly decreases this risk.
  • Ensemble Efficiency: The authors provide a lower bound for the improvement ratio of ensembles, confirming that ensembling provides a non-trivial reduction in OOD risk.

Empirical tests on the DomainNet benchmark and synthetic simulations verify these findings. Simulations show a clear "double descent" style curve where OOD loss continues to drop significantly as the number of features increases, even after the ID loss has flattened out.

Conclusion

This work concludes that while over-parameterization might increase sensitivity to adversarial perturbations, it is a powerful tool for defending against natural distributional shifts. By squashing the variance introduced by shifts, larger models and ensembles provide a practical path toward more reliable OOD generalization in real-world AI systems. Future work remains to extend these proofs to more complex architectures like Transformers and CNNs.

Summary updated

BibTeX
@misc{hao2024benefits,
  author = {Yifan Hao and Yong Lin and Difan Zou and Tong Zhang},
  title = {{On the Benefits of Over-parameterization for Out-of-Distribution Generalization}},
  year = {2024},
  eprint = {2403.17592},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2403.17592},
}
Figure