Structure-agnostic Causal Representation Learning

Arman Behnam, Binghui Wang

TL;DR

SaCRL (Structure-agnostic Causal Representation Learning) is a new framework that jointly discovers the underlying causal structure of data and learns robust representations without requiring a pre-specified causal graph. By formulating structure selection as a soft optimization over candidate invariances, SaCRL automatically identifies the correct causal mechanism, leading to state-of-the-art out-of-distribution (OOD) generalization across synthetic and real-world benchmarks.

What Problem Does This Paper Address?

Building machine learning models that generalize to new, unseen environments is a core challenge in AI. Causal Representation Learning (CRL) offers a solution by attempting to uncover the stable mechanisms that generate data. However, existing CRL methods face a "trilemma":

  1. Structure-based methods require researchers to provide the exact causal graph (DAG) upfront, which is often impossible for complex real-world data.
  2. Distribution-invariant methods (like Invariant Risk Minimization) assume a single, fixed type of invariance. If this assumption is wrong, the model discards useful predictive information.
  3. Causal discovery methods can find the structure but usually decouple it from learning the representation, preventing end-to-end optimization.

As illustrated in the clinical example in Figure 1, different variables follow different causal patterns—symptoms are anti-causal (disease causes symptoms), while biomarkers might be confounded. Forcing a single invariance across all these variables leads to suboptimal performance.

Figure 1: Clinical toy example.

Methods

The authors introduce SaCRL, a kernel-based framework that treats causal structure as a learnable component.

  • Canonical Causal Motifs: SaCRL considers three fundamental causal structures: anti-causal ($G_1$), confounded-descendant ($G_2$), and confounded-outcome ($G_3$). These are shown in Figure 3.
  • HSIC Violation Metrics: To determine which structure fits, the model uses the Hilbert-Schmidt Independence Criterion (HSIC). It measures how much a learned representation violates the specific independence constraints required by each of the three structures.
  • SoftMin Optimization: Instead of picking one structure at the start, SaCRL uses a "SoftMin" objective. This differentiable operator aggregates the violation metrics, allowing the model to jointly optimize for both predictive accuracy and the "easiest to satisfy" invariance.
  • Adaptive Weighting: During training, adaptive weights ($\alpha_k$) automatically concentrate on the structure that can be satisfied without sacrificing prediction.
  • Scalability: To handle large datasets, the authors use Random Fourier Features (RFF) to approximate the HSIC, reducing the computational complexity from $O(n^2)$ to $O(nD)$.
Figure 3: The three canonical causal structures considered by SaCRL: (a) anti-causal, (b) confounded-descendant, and (c) confounded-outcome.

Datasets

The authors evaluated SaCRL on a diverse set of benchmarks:

  • Synthetic Data: Generated specifically to follow $G_1, G_2,$ and $G_3$ structures to test identification accuracy.
  • Semi-synthetic Bayesian Networks: Five benchmarks derived from well-known networks in the literature: ASIA, SACHS, and ALARM.
  • Colored MNIST: A standard OOD benchmark where color is a spurious, environment-dependent correlation.
  • DomainBed Benchmarks: Three large-scale image datasets for domain generalization: PACS (Photos, Art, Cartoons, Sketches), VLCS, and OfficeHome.

Key Insights and Ideas

  • The Asymmetry of Invariance: The "aha!" moment of the paper is the realization that under the true causal structure, the corresponding invariance is achievable by a predictive representation. Under the wrong structure, satisfying the invariance forces the model to discard predictive signals. This asymmetry allows the optimization process to "discover" the correct graph.
  • Structure-Agnosticism as Robustness: Figure 2 demonstrates the danger of misspecification. If the true structure is a confounded-descendant but you apply an anti-causal regularizer, OOD performance tanks. SaCRL avoids this by letting the data dictate the regularizer.
  • Heterogeneous Learning: The framework can be extended to assign different causal structures to different feature subsets (per-feature assignment), which is crucial for complex data like medical records.
Figure 2: Comparison showing how misspecifying the causal structure leads to poor OOD performance, while SaCRL's agnostic approach remains robust.

Key Results

  • Accurate Identification: SaCRL recovers the true causal structure with over 95% accuracy on synthetic benchmarks as sample sizes increase.
  • Colored MNIST Breakthrough: On the anti-correlated test set, SaCRL achieved 45.2% accuracy, outperforming ERM (27.2%) and significantly beating IRM (21.3%), which failed because it enforced the wrong (causal) invariance on an anti-causal task.
  • State-of-the-Art on DomainBed: SaCRL achieved the best average OOD accuracy across all three benchmarks, with notable improvements of +2.1pp on PACS, +4.2pp on VLCS, and +3.1pp on OfficeHome over standard baselines.
  • Graceful Degradation: In "stress tests" where the data followed a bidirectional feedback loop (not fitting any of the three canonical models), SaCRL acted as a soft model average, still exceeding ERM by 12.7pp.

Limitations and Future Work

  • Environment Diversity: The theoretical guarantees require at least $m \ge 3$ environments to reliably distinguish between structures. With only two environments, identification becomes unstable.
  • Structural Scope: The current framework focuses on three canonical DAG structures. It does not yet account for cyclic systems or settings where the environment directly rewires the relationship between features and labels.
  • Future Directions: The authors suggest extending the candidate set to include dynamic, feedback-coupled structures, which would be particularly useful for modeling long-term Human-AI interactions.

Summary updated

BibTeX
@inproceedings{behnam2026structure,
  author = {Arman Behnam and Binghui Wang},
  title = {{Structure-agnostic Causal Representation Learning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=8gtLRyYY45},
}
Figure