Skip to main content
Back

AIT Catches Broken Causal Instruments That Researchers Couldn't Test Before

A new statistical test called AIT lets researchers check whether an instrumental variable is actually valid, even when treatments are continuous and effects vary across individuals.

Pro

  • New AIT test lets researchers check if an instrumental variable is valid using observational data alone.
  • Works for continuous treatments and non-constant treatment effects, unlike prior tests limited to discrete or constant-effect settings.
  • Builds an auxiliary residual variable and checks its independence from the candidate instrument using a kernel-based HSIC test.
  • Detects both exogeneity and exclusion-restriction violations under nonlinearity, with proven asymptotic Type I and II error control.
  • Beats IV-PIM and matches Kitagawa's K-test on synthetic benchmarks; validated on Card, Acemoglu, and Voors economics datasets.
  • Code available at github.com/zhengli0060/AIT_Condition; fails in linear Gaussian settings by design.

Instrumental variables are one of the most widely used tools in causal inference, but there is a long-standing embarrassment at the heart of the method: you usually cannot check whether the instrument you picked is actually valid. A new paper introduces a statistical test that closes part of that gap for the messy, nonlinear settings that show up in real data.

The work, Testability of Instrumental Variables in Additive Nonlinear, Non-Constant Effects Models, proposes the Auxiliary-based Independence Test (AIT). The idea is simple to state: construct a residual variable from the outcome, and check whether it is statistically independent of the candidate instrument. If independence fails, the instrument is invalid.

Why instrumental variables are hard to verify

When you want to estimate the causal effect of a treatment X on an outcome Y and there are hidden confounders U that influence both, ordinary regression is biased. The standard workaround is to find an instrumental variable Z that satisfies three conditions: Z is related to the treatment (relevance), Z is independent of the unmeasured confounders that affect the treatment and outcome (exogeneity), and Z has no direct path to the outcome (exclusion restriction).

The trouble is that exogeneity and the exclusion restriction involve unobserved variables, so you cannot verify them directly from data. A classic test for the IV model is the Durbin-Wu-Hausman test, which given a subset of valid IVs can identify whether other potential candidates are also valid, but it does not guide how to find the initial set of valid IVs. Pearl's instrumental inequality gives a test, but only for discrete treatments. Other approaches assume the treatment effect is constant across the population, which is rarely true for things like drug dosages or income changes.

The auxiliary variable trick

The authors work inside what they call the Additive Nonlinear, Non-Constant Effects (ANINCE) model, where the treatment and outcome are generated by unknown smooth functions plus independent noise. Given a candidate instrument Z, they define an auxiliary variable:

A = Y - h(X)

where h is chosen so that the conditional expectation of A given Z is zero. Under a technical regularity called the completeness condition, h coincides with the true causal function f when Z is a valid instrument. In that case, A collapses to the confounder-driven noise, which by construction is independent of a valid Z. If Z is invalid, an extra term leaks in and the independence breaks.

Two motivating scatter plots make this vivid. In a linear Gaussian world, the auxiliary variable and an invalid Z still look independent, so the test cannot see the violation.

Scatter plot of auxiliary variable versus candidate IV under linear Gaussian model

Add a bit of non-Gaussianity or nonlinearity, and the dependence between A and Z becomes visible, which is exactly what the AIT test exploits.

Scatter plot showing dependence under a nonlinear invalid IV model

What the theory actually says

The paper stakes out a careful map of what is and isn't testable:

  • In a fully linear Gaussian model, the test cannot detect invalid instruments at all. Second-order statistics carry no information about IV validity here.
  • In linear models with at least one non-Gaussian noise term, AIT is necessary and sufficient for detecting violations of exogeneity.
  • In nonlinear models, under a distributional non-degeneracy condition, AIT can catch both exogeneity and exclusion-restriction violations.
  • One blind spot remains: if the direct effect of Z on Y is a linear function of its effect on X, the invalid instrument is fundamentally indistinguishable from a valid one using observational data alone.

How the test is run in practice

The practical algorithm is a two-stage plug-in procedure with sample splitting to avoid overfitting bias:

  1. Split the data into two halves. On the first half, estimate h(X, W) using a control-function IV estimator (or two-stage least squares if you assume constant effects), and estimate the residualized instrument by regressing Z on covariates W with a random forest.
  2. On the second half, compute the auxiliary variable and the residualized Z, then run a block-based Hilbert-Schmidt Independence Criterion (HSIC) test between them.
  3. If the p-value is below the significance threshold, reject Z as a valid instrument.

The authors prove that this test controls Type I error at the nominal level asymptotically and drives Type II error toward zero under fixed alternatives, provided the estimator for h converges at a root-n rate.

Empirical results

On synthetic data across five nonlinear function families and six noise distributions, the misidentification rate for valid IVs stays essentially zero, and invalid-IV misidentification drops below 5 percent at 7,000 samples for most configurations. The one exception is the fully linear Gaussian case, where the invalid-IV misidentification rate sits at 1.00, exactly as the theory predicts.

Compared with Burauel's IV-PIM method for continuous treatments, AIT reports substantially lower error rates across covariate dimensions of 2, 3, and 5. Against Kitagawa's K-test for discrete treatments, AIT is competitive, matching or beating it at 3,000 and 7,000 samples.

The reference implementation is available on GitHub, and the authors validate the method on three published economics studies: Card's schooling-returns analysis (LivedNearCollege as instrument), Acemoglu et al.'s colonial origins work (settler mortality and European settlement in 1900), and Voors et al.'s study of violence and time preference in Burundi (distance and altitude as instruments). In each case, AIT fails to reject the instruments the original authors defended, which is the outcome you want from a sanity check.

Where this fits and where it doesn't

AIT is useful when you are doing observational causal inference with continuous or discrete treatments and you have a candidate instrument you want to stress-test before publishing results. It plugs into existing IV pipelines, needs only observational data, and does not require multiple candidate instruments the way earlier methods like IV-TETRAD or the majority-rule approaches do.

It is not a magic bullet. The test relies on the completeness condition, which is itself generally untestable, and on non-Gaussianity or nonlinearity being present somewhere in the data-generating process. In purely linear Gaussian systems, or when the direct Z-to-Y effect happens to mirror the Z-to-X effect linearly, invalid instruments remain invisible. And like all HSIC-based tests, statistical power depends on kernel and block-size choices that require tuning.