TL;DR
Large Language Models (LLMs) frequently fail to correctly formulate predictive models in high-stakes settings because they ignore "decision dependency"—the way historical interventions change the data used for training. While newer "frontier" models improve significantly when given explicit methodological guidance, they often exhibit a dangerous "acknowledgment-implementation gap," where their verbal explanations recognize a problem that their generated code fails to fix.
What Problem Does This Paper Address?
When data scientists build models for high-stakes decisions—like identifying children at risk of harm or patients needing intensive care—they face a "problem formulation" challenge. A major hurdle is decision dependency: historical records are often "contaminated" by past decisions. For example, a child who was "screened in" for services might show a lower risk of future harm because they received help, not because they were inherently low-risk.
If an LLM-assisted analyst naively trains a model on this data, the model might mistakenly learn that high-risk individuals who received help are actually low-risk, leading to dangerous "screen-outs" in the future. This paper investigates whether LLMs can recognize this nuance and implement the correct "design fix" (e.g., training only on individuals who did not receive the intervention) without being explicitly told to do so.
Methods
The researchers evaluated 11 LLMs from OpenAI and Anthropic (including futuristic "frontier" versions like GPT-6 Astra and Claude 5.5) across three domains: child welfare, healthcare, and employment.
They tested seven different prompt conditions, ranging from a simple request with no guidance (no_hint) to a full_specification that provided the formal target, assumptions, and estimation procedure. To evaluate the results, they used an LLM judge (Claude Opus 4.8) to score the generated Python code and prose explanations against a multi-dimensional rubric.
Datasets
The study utilized three datasets, modified to reduce the chance of the models simply "remembering" them from their training data:
- Child Welfare: Synthetic records modeled after the Allegheny County Family Screening Tool.
- Healthcare: Synthetic patient-year data based on a well-known study by Obermeyer et al. regarding racial bias in health algorithms.
- Employment (JOBS): Data from the National Supported Work job-training demonstration and PSID comparison groups.
Key Insights and Ideas
- The Acknowledgment-Implementation Gap: This is perhaps the most striking finding. Models often verbally explain that "screening changes what happens next" (acknowledging the dependency) but then proceed to write code that ignores this fact entirely.
- Frontier Models are "Prompt-Sensitive": Newer models are much better at inferring the correct approach if given even a small amount of plain-language context about the intervention. However, without any hint, they still fail the majority of the time in complex domains like healthcare and child welfare.
- Training Data "Leakage" of Concepts: Models performed significantly better on the JOBS dataset even without hints. The authors suspect this is because the JOBS data is a "textbook" example in causal inference literature, which likely featured heavily in the models' training sets.
- The Danger of Misleading Claims: In many cases, models made "assertive" claims that their analysis estimated the intended target, even when their code was fundamentally flawed. This creates a false sense of security for the human analyst.
Key Results
- Failure without Guidance: In the
no_hintcondition, target-aligned implementation was 0% for child welfare and healthcare in the initial model set. Even for the most advanced "frontier" models, it only reached 23% in child welfare and 2% in healthcare. - Success with Specificity: When prompts included the full methodological specification, implementation accuracy jumped to 99–100% across almost all models.
- Prose vs. Code Mismatch: In the frontier extension set (the newest models), 57% of child-welfare responses in the
no_hintcondition verbally acknowledged the problem but failed to address it in the code. - Assumption Reporting: LLMs rarely stated the critical assumptions (like "conditional ignorability") required for their models to be valid, even when they implemented the correct procedure.
Limitations and Future Work
The authors acknowledge several limitations:
- Narrow Scope of Validity: The study focuses only on decision dependency, ignoring other issues like measurement error or proxy outcomes (e.g., using "cost" as a proxy for "health need").
- Synthetic Data: While based on real-world contexts, the use of synthetic data may not fully capture the messiness of real agency records.
- Human-in-the-loop: The study did not measure how these LLM errors actually influence the behavior of human analysts in a real-world workflow.
The paper concludes by proposing validity-centered guidelines, urging analysts to explicitly define the "theoretical estimand" (what they want to predict) and the "empirical estimand" (how to find it in the data) when prompting LLMs for high-stakes tasks.
Summary updated