---
title: Surrogacy Falsification Test
url: https://www.emergentmind.com/topics/surrogacy-falsification-test
type: topic
---

# Surrogacy Falsification Test

A surrogacy falsification test is a statistical methodology designed to empirically test the validity of surrogate outcomes—such as those generated by large language models (LLMs)—in place of human outcomes, specifically in the context of A/B testing and causal inference. The framework provides rigorous diagnostics for determining whether causal effects estimated from surrogate outcomes can be transported to the human population of interest, and, crucially, whether such surrogacy can be empirically falsified with historical experimental data. The methodology adapts surrogate endpoint theory from biostatistics to the causal inference setting, with extensions to the practicalities of LLM-based evaluation [2606.17165].

## 1. Conceptual Foundations

The surrogacy falsification framework formalizes the conditions under which surrogate endpoints—especially LLM-generated outcomes—can be reliably substituted for human outcomes in the identification and estimation of average treatment effects (ATE). It operates in settings with two populations: a calibration population ($P=0$), where both human and surrogate outcomes are observed in randomized experiments, and an “artificial” LLM population ($P=1$), where only surrogate outcomes are available.

The central constructs are:
- **Calibration function** $\mu(x, y^*) = \mathbb E[Y \mid X=x, Y^*=y^*, P=0]$, mapping covariates $X$ and surrogate outcome $Y^*$ to the expected human outcome $Y$.
- **Surrogacy (Assumption S):** Human outcome $Y$ is independent of treatment $W$ given covariates $X$ and surrogate $Y^*$ in the calibration population, i.e., $Y \perp W \mid X, Y^*, P = 0$.
- **Comparability (Assumption C):** Conditional law of $Y$ given $(X, Y^*)$ is the same in calibration and LLM populations: $Y \perp P \mid X, Y^*$, with requisite support-overlap in $(X, Y^*)$.

If both S and C hold, the ATE can be transported via the calibration mapping: $\tau = \mathbb E[\mu(X, Y^*) \mid P=1, W=1] - \mathbb E[\mu(X, Y^*) \mid P=1, W=0]$.

## 2. Diagnostic Test for Surrogacy

The surrogacy falsification test operationalizes the Prentice criterion by statistically evaluating, in the calibration sample ($P=0$), whether the residualized human outcome $Y - \hat\mu(X, Y^*)$ is uncorrelated with treatment $W$ in each treatment arm. This forms the basis of an arm-wise moment test:

- For $w \in \{0, 1\}$, test the null hypothesis $H_{0,w}: \mathbb E[Y_i - \hat\mu(X_i, Y^*_i) \mid W_i = w] = 0$.
- $\hat\mu$ is estimated by cross-fitting: split the data into $K$ folds; in each, fit $\hat\mu$ on $K-1$ folds, predict residuals on holdout, and aggregate by arm.

A large deviation of the sample mean residual $\bar r_w$ from zero, relative to its standard error, leads to rejection of surrogacy in arm $w$. Rejection in either arm is a falsification of surrogacy for those historical treatments.

### Pseudocode Implementation

```python
# Inputs: Data = {(W_i,X_i,Y_i,Y^*_i)}_{i=1}^n, alpha, K
split_indices = split_data_into_K_folds(n, K)
residuals_0, residuals_1 = [], []
for k in 1..K:
    TrainSet = Data \ split_indices[k]
    Holdout = Data ∩ split_indices[k]
    mu_hat = fit_regression(TrainSet)  # E.g., random forest or GBT
    for (W, X, Y, Y_star) in Holdout:
        r = Y - mu_hat(X, Y_star)
        if W == 0:
            residuals_0.append(r)
        else:
            residuals_1.append(r)
for w, res in { (0, residuals_0), (1, residuals_1) }:
    n_w = len(res)
    r_bar = np.mean(res)
    se_w = np.std(res) / np.sqrt(n_w)
    z_w = r_bar / se_w
    p_w = 2 * (1 - stats.norm.cdf(abs(z_w)))
    if p_w < alpha:
        print(f"Reject surrogacy in arm {w} (p = {p_w})")
    else:
        print(f"Cannot reject surrogacy in arm {w} (p = {p_w})")
```
If surrogacy is rejected in any arm, the application of surrogate-based inference for those past interventions is empirically falsified [2606.17165].

## 3. Bias Bound under Limited Overlap

