INSURE: An Information Theory iNspired diSentanglement and pURification modEl for Domain Generalization

Xi Yu, Huan-Hsin Tseng, Shinjae Yoo, Haibin Ling, Yuewei Lin

Abstract

Domain Generalization (DG) remains a significant challenge in machine learning, where models must adapt to unseen data distributions. Conventional methods typically prioritize domain-invariant features, potentially discarding valuable domain-specific information. We introduce INSURE (Information theory iNspired diSentanglement and pURification modEl), a novel framework that leverages learnable binary masks and information-theoretic losses to disentangle latent features into class-relevant and class-irrelevant components. By capturing both domain-invariant and domain-specific class-relevant information, and refining these features through a paired purification process, INSURE demonstrates superior robustness and performance across standard DG benchmarks.

1. Introduction

The "i.i.d. assumption"—that training and testing data share the same distribution—frequently fails in real-world applications. For instance, a vehicle detection system trained in sunny environments may struggle in adverse weather. Domain Generalization (DG) seeks to address this by learning representations that generalize to unseen domains. While existing literature focuses heavily on domain-invariant features, INSURE argues that domain-specific features can be highly informative for classification (e.g., artistic style helping identify an object in a painting).

2. Conceptual Framework: The Region III Revelation

The core motivation for INSURE lies in a more nuanced categorization of feature spaces. As illustrated in Figure 1, features can be partitioned into four regions based on their relationship to the class label $y$ and specific domains $z_1, z_2$.

Feature categorization: Region III represents domain-specific but class-relevant information, which INSURE aims to preserve.

Traditional DG methods often focus exclusively on Region IV (domain-invariant class-relevant features). However, Region III (domain-specific class-relevant features) contains critical information that can enhance model performance. INSURE is designed to extract a "sufficient and compact" feature set $z^*$ that encompasses both Regions III and IV, while discarding irrelevant noise from Regions I and II.

3. Methodology

INSURE achieves feature disentanglement and purification through three primary mechanisms.

3.1 Feature Disentanglement via Binary Masking

Unlike computationally expensive multi-encoder architectures, INSURE utilizes a single feature extractor followed by a learnable binary mask $m$. This mask partitions the latent feature $z$ into two orthogonal components: $z^*$ (class-relevant) and $z'$ (auxiliary/irrelevant). A Mask Sparsity Regularization (MSR) term is applied to ensure the representation is compact, forcing the model to select only the most informative features.

3.2 Information-Theoretic Objectives

The model employs losses inspired by the Information Bottleneck principle. KL-divergence-based losses ($L_{ITl}$ and $L_{ITd}$) are used to maximize the mutual information between $z^*$ and the class label $y$, while ensuring $z'$ captures the remaining domain-specific context without leaking class information.

The INSURE architecture: (a) Disentanglement using binary masks and IT losses; (b) The paired purification process.

3.3 Paired Purification

To guarantee the "purity" of the class-relevant features, a purification loss is introduced. This involves creating a hybrid feature by pairing the $z^*$ of one image with the $z'$ of a different image. If the classifier $f$ can accurately predict the class from this hybrid, it confirms that $z^*$ is self-sufficient and $z'$ does not contain redundant class information.

4. Experimental Results

INSURE was evaluated on four major DG datasets: PACS, OfficeHome, TerraIncognita, and the large-scale DomainNet.

  • State-of-the-Art Performance: INSURE achieved an average accuracy of 65.6% across the benchmarks, surpassing leading methods such as SWAD and PCL.
  • Scalability: On DomainNet (0.6M images), INSURE reached 48.0% accuracy, demonstrating significant gains over previous disentanglement models.
  • Ablation Studies: Experiments confirmed that the combination of binary masking, IT losses, and paired purification is essential; removing any component resulted in a measurable performance decline.
  • Visual Interpretability: Grad-CAM visualizations indicate that INSURE focuses on more comprehensive object features compared to baselines, which often fixate on small, potentially spurious parts of the image.

5. Conclusion

INSURE shifts the DG paradigm from seeking pure invariance to achieving intelligent disentanglement. By explicitly modeling domain-specific class-relevant features and employing information-theoretic purification, the model provides a robust and efficient solution for cross-domain tasks. Future work includes extending this masking approach to few-shot learning and person re-identification.

Summary updated

Abstract

Domain Generalization (DG) aims to learn a generalizable model on the unseen target domain by only training on the multiple observed source domains. Although a variety of DG methods have focused on extracting domain-invariant features, the domain-specific class-relevant features have attracted attention and been argued to benefit generalization to the unseen target domain. To take into account the class-relevant domain-specific information, in this paper we propose an Information theory iNspired diSentanglement and pURification modEl (INSURE) to explicitly disentangle the latent features to obtain sufficient and compact (necessary) class-relevant feature for generalization to the unseen domain. Specifically, we first propose an information theory inspired loss function to ensure the disentangled class-relevant features contain sufficient class label information and the other disentangled auxiliary feature has sufficient domain information. We further propose a paired purification loss function to let the auxiliary feature discard all the class-relevant information and thus the class-relevant feature will contain sufficient and compact (necessary) class-relevant information. Moreover, instead of using multiple encoders, we propose to use a learnable binary mask as our disentangler to make the disentanglement more efficient and make the disentangled features complementary to each other. We conduct extensive experiments on five widely used DG benchmark datasets including PACS, VLCS, OfficeHome, TerraIncognita, and DomainNet. The proposed INSURE achieves state-of-the-art performance. We also empirically show that domain-specific class-relevant features are beneficial for domain generalization. The code is available at https://github.com/yuxi120407/INSURE .
BibTeX
@article{yu2024insure,
  author = {Xi Yu and Huan-Hsin Tseng and Shinjae Yoo and Haibin Ling and Yuewei Lin},
  title = {{INSURE: An Information Theory iNspired diSentanglement and pURification modEl for Domain Generalization}},
  journal = {IEEE Trans. Image Process.},
  year = {2024},
  doi = {10.1109/tip.2024.3404241},
}
Figure