How Many Domains Suffice for Domain Generalization? A Tight Characterization via the Domain Shattering Dimension

Cynthia Dwork, Lunjia Hu, Han Shao
6/20/2025
cs.LGstat.ML

No confident code implementation found for this paper.

Abstract

We study a fundamental question of domain generalization: given a family of domains (i.e., data distributions), how many randomly sampled domains do we need to collect data from in order to learn a model that performs reasonably well on every seen and unseen domain in the family? We model this problem in the PAC framework and introduce a new combinatorial measure, which we call the domain shattering dimension. We show that this dimension characterizes the domain sample complexity. Furthermore, we establish a tight quantitative relationship between the domain shattering dimension and the classic VC dimension, demonstrating that every hypothesis class that is learnable in the standard PAC setting is also learnable in our setting.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Cite this paper

@article{dwork2025many,
  title  = {How Many Domains Suffice for Domain Generalization? A Tight Characterization via the Domain Shattering Dimension},
  author = {Cynthia Dwork and Lunjia Hu and Han Shao},
  year   = {2025},
  eprint = {2506.16704},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2506.16704v2},
  journal = {NEURIPS 2025 2025}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2506.16704.svg)](https://codeofpaper.com/paper/2506.16704)

Discussion