What's in a Latent? Leveraging Diffusion Latent Space for Domain Generalization

Xavier Thomas, Deepti Ghadiyaram
3/9/2025
cs.LGcs.CV

No official code found. Best implementation: XThomasBU/GUIDE (8 stars, last commit 2025-11-22).

Abstract

Domain Generalization aims to develop models that can generalize to novel and unseen data distributions. In this work, we study how model architectures and pre-training objectives impact feature richness and propose a method to effectively leverage them for domain generalization. Specifically, given a pre-trained feature space, we first discover latent domain structures, referred to as pseudo-domains, that capture domain-specific variations in an unsupervised manner. Next, we augment existing classifiers with these complementary pseudo-domain representations making them more amenable to diverse unseen test domains. We analyze how different pre-training feature spaces differ in the domain-specific variances they capture. Our empirical studies reveal that features from diffusion models excel at separating domains in the absence of explicit domain labels and capture nuanced domain-specific information. On 5 datasets, we show that our very simple framework improves generalization to unseen domains by a maximum test accuracy improvement of over 4% compared to the standard baseline Empirical Risk Minimization (ERM). Crucially, our method outperforms most algorithms that access domain labels during training.

View on arXivView PDF

Code Implementations(1)

XThomasBU/GUIDECommunity100%
84TeX, ShellMar 6, 202511 months ago

Similar Papers

Cite this paper

@article{thomas2025whats,
  title  = {What's in a Latent? Leveraging Diffusion Latent Space for Domain Generalization},
  author = {Xavier Thomas and Deepti Ghadiyaram},
  year   = {2025},
  eprint = {2503.06698},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2503.06698v2}
}

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/2503.06698.svg)](https://codeofpaper.com/paper/2503.06698)

Discussion