A Generalization Error Bound for Multi-class Domain Generalization

Aniket Anand Deshmukh, Yunwen Lei, Srinagesh Sharma, Ürün Dogan, James W. Cutler, Clayton ScottarXiv 2019

Introduction

Domain Generalization (DG) addresses a fundamental challenge in machine learning: how to build models that perform reliably on unseen target domains without access to target data during training. While standard supervised learning assumes that training and test data are drawn from the same distribution, DG acknowledges that real-world data often undergoes distribution shifts. Most existing theoretical frameworks for DG have focused on binary classification. However, practical applications—ranging from satellite orbit identification to multi-class activity recognition—require a robust understanding of multi-class DG. This work provides the first formal generalization error bound for multi-class DG, demonstrating that error scales efficiently with the number of categories.

Methodology: Kernel-Based Multi-class DG

The authors propose a kernel-based framework that treats the domain distribution itself as an input. This is achieved through two primary mechanisms:

  1. Kernel Mean Embeddings: To represent a domain distribution $P_X$ mathematically, the model maps the distribution into a Reproducing Kernel Hilbert Space (RKHS). This allows the model to process a pair $(P_X, X)$, effectively learning how features vary across different environments.
  2. Surrogate Loss Functions: Recognizing the limitations of binary loss functions in multi-class settings, the framework utilizes Lipschitz continuous surrogate losses, such as the Crammer-Singer or multinomial logistic loss. These are more suitable for high-dimensional classification tasks.

To ensure computational efficiency, the algorithm is implemented using Random Fourier Features (RFF). RFF approximates complex kernels with linear features, allowing the model to scale to larger datasets without the prohibitive cost of traditional kernel methods.

Theoretical Contributions: The Logarithmic Bound

The core contribution of this research is the derivation of a new generalization error bound. A critical finding is that the error depends only logarithmically on the number of classes ($c$). In contrast to previous models where error bounds grew linearly with $c$, a logarithmic bound ensures that the model remains theoretically sound even as the complexity of the classification task increases.

The authors also introduce a two-stage error decomposition. They demonstrate that generalization error in DG stems from two distinct sources:

  • Domain Sampling: The diversity and number of training domains available.
  • Data Sampling: The number of individual data points sampled within each domain. By accounting for both, the bound provides a holistic view of the factors influencing a model's ability to generalize to unseen environments.

Experimental Evaluation

The proposed method was evaluated against a standard "Pooling" baseline—where data from all training domains is combined into a single dataset—across four benchmarks:

  • Synthetic Dataset (10 classes): Features were rotated by random angles to simulate domain shifts. The proposed method significantly outperformed pooling, reducing the error from 70.73% to 25.40%.
  • Satellite Dataset: In identifying three microsatellites from ground antenna data, the method reduced error from 11.95% to 8.28%.
  • MNIST-MOD: Using rotated handwritten digits (0-180 degrees), the method showed a clear improvement (21.39% vs. 22.79%).
  • Human Activity Recognition (HAR): On a 6-class dataset of physical activities across 30 volunteers, both methods performed similarly (~1.68% error). This suggests that when domains are highly similar (e.g., different individuals performing the same tasks), the benefits of complex domain-aware modeling are less pronounced.

Conclusion and Future Work

This work establishes a rigorous theoretical foundation for multi-class domain generalization. By proving that error scales logarithmically with the number of classes, the authors provide a "safety net" for scaling DG algorithms to complex real-world problems.

Future research directions include refining how the bound scales with the number of training domains and extending the framework to zero-shot learning scenarios, where the target domain may contain classes entirely absent from the training set. Additionally, automating the selection of optimal kernels for distribution embeddings remains an important area for practical improvement.

Summary updated

BibTeX
@misc{deshmukh2019generalization,
  author = {Aniket Anand Deshmukh and Yunwen Lei and Srinagesh Sharma and Ürün Dogan and James W. Cutler and Clayton Scott},
  title = {{A Generalization Error Bound for Multi-class Domain Generalization}},
  year = {2019},
  eprint = {1905.10392},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1905.10392},
}
Figure