Task-specific experimental design for treatment effect estimation

Bethany Connolly, Kim Moore, Tobias Schwedes, Alexander Adam, Gary Willis, Ilya Feige, Christopher Frye

TL;DR

Standard Randomized Controlled Trials (RCTs) are the gold standard for causal inference but are notoriously expensive and data-hungry. This paper introduces a novel approach to experimental design that uses Thompson sampling and latent space discretization to tailor data collection to specific downstream goals—like maximizing marketing ROI or clinical trial accuracy—allowing researchers to match RCT performance with up to ten times less data.

What Problem Does This Paper Address?

In the world of AI and causal inference, the "fundamental challenge" is that we can never observe counterfactuals: we can't know what would have happened to a specific patient if they hadn't taken a drug they actually took. To estimate treatment effects, we usually rely on large-scale RCTs, which assign treatments randomly to ensure groups are comparable.

However, RCTs are often inefficient. They sample the population broadly, even if the "downstream task" (the actual reason we are doing the study) only cares about a specific sub-group or a specific metric. Existing "Active Learning" (AL) techniques—which try to pick the most informative data points—are usually designed for supervised learning (predicting labels) rather than causal modeling (predicting the difference between two outcomes). This paper fills that gap by creating an experimental design framework that is "task-aware."

Methods

The authors propose a four-step iterative loop based on Thompson Sampling, framing experimental design as a multi-armed bandit problem where each "arm" is a specific combination of individual features and treatment assignments.

Proposed experimental design pipeline
  1. Latent Space Discretization: To handle complex, high-dimensional real-world data, they use a Variational Autoencoder (VAE) to map features into a smooth, low-dimensional latent space. They then overlay a rectangular grid on this space to create discrete "bins" of similar individuals.
  2. Analytic Task Formulas: The core innovation is the derivation of specific reward functions ($f^R_\alpha$) for different metrics. Instead of just looking for "uncertain" points, the algorithm looks for points that will most improve a specific target metric, such as:
  3. MSE: Mean Squared Error of the uplift model.
  4. Squared ATE Error: Accuracy of the Average Treatment Effect.
  5. AUQ (Area Under the Qini Curve): A standard metric for targeted marketing that measures how well a model identifies individuals who respond best to an intervention.
  6. Thompson Sampling Loop: The algorithm draws a sample from the current belief (posterior), selects the grid cell and treatment that maximizes the expected task reward, observes the outcome, and updates its belief.

Datasets

The researchers validated their approach across synthetic data and four major real-world datasets:

  • STROKE: A clinical trial dataset (9k rows) evaluating the effect of aspirin on stroke patients.
  • CRITEOVISIT & CRITEOCONVERSION: Massive marketing datasets (~7M rows) evaluating email campaign effectiveness.
  • RETAILHERO: A marketing trial dataset (~200k rows) involving customer purchase history and engineered features.

Key Insights and Ideas

Sample frequency distributions for different task-specific designs
  • No "One Size Fits All": A sampling strategy that is great for estimating the Average Treatment Effect (ATE) is often terrible for targeted marketing (AUQ). As shown in the sample frequency distributions above, experimental design must be matched to the specific goal; different metrics demand entirely different sampling behaviors compared to a standard RCT.
  • The Power of Latent Space: Discretizing data in a VAE's latent space is significantly more effective than doing so in raw feature space. The latent space provides a "smooth" representation that helps the model generalize across similar individuals.
  • Uniform Latent Sampling is a "Sleeper" Hit: Surprisingly, simply sampling uniformly across the VAE latent space (ignoring the specific task) is a remarkably strong baseline for marketing tasks, outperforming standard RCTs and even some complex active learning methods.
  • Scalability: Unlike many state-of-the-art sampling methods (like Recursive GSW) that struggle with millions of rows, this method's complexity scales with the number of grid cells, making it feasible for massive industrial datasets.

Key Results

  • Order-of-Magnitude Efficiency: On targeted marketing tasks (AUQ), the proposed method required 10x less data to achieve the same performance as a standard RCT.
  • Superiority over Benchmarks: The task-specific samplers consistently outperformed other sophisticated methods like Leverage Scoring and uncertainty-based active learning across almost all datasets and sample sizes.
  • Robustness: The method proved insensitive to the choice of latent dimensionality and the specific "batch size" used for updates, making it practical for real-world deployment where data is collected in chunks.

Limitations and Future Work

  • Manual Derivations: Currently, the reward function for each new metric must be derived analytically "by hand." The authors suggest that future work could explore data-driven ways to automate this for any arbitrary metric.
  • Bandit Strategies: While Thompson sampling was used here, other strategies like Upper Confidence Bound (UCB) could be explored as the "backbone" of the selection process.
  • High-Dimensional Latent Spaces: While 2D latent spaces worked well for these datasets, higher-dimensional spaces might require more sophisticated grid management or tuning.

Summary updated

BibTeX
@inproceedings{connolly2023task,
  author = {Bethany Connolly and Kim Moore and Tobias Schwedes and Alexander Adam and Gary Willis and Ilya Feige and Christopher Frye},
  title = {{Task-specific experimental design for treatment effect estimation}},
  booktitle = {International Conference on Machine Learning},
  year = {2023},
  url = {https://openreview.net/forum?id=jawDXfCldp},
}
Figure