Every month an AI study lands with a number attached to it: developers finish tasks 55.8 percent faster with a coding assistant, support agents resolve 14 percent more tickets after their company rolls one out, hiring tools supposedly filter out entire demographics. Those numbers describe real experiments or real data. What they describe, and what they are allowed to prove, are two different questions. The field that keeps them apart is called causal inference, and it is quietly becoming the difference between an AI claim that survives scrutiny and one that does not.
The one thing you can never observe
Suppose a company gives half of its support team an AI assistant. Agent A, who got the assistant, closes 42 chats on Tuesday. The honest comparison for that one agent is not her coworker. It is Agent A herself on the same Tuesday, with the same tickets, without the assistant. That second fact does not exist. No dataset can contain it.
This is what statisticians call the fundamental problem of causal inference. Jerzy Neyman's 1923 paper on agricultural experiments, translated into English in 1990, set the structure exactly: each plot of land has a potential yield for every seed variety, but only one variety can be grown on any given plot, so the yield you did not observe is permanently missing. Donald Rubin carried the same "potential outcomes" logic into medicine, education, and every other field in 1974, and it is still the default language of the discipline. The individual effect of a treatment on one person is unknowable. An average effect across a population can be measured, but only if the comparison is constructed correctly.
That single constraint explains most of the bad numbers you see about AI.
The coin flip solution
Random assignment beats the problem rather than solving it. If treatment is assigned by chance, then on average the treated and untreated groups are identical in every way except the treatment itself. The difference between their outcomes is the causal effect, no modeling required.
When researchers study AI honestly, they reach for this. A 2023 Microsoft-affiliated paper on GitHub Copilot ran a controlled experiment: recruited developers implemented a small HTTP server in JavaScript as quickly as they could, with or without access to the assistant. The group with the tool finished 55.8 percent faster. Because the assignment was controlled, the comparison has a causal reading, at least for that task, with that population, in a lab hour.
The caveat is equally standard. Randomized trials are expensive, slow, sometimes unethical (you cannot randomly deny a whole labor market access to a technology), and narrow. A timed HTTP server is not a software job, which is why the same 55.8 percent figure gets cited far beyond what the design supports. Researchers increasingly try to combine trials with larger observational data to broaden who the results apply to, and a 2020 Google-led review of that literature is blunt about the trade: experiments isolate cause but may not represent the population; big observational samples represent populations but conflate the treatment with whatever else co-occurs with it.

When you cannot randomize, find a trick
Most real evidence about AI at work is observational, so the credible studies engineer an as-if experiment instead. Three classic moves show up repeatedly.
Propensity scores. If companies adopt AI tools because they are already more productive, comparing adopters to non-adopters just measures the difference between eager companies. Paul Rosenbaum and Donald Rubin showed in 1983 that you can summarize every observed difference between two groups into one number, the probability of receiving treatment given the covariates, and then compare units with similar scores. The adjustment can only remove bias from what you measured. The unmeasured stuff, like management quality or local demand, is exactly what tends to bite.
Difference-in-differences. Compare the change over time in a treated group to the change over time in a nearly identical untreated group. David Card and Alan Krueger's 1994 study of the New Jersey minimum wage is the textbook example: the wage floor jumped from $4.25 to $5.05 on April 1, 1992, in New Jersey but not across the border in Pennsylvania, and a survey of 410 fast-food restaurants found employment in New Jersey actually grew by about 13 percent relative to Pennsylvania. Whatever was trending in the industry hit both states; the differential is attributed to the policy.
Natural experiments from rollout schedules. When Brynjolfsson, Li and Raymond measured a generative AI assistant inside a Fortune 500 software company, nobody flipped a coin. The tool was introduced in stages to roughly 5,179 support agents between 2020 and 2021, and agents who had not yet received it served as the comparison while the researchers controlled for skill and tenure. Their estimate: 14 percent more issues resolved per hour on average, about 34 percent for novice and low-skill workers, and close to nothing for the most experienced. The staggered design is why that paper, later published in the Quarterly Journal of Economics, is treated as evidence at all, while the thousands of survey-based "we use AI at work" statistics mostly are not.
The other half of the field: draw what you believe
Judea Pearl's alternative formalism makes the same problem visible in a different way. You draw a directed graph: causes as arrows, variables as nodes. Pearl's key move is an operator, written do(x), that separates two sentences the word "effect" smuggles past each other. "Probability of recovery given that we saw the patient take the drug" is an observation. "Probability of recovery if we made the patient take the drug" is an intervention. Conditioning can open spurious paths. Forcing a variable cuts the incoming arrows. Once the graph is explicit, mechanical rules (the do-calculus) tell you which set of variables must be adjusted for to identify a causal effect, and which adjustments, especially conditioning on a common effect of two causes, manufacture bias where none existed. Hernán and Robins' free textbook Causal Inference: What If walks through exactly how selection bias and confounding arise this way in real data.