When the comparability (support-overlap in $(X, Y^*)$) condition is violated, a worst-case bound on the bias in the estimated ATE transported from the LLM surrogate to the human target is available. Define $Z = (X, Y^*)$, and for $p, w \in \{0,1\}$, let $q_{p,w}(z)$ be the density of $Z$ in cell $(p, w)$. The total-variation distance in arm $w$ is $\mathrm{TV}_w = \frac{1}{2} \int |q_{1,w}(z) - q_{0,w}(z)| dz$.

Given bounded outcomes $|Y| \leq B$, the difference between the human ATE ($\Delta_0$) and the surrogate-based ATE ($\Delta_1$) is tightly bounded:
\[
\left| \Delta_1 - \Delta_0 \right| \leq 2B \left( \mathrm{TV}_0 + \mathrm{TV}_1 \right)
\]
In practical terms, a high degree of support overlap is necessary for the calibration to have a small worst-case bias. The total-variation distances can be estimated via density-ratio techniques or two-sample classifiers.

## 4. Regularity and Validity Conditions

Validity of the moment-based falsification test and the bias bound require standard regularity conditions:
- **Cross-fitting**: Residuals used in the test are approximately independent of the estimated calibration function $\hat\mu$, avoiding overfitting-induced correlation.
- **Sample size**: Each treatment arm should have at least 200 samples to reliably invoke the central limit theorem; for smaller samples, t-tests with bootstrapped standard errors are recommended.
- **Bounded outcomes**: For the bias bound, $Y$ must be bounded, which is often achieved by construction (e.g., click rates in $[0,1]$).
- **Support overlap**: Nonzero support for $Z=(X, Y^*)$ in each (p, w) cell is required; otherwise the bias bound defaults to the trivial maximum.
- **Covariate comparability**: Distributions of $X$ and the noise properties of $Y^*$ must be similar in calibration and LLM samples to avoid inflation of the bias bound; this is checked empirically via diagnostic plots (e.g., propensity scores, residual distributions, and normal-qq plots).

## 5. Practical Recommendations for Implementation

Several methodological choices strongly influence the power and robustness of the surrogacy falsification test:
- **Calibration Estimator:** Employ flexible machine learning models (random forests, gradient-boosted trees) for the calibration function $\mu(x, y^*)$ when $n \geq 500$; otherwise, use regularized linear or spline regression.
- **Residual Replication:** For stochastic surrogates, average multiple LLM outputs $Y^*$ per unit to reduce surrogate noise and increase test power; $K=5$ to $10$ draws often suffices.
- **Design Variables:** Tune LLM sampling temperature to achieve a balance between surrogate diversity and signal-to-noise ratio.
- **Sample Sizing:** Target at least 200 samples per arm for reliable asymptotic inference; more historical calibration experiments yield increased sensitivity to surrogacy violations.
- **Overlap Enhancement:** If support overlap is inadequate (high $\mathrm{TV}_w$), either expand the calibration sample or restrict inference to subpopulations with acceptable overlap coefficients ($\mathrm{OVL}_w \gtrsim 0.5$).
- **Pilot Experimentation:** Even after a passed falsification test, a small-scale human experiment is recommended for any new intervention due to the inherent untestability of surrogacy for treatments outside observed historical support.

## 6. Limitations and Scope

The surrogacy falsification test provides necessary—but not sufficient—conditions for the use of surrogate outcomes for causal inference. While the methodology can conclusively falsify surrogacy for past interventions using historical experiments, it cannot confirm surrogacy validity for novel treatments. The validity of LLM-based surrogates is thus always at most empirically conditionally supported, never guaranteed for policy-relevant future interventions. Consequently, small-scale human pilots remain indispensable for validation of entirely new interventions, even in cases where the test does not reject surrogacy in historical data [2606.17165].

| Assumption     | Definition                                                               | Empirical Testability         |
|----------------|--------------------------------------------------------------------------|-------------------------------|
| Surrogacy (S)  | $Y \perp W \mid X, Y^*, P=0$                                            | Diagnostic moment test        |
| Comparability (C) | $Y \perp P \mid X, Y^*$ (with support overlap in $(X, Y^*)$)         | Overlap diagnostics, TV bound |

A plausible implication is that stringent ongoing calibration and overlap monitoring are required in any workflow seeking to exploit surrogate-based estimation of human treatment effects.

Source: https://www.emergentmind.com/topics/surrogacy-falsification-test