Humanoid-inspired Causal Representation Learning for Domain Generalization

Ze Tao, Jian Zhang, Haowei Li, Xianshuai Li, Yifei Peng, Xiyao Liu, Senzhang Wang, Chao Liu, Sheng Ren, Shichao ZhangarXiv 2025 · DOI

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.

Comparison between prior domain generalization methods and the proposed HSCM approach. Prior methods often rely on spurious correlations (e.g., background), whereas HSCM focuses on causal independence.

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.

The Structural Causal Model (SCM) used in HSCM. The do-operator is applied to break the link between confounders (Z) and input images (X), allowing the model to focus on invariant causal factors (C, S, T).

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

BibTeX
@misc{tao2025humanoid,
  author = {Ze Tao and Jian Zhang and Haowei Li and Xianshuai Li and Yifei Peng and Xiyao Liu and Senzhang Wang and Chao Liu and Sheng Ren and Shichao Zhang},
  title = {{Humanoid-inspired Causal Representation Learning for Domain Generalization}},
  year = {2025},
  eprint = {2510.16382},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2510.16382},
}
Figure