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

Certifiable Out-of-Distribution Generalization

Nanyang Ye, Lin Zhu, Jia Wang, Zhaoyu Zeng, Jiayao Shao, Chensheng Peng, Bikang Pan, Kaican Li, Jun Zhu

The Challenge of Distribution Shift

Standard deep learning models are notoriously brittle, operating under the assumption that test data follows the same distribution as training data (the i.i.d. assumption). When faced with Out-of-Distribution (OoD) data—such as a self-driving car encountering a blizzard or a medical model seeing a new imaging style—performance often plummets. These shifts are generally categorized into two types:

  1. Diversity Shifts: Changes in environment or style (e.g., recognizing a "dog" in a sketch vs. a photo).
  2. Correlation Shifts: Changes in spurious correlations (e.g., a model that identifies "cows" only when green grass is present).

Most existing algorithms are "specialists" that excel at one shift type while failing at the other. Furthermore, they lack certifiability, meaning there is no computable guarantee of how a model will perform on a specific unseen datum.

Stochastic Disturbance Learning (SDL)

Researchers have introduced Stochastic Disturbance Learning (SDL), a framework that provides the first computable certificates for OoD performance. SDL combines functional optimization with max-margin learning to build models that are robust to perturbations in their internal semantic representations.

Functional Optimization and Certification

The authors define a "B-Generalizable" property: a model is certifiable if its prediction remains correct even when its internal representation is perturbed by a random disturbance within a set $B$. Using a Lagrangian framework, they derive a computable lower bound for confidence, allowing for the calculation of a "safety radius" around individual data points.

Noise Injection and Max-Margin Training

SDL injects noise (Gaussian or Bernoulli) into intermediate layers during training. This provides a theoretical link to Dropout, explaining how such disturbances expand the model's "safe zone." To maximize this certifiable radius, the authors utilize Neural Tangent Kernel (NTK) theory to approximate deep networks as linear classifiers, applying a max-margin approach to push decision boundaries away from data points.

Empirical Performance

SDL was evaluated using the OoD-Bench suite, which includes datasets like PACS, OfficeHome, and Colored MNIST. Unlike many state-of-the-art methods that perform worse than simple Empirical Risk Minimization (ERM) when averaged across all shift types, SDL demonstrates consistent superiority.

Performance comparison of SDL against state-of-the-art algorithms on the OoD-Bench suite.

As shown in the results table, SDL achieved the highest ranking score (+4) and outperformed baselines across multiple benchmarks. For instance, on the PACS dataset, SDL achieved 84.8% accuracy, significantly higher than the ERM baseline of 81.5%.

Certifiability and Robustness

A key contribution of SDL is the ability to provide numerical certification for individual inputs. The researchers demonstrated that increasing the variance of training noise ($\sigma$) directly improves the model's "certifiable accuracy," confirming that noise injection builds a larger safety margin against distribution shifts.

Certified test set accuracy and ablation study results for PACS and OfficeHome datasets.

Conclusion

SDL represents a significant step forward in making deep learning models reliable for real-world deployment. By moving beyond empirical performance to provide computable safety certificates, it offers a path toward models that can signal when they are operating outside their reliable range. While challenges remain regarding computational overhead and hyperparameter sensitivity, the framework's ability to handle both diversity and correlation shifts sets a new standard for OoD generalization.

Summary updated

BibTeX
@inproceedings{ye2023certifiable,
  author = {Nanyang Ye and Lin Zhu and Jia Wang and Zhaoyu Zeng and Jiayao Shao and Chensheng Peng and Bikang Pan and Kaican Li and Jun Zhu},
  title = {{Certifiable Out-of-Distribution Generalization}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2023},
  doi = {10.1609/aaai.v37i9.26295},
}
Figure