Rethinking Domain Generalization: Discriminability and Generalizability

Shaocong Long, Qianyu Zhou, Chenhao Ying, Lizhuang Ma, Yuan Luo · DOI

Abstract

Domain Generalization (DG) aims to train models on source domains that can generalize to unseen target domains. However, existing methods often suffer from a trade-off where seeking domain invariance sacrifices the discriminative power of features. This paper introduces Discriminative Microscopic Distribution Alignment (DMDA), a framework that addresses this by combining selective channel pruning to eliminate spurious correlations with a fine-grained micro-level alignment strategy. DMDA achieves state-of-the-art performance across multiple benchmarks, demonstrating that preserving feature sharpness is as critical as achieving generalizability.

Introduction

A persistent challenge in computer vision is the reliance of models on "spurious correlations"—features like backgrounds that correlate with labels in training data but fail in the real world. For instance, a model might learn to identify a cow primarily by the presence of green grass. Domain Generalization (DG) techniques attempt to mitigate this by learning domain-invariant features.

The authors identify two critical flaws in current DG paradigms:

  1. The Discriminability Gap: Forcing features to be invariant across domains often leads to "spurious domain invariance," where the model discards essential discriminative details to achieve "sameness" across environments.
  2. Coarse Alignment: Standard category-level alignment forces all instances of a class (e.g., "dog") into a single distribution. This is overly restrictive, as it ignores natural intra-class variations (e.g., a "running dog" vs. a "dog's head"), leading to a loss of useful semantic information.

The DMDA Framework

To overcome these limitations, the proposed Discriminative Microscopic Distribution Alignment (DMDA) framework introduces two complementary modules designed to balance discriminability and generalizability.

The DMDA framework balances discriminability via Selective Channel Pruning (SCP) and generalizability via Micro-level Distribution Alignment (MDA).

Selective Channel Pruning (SCP)

The authors observe that spurious correlations often manifest in specific "unstable" neural network channels—those that fire consistently in training domains but are inactive in unseen test domains. The SCP module utilizes an auxiliary classifier to identify and prune these unstable channels. By filtering out noise and background-related signals, SCP forces the model to rely on stable, discriminative features inherent to the object itself.

Micro-level Distribution Alignment (MDA)

Rather than aligning entire categories, MDA operates at a "microscopic" level. It employs Semantics Experts—small sub-networks—to discover latent sub-groups within each class. These fine-grained distributions are then aligned across domains using a minimax game based on mutual information minimization. This approach preserves intra-class diversity while ensuring the underlying "core" features generalize across domains.

Experimental Evaluation

The DMDA framework was evaluated on five major DG benchmarks: PACS, VLCS, OfficeHome, TerraIncognita, and DomainNet.

Key Results

DMDA consistently outperformed existing state-of-the-art (SOTA) methods:

  • PACS: Achieved an average accuracy of 88.1%, notably outperforming previous leaders like IPCL (87.1%) and DANN (83.7%).
  • DomainNet: On this large-scale benchmark, DMDA reached 45.8% average accuracy, a significant jump over the previous SOTA, PCL (43.4%).
  • Hard-to-Transfer Domains: The model showed its greatest strength in "difficult" shifts, such as moving from Photos to Sketches or Cartoons, where traditional alignment methods usually struggle.
  • Visual Proof: t-SNE visualizations in the original study showed that DMDA produced much tighter, more distinct clusters for different classes compared to standard Empirical Risk Minimization (ERM).

Discussion and Conclusion

The success of DMDA highlights the "Inconsistency Principle": there is an inherent tension between generalizability and discriminability. By relaxing the constraints of category-level alignment and directly pruning channels associated with spurious correlations, DMDA provides a more nuanced approach to DG.

While the framework shows strong empirical results, future work could address the computational overhead of training multiple Semantics Experts and explore the application of these micro-level principles to more complex tasks like object detection and semantic segmentation.

Summary updated

BibTeX
@article{long2024rethinking,
  author = {Shaocong Long and Qianyu Zhou and Chenhao Ying and Lizhuang Ma and Yuan Luo},
  title = {{Rethinking Domain Generalization: Discriminability and Generalizability}},
  journal = {IEEE Trans. Circuits Syst. Video Technol.},
  year = {2024},
  doi = {10.1109/tcsvt.2024.3422887},
}
Figure