Zillow Offers: An Algorithmic Cascading Failure, Read as an ML Post-Mortem
On November 2, 2021, Zillow announced it was winding down Zillow Offers, its home-flipping business. The quarter before, it had bought 9,680 homes and sold 3,032. It wrote down about $304 million of inventory in Q3, guided another $240 to $265 million for Q4, and cut roughly a quarter of the company. Over the year, the segment lost more than $800 million.
Most coverage treated this as a finance story: a company that bought too many houses at the top. That is true, but it skips the part I find more useful. Zillow Offers was an automated decision system. A model produced a number, and that number became a binding cash offer on a real house. Read as a production ML system, the failure has a familiar shape: drift the monitoring could not see in time, labels that arrived months late, a feedback loop between the model's actions and its own inputs, and almost no hard limits between the model and the money.
What the system actually had to predict
The public knows Zillow for the Zestimate, an estimate of what a home is worth today. Zillow Offers needed something harder. The cash offer had to cover what the home would sell for after Zillow bought it, renovated it and listed it, which in practice meant months later:
offer = V̂(t + h) − renovation − holding − selling costs − target margin
realized margin = sale price(t + h) − offer − actual costs
V̂(t + h) is the predicted resale value at horizon h. The Zestimate's accuracy figures, often quoted at around 2% median error for homes on the market, describe today's value. They say nothing about the error at t + h in a market moving several percent per quarter. A small error on a valuation becomes a large error on a margin, because the margin is the thin difference between two big numbers. A 5% miss on a $400,000 home is $20,000, which is more than the whole spread the business was built on.
Data drift and concept drift, in houses
Two different things moved during the pandemic, and they need different responses.
data drift (covariate shift): P_train(x) ≠ P_live(x)
concept drift: P_train(y | x) ≠ P_live(y | x)
Data drift. The inputs left the region the model had seen. Remote work pushed demand toward suburbs and larger homes. Inventory hit record lows, days on market collapsed, and homes routinely sold above list price. Features like sale-to-list ratio and days on market took values that were rare or absent in the training years. A model fitted on 2015 to 2019 was extrapolating, and tree ensembles in particular extrapolate badly: they flatten out at the edge of what they saw.
Concept drift. Worse, the mapping from a house to its price changed. The same three-bedroom house with the same comps was worth more in spring 2021 than the historical relationship said, and then, in the second half of 2021, appreciation slowed sharply in several of Zillow's markets. The direction of the error flipped. A model that had just been recalibrated to chase a hot market was now systematically too high.
The core engineering problem is the label delay. For a pricing model, the true label is the price the house actually sells for. For a house Zillow bought, that label arrives after renovation and resale, months after the decision. Any monitor built on realized error is therefore measuring decisions from a different market. By the time realized margins went negative, the purchases that caused them had already been made, and many more were in the pipeline.
That is why input-side monitoring matters so much for long-horizon models. A population stability index on the key features would have lit up long before the labels did:
PSI = Σ_i (a_i − e_i) · ln(a_i / e_i)
e_i is the share of training data in bin i, a_i the live share. A common rule of thumb treats PSI above 0.25 as a major shift. It does not tell you the model is wrong, only that you are no longer in the world it was validated on, which is exactly the moment to tighten limits.
The loop: when the model's actions become its inputs
Three effects stacked on top of each other.
Winner's curse. An offer is only accepted when the seller thinks it is good, which mostly happens when the model overestimated. Even an unbiased model produces biased purchases:
E[ V̂ − V ] ≈ 0 over all homes the model prices
E[ V̂ − V | offer accepted ] > 0 over the homes it actually buys
The more aggressive the offers, the stronger the selection: the accepted set fills up with the homes the model got most wrong in the expensive direction.
Volume pressure. Zillow had told investors it wanted to buy 5,000 homes a month within a few years, and competitors Opendoor and Offerpad were growing fast. Press reports after the shutdown described an internal push in 2021, reportedly called Project Ketchup, that raised offers and limited how much human pricing experts could adjust the model's numbers. Whatever the exact mechanics, the operating target shifted from margin to volume, and the people who acted as a brake had less say.
Reflexivity. In a thin local market, a buyer making thousands of purchases is part of the price signal. Zillow's own closings became comparable sales for the next homes in the same neighborhoods, and recent comps are some of the strongest features in any valuation model. High purchase prices pushed comps up, comps pushed estimates up, and estimates pushed the next offers up. In effect the system was bidding against its own earlier purchases. None of that needs a bug. It is what happens when a model's outputs are allowed to move the distribution of its inputs and nothing measures the size of that effect.
The physical pipeline did not scale with the model
A model can double its output overnight. Contractors cannot. Every purchased home needed inspection, renovation and listing, and in 2021 labor and materials were scarce everywhere. Inventory piled up between "bought" and "sold".
Each house sitting in that queue carried holding costs and, more importantly, more exposure to the price move the model had not predicted. On October 18, Zillow stopped signing new purchase contracts for the rest of the year, citing the renovation backlog. Analyses of its listings at the time found a large share priced below what Zillow had paid. Two weeks later the business was closed.
The guardrails that were missing
The lesson I take is not "do not use models for pricing". It is that a model allowed to commit capital needs a control layer that is deliberately dumber than the model, owned by different people, and impossible for a volume target to switch off.
Offer caps that respect uncertainty. The spread between estimate and offer should grow with the model's uncertainty, and grow further when drift is detected.
Caps against independent signals. The offer should never exceed the median of recent comparable sales by more than a fixed percentage, and those comps should exclude your own transactions.
Exposure and velocity limits. Cap open inventory per zip code and per metro. Cap purchase velocity relative to sell-through, so the business cannot buy faster than it can renovate and resell.
A kill switch on realized outcomes. If the realized margin on your own recent sales falls below a threshold, purchasing stops automatically, and restarting it needs a person to sign off.
Here is a sketch of what that layer looks like in code. It sits between the model and the offer, and none of its parameters are learned:
from dataclasses import dataclass
@dataclass(frozen=True)
class Limits:
base_spread: float = 0.07 # fees, costs and target margin
k_sigma: float = 1.5 # widen the spread with model uncertainty
drift_penalty: float = 0.03 # extra spread while a drift alert is open
max_premium_over_comps: float = 0.03
max_zip_exposure: float = 15_000_000
max_buy_to_sell_ratio: float = 1.3
min_realized_margin: float = 0.0
drift_alert: bool = False
def guarded_offer(estimate, sigma, comps_median_ex_self, zip_exposure,
bought_30d, sold_30d, realized_margin_90d, limits: Limits):
"""Return a cash offer, or None if any hard rule says do not buy."""
if realized_margin_90d < limits.min_realized_margin:
return None # kill switch: needs a human to reset
if sold_30d and bought_30d / sold_30d > limits.max_buy_to_sell_ratio:
return None # buying faster than we can sell
spread = limits.base_spread + limits.k_sigma * sigma / estimate
if limits.drift_alert:
spread += limits.drift_penalty
offer = estimate * (1 - spread)
offer = min(offer, comps_median_ex_self * (1 + limits.max_premium_over_comps))
if zip_exposure + offer > limits.max_zip_exposure:
return None
return round(offer, -3)
None of this is clever. That is the point. The model can be as sophisticated as you like, but the rules that decide whether its number becomes a purchase should be simple enough that everyone in the room understands them, and boring enough that nobody is tempted to turn them off for a quarter.
Summary
| Failure | ML engineering name | Control that would have helped |
|---|---|---|
| Inputs left the training range | Data drift (covariate shift) | Feature drift monitors (PSI) that widen the spread automatically |
| Same house, different price relationship | Concept drift | Rolling backtests, shorter retrain windows, uncertainty-aware offers |
| True prices known months after buying | Label delay | Leading indicators: price cuts and days on market for your own listings |
| Accepted offers were the overpriced ones | Winner's curse, adverse selection | Spread that grows with uncertainty, caps against comps |
| Own purchases became comps | Feedback loop, reflexivity | Exclude own transactions from comps, per-zip exposure caps |
| Model scaled faster than contractors | Downstream capacity mismatch | Buy-to-sell velocity limit |
| Volume target overrode pricing experts | Missing human brake | Kill switch on realized margin, owned outside the growth team |
Zillow's model did not fail because it was a bad model. It failed because it was trusted to act, at scale, in a world it had never seen, with its own actions bending the data it learned from, and with nothing between its output and the bank account that was harder to move than the output itself.