This half of the field is also why Simpson's paradox, where a trend flips when subgroups are aggregated, is a causal warning rather than a party trick. Aggregation can hide the variable that assigns both treatment and outcome.
Why this matters for models, not just papers
Machine learning, by construction, fits patterns in data that was generated by a world, not by an experiment. Every training set is a log of correlations. The Schölkopf and colleagues review "Causality for Machine Learning" argues that current deep learning's reliance on independently and identically distributed data is precisely why models fail under distribution shift, and that modeling the causal structure of how data is produced is a route to systems that generalize like understanding rather than like memorization. Tools have started to ship this thinking: Microsoft's open-source DoWhy library wraps effect estimation in a model, identify, estimate, refute workflow whose automated refutation tests hammer an estimate until its assumptions show.
Natural language adds a twist that is directly relevant to LLM-era research. When the treatment is text, a memo's tone or a support script, researchers must first estimate the latent feature from the text, and Egami, Fong, Grimmer, Roberts and Stewart showed in 2018 that estimating a latent text representation on the same data you then test introduces identification problems or overfitting; their fix is a split-sample workflow where the representation is built on one half of the data and used on the other. Veitch, Sridhar and Blei's 2020 line of work adapts embeddings themselves for causal adjustment. The entire literature on text-as-data now has to confront that a language model's embedding of a document is a learned, error-prone measurement of a treatment.
The proxy-label problem is the most consequential failure mode, and the famous one is not about text at all. Obermeyer and colleagues' 2019 Science paper dissected a commercial risk algorithm used on millions of patients: it predicted healthcare costs, not illness, and because unequal access to care means less is spent on Black patients at equal illness, the "accurate" model was racially biased. Swapping the label from cost to a direct health measure raised the share of Black patients flagged for extra help from 17.7 to 46.5 percent. Every AI product that scores applicants, students, or customers by a convenient proxy label carries this same structure, and choosing the right target is a causal judgment, not a modeling one.
Finally, averages lie about who changed. Causal forests, formalized by Wager and Athey in 2018, estimate heterogeneous treatment effects, so you can ask for whom the tool worked rather than whether it worked. The Brynjolfsson result is a heterogeneity result: novices gained 34 percent, experts gained nothing. A headline flattened to 14 percent is a different fact entirely.
Five questions for the next AI study
When a claim about AI arrives, causal inference gives you a checklist instead of a vibe. Was the treatment assigned (by design, by policy, or by the user's own choice)? What is the counterfactual the number quietly assumes: a randomized control group, a not-yet-treated group, or simply last quarter? What outcome was measured, and is it a proxy for the outcome you actually care about? Effect for whom, since averages hide heterogeneity? And what would have happened anyway, since any before-and-after comparison includes time, trends, and hype cycles?
Correlation is cheap. The counterfactual is the hard part. A field built around one missing fact, what would this same person have done without the tool, turns out to be the most useful critic of the AI evidence stream we have.
Sources
- Neyman, "On the Application of Probability Theory to Agricultural Experiments" (Statistical Science, 1990 translation): https://projecteuclid.org/euclid.ss/1177012031
- Rubin (1974), "Estimating Causal Effects of Treatments in Randomized and Nonrandomized Studies": https://eric.ed.gov/?id=EJ118470
- Rosenbaum & Rubin (1983), "The Central Role of the Propensity Score in Observational Studies for Causal Effects": https://doi.org/10.1093/biomet/70.1.41
- Card & Krueger (1994), "Minimum Wages and Employment": https://davidcard.berkeley.edu/papers/njmin-aer.pdf
- Peng et al. (2023), "The Impact of AI on Developer Productivity: Evidence from GitHub Copilot": https://arxiv.org/abs/2302.06590
- Brynjolfsson, Li & Raymond (2023; QJE 2025), "Generative AI at Work": https://www.nber.org/papers/w31161
- Colnet et al. (2020), "Causal Inference Methods for Combining Randomized Trials and Observational Studies: A Review": https://arxiv.org/abs/2011.08047
- Pearl's do-calculus (overview): https://en.wikipedia.org/wiki/Do_calculus
- Hernán & Robins, "Causal Inference: What If": https://www.hsph.harvard.edu/miguel-hernan/causal-inference-book/
- Schölkopf et al. (2021), "Causality for Machine Learning": https://arxiv.org/abs/1911.10500
- Sharma & Kiciman (2020), "DoWhy: An End-to-End Library for Causal Inference": https://arxiv.org/abs/2011.04216
- Egami et al. (2018/2022), "How to Make Causal Inferences Using Texts": https://arxiv.org/abs/1802.02163
- Veitch et al. (2020), "Adapting Text Embeddings for Causal Inference": https://arxiv.org/abs/1905.12741
- Obermeyer et al. (2019), "Dissecting Racial Bias in an Algorithm Used to Manage the Health of Populations": https://pubmed.ncbi.nlm.nih.gov/31649194/
- Wager & Athey (2018), "Estimation and Inference of Heterogeneous Treatment Effects using Random Forests": https://arxiv.org/abs/1510.04342
