A recommender from training to rollback
On one public movie ratings set, a recommender never retrained lost 12% to 30% of its ranking quality against the same model retrained each quarter.
Main limitation The recommender's re-ranker was trained on one quarter of labels; a wider window was not tried. The rollback rule pulled both planted bad releases within two months but also 2 of 18 healthy ones, a self-test, as one author wrote the monitors, the rule and the planted failures. For new users the model beat a genre popularity list in 10 of 18 quarters, by intervals added after the results. One public ratings set split by calendar quarter, scored in a batch on each quarter's first day on one machine, one model fit per release: it shows the method, not a production system.
I trained a movie recommender on ratings up to a cut-off and served it, quarter by quarter, on the 18 quarters that followed, the way a team would run one: retrain on a schedule, register each release, score in a batch, watch the inputs and outputs, and roll back by a written rule. Left alone, the re-ranker, trained on one quarter of labels, scored far below its retrained twin from the first quarter after training, a large and noisy gap with no trend; the factor model under it is the part that drifted slowly. The monitors that compare one quarter with the last never flagged the gap, because their reference moves with the model; only retraining closed it. The rule caught both planted bugs, after one month of labels or two when labels ran late, while a check on the served features had already seen them on day one.
| Lost by never retraining 12% to 30% lower NDCG@10 than the re-ranker retrained each quarter, in each of the 17 quarters after the first; below plain popularity in 10 of them | Planted failures flagged 3 of 4 by at least one monitor in a self-test; the burst of new movies went unseen | Months a planted bug served 1 of 3 before the rollback rule pulled it; 2 when labels arrived a month late | Healthy releases rolled back 2 of 18 by the same rule, with no fault planted |
In plain words
A recommender learns from what people liked in the past and is used on what they will like next. Tastes move, new titles arrive and the pipeline that feeds the model breaks now and then. Three questions decide how much of that a team can live with. How much does a model lose if nobody retrains it? Does a monitor or a rollback rule catch a bad release before many users see it? And what do brand-new users and brand-new titles get?
I ran the whole loop on public movie ratings: a popularity list, a factor model, and a re-ranker on top of the factor model, trained on everything before a cut-off and released once a quarter for 18 quarters. Each release was scored against the movies users went on to rate 4 stars or more. Then I broke things on purpose: a feature bug, a burst of new movies, labels that arrived late. The untouched quarters are the real test; the planted failures are a self-test.
My recommendation: a re-ranker trained on one quarter of labels, like this one, has to be retrained every quarter: left alone it fell below a plain popularity list in 10 of 17 quarters, and a yearly schedule still lost 0.3% to 24% in the quarters between retrains. A wider training window was not tried here. If retraining every quarter is not affordable, ship popularity or genre popularity instead: they are the cheap alternative and a hard baseline. Keep a written rollback rule that compares each release with the previous one on the same users, but do not rely on it alone: it needs a month of labels, and it pulled 2 healthy releases. Add a release gate on the features the model is served; here it saw both planted bugs before any user did (a lesson from this run, not a rule I tested). For new movies, keep a separate slot, because no batch model here put a single one in a top 20.
The data stands in for any catalogue with a recommender: films, products, courses, jobs. It is a public research dataset, so no data from any employer is used.
A second part serves the same model behind an endpoint, releases it every week and tests which release rules keep a bad model from users: the ranking model behind an endpoint, released weekly.
A third part trains the same two models on one machine, on 1 million to 128 million events of a public shopping log, and reports what changes as the data grows: the ranking model at scale, on one machine.
Terms used on this page
- Release
- One trained model, frozen and given a version number, that serves one quarter.
- Factor model
- Matrix factorization: it learns a short vector for every user and movie from who liked what, and scores a movie by how well the two vectors line up.
- Re-ranker
- A gradient-boosted model that takes the factor model's top 100 for a user and re-orders them using simple facts: recent popularity, the movie's age and mean rating, how much the user rates, their favourite genres.
- NDCG@10
- Ranking quality of the top 10, from 0 to 1: a liked movie at the top counts more than one at number 9. Here the scores run from 0.052 to 0.123, which is usual when the test is the future.
- Recall@20
- The share of a user's liked movies that made their top 20 (out of at most 20).
- Retrained each quarter, yearly, never
- Three schedules served from the same releases: a new release every quarter, one every year, or the first release forever.
- Shadow
- The last release not rolled back (usually the previous one), scoring the same users in the background so the two can be compared.
- Rollback rule
- Written before the run: when a month's labels arrive, if the live release scores below 0.95 times the shadow on at least 300 users, the shadow goes back live.
- Drift index
- The population stability index: how far a distribution moved from a reference; above 0.2 counts as a flag here.
- Calibration error
- How far predicted chances sit from what happened (expected calibration error); 0 is perfect.
- New users
- People with no rating before the quarter, scored after their first 5 ratings; kept only if they liked at least one movie after those 5.
- Self-test
- A test whose failures were planted by the same person who wrote the checks.
What drift cost
The re-ranker retrained each quarter scored between 0.073 and 0.118 NDCG@10. The same model left unretrained scored 12% to 30% lower in every later quarter, and every interval stays clear of zero. This is a re-ranker trained on one quarter of labels; a wider window was not tried.
3,009 to 3,982 returning users per quarter. Unit: NDCG@10.
Show the data
| Quarter | Popularity | Genre popularity (fallback) | Factor model, retrained | Re-ranker, retrained each quarter | Re-ranker, retrained yearly | Factor model, never retrained | Re-ranker, never retrained |
|---|---|---|---|---|---|---|---|
| 2019 Q2 | 0.054 | 0.060 | 0.066 | 0.084 | 0.084 | 0.066 | 0.084 |
| 2019 Q3 | 0.067 | 0.076 | 0.064 | 0.089 | 0.068 | 0.063 | 0.068 |
| 2019 Q4 | 0.062 | 0.066 | 0.064 | 0.082 | 0.072 | 0.063 | 0.072 |
| 2020 Q1 | 0.080 | 0.096 | 0.068 | 0.092 | 0.070 | 0.067 | 0.070 |
| 2020 Q2 | 0.121 | 0.123 | 0.080 | 0.118 | 0.118 | 0.077 | 0.083 |
| 2020 Q3 | 0.099 | 0.096 | 0.078 | 0.102 | 0.094 | 0.075 | 0.076 |
| 2020 Q4 | 0.080 | 0.082 | 0.080 | 0.099 | 0.089 | 0.076 | 0.079 |
| 2021 Q1 | 0.068 | 0.071 | 0.080 | 0.090 | 0.085 | 0.076 | 0.076 |
| 2021 Q2 | 0.063 | 0.067 | 0.074 | 0.086 | 0.086 | 0.071 | 0.073 |
| 2021 Q3 | 0.062 | 0.064 | 0.076 | 0.087 | 0.083 | 0.070 | 0.071 |
| 2021 Q4 | 0.052 | 0.055 | 0.068 | 0.073 | 0.070 | 0.063 | 0.061 |
| 2022 Q1 | 0.084 | 0.090 | 0.073 | 0.084 | 0.079 | 0.067 | 0.067 |
| 2022 Q2 | 0.084 | 0.087 | 0.066 | 0.080 | 0.080 | 0.060 | 0.057 |
| 2022 Q3 | 0.081 | 0.086 | 0.066 | 0.083 | 0.078 | 0.059 | 0.060 |
| 2022 Q4 | 0.089 | 0.084 | 0.065 | 0.079 | 0.074 | 0.057 | 0.058 |
| 2023 Q1 | 0.098 | 0.094 | 0.069 | 0.089 | 0.077 | 0.063 | 0.062 |
| 2023 Q2 | 0.071 | 0.070 | 0.071 | 0.086 | 0.086 | 0.064 | 0.063 |
| 2023 Q3 | 0.066 | 0.069 | 0.085 | 0.093 | 0.093 | 0.078 | 0.077 |
| Quarter | Popularity | Genre popularity (fallback) | Factor model, retrained | Re-ranker, retrained each quarter | Re-ranker, retrained yearly | Factor model, never retrained | Re-ranker, never retrained |
|---|---|---|---|---|---|---|---|
| 2019 Q2 | 0.084 | 0.092 | 0.093 | 0.116 | 0.116 | 0.093 | 0.116 |
| 2019 Q3 | 0.104 | 0.111 | 0.094 | 0.123 | 0.104 | 0.091 | 0.104 |
| 2019 Q4 | 0.085 | 0.086 | 0.091 | 0.111 | 0.102 | 0.087 | 0.102 |
| 2020 Q1 | 0.122 | 0.133 | 0.093 | 0.113 | 0.095 | 0.087 | 0.095 |
| 2020 Q2 | 0.151 | 0.149 | 0.106 | 0.138 | 0.138 | 0.101 | 0.108 |
| 2020 Q3 | 0.133 | 0.125 | 0.114 | 0.139 | 0.126 | 0.101 | 0.108 |
| 2020 Q4 | 0.110 | 0.106 | 0.115 | 0.138 | 0.125 | 0.104 | 0.108 |
| 2021 Q1 | 0.098 | 0.098 | 0.110 | 0.126 | 0.119 | 0.101 | 0.105 |
| 2021 Q2 | 0.099 | 0.095 | 0.106 | 0.123 | 0.123 | 0.096 | 0.102 |
| 2021 Q3 | 0.092 | 0.090 | 0.111 | 0.123 | 0.122 | 0.098 | 0.103 |
| 2021 Q4 | 0.079 | 0.080 | 0.097 | 0.110 | 0.107 | 0.091 | 0.093 |
| 2022 Q1 | 0.105 | 0.108 | 0.108 | 0.120 | 0.117 | 0.094 | 0.099 |
| 2022 Q2 | 0.111 | 0.121 | 0.093 | 0.112 | 0.112 | 0.086 | 0.088 |
| 2022 Q3 | 0.132 | 0.131 | 0.097 | 0.111 | 0.110 | 0.086 | 0.087 |
| 2022 Q4 | 0.125 | 0.122 | 0.093 | 0.107 | 0.103 | 0.084 | 0.087 |
| 2023 Q1 | 0.120 | 0.120 | 0.103 | 0.117 | 0.109 | 0.089 | 0.094 |
| 2023 Q2 | 0.107 | 0.112 | 0.104 | 0.121 | 0.121 | 0.089 | 0.093 |
| 2023 Q3 | 0.101 | 0.100 | 0.113 | 0.123 | 0.124 | 0.101 | 0.105 |
- The re-ranker's gap is large and noisy from the first quarter after training (23% in 2019 Q3), peaks at 30% in 2023 Q1 and does not trend. The factor model under it is the part that drifts slowly: left unretrained it lost 1.2% to 11%, growing over the years. The re-ranker is trained on one quarter's outcomes, so what it learns about recent popularity and movie age describes one quarter (my reading; not tested here).
- Left unretrained, the re-ranker scored below the plain popularity list in 10 of 17 quarters. Against a stale model, retraining always wins; against shipping popularity, the case is the retrained re-ranker's lead.
- Retrained each quarter, the re-ranker beat the factor model in 18 of 18 quarters and the plain popularity list in 14.
- Against the genre popularity list the result is mixed. With paired intervals (added after the results), the re-ranker was ahead with an interval clear of zero in 11 quarters, behind in 2, and too close to call in 5. A list of what is popular in your genres is a hard baseline when the test is the future. These are 36 intervals at 95% across the page, so one or two could clear zero by chance alone: read the counts, not any single quarter.
- On the validation quarter, before any serving, the re-ranker scored 0.080, the factor model 0.069, genre popularity 0.063 and popularity 0.059. Refitting the factor model with three other seeds gave 0.067 to 0.069, against 0.069. That is the only seed check: three factor-model seeds on the validation quarter. The re-ranker's seed spread was not measured, and each release is one fit.
Did monitoring and the rollback rule catch it?
Four failures were planted, each in its own replay, with a prediction written before the run. Monitors flagged 3 of them. The rule pulled both bad releases, after one month or two, and stayed quiet where rolling back could not help. The planted failures were large: the join bug cut month 1 NDCG@10 by 34%, and by 40% in its second planting with late labels (the first and last rows are the same bug). A subtler fault would test the rule harder.
| Failure | Quarter | Predicted | Observed | Bad release served |
|---|---|---|---|---|
| Feature join off by one | 2020 Q1 | Input monitor flags at batch time; output monitor flags; rule fires after month 1 | Input monitor flagged at batch time (largest drift index 3.1); output monitor did not (0.14, under 0.2); rule fired after month 1 (live 0.040, previous 0.060) | 1 month |
| Burst of new movies | 2021 Q1 | Item-mix monitor flags month 1; rule does not fire; popularity hurt most the next quarter | No monitor flagged (item mix 0.023); rule did not fire (lowest monthly ratio 1.01); quarter NDCG@10 0.086 against 0.090 untouched; next quarter popularity 0.062 against 0.063, not hurt | 3 months, not caught |
| Labels one month late | 2022 Q1 | Label monitor flags month 1; rule does not fire; the next release predicts too low and its calibration error rises | Label monitor flagged month 1 (true by construction: the replay sets the labels that arrived to zero); rule did not fire; next release mean prediction 0.036 against 0.051, but calibration error fell (0.007 against 0.009); NDCG@10 0.076 against 0.080 | no bad release |
| Join bug and late labels | 2022 Q3 | Input and output monitors flag at batch time; rule fires at the end of month 2 | Input monitor flagged at batch time (3.3); output monitor did not (0.17); label monitor flagged; rule fired at the end of month 2 | 2 months |
- The rule needs labels, so it is slow. The bug cut month 1 NDCG@10 by 34% against the previous release, and the rule pulled it when that month's labels arrived. With labels a month late, the same bug served two months. The input monitor saw the bug on the batch day both times.
- The burst of new movies went unseen. 4,780 ratings on 40 new movies from 30% of returning users sat next to 151,055 other ratings that month, too few to move the item-mix monitor. Rolling back would not have helped: both releases lost the same. Over the quarter the live release scored 0.086 against 0.090 untouched. Month 1 fell further, but about 70% of that drop is dilution: 475 extra users whose only liked movies that month were the unrankable new ones. On the 2,523 users with a real like that month the live release scored 0.067 against 0.072 untouched (added after the results).
- Four kinds of prediction were wrong. The output monitor never crossed 0.2 for either join bug, the item-mix monitor missed the burst, popularity was not hurt in the quarter after the burst (0.062 against 0.063), and late labels made the next release predict too low without raising its calibration error.
- The label monitor's flag on late labels proves little: it is true by construction, because the replay sets the labels that arrived to zero.
54 months, 1,470 to 2,523 returning users each. Unit: ratio of NDCG@10. Below 0.95 the rule fires.
With nothing planted, the rule still fired twice: 2021 Q4 (month 2, ratio 0.94) and 2023 Q3 (month 3, ratio 0.94), on 1,945 and 1,640 users. A month that size is noisy at a 5% margin, so a single month under the line is not evidence of a bad release. In both cases the next release was due within a month, so the cost was small, but a team paged for each would stop trusting the rule.
The monitors that compare a quarter with the one before flagged 3 healthy quarters, all on the output score (2020 Q2, 2020 Q4, 2023 Q3), and nothing else. Run on the never-retrained model as well (added after the results), they never flagged its gap: the largest index in 17 quarters was 0.11. They compare each quarter with the one before, so their reference moves with the model. Against that model's own first quarter, its served features crossed 0.2 only from 2021 Q4, long after its gap had reached 23% in 2019 Q3. Neither kind of monitor replaces the ranking metric on labels; a fixed reference is still worth watching, because it shows the inputs moving away from training.
New users and new movies
New users were scored after their first 5 ratings. By paired intervals (added after the results), the re-ranker beat the genre popularity fallback for them in 10 of 18 quarters, lost in 3 and was too close to call in 5; in 2020 Q3 the interval was barely clear of zero. New movies were never recommended by anything.
910 to 2,595 new users per quarter. Unit: difference in NDCG@10.
Show the data
| Quarter | Users | Popularity | Genre popularity | Factor model | Re-ranker |
|---|---|---|---|---|---|
| 2019 Q2 | 1,585 | 0.372 | 0.378 | 0.360 | 0.382 |
| 2019 Q3 | 1,754 | 0.357 | 0.365 | 0.356 | 0.382 |
| 2019 Q4 | 1,390 | 0.348 | 0.355 | 0.353 | 0.324 |
| 2020 Q1 | 1,855 | 0.338 | 0.346 | 0.345 | 0.304 |
| 2020 Q2 | 2,595 | 0.332 | 0.355 | 0.352 | 0.367 |
| 2020 Q3 | 1,968 | 0.341 | 0.370 | 0.354 | 0.379 |
| 2020 Q4 | 2,044 | 0.353 | 0.357 | 0.362 | 0.388 |
| 2021 Q1 | 1,864 | 0.347 | 0.360 | 0.364 | 0.355 |
| 2021 Q2 | 1,479 | 0.357 | 0.347 | 0.350 | 0.345 |
| 2021 Q3 | 1,290 | 0.344 | 0.352 | 0.356 | 0.380 |
| 2021 Q4 | 980 | 0.330 | 0.335 | 0.341 | 0.352 |
| 2022 Q1 | 1,078 | 0.333 | 0.330 | 0.341 | 0.348 |
| 2022 Q2 | 953 | 0.295 | 0.312 | 0.335 | 0.322 |
| 2022 Q3 | 910 | 0.291 | 0.309 | 0.336 | 0.310 |
| 2022 Q4 | 938 | 0.278 | 0.299 | 0.328 | 0.334 |
| 2023 Q1 | 1,146 | 0.302 | 0.309 | 0.335 | 0.354 |
| 2023 Q2 | 942 | 0.295 | 0.336 | 0.347 | 0.363 |
| 2023 Q3 | 1,203 | 0.364 | 0.360 | 0.348 | 0.347 |
- For new users every score is higher (the re-ranker 0.304 to 0.388) because the movies they rate next are mostly well-known ones (my reading: a new account is shown popular movies first).
- Between 1.3% and 5.8% of each quarter's liked movies had no rating at all on the batch day, and another 3.1% to 7.0% had fewer than 20. Not one of them made any model's or the fallback's top 20, in any quarter. Neither did a movie with 20 to 49 ratings, 2.2% to 3.8% of liked movies (added after the results). For all movies with 20 or more ratings (added after the results) the re-ranker found 8.5% to 11.0% of them, so the count works and the zero is real: these lists hold only well-known movies.
New and young movies per quarter
| Quarter | No rating | 1 to 19 | In any top 20 | Re-ranker found, 20 or more |
|---|---|---|---|---|
| 2019 Q2 | 2.5% | 4.2% | 0.0% | 8.5% |
| 2019 Q3 | 3.4% | 7.0% | 0.0% | 9.6% |
| 2019 Q4 | 5.8% | 6.7% | 0.0% | 9.5% |
| 2020 Q1 | 1.7% | 5.9% | 0.0% | 8.8% |
| 2020 Q2 | 1.3% | 3.1% | 0.0% | 9.9% |
| 2020 Q3 | 2.0% | 3.6% | 0.0% | 9.7% |
| 2020 Q4 | 2.8% | 3.4% | 0.0% | 9.5% |
| 2021 Q1 | 2.0% | 4.0% | 0.0% | 9.5% |
| 2021 Q2 | 2.6% | 4.1% | 0.0% | 9.9% |
| 2021 Q3 | 2.9% | 4.4% | 0.0% | 9.7% |
| 2021 Q4 | 4.2% | 5.5% | 0.0% | 9.3% |
| 2022 Q1 | 2.7% | 5.3% | 0.0% | 9.3% |
| 2022 Q2 | 2.8% | 5.3% | 0.0% | 9.4% |
| 2022 Q3 | 3.0% | 4.3% | 0.0% | 9.5% |
| 2022 Q4 | 3.7% | 6.1% | 0.0% | 8.7% |
| 2023 Q1 | 2.3% | 5.1% | 0.0% | 9.4% |
| 2023 Q2 | 3.5% | 5.0% | 0.0% | 10.1% |
| 2023 Q3 | 5.4% | 4.2% | 0.0% | 11.0% |
Are the predicted chances honest?
Only in the low range, and only for the users scored. For returning users the calibration error was 0.004 to 0.021 retrained and 0.004 to 0.014 never retrained, but that small number is mostly the lowest bin. For new users it was 0.049 to 0.221: the model never trained on anyone with 5 ratings.
- 77% to 96% of served slots were predicted under 0.1, where prediction and outcome agree closely (in 2019 Q2, 90% of slots, 0.038 predicted against 0.038 observed). That bin dominates the error figure (added after the results).
- Above 0.1 the chances run high in every quarter (added after the results): 1.06 to 1.50 times the observed rate retrained, and 1.29 to 1.88 times never retrained. Single bins go further: in 2019 Q3, 0.445 predicted against 0.167 observed on 156 slots. So the stale model did lose calibration, where it matters most.
- The chances hold only among the users scored: those who went on to like at least one new movie that quarter, because that is how the groups are selected. They are not the chance that any user likes a movie.
Any number built on these chances (expected plays, a revenue forecast) needs its own calibration step, for new users most of all.
Calibration per quarter
| Quarter | Error, retrained | Error, never retrained | Error, new users | Predicted, new users | Observed, new users |
|---|---|---|---|---|---|
| 2019 Q2 | 0.005 | 0.005 | 0.184 | 0.493 | 0.309 |
| 2019 Q3 | 0.008 | 0.004 | 0.053 | 0.259 | 0.312 |
| 2019 Q4 | 0.005 | 0.005 | 0.053 | 0.302 | 0.291 |
| 2020 Q1 | 0.010 | 0.009 | 0.221 | 0.494 | 0.272 |
| 2020 Q2 | 0.009 | 0.011 | 0.206 | 0.094 | 0.299 |
| 2020 Q3 | 0.021 | 0.006 | 0.052 | 0.269 | 0.303 |
| 2020 Q4 | 0.011 | 0.011 | 0.113 | 0.197 | 0.309 |
| 2021 Q1 | 0.006 | 0.012 | 0.060 | 0.262 | 0.295 |
| 2021 Q2 | 0.004 | 0.006 | 0.127 | 0.169 | 0.296 |
| 2021 Q3 | 0.007 | 0.007 | 0.149 | 0.149 | 0.298 |
| 2021 Q4 | 0.004 | 0.005 | 0.080 | 0.210 | 0.284 |
| 2022 Q1 | 0.013 | 0.011 | 0.211 | 0.071 | 0.282 |
| 2022 Q2 | 0.009 | 0.006 | 0.219 | 0.487 | 0.277 |
| 2022 Q3 | 0.005 | 0.006 | 0.057 | 0.289 | 0.280 |
| 2022 Q4 | 0.004 | 0.008 | 0.192 | 0.069 | 0.261 |
| 2023 Q1 | 0.007 | 0.010 | 0.190 | 0.102 | 0.292 |
| 2023 Q2 | 0.012 | 0.008 | 0.049 | 0.241 | 0.290 |
| 2023 Q3 | 0.012 | 0.014 | 0.062 | 0.255 | 0.293 |
What went wrong or was missed
- The drift monitors never flagged the stale re-ranker's gap. They compare each quarter with the one before, so the reference moves with the model; a fixed reference showed the inputs moving, years late.
- The item-mix monitor missed a burst of 40 new movies, because it watches every rating of the month and the burst was a small part of them. It should watch new titles on their own.
- The output monitor stayed under its line for both join bugs and crossed it in 3 healthy quarters.
- The rollback rule fired on 2 healthy releases. One month of returning users is too few for a 5% margin.
- Late labels left the next release predicting too low (0.036 against 0.051); I predicted its calibration error would rise, and it fell.
- No model or fallback recommended a single new movie, or one with fewer than 50 ratings. A batch scored on the quarter's first day cannot know a title that has no ratings yet.
- The planted bugs were large and two of the four plants are the same bug; the catch count says little about subtle faults.
- Brand-new users with no ratings at all are not scored here; the study starts at their fifth rating.
What I would use when
| Need | Used here | Switch when |
|---|---|---|
| Candidates | Implicit-feedback matrix factorization (ALS) | A two-tower network once there is text, images or a cold catalogue to embed |
| Re-ranking | LightGBM on ten plain features, retrained each quarter | Learning-to-rank objectives once there are graded outcomes such as watch time |
| Registry | A versioned folder with a manifest per release | MLflow or a cloud registry once more than one team ships models |
| Release gate | Not used; the drift index on served features is the candidate | Always, before the first release; it is cheap and saw both bugs on day one |
| Rollback | Live against shadow on a month of labels, below 0.95 | Pool two months or test the gap against its noise when monthly users are this few |
| New titles | Nothing recommended them | A reserved slot fed by metadata or an editor, from day one |
How I would roll this out with a team
- Baselines first. A data scientist ships popularity and genre popularity and scores them every month; every model is judged against them, because here genre popularity was a hard baseline.
- Pipeline and registry. A machine learning engineer builds quarterly retraining, the release manifest and batch scoring (about 3 engineer-weeks, assumed).
- Monitors and the label join. Data engineering owns the job that joins outcomes to served lists and its lateness alert; the data scientist owns the drift checks against a fixed reference as well as last quarter (about 2 engineer-weeks, assumed).
- The rule, written down. Product, the data scientist and engineering agree the rollback threshold and who can pull a release before the first one ships (about 1 engineer-week, assumed).
- Cadence. A monthly review of live against shadow and the monitors; a quarterly release review with product. Bad news goes to the executive owner within a day of a rollback, with the month it served and the loss on the same users, never a recalculated headline.
First hire: a machine learning engineer who has run batch pipelines, because every step above is plumbing before it is modelling.
What it is worth
Assume a catalogue business where plays that start on a recommendation bring US$20M a year, and assume that value moves in proportion to NDCG@10. Both are assumptions, not findings.
- Against the same re-ranker left stale, never retraining would cost US$2.4M to US$6.0M a year at the losses measured here; US$3.5M at the last quarter's 17%. That compares only with the stale model. The cheap alternative is to ship popularity, which the stale re-ranker fell below in 10 of 17 quarters; this page does not price the retrained re-ranker against it.
- The rule cut a bug's exposure from 3 months to 1, worth about US$1.1M per incident at the planted bug's 34% loss; with late labels it served 2 months, and the one month saved is worth about US$666K at that planting's 40% loss.
- Owning it costs about US$55K a year: a quarter of one engineer at an assumed US$200K loaded, plus an assumed US$5K of compute.
Once a team runs a re-ranker like this, retraining it on schedule costs far less than letting it go stale. Whether to run one at all instead of a popularity list is a separate case, built on the retrained model's lead over popularity, and it is the first number I would put in front of an executive.
Where AI fits
Hand a person or an AI assistant the monitor log from this run and ask whether the model drifted. Read on its own, the log says "no": quarter on quarter, no input monitor crossed a line while a model left alone lost 12% to 30%. My expectation, not tested here, is that an assistant would give that answer, and give it confidently. That is the kind of error worth testing for.
So I test an assistant the way I would test a new analyst: with questions whose answers I already know. This study supplies some. Did the never-retrained model lose quality? Yes, every quarter. Did any monitor see it? No. Was the burst of new movies caught? No. Comparing the answers with the known ones, like a control group, would show where an assistant goes beyond the evidence. That judgment becomes a rule it follows: a drift claim cites the metric on labels, never the monitors alone.
Method and checks
A result that looked too clean got a check: every model found exactly 0% of the liked movies that were new or had fewer than 20 ratings, in every quarter. A control group, the movies with 20 or more ratings (added after the results), found 8.5% to 11.0%. The count works; the zero is real.
Set in advance
The split, the three models and the factor model's grid, the metrics, the user groups, the three schedules, the six monitors with their lines, the rollback rule, the four planted failures and a prediction for each were written down and committed before any model was trained or any serving quarter was scored. Added after the results, and labelled so where they appear: the control group of older movies above and the 20 to 49 band, the intervals on the re-ranker against the genre fallback, the batch-day monitors run on the never-retrained model, the calibration split by bin, and the burst's month 1 on users with a real like.
Data, split and models
- MovieLens 32M: 32,000,204 ratings, half-star scale. A liked movie is a rating of 4 or more.
- Quarters: training on all ratings before the quarter; validation on 2019 Q1; serving from 2019 Q2 to 2023 Q3, one release per quarter. No rating on or after a release's first day trains or feeds it.
- Returning users: a rating before the quarter and a liked movie during it, on a movie they had not rated. New users: no rating before the quarter and at least 6 during it, scored after the first 5, and kept only if they liked at least one movie after those 5.
- Popularity: liked ratings in the last 180 days. Genre popularity: the same, weighted by the user's share of genres (for new users, their first 5 ratings; it is also scored for returning users, weighted by the movies they liked before the quarter, or all they rated if none).
- Factor model: implicit ALS, 128 factors, 15 iterations, regularization 0.1 and confidence weight 5, chosen on the validation quarter from four pairs; movies with at least 5 liked ratings; user vectors recomputed from each user's history on the batch day.
- Re-ranker: LightGBM, binary objective, 400 rounds, on the factor model's top 100; trained on the previous release's top 100 for the previous quarter, labelled by what users liked.
Metrics and intervals
NDCG@10 with binary gains; recall@20 over the smaller of 20 and the user's liked movies; both averaged over users, per quarter, never pooled. Drift intervals: paired bootstrap over users, 1,000 resamples, 95%. Calibration: 10 equal-width bins on the served top 20.
Monitors and the rule
- Drift index over 0.2 against the previous quarter: user features at batch time, movie features of the served top 100, the predicted chance of the served top 20.
- Monthly: the mix of incoming ratings by how many ratings each movie had (index over 0.2), and labels arriving at under half the mean of the last three months.
- Rollback: live under 0.95 times the shadow on a month with at least 300 users. The shadow is the last release not rolled back.
The releases
| Release | Served | Movies | Rolled back |
|---|---|---|---|
| v00-2019Q1 | 2019 Q1 | 18,842 | no |
| v01-2019Q2 | 2019 Q2 | 19,228 | no |
| v02-2019Q3 | 2019 Q3 | 19,676 | no |
| v03-2019Q4 | 2019 Q4 | 20,018 | no |
| v04-2020Q1 | 2020 Q1 | 20,344 | no |
| v05-2020Q2 | 2020 Q2 | 20,729 | no |
| v06-2020Q3 | 2020 Q3 | 21,181 | no |
| v07-2020Q4 | 2020 Q4 | 21,508 | no |
| v08-2021Q1 | 2021 Q1 | 21,851 | no |
| v09-2021Q2 | 2021 Q2 | 22,254 | no |
| v10-2021Q3 | 2021 Q3 | 22,552 | no |
| v11-2021Q4 | 2021 Q4 | 22,879 | month 2 |
| v12-2022Q1 | 2022 Q1 | 23,213 | no |
| v13-2022Q2 | 2022 Q2 | 23,488 | no |
| v14-2022Q3 | 2022 Q3 | 23,730 | no |
| v15-2022Q4 | 2022 Q4 | 23,941 | no |
| v16-2023Q1 | 2023 Q1 | 24,221 | no |
| v17-2023Q2 | 2023 Q2 | 24,529 | no |
| v18-2023Q3 | 2023 Q3 | 24,739 | month 3 |
The registry is a versioned folder: each release keeps its model files, parameters and training window. The index without the model files is published.
Displayed numbers
NDCG@10, recall@20 and calibration error to three decimals; losses and shares in whole percents, or one decimal below 10%. Money is in US dollars and rests on the assumptions stated.
Data, licence and privacy
F. Maxwell Harper and Joseph A. Konstan. 2015. The MovieLens Datasets: History and Context. ACM Transactions on Interactive Intelligent Systems 5, 4: 19:1 to 19:19. https://doi.org/10.1145/2827872. The licence allows research use, asks for this acknowledgement, and rules out commercial use without permission from GroupLens. This study is independent and not endorsed by the University of Minnesota or GroupLens. No rating is published here; results are aggregates. No employer data is used.
Reproduce itComplete machine resultsRelease registryData download scriptData notice
Use this at your company
To run the same check on your own recommender, paste this prompt into an AI assistant along with your interaction data.
This method comes from Diogo Travassos's study "A recommender from training to rollback" (https://diogotravassos.dev/ranking-lifecycle/). If you can open links, read it first: it works the method through end to end, with its checks. The steps below stand on their own if you can't. Help me find out how much our recommender loses when it is not retrained, and whether our monitors and rollback rule would catch a bad release. Data: one row per user interaction with user id, item id, timestamp and outcome (rating, click or purchase), the item catalogue with categories and first-seen dates, and the list of model releases with their dates. Steps: 1. Split by time into periods. Train on everything before a period, serve that period, never let a later row in. 2. Score a popularity list, a popularity-within-category list and the current model on the same users each period. 3. Serve three schedules from the same releases: retrained every period, retrained yearly, never retrained. 4. Before looking, write down the monitors with their lines and a rollback rule that compares each release with the previous one on the same users. 5. Plant failures one at a time (a feature join bug, a burst of new items, late labels) and predict what each monitor and the rule will do. 6. Report new users and new items apart from everyone else. Checks: NDCG@10 and recall@20 per period, never pooled; paired bootstrap intervals for each gap; a control group for any zero; drift measured against a fixed reference as well as the last period. Report: the loss from not retraining per period with intervals, which planted failures were caught and how many months a bad release served, how often the rule fired on healthy releases, and what new users and new items got. Planted failures are a self-test, not proof the monitors work. In your report, say which study you followed and link it: https://diogotravassos.dev/ranking-lifecycle/