Adaptive Methods for Aggregated Domain Generalization

Xavier Thomas, Dhruv Mahajan, Alex Pentland, Abhimanyu DubeyarXiv 2021

Abstract

Domain Generalization (DG) typically relies on explicit domain labels to learn invariant features across diverse environments. However, in many practical "aggregated" settings, these labels are unavailable. We present AdaClust, a framework that discovers latent domains through unsupervised clustering and adapts the model to these discovered "pseudo-domains." By clustering in a specific "Goldilocks Zone" of the feature space, AdaClust effectively captures domain-specific variance while ignoring class-specific information and noise. Our results demonstrate that AdaClust matches or exceeds the performance of state-of-the-art DG methods that utilize full domain supervision.

Introduction

The primary challenge in Domain Generalization is training a model on multiple source domains (e.g., photos, sketches, cartoons) such that it generalizes to an unseen target domain. Standard DG algorithms utilize domain labels to learn domain-invariant representations. However, in "aggregated" settings—where data is collected without source metadata due to privacy or scale—these labels are missing. Without them, traditional invariance-based techniques struggle to distinguish between class-relevant features and domain-specific styles.

Methodology: The AdaClust Framework

AdaClust employs a two-step bootstrapping approach to bridge the gap between aggregated data and domain-aware learning.

1. Discovering Latent Domains

Instead of relying on ground-truth labels, AdaClust identifies "pseudo-domains" by clustering training data in a carefully selected feature space. The authors identify a "Goldilocks Zone" within the principal components of pre-trained model features. While the top components typically represent class-specific information and the bottom components represent noise, the intermediate components capture the stylistic variance characteristic of different domains. Clustering is performed in this middle range to generate pseudo-domain assignments.

2. Domain-Adaptive Classification

Once pseudo-domains are assigned, the model is trained as a domain-adaptive classifier. The input to the final MLP consists of the original image features concatenated with the embedding of its assigned pseudo-domain (the cluster centroid). This allows the network to adjust its predictions based on the detected "style" of the input.

The AdaClust architecture: Image features are projected and clustered to generate pseudo-domain embeddings, which are then concatenated with original features for classification.

To maintain efficiency and account for evolving feature representations, the clustering is updated on a logarithmic schedule (e.g., at epochs 1, 2, 4, 8...), ensuring the pseudo-domains refine alongside the model without excessive computational cost.

Experimental Results

The effectiveness of AdaClust was evaluated using the DomainBed benchmark, covering diverse datasets such as PACS, VLCS, and Office-Home.

Benchmarking Performance

AdaClust significantly outperforms existing methods that do not require domain labels, such as IRM and RSC. More importantly, it achieves parity with—and in some cases surpasses—top-tier supervised methods like CORAL and MMD that have access to full domain metadata.

Performance comparison on the DomainBed benchmark. AdaClust outperforms other label-free methods and matches supervised algorithms.

Large-Scale Scalability

On the 1.1-million-image GeoYFCC dataset, AdaClust matched the performance of the state-of-the-art supervised method DA-ERM within 0.1% accuracy. This demonstrates the method's ability to scale to massive real-world datasets where manual domain labeling is impractical.

Discussion and Key Insights

  • Invariance vs. Adaptation: While much of DG research focuses on feature invariance, AdaClust suggests that adapting to discovered latent domains is a highly effective alternative.
  • Theoretical Robustness: The authors provide theoretical bounds showing that generalization error remains controlled even with approximate pseudo-domain embeddings.
  • Backbone Synergy: The performance gains of AdaClust over standard Empirical Risk Minimization (ERM) scale positively with the size and quality of the pre-trained backbone used.

Conclusion

AdaClust provides a robust solution for Domain Generalization in label-scarce environments. By leveraging the latent domain information inherent in deep features, it removes the necessity for explicit domain supervision, paving the way for more scalable and privacy-preserving machine learning deployments.

Summary updated

BibTeX
@misc{thomas2021adaptive,
  author = {Xavier Thomas and Dhruv Mahajan and Alex Pentland and Abhimanyu Dubey},
  title = {{Adaptive Methods for Aggregated Domain Generalization}},
  year = {2021},
  eprint = {2112.04766},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2112.04766},
}
Figure