TL;DR
Running a clinical trial or randomized experiment is often a tug-of-war between gathering clean data and protecting participants from inferior treatments, especially when enrollment is small. This paper shows how to bring Large Language Models (LLMs) into adaptive trial designs—reading messy baseline data like clinical notes and free-text surveys—to smartly steer participant assignments and sharpen final estimates without breaking the strict statistical guarantees that make randomized trials valid.
What Problem Does This Paper Address?
In a traditional randomized experiment, you flip a coin to assign treatments and wait until the end to see what worked. Covariate-adjusted response-adaptive randomization (CARA) tries to do better: as data trickles in stage by stage, it dynamically updates assignment probabilities based on participant traits, aiming to either boost statistical power or steer future participants away from failing treatments.
In practice, CARA hits two walls. First, when early sample sizes are small, interim estimates are noisy, making allocation updates wobbly. Second, modern trials collect rich, messy baseline records—free-text surveys, clinical notes, images—yet CARA algorithms usually rely on a tiny handful of neat, structured variables (like age or education) because fitting complex models mid-trial risks overfitting.
Pretrained LLMs can read unstructured text right out of the box using few-shot prompting (feeding the LLM a few completed examples from earlier in the trial). However, you can't just plug LLM guesses directly into an adaptive trial. Because few-shot prompts sample examples from past participants, the LLM's predictions become correlated across subjects and inject weird, data-dependent randomness, while LLM miscalibration can bias results or steer participants to the wrong arm. The authors ask: how can we harness few-shot LLMs inside an adaptive experiment while keeping the statistics rock-solid?
Methods
Instead of treating LLM outputs as ground-truth outcomes, the authors treat them strictly as auxiliary signals—helpful hints that get tamed through three main steps:
- Resampling-based Aggregation: Before a new participant is assigned a treatment, an LLM predicts their outcome under both treatment and control using structured data plus unstructured text. To smooth out prompt randomness, the system draws multiple sets of past trial participants as few-shot demonstrations (excluding the current person) and averages the LLM's predictions—a trick inspired by classical U-statistics.
- Calibration and Effective Residual Variance: Within participant subgroups (strata), the aggregated LLM signal is centered and linearly calibrated against actual observed outcomes from earlier stages. Instead of updating treatment probabilities using raw outcome variance (standard Neyman allocation), the algorithm uses effective residual variance—the uncertainty left over after the calibrated LLM signal explains what it can.
- Adaptive Allocation & Safe Inference: Those residual variances drive two possible trial goals: Objective I (maximizing statistical precision) or Objective II (minimizing bad participant outcomes, like severe depression, subject to a precision budget). At the end of the trial, the Average Treatment Effect is estimated via an Augmented Inverse-Probability-Weighted (AIPW) estimator with cross-fitting and the exact, design-known assignment probabilities.
Datasets
Because evaluating adaptive trials requires knowing counterfactuals (what would have happened if a patient got the other treatment) across repeated runs, the authors evaluate their method on two synthetic superpopulations:
- BRIGHTEN-Calibrated Synthetic Dataset: A superpopulation of 20,000 subjects calibrated to the real-world BRIGHTEN study—a remote smartphone trial for depression management comparing problem-solving therapy apps, featuring structured demographics, two baseline free-text survey responses, and PHQ-9 depression scores.
- Independent Structured Clinical Superpopulation: An independently generated clinical dataset (detailed in their appendices) whose outcomes were generated completely free of any LLM components, used to verify unbiasedness and confidence interval coverage.
Key Insights and Ideas
- Known propensities act as a statistical safety net: Because treatment assignment probabilities are computed before randomization and recorded, final inference remains asymptotically valid even if the LLM hallucinates or produces pure noise. Bad LLM signals only hurt efficiency, not validity.
- Calibration automatically flips backwards signals: If an LLM gets the direction of an effect completely backwards, linear calibration learns a negative slope ($\omega < 0$), theoretically salvaging the predictive signal—though estimating that slope in small finite samples still carries a cost.
- Precision "slack" buys participant welfare: Under the welfare objective, you set a cap on how much statistical variance you tolerate. Because calibrated LLM signals shrink that variance, they create "precision slack." The optimizer immediately spends that slack to route more participants toward the safer treatment arm.
- Asymmetry drives allocation shifts: If an LLM reduces uncertainty equally well in both treatment and control arms, it boosts estimation precision, not allocation efficiency. Adaptive allocation gains specifically kick in when the LLM reduces residual uncertainty asymmetrically between arms.
Key Results
Using Qwen3-8B across 300 simulated trials of $N = 2,000$ participants on the BRIGHTEN setup:
- Efficiency Gains (Objective I): Few-shot LLM prompting achieved the largest population-oracle variance reduction among learned methods at 7.26% (relative to standard AIPW with classical Neyman allocation), edging out zero-shot LLM prompting (6.73%), non-LLM text baselines like TF-IDF + Random Forest/Ridge (6.23%–6.58%), and structured demographics alone (0.60%).
- Welfare Gains (Objective II): Across all participant strata, the design reduced severe adverse depression events (PHQ-9 $\ge 15$) relative to a baseline ethical design by 1.82% via design re-optimization (Layer 2) and an additional 0.94% from few-shot prompting over zero-shot (Layer 3), reaching up to 4.4% and 5.1% reductions in individual strata.
- Model Swap & Coverage: On the independent clinical dataset, absolute bias stayed $\le 0.065$ with 94%–96% confidence interval coverage; swapping Qwen3-8B for GPT-5-mini yielded 14.80% and 14.47% oracle efficiency gains, respectively, with ~96% coverage.
Limitations and Future Work
The method's real-world gains hinge on finite-sample stability. In small samples or sparse subgroups, noisy outcomes, prompt sensitivity, query costs, or spurious LLM correlations can degrade finite-sample efficiency (for instance, pure-noise or weak signals led to ~3% to 6% losses in realized finite-sample efficiency due to estimation overhead). While the authors introduce an optional validation-gated screening safeguard to zero out unhelpful signals, they note that future work must sharpen protections against subgroup miscalibration and test the framework in live prospective trials where participant outcomes are delayed.
Summary updated