Learning treatment effects while treating those in need

Bryan Wilder, Pim Welle

TL;DR

Public service agencies face a moral dilemma: should they give scarce resources to those at the highest risk (targeting), or randomize the allocation to prove the program actually works (learning)? This paper introduces a framework that uses constrained optimization to find the "sweet spot" between these goals, showing that policymakers can often achieve 90% of their targeting goals while still gathering high-quality evidence with only a modest increase in sample size.

What Problem Does This Paper Address?

In fields like social work, housing assistance, and healthcare, resources are limited. To be "fair" and "efficient," agencies often use machine learning risk scores to target individuals with the greatest need (e.g., those most likely to become homeless).

However, there is a catch: predicting risk is not the same as predicting treatment effect. Just because someone is at high risk doesn't mean the intervention will help them more than someone at lower risk. To find the true Average Treatment Effect (ATE), you typically need a Randomized Controlled Trial (RCT). But in an RCT, you must deny resources to some high-risk people and give them to low-risk people for the sake of the "control group."

Policymakers usually view this as an all-or-nothing choice: either do "need-based targeting" (and learn nothing about the program's effectiveness) or run an "RCT" (and ignore immediate need). This paper seeks a middle ground.

Methods

The authors propose an optimal experimental design framework that treats the allocation of resources as a multi-objective optimization problem.

  1. The Objective: Minimize the statistical variance (the "noise") of the ATE estimate. This ensures the evaluation is as precise as possible.
  2. The Constraints:
    • Utility: Ensure the expected "need" of those treated stays above a certain threshold.
  3. Budget: Stay within a fixed number of available treatment slots.
  4. Fairness: (Optional) Ensure treatment probabilities are equitable across demographic subgroups.
  5. The Algorithm: They use a dual optimization approach. Instead of solving a massive problem for every person at once, they solve for "dual parameters" (essentially weights for the constraints) on a training set. At "test time," as individuals arrive, the system calculates an individual treatment probability $p(X)$ based on their risk score and these weights.
  6. Non-Adaptivity: Unlike "contextual bandits" (which change as they learn), this method is static. This makes it much easier to deploy in government settings where transparency and consistency are legally or politically required.

Datasets

The authors collaborated with the Allegheny County Department of Human Services (Pennsylvania, USA) to test their methods on two real-world scenarios:

  • Housing Dataset: 9,213 individuals eligible for public housing assistance. The goal was to predict and prevent emergency department visits.
  • Reentry Dataset: 76,052 individuals released from jail. The goal was to predict and prevent jail reentry within one year.

Key Insights and Ideas

  • The "Favorable" Tradeoff: The relationship between learning and targeting is strongly concave. This means that by sacrificing just a tiny bit of targeting accuracy (e.g., moving from 100% to 90% utility), you gain a massive amount of statistical power for evaluation.
  • Better than Regression Discontinuity (RD): Many agencies currently use RD (comparing people just above and below a risk cutoff). The authors show that their optimized randomized designs are 4 to 10 times more sample-efficient than RD.
  • Robustness to Ignorance: You don't need to know the exact variance of the outcomes beforehand. The authors found that a simple "worst-case" assumption (assuming variances are bounded) performs nearly as well as having perfect, unattainable knowledge of the data.
  • Fairness is "Cheap": In their datasets, imposing fairness constraints (ensuring Black and White individuals with similar needs have similar treatment chances) resulted in only a "nominal cost" to the precision of the treatment effect estimate.

Key Results

  • The 90% Benchmark: Across both datasets, the optimized policies could achieve 90% of the maximum possible targeting utility while requiring less than 2x the sample size of a gold-standard RCT to detect a treatment effect.
  • Heuristics Fall Short: Simple ways of "softening" a cutoff (like using a Softmax function on risk scores) are inconsistent. Systematic optimization consistently outperformed these common heuristics.
  • Policy Visualization: The optimal policies follow an intuitive S-curve. They prioritize the highest-risk individuals with near-certainty but introduce "strategic randomness" for those in the middle of the risk distribution to satisfy the needs of the statistical evaluation.

Limitations and Future Work

  • Proxy Outcomes: The framework assumes the "utility function" (the risk score) is what the policymaker truly wants to target. If the risk score itself is biased or captures the wrong outcome, the "utility" being preserved is flawed.
  • Non-Adaptive Nature: While being non-adaptive makes the system easier to implement, it means the system doesn't "get smarter" as data rolls in. Future work could explore "safe" ways to update the dual parameters over time.
  • Heterogeneous Effects: The primary focus is on the Average Treatment Effect. While they show the method can be adapted for subgroups, optimizing for highly personalized treatment effects (Conditional Average Treatment Effects) remains a more complex challenge.

Summary updated

BibTeX
@inproceedings{wilder2025learning,
  author = {Bryan Wilder and Pim Welle},
  title = {{Learning treatment effects while treating those in need}},
  booktitle = {EC},
  year = {2025},
  doi = {10.1145/3736252.3742570},
}
Figure