Abstract
Domain Generalization (DG) remains a significant challenge for deep learning models, which often rely on spurious correlations rather than invariant causal features. We present the Humanoid-inspired Structural Causal Model (HSCM), a framework that mimics the hierarchical visual processing of the human brain. By disentangling images into fine-grained causal components—color, texture, and shape—and employing adaptive causal interventions via the do-operator, HSCM effectively mitigates the impact of domain-specific confounders. Our experimental results on benchmarks like PACS, Office-Home, and CIFAR-10-C demonstrate that HSCM consistently outperforms state-of-the-art methods, particularly by leveraging the stability of shape features across diverse environments.
Introduction: The Challenge of Shortcut Learning
Standard deep learning models are notorious for "shortcut learning." If a model only sees cows on green grass during training, it might mistakenly learn that "green background = cow." When it later encounters a cow on a beach—an out-of-distribution (OOD) scenario—it fails. This is the core challenge of Domain Generalization (DG).
Existing DG methods often rely on statistical alignment between domains, but they struggle to distinguish between style (spurious correlations like background or lighting) and content (the actual causal features of the object). Current causal DG models are often too coarse, failing when visual discrepancies between the training (source) and testing (target) domains are large.
The HSCM Framework
The authors propose HSCM, which replicates the hierarchical processing of the human brain. The method consists of three main pillars:
1. Fine-grained Feature Disentanglement
Instead of treating an image as a single vector, HSCM uses specialized extractors to pull out three distinct attributes:
- Color: Uses Fast Fourier Transform (FFT) to perturb phase information while keeping pixel colors intact.
- Texture: Uses Gray-Level Co-occurrence Matrix (GLCM) to identify repetitive patterns while filtering out shape.
- Shape: Uses entity segmentation and Grad-CAM to isolate geometric contours, which are the most "stable" causal features.
2. Structural Causal Modeling (SCM)
The paper formalizes a causal graph where "Confounders" (Z) represent domain-specific biases. By applying the do-calculus (causal intervention), the model simulates how an image would look under different environmental conditions, effectively breaking the link between the environment and the object's identity.
3. Adaptive Reweighting Strategy
Not all data transformations are equally useful. HSCM dynamically adjusts the weights of different transformations during training. It prioritizes "challenging" samples that provide high causal information and reduces the weight of samples that lead to spurious edges in the causal graph.
Experimental Evaluation
The framework was evaluated on a comprehensive suite of benchmarks including Digit Datasets (MNIST, SVHN, etc.), CIFAR-10 & CIFAR-10-C, PACS, and Office-Home.
Key Results
HSCM consistently outperformed state-of-the-art (SOTA) methods across all tested benchmarks:
- PACS: Achieved a mean accuracy of 87.74% (ResNet-18), surpassing the previous best (META) by a significant margin.
- Office-Home: Reached 67.79% accuracy, outperforming the CIRL model.
- CIFAR-10-C: Maintained high performance even as corruption severity increased, achieving a 93.01% average across all levels.
- Ablation Studies: Removing any one component (Color, Texture, or the Adaptive Optimization) led to a drop in performance, proving that the synergy of these "humanoid" features is essential for robustness.
Discussion and Insights
- Shape is King: The research confirms that while color and texture degrade significantly under domain shift (e.g., a "sketch" has no color), the shape component remains remarkably stable. HSCM is designed to lean on this stability.
- Mimicking Human Subjectivity: Humans integrate features hierarchically. By forcing the model to process color, texture, and shape separately before aggregating them via a self-attention mechanism, the model aligns closer to human-like perception.
- Causality over Statistics: Rather than just trying to make feature distributions "look similar" across domains (statistical alignment), HSCM attempts to model the generation process itself, asking "What caused this label?"
Limitations and Future Work
While powerful, the authors acknowledge that the current model relies on specific, predefined feature extractors (like GLCM for texture), which might limit its ability to handle highly abstract domains. Furthermore, the multi-stage extraction and adaptive reweighting process adds computational complexity. Future work will focus on refining efficiency and integrating advanced adversarial training to handle extreme outliers and noise.
Summary updated