A model that learns only from experiments
A model fitted to the results of its own decisions reinforces selection effects. Ours learns only from a recorded experiment, and previews first.
AnantCausal, Engineering · · 6 min read
Reviewed by Team Anant
The obvious way to close the loop between decisions and results is to feed every outcome back into the model. It sounds like learning. It is also a reliable way to make a model confidently wrong. This post explains why, with business examples, and what AnantCausal does instead.
Why is it a problem to learn from the results of your own decisions?
Because you did not assign the treatment at random. A person or a rule decided who received it, and that choice is correlated with how the outcome was likely to turn out anyway.
A model fitted to those outcomes cannot separate two things: the effect of the treatment and the effect of the decision rule that picked the recipients. It absorbs both and reports the sum as if it were a fact about the world.
What does selection bias look like in a real business?
Here are three hypothetical cases. Each is a pattern, not a report about a named company.
The sales call
A team phones leads that look warm. Those leads convert more. A model learns that calls cause conversion, and recommends more calls to warm leads, which it had already chosen.
The retention offer
An account manager offers discounts to customers who seem likely to leave. Those customers leave more often than average. A model learns that discounts are followed by churn, and recommends fewer discounts.
The credit limit
A lender raises limits for customers it expects to repay. Those customers repay. A model learns that higher limits cause repayment, and recommends raising limits for the same customers.
In each case the model is not making an arithmetic error. It is faithfully describing data that contains a decision rule. The mistake is treating that description as a causal effect. That is the same mechanism as a confounder, with the person who chose the treatment sitting on the path.
What do we allow a model to learn from?
One kind of evidence: a recorded experiment, read through the experiment analysis, whose split passed the sample ratio check.
A randomized split
Units were placed into treated and comparison groups by a stable hash, not by anyone's judgment, with a fixed <Term id="holdout">holdout</Term>.
A split check
The analysis first tests for <Term id="sample-ratio-mismatch">sample ratio mismatch</Term>. A broken split is reported instead of an effect.
A preview
Learning is a preview by default. Nothing is written until a person applies it.
A new revision
The result becomes a new model revision. Decisions already approved keep resting on the revision they were approved against.
Once per result
Each experiment result is learned from a single time, so retrying cannot count it twice.
Anything else is refused: an observational outcome, a number typed in as if it were experimental, or a result already used.
When does the platform say no?
Three situations, each with a reason it states.
- The outcome has other causes in the model. A rate in a treated arm averages over every other cause of the outcome. It cannot fill a single probability table row, so the platform will not write an approximate one.
- The outcome is not yes or no. Continuous outcomes are read as experiments, but they are not learned from.
- The result has already been learned from, or its split failed.
How does a model that learns this slowly stay useful?
By being scored, not by being fed. Every decision's outcome is compared with the effect and band its approval rested on, through the track record. If the model's predictions keep missing in one direction, that is visible even where the model is not allowed to update itself.
Think of it as two separate jobs. The experiment path changes what the model believes, with care. The track record changes what you believe about the model.
| Learn from everything | Learn from experiments |
|---|---|
| Fast, and looks adaptive | Slower, and each step is reviewable |
| Absorbs the decision rule as if it were nature | Randomization breaks the link to the decision rule |
| Hard to explain why a number changed | Each change is a revision with a source result |
| Confidence grows without new evidence | Confidence grows only with a clean test |
What should a business do instead of auto-learning?
Run small randomized tests where it matters, keep a holdout, and let the model learn from those. For everything else, use the track record to find where the model is weak, and send that to the next experiment.
If you cannot randomize, say so, and keep using the model as a structured argument rather than a learner. A model that is honest about being an argument is more useful than one that quietly trained itself on its own choices.
What this does not tell you
This post describes a design choice and the reasons for it. It does not claim that experiments are always available, cheap or large enough to move a model.
What to do next
Read the closed loop for the whole sequence from assignment to learning. For the vocabulary, the glossary entries for stratified assignment and reconciliation are short.
Frequently asked questions
- Can a causal model learn from outcome data automatically?
- It can, but automatic learning from outcomes of its own decisions bakes in selection effects. Who received the treatment was decided by a person or a rule, so the data reflects that choice. Learning is safe from an experiment, where assignment was random.
- What is selection bias in business decisions?
- It is the distortion that appears when the people who get a treatment are chosen because of traits that also affect the outcome. Sales teams who call warm leads, or support teams who escalate angry customers, create it without meaning to.
- Why preview an update before applying it?
- A preview shows how the model's tables would change before anything is written. It lets a reviewer see whether a single experiment would move the model more than they expect, and apply it as a new revision rather than an edit.
- What happens to decisions already approved when the model changes?
- They keep resting on the revision they were approved against. A new revision does not rewrite an old decision. A reviewer can compare the old and new revisions to see what changed.