English

HYPO: Hyperspherical Out-of-Distribution Generalization

Machine Learning 2024-11-05 v3

Abstract

Out-of-distribution (OOD) generalization is critical for machine learning models deployed in the real world. However, achieving this can be fundamentally challenging, as it requires the ability to learn invariant features across different domains or environments. In this paper, we propose a novel framework HYPO (HYPerspherical OOD generalization) that provably learns domain-invariant representations in a hyperspherical space. In particular, our hyperspherical learning algorithm is guided by intra-class variation and inter-class separation principles -- ensuring that features from the same class (across different training domains) are closely aligned with their class prototypes, while different class prototypes are maximally separated. We further provide theoretical justifications on how our prototypical learning objective improves the OOD generalization bound. Through extensive experiments on challenging OOD benchmarks, we demonstrate that our approach outperforms competitive baselines and achieves superior performance. Code is available at https://github.com/deeplearning-wisc/hypo.

Keywords

Cite

@article{arxiv.2402.07785,
  title  = {HYPO: Hyperspherical Out-of-Distribution Generalization},
  author = {Haoyue Bai and Yifei Ming and Julian Katz-Samuels and Yixuan Li},
  journal= {arXiv preprint arXiv:2402.07785},
  year   = {2024}
}

Comments

The conference version of this paper is published at ICLR 2024; First two authors contributed equally

R2 v1 2026-06-28T14:46:12.497Z