Causal inference is the "holy grail" of data science—moving beyond simple correlations to understand how changing one thing actually affects another. But what happens when your "cause" is a complex image or a high-dimensional text block? A new paper under review for ICLR 2026 introduces InfoIV, a framework that uses contrastive learning to bridge the gap between deep representation learning and classical causal estimation.
TL;DR
The authors propose InfoIV, a two-phase framework that uses contrastive learning (specifically the InfoNCE loss) to extract causally relevant latent features from high-dimensional treatments like images. By leveraging an "instrumental variable" as a supervision signal, they prove that these learned features can be plugged into standard causal estimators to recover true effects, even in the presence of unobserved confounders.
What Problem Does This Paper Address?
In causal inference, we often want to know the effect of a treatment ($X$) on an outcome ($Y$). However, "unobserved confounders"—hidden factors that influence both $X$ and $Y$—often bias our results.
Instrumental Variable (IV) regression is the classic solution. It relies on an "instrument" ($A$): a variable that affects the treatment but has no direct link to the outcome or the hidden confounders. Think of a lottery for a job training program; the lottery win ($A$) affects participation ($X$), but doesn't directly affect future earnings ($Y$) except through that participation.
The Challenge: Traditional IV methods break down when the treatment $X$ is high-dimensional (e.g., a post-surgery CT scan) but the actual causal driver is a low-dimensional latent factor (e.g., surgical precision). Existing "Deep IV" methods often struggle to scale to images or require complex, parameter-heavy generative models like VAEs.
Methods
The authors introduce InfoIV, which operates in two distinct phases:
-
Phase 1: Representation Learning via Contrastive Loss. Instead of trying to reconstruct the entire image (like an Autoencoder), InfoIV uses contrastive learning. It trains an encoder to maximize the similarity between the learned representation of the treatment ($X$) and its corresponding instrument ($A$).
-
The Secret Sauce: They adapt the InfoNCE loss, a popular objective in self-supervised learning.
- Theoretical Foundation: They ground the work in Independently Modulated Component Analysis (IMCA). Unlike standard Independent Component Analysis (ICA), which requires latent factors to be strictly independent, IMCA allows for more realistic, "weaker" assumptions that are compatible with causal confounding.
-
Phase 2: Causal Estimation. Once the latent features are recovered (even if they are shifted or scaled—an "affine transformation"), the authors prove this is "good enough." These features are then plugged into standard IV tools:
-
2SLS (Two-Stage Least Squares): For general causal effect estimation.
- Control Functions: Specifically for "extrapolation" tasks where we want to predict outcomes for treatment values never seen during training.
Datasets
The paper evaluates InfoIV on two main fronts:
- Synthetic Tabular Data: Used to verify the theory in controlled settings with varying levels of confounding strength.
- dSprites: A standard benchmark for representation learning consisting of 64x64 images of 2D shapes. Here, the "treatment" is the image itself, and the "outcome" is a function of latent factors like shape, scale, and position. This tests the model's ability to extract causal features from raw pixels.
Key Insights and Ideas
- The Instrument as an Anchor: The most clever insight is treating the instrumental variable not just as a statistical tool, but as the "label" for contrastive learning. This forces the encoder to ignore "noise" in the high-dimensional $X$ and focus only on the parts of $X$ that are influenced by the instrument—which are exactly the parts we need for causal inference.
- Identifiability without Reconstruction: Most previous attempts to find latent causal features relied on Variational Autoencoders (VAEs). InfoIV proves you don't need a decoder to reconstruct the input. This makes the model much more efficient and easier to train.
- Indeterminacy is Fine: A major "aha moment" in the proofs is that we don't need to recover the exact latent factors. As long as we recover them up to an invertible linear transformation, the second-stage IV regression will naturally "cancel out" that transformation and find the correct causal effect.
Key Results
- Superiority on Images: On the dSprites image dataset, InfoIV-2SLS outperformed state-of-the-art baselines like DeepGMM and DFIV by orders of magnitude in terms of Mean Squared Error (MSE).
- Robustness to Confounding: In tabular experiments, InfoIV remained stable even as the strength of the hidden confounding increased, whereas naive models (like standard ERM) failed completely.
- OOD Extrapolation: Using the Control Function approach, InfoIV was able to predict outcomes for "unseen" instrument values, performing on par with specialized (but less flexible) methods like REP4EX.
Limitations and Future Work
- The "Noiseless" Assumption: The current mathematical proof assumes that the high-dimensional treatment $X$ is a deterministic function of the latent variables $Z$. In the real world, $X$ might have its own independent noise (e.g., sensor grain on a CT scan). The authors note that relaxing this is a key next step.
- Scaling to Real-World Vision: While dSprites is a great proof-of-concept, it is still a synthetic dataset. Testing InfoIV on complex, "in-the-wild" medical imagery or video data remains for future work.
- Phase 2 Optimization: The authors admit that their second phase (the actual regression) is relatively simple. They suggest that integrating more advanced "Deep IV" techniques into Phase 2 could further boost performance.
Summary updated