Introduction
Causal inference is a fundamental task in fields ranging from economics to healthcare, where the goal is to estimate the effect of a treatment $T$ on an outcome $Y$. However, real-world observational data is frequently plagued by unobserved confounders—hidden variables that influence both the treatment and the outcome, leading to biased estimates. Instrumental Variables (IVs) provide a powerful mathematical framework to overcome this "confounding bias" by introducing a third variable that affects the treatment but is otherwise independent of the system's noise.
Despite their theoretical appeal, finding valid IVs in practice is notoriously difficult. Traditional methods rely on domain expertise to identify natural experiments, while recent data-driven approaches attempt to select IVs from a pool of candidates. However, these methods fail when no valid IV candidates exist in the observed data. This paper introduces VIV, a novel adversarial variational autoencoder designed to generate valid IVs entirely from latent space, bypassing the need for pre-existing valid candidates.
The Causal Framework and IV Requirements
To understand the contribution of VIV, one must first consider the three stringent conditions a variable $Z$ must satisfy to be a valid instrument:
- Relevance: $Z$ must have a causal impact on the treatment $T$.
- Exclusivity: $Z$ must affect the outcome $Y$ only through its effect on $T$. There can be no direct path from $Z$ to $Y$.
- Exogeneity: $Z$ must be independent of all unobserved confounders $U$ that affect both $T$ and $Y$.
As shown in Figure 1, the causal relationships can be complex. In many scenarios, observed variables (like "River Counts" in the example) might serve as proxies, but they often fail one or more of the IV criteria. VIV addresses this by assuming that the necessary exogenous information exists within the latent space of the observed data $(X, T, Y)$.
Methodology: The VIV Architecture
The core innovation of VIV is the Distribution-Conditioned Adversarial Variational Autoencoder. The architecture maps the three causal rules of IVs directly into a deep generative model by combining a Variational Autoencoder (VAE) with a Generative Adversarial Network (GAN).
Structural Constraints via VAE
The VAE component is responsible for enforcing the Relevance and Exclusivity conditions. The authors map the causal graph to a Bayesian network and derive a custom Evidence Lower Bound (ELBO) to guide the learning process.
- Relevance is ensured by the generative network (decoder), where the treatment $T$ is reconstructed directly from the latent IV $Z$.
- Exclusivity is enforced through a structural bottleneck in the inference network (encoder). While the outcome $Y$ is used to infer other latent factors (confounders $C$, adjustment variables $A$, and unobserved confounders $U$), it is explicitly excluded from the path used to infer $Z$. This architectural choice ensures that $Z$ captures no direct information about $Y$.
Adversarial Disentanglement for Exogeneity
The most challenging condition to satisfy is Exogeneity—ensuring $Z$ is independent of $U$. VIV achieves this through an adversarial game.
As illustrated in Figure 3, the model employs a discriminator $D_\phi$ and a "permutation trick." The inference network acts as a generator, producing latent factors. To minimize the Total Correlation (TC) between these factors, the model creates a "permuted" batch by shuffling the latent variables across different samples. The discriminator is trained to distinguish the true joint distribution from this permuted marginal distribution. By successfully fooling the discriminator, the encoder is forced to produce mutually independent latent factors, thereby guaranteeing that the generated $Z$ is exogenous to $U$.
Experimental Evaluation
The authors evaluated VIV against several state-of-the-art baselines, including AutoIV and various weighting methods, across two primary datasets:
- Demands (Simulated): This dataset simulates airline ticket pricing where demand is influenced by observed (seasonality) and unobserved (unplanned events) confounders. VIV achieved an in-sample Mean Squared Error (MSE) of 0.17 when paired with a DeepIV backbone, significantly outperforming AutoIV (0.20) and approaching the performance of the "True IV" (0.10).
- Twins (Real-World Adapted): Based on twin birth data in the US, this benchmark tests the model's ability to handle discrete variables. VIV demonstrated superior stability and accuracy, with an average MSE of 0.27, compared to 3.18 for AutoIV, which struggled with the lack of valid candidates in the feature pool.
To ensure robustness, the generated IVs were tested across nine different IV regression backbones, including 2SLS, KernelIV, and AGMM. In all cases, VIV consistently provided the most reliable instruments for downstream causal estimation.
Conclusion
VIV represents a significant step forward in automated causal inference. By moving beyond the selection of observed features and instead generating instruments from latent space, it provides a solution for datasets where valid IVs are entirely absent. The integration of causal structural constraints with adversarial disentanglement offers a principled way to "bake" domain-agnostic causal rules into deep learning architectures. Future work may see these techniques applied to high-dimensional domains like natural language processing and reinforcement learning, where identifying robust causal drivers is essential for building trustworthy AI systems.
Summary updated