Fine-Grained Domain Generalization With Feature Structuralization

Wenlong Yu, Dongyue Chen, Qilong Wang, Qinghua Hu

TL;DR

This paper introduces Feature Structuralization (FSDG), a novel approach to fine-grained domain generalization (FGDG) that explicitly disentangles and aligns features into common, specific, and confounding components. By leveraging multi-granularity knowledge, FSDG significantly improves generalization performance on challenging fine-grained datasets, outperforming existing methods.

What Problem Does This Paper Address?

Traditional domain generalization (DG) aims to build models that perform well on unseen data distributions. However, fine-grained domain generalization (FGDG) presents a much harder challenge. Fine-grained tasks involve distinguishing between highly similar categories (e.g., different bird species), where subtle visual differences are crucial. When these models encounter out-of-distribution data, their performance degrades severely because the subtle, discriminative features they learn become vulnerable to shifts in data distribution. Humans, on the other hand, excel at this by leveraging structured, multi-granularity knowledge, understanding both commonalities and specificities across different levels of detail. This paper addresses the gap in current DG methods by proposing a way to mimic this human-like reasoning to improve FGDG.

Methods

The core innovation is Feature Structuralization (FS), a framework that processes features into three distinct components:

  • Commonality: Captures shared visual concepts across categories.
  • Specificity: Encodes features unique to individual categories.
  • Confounding: Represents other, potentially spurious, information.

FS is achieved through a two-step pipeline:

  1. Disentanglement and Decorrelation: Features are disentangled based on channel indices. A decorrelation loss function minimizes mutual information between the three segments, encouraging them to learn distinct information.
  2. Alignment: Three similarity-based losses are used to align common features across granularities and ensure specificity features are distinct. A prediction calibration loss further integrates information from coarse to fine granularities.

The proposed Feature Structuralized Domain Generalization (FSDG) model incorporates this FS module. It's designed to work with multiple backbone architectures (CNNs, Transformers, MLPs) and can operate in both dual-backbone and single-backbone settings.

Datasets

The paper evaluates FSDG on three fine-grained domain generalization datasets:

  • CUB-Paintings: Two domains (real bird images vs. painted bird images) with significant domain shifts.
  • CompCars: Two domains of car images, differing in viewpoint and image quality.
  • Birds-31: Three domains of bird images (CUB-200-2011, NABirds, iNaturalist2017), with a focus on 31 fine-grained categories.

Key Insights and Ideas

  • Human-like Reasoning for DG: The paper draws inspiration from cognitive psychology, suggesting that understanding commonalities and specificities is key to robust generalization, a concept often overlooked by traditional DG methods.
  • Feature Disentanglement for Fine-Grained Tasks: Explicitly separating features into common, specific, and confounding parts is crucial for handling the subtle distinctions required in fine-grained recognition.
  • Multi-Granularity Knowledge is Key: Leveraging knowledge from different levels of category hierarchy (e.g., "Mammal" vs. "Equidae" vs. "Zebra") helps in disentangling and aligning features effectively.
  • Commonality is More Impactful for Generalization: The study finds that common features have a greater impact on generalization performance than specific features, highlighting the importance of capturing invariant aspects.
  • Feature Structuralization Enhances Explainability: By organizing features into distinct semantic roles, FSDG offers a more transparent view of what the model is learning.

Key Results

  • State-of-the-Art Performance: FSDG consistently outperforms existing DG methods across all three datasets, achieving an average improvement of 6.2% in FGDG performance.
  • Significant Gains: On CUB-Paintings, FSDG achieved 55.65% accuracy, outperforming the next best method by 6.64%. On CompCars, it reached 32.14%, surpassing others by 3.07%. For Birds-31, FSDG achieved 82.37%, outperforming the second-best by 9.2%.
  • Robustness Across Architectures: FSDG demonstrates strong performance across various backbone architectures, including ResNet, Vision Transformer, and ASMLP.
  • Effectiveness of FS Components: Ablation studies show that each component of the FS framework (commonality alignment, specificity alignment, disentanglement) contributes to improved generalization.
  • Improved Concept Matching: Explainability analysis shows that FSDG significantly increases the explicit concept matching intensity between shared concepts and model channels, particularly in the common feature segment.

Limitations and Future Work

  • Dataset Dependency: The current FS framework relies on pre-defined multi-granularity structures. The authors acknowledge that datasets lacking such explicit structures pose a challenge. Future work could explore automatic discovery of granularity structures.
  • Deeper Analysis of Confounding Segment: While the confounding segment is not explicitly constrained, further investigation into whether constraints on it could further improve performance is suggested.
  • Optimal Transport Integration: The authors propose exploring optimal transport-based training objectives for a deeper understanding of sample similarities and centroid gaps.
  • Automatic Granularity Discovery: Extending the framework to automatically discover granularity structures would broaden its applicability.

Summary updated

BibTeX
@article{yu2024fine,
  author = {Wenlong Yu and Dongyue Chen and Qilong Wang and Qinghua Hu},
  title = {{Fine-Grained Domain Generalization With Feature Structuralization}},
  journal = {IEEE Trans. Multimedia},
  year = {2024},
}
Figure