Make a feature fresher only when it pays
Fresher always costs more, so each feature needs a reason for its tier.
A staleness ablation shows what each step of freshness buys
How do you decide whether a feature needs a stream?
How fast does the value change, compared with how often the model reads it? Long-term taste moves over weeks. What the member wants tonight moves within a session. Netflix's FM-Intent post notes that a member's genre preferences can shift a lot from one session to the next. A title's 7-day popularity barely moves in an hour, except around a launch or a live event.
What does a stale value cost the model? Don't guess. Measure it.
| Lag | Feature A: flat | Feature B: drops past 5 minutes |
|---|---|---|
| 0 | high | high |
| 5 min | high | high |
| 1 h | high | low |
| 24 h | high | low |
Two example curves, not measurements. A doesn't need a stream. B does.
A staleness ablation retrains the model with the feature made stale on purpose.
- Build the training and test sets with the feature joined as of t−L instead of t. Here t is the moment each row's prediction was made, and L is a lag you add on purpose. Every row gets the value the feature had L before the prediction.
- Do it for L of 0, 5 minutes, 1 hour and 24 hours.
- Retrain each time, and compare the offline metric on the same held-out days.
Flat from 24 hours down to 5 minutes, like A, means daily batch is the answer. The streaming budget goes somewhere else. A climb between 1 hour and 5 minutes, like B, means you need the stream, and seconds probably don't matter. Then set the gain next to the cost from the tier table.
Airbnb decided streaming was worth it for one recommender. Its Chronon real-time update, in September 2026, cut effective staleness from roughly two days to less than a minute (1 source).
Netflix names the same pressure on its daily embeddings. The time gap between computing an embedding and using it in a downstream model can make recommendations stale (1 source). Netflix stepped up its investment to build a near-real-time embedding generation framework.
In the editor, write max_ok_lag(curve, tol) and tier(curve, tol). A and B are the two curves from the table as numbers: each maps a lag in seconds (0, 5 minutes, 1 hour, 24 hours) to the offline metric.
- 1
Write
max_ok_lag(curve, tol):curvemaps a lag in seconds to the offline metric. Going up from lag 0, return the largest lag before the first one that falls more thantolbelow the lag-0 metric. - 2
Write
tier(curve, tol):'batch'if the metric holds through a lag of 86,400 seconds, otherwise'streaming'.
Run your code to check it. Output shows here.