Skip to content

Diogo TravassosData leadership · Analytics · Decision-making

Real public data

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.

Key figures
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 themPlanted failures flagged 3 of 4 by at least one monitor in a self-test; the burst of new movies went unseenMonths a planted bug served 1 of 3 before the rollback rule pulled it; 2 when labels arrived a month lateHealthy 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.

Never retrained against retrained each quarter, returning users, NDCG@10 per quarter

3,009 to 3,982 returning users per quarter. Unit: NDCG@10.

Never retrainedRetrained each quarter0.050.0750.10.1252019 Q2: both 0.084 (the first serving release; nothing has aged yet)2019 Q22019 Q3: retrained 0.089, never retrained 0.068, 23% lower (interval 19% to 27%)2019 Q32019 Q4: retrained 0.082, never retrained 0.072, 12% lower (interval 8% to 17%)2019 Q42020 Q1: retrained 0.092, never retrained 0.070, 24% lower (interval 20% to 27%)2020 Q12020 Q2: retrained 0.118, never retrained 0.083, 29% lower (interval 26% to 33%)2020 Q22020 Q3: retrained 0.102, never retrained 0.076, 26% lower (interval 22% to 30%)2020 Q32020 Q4: retrained 0.099, never retrained 0.079, 20% lower (interval 16% to 24%)2020 Q42021 Q1: retrained 0.090, never retrained 0.076, 16% lower (interval 12% to 19%)2021 Q12021 Q2: retrained 0.086, never retrained 0.073, 15% lower (interval 11% to 19%)2021 Q22021 Q3: retrained 0.087, never retrained 0.071, 19% lower (interval 15% to 23%)2021 Q32021 Q4: retrained 0.073, never retrained 0.061, 16% lower (interval 11% to 20%)2021 Q42022 Q1: retrained 0.084, never retrained 0.067, 20% lower (interval 16% to 25%)2022 Q12022 Q2: retrained 0.080, never retrained 0.057, 28% lower (interval 24% to 33%)2022 Q22022 Q3: retrained 0.083, never retrained 0.060, 27% lower (interval 23% to 31%)2022 Q32022 Q4: retrained 0.079, never retrained 0.058, 27% lower (interval 22% to 32%)2022 Q42023 Q1: retrained 0.089, never retrained 0.062, 30% lower (interval 26% to 34%)2023 Q12023 Q2: retrained 0.086, never retrained 0.063, 27% lower (interval 22% to 32%)2023 Q22023 Q3: retrained 0.093, never retrained 0.077, 17% lower (interval 13% to 22%)2023 Q3
Show the data
NDCG@10 per model, per quarter, returning users
QuarterPopularityGenre popularity (fallback)Factor model, retrainedRe-ranker, retrained each quarterRe-ranker, retrained yearlyFactor model, never retrainedRe-ranker, never retrained
2019 Q20.0540.0600.0660.0840.0840.0660.084
2019 Q30.0670.0760.0640.0890.0680.0630.068
2019 Q40.0620.0660.0640.0820.0720.0630.072
2020 Q10.0800.0960.0680.0920.0700.0670.070
2020 Q20.1210.1230.0800.1180.1180.0770.083
2020 Q30.0990.0960.0780.1020.0940.0750.076
2020 Q40.0800.0820.0800.0990.0890.0760.079
2021 Q10.0680.0710.0800.0900.0850.0760.076
2021 Q20.0630.0670.0740.0860.0860.0710.073
2021 Q30.0620.0640.0760.0870.0830.0700.071
2021 Q40.0520.0550.0680.0730.0700.0630.061
2022 Q10.0840.0900.0730.0840.0790.0670.067
2022 Q20.0840.0870.0660.0800.0800.0600.057
2022 Q30.0810.0860.0660.0830.0780.0590.060
2022 Q40.0890.0840.0650.0790.0740.0570.058
2023 Q10.0980.0940.0690.0890.0770.0630.062
2023 Q20.0710.0700.0710.0860.0860.0640.063
2023 Q30.0660.0690.0850.0930.0930.0780.077
recall@20 per model, per quarter, returning users
QuarterPopularityGenre popularity (fallback)Factor model, retrainedRe-ranker, retrained each quarterRe-ranker, retrained yearlyFactor model, never retrainedRe-ranker, never retrained
2019 Q20.0840.0920.0930.1160.1160.0930.116
2019 Q30.1040.1110.0940.1230.1040.0910.104
2019 Q40.0850.0860.0910.1110.1020.0870.102
2020 Q10.1220.1330.0930.1130.0950.0870.095
2020 Q20.1510.1490.1060.1380.1380.1010.108
2020 Q30.1330.1250.1140.1390.1260.1010.108
2020 Q40.1100.1060.1150.1380.1250.1040.108
2021 Q10.0980.0980.1100.1260.1190.1010.105
2021 Q20.0990.0950.1060.1230.1230.0960.102
2021 Q30.0920.0900.1110.1230.1220.0980.103
2021 Q40.0790.0800.0970.1100.1070.0910.093
2022 Q10.1050.1080.1080.1200.1170.0940.099
2022 Q20.1110.1210.0930.1120.1120.0860.088
2022 Q30.1320.1310.0970.1110.1100.0860.087
2022 Q40.1250.1220.0930.1070.1030.0840.087
2023 Q10.1200.1200.1030.1170.1090.0890.094
2023 Q20.1070.1120.1040.1210.1210.0890.093
2023 Q30.1010.1000.1130.1230.1240.1010.105

Download the full results (JSON)

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.

Planted failures, a self-test: prediction written before the run, and what happened
FailureQuarterPredictedObservedBad release served
Feature join off by one2020 Q1Input monitor flags at batch time; output monitor flags; rule fires after month 1Input 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 movies2021 Q1Item-mix monitor flags month 1; rule does not fire; popularity hurt most the next quarterNo 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 hurt3 months, not caught
Labels one month late2022 Q1Label monitor flags month 1; rule does not fire; the next release predicts too low and its calibration error risesLabel 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.080no bad release
Join bug and late labels2022 Q3Input and output monitors flag at batch time; rule fires at the end of month 2Input monitor flagged at batch time (3.3); output monitor did not (0.17); label monitor flagged; rule fired at the end of month 22 months
Every month of the untouched run: live release over the previous release, NDCG@10

54 months, 1,470 to 2,523 returning users each. Unit: ratio of NDCG@10. Below 0.95 the rule fires.

0.91.01.11.21.3rollback below 0.952019 Q2, month 1: live 0.070, previous release 0.056, ratio 1.25 on 1,716 users2019 Q2, month 2: live 0.057, previous release 0.049, ratio 1.18 on 1,615 users2019 Q2, month 3: live 0.053, previous release 0.048, ratio 1.12 on 1,470 users2019 Q3, month 1: live 0.066, previous release 0.049, ratio 1.35 on 1,735 users2019 Q3, month 2: live 0.067, previous release 0.049, ratio 1.36 on 1,668 users2019 Q3, month 3: live 0.058, previous release 0.046, ratio 1.26 on 1,507 users2019 Q4, month 1: live 0.068, previous release 0.062, ratio 1.10 on 1,790 users2019 Q4, month 2: live 0.052, previous release 0.049, ratio 1.06 on 1,694 users2019 Q4, month 3: live 0.050, previous release 0.047, ratio 1.07 on 1,773 users2020 Q1, month 1: live 0.073, previous release 0.060, ratio 1.22 on 2,089 users2020 Q1, month 2: live 0.059, previous release 0.050, ratio 1.19 on 1,852 users2020 Q1, month 3: live 0.059, previous release 0.056, ratio 1.04 on 1,923 users2020 Q2, month 1: live 0.095, previous release 0.069, ratio 1.38 on 2,373 users2020 Q2, month 2: live 0.077, previous release 0.060, ratio 1.29 on 2,059 users2020 Q2, month 3: live 0.071, previous release 0.054, ratio 1.32 on 1,747 users2020 Q3, month 1: live 0.081, previous release 0.074, ratio 1.09 on 2,094 users2020 Q3, month 2: live 0.078, previous release 0.068, ratio 1.14 on 1,949 users2020 Q3, month 3: live 0.060, previous release 0.056, ratio 1.07 on 1,804 users2020 Q4, month 1: live 0.078, previous release 0.075, ratio 1.04 on 2,118 users2020 Q4, month 2: live 0.071, previous release 0.070, ratio 1.01 on 1,985 users2020 Q4, month 3: live 0.059, previous release 0.061, ratio 0.97 on 2,057 users2021 Q1, month 1: live 0.072, previous release 0.071, ratio 1.01 on 2,523 users2021 Q1, month 2: live 0.061, previous release 0.059, ratio 1.03 on 2,077 users2021 Q1, month 3: live 0.055, previous release 0.052, ratio 1.04 on 1,971 users2021 Q2, month 1: live 0.065, previous release 0.063, ratio 1.04 on 2,250 users2021 Q2, month 2: live 0.058, previous release 0.055, ratio 1.04 on 2,056 users2021 Q2, month 3: live 0.056, previous release 0.054, ratio 1.04 on 1,734 users2021 Q3, month 1: live 0.067, previous release 0.067, ratio 1.00 on 2,018 users2021 Q3, month 2: live 0.063, previous release 0.057, ratio 1.10 on 1,993 users2021 Q3, month 3: live 0.055, previous release 0.053, ratio 1.05 on 1,779 users2021 Q4, month 1: live 0.058, previous release 0.056, ratio 1.05 on 1,965 users2021 Q4, month 2: live 0.045, previous release 0.048, ratio 0.94 on 1,945 users; the rule fired2021 Q4, month 3: live 0.051, previous release 0.051, ratio 1.01 on 1,930 users2022 Q1, month 1: live 0.067, previous release 0.062, ratio 1.08 on 2,174 users2022 Q1, month 2: live 0.060, previous release 0.054, ratio 1.12 on 1,832 users2022 Q1, month 3: live 0.051, previous release 0.050, ratio 1.03 on 1,753 users2022 Q2, month 1: live 0.066, previous release 0.054, ratio 1.22 on 1,845 users2022 Q2, month 2: live 0.056, previous release 0.050, ratio 1.12 on 1,723 users2022 Q2, month 3: live 0.049, previous release 0.040, ratio 1.20 on 1,588 users2022 Q3, month 1: live 0.065, previous release 0.063, ratio 1.03 on 1,778 users2022 Q3, month 2: live 0.061, previous release 0.058, ratio 1.05 on 1,718 users2022 Q3, month 3: live 0.053, previous release 0.050, ratio 1.06 on 1,550 users2022 Q4, month 1: live 0.055, previous release 0.050, ratio 1.10 on 1,665 users2022 Q4, month 2: live 0.051, previous release 0.045, ratio 1.14 on 1,666 users2022 Q4, month 3: live 0.062, previous release 0.055, ratio 1.13 on 1,780 users2023 Q1, month 1: live 0.073, previous release 0.064, ratio 1.14 on 2,110 users2023 Q1, month 2: live 0.060, previous release 0.055, ratio 1.09 on 1,771 users2023 Q1, month 3: live 0.056, previous release 0.053, ratio 1.06 on 1,702 users2023 Q2, month 1: live 0.075, previous release 0.065, ratio 1.16 on 1,833 users2023 Q2, month 2: live 0.053, previous release 0.050, ratio 1.06 on 1,680 users2023 Q2, month 3: live 0.056, previous release 0.055, ratio 1.03 on 1,574 users2023 Q3, month 1: live 0.077, previous release 0.072, ratio 1.07 on 1,918 users2023 Q3, month 2: live 0.061, previous release 0.061, ratio 1.01 on 1,801 users2023 Q3, month 3: live 0.062, previous release 0.066, ratio 0.94 on 1,640 users; the rule fired20192020202120222023

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.

New users: re-ranker NDCG@10 minus genre popularity NDCG@10, with 95% intervals

910 to 2,595 new users per quarter. Unit: difference in NDCG@10.

-0.05-0.0250+0.025+0.052019 Q2: 1,585 new users, model minus fallback +0.004 (interval -0.005 to +0.012), too close to call2019 Q22019 Q3: 1,754 new users, model minus fallback +0.017 (interval +0.008 to +0.026), model ahead2019 Q32019 Q4: 1,390 new users, model minus fallback -0.031 (interval -0.041 to -0.022), fallback ahead2019 Q42020 Q1: 1,855 new users, model minus fallback -0.042 (interval -0.053 to -0.032), fallback ahead2020 Q12020 Q2: 2,595 new users, model minus fallback +0.011 (interval +0.004 to +0.019), model ahead2020 Q22020 Q3: 1,968 new users, model minus fallback +0.009 (interval +0.000 to +0.018), model ahead2020 Q32020 Q4: 2,044 new users, model minus fallback +0.032 (interval +0.023 to +0.040), model ahead2020 Q42021 Q1: 1,864 new users, model minus fallback -0.005 (interval -0.013 to +0.003), too close to call2021 Q12021 Q2: 1,479 new users, model minus fallback -0.002 (interval -0.012 to +0.007), too close to call2021 Q22021 Q3: 1,290 new users, model minus fallback +0.028 (interval +0.018 to +0.037), model ahead2021 Q32021 Q4: 980 new users, model minus fallback +0.018 (interval +0.006 to +0.029), model ahead2021 Q42022 Q1: 1,078 new users, model minus fallback +0.018 (interval +0.006 to +0.030), model ahead2022 Q12022 Q2: 953 new users, model minus fallback +0.010 (interval -0.002 to +0.021), too close to call2022 Q22022 Q3: 910 new users, model minus fallback +0.001 (interval -0.011 to +0.015), too close to call2022 Q32022 Q4: 938 new users, model minus fallback +0.035 (interval +0.022 to +0.047), model ahead2022 Q42023 Q1: 1,146 new users, model minus fallback +0.046 (interval +0.034 to +0.057), model ahead2023 Q12023 Q2: 942 new users, model minus fallback +0.027 (interval +0.015 to +0.039), model ahead2023 Q22023 Q3: 1,203 new users, model minus fallback -0.013 (interval -0.025 to -0.002), fallback ahead2023 Q3
Show the data
New users, NDCG@10 per quarter
QuarterUsersPopularityGenre popularityFactor modelRe-ranker
2019 Q21,5850.3720.3780.3600.382
2019 Q31,7540.3570.3650.3560.382
2019 Q41,3900.3480.3550.3530.324
2020 Q11,8550.3380.3460.3450.304
2020 Q22,5950.3320.3550.3520.367
2020 Q31,9680.3410.3700.3540.379
2020 Q42,0440.3530.3570.3620.388
2021 Q11,8640.3470.3600.3640.355
2021 Q21,4790.3570.3470.3500.345
2021 Q31,2900.3440.3520.3560.380
2021 Q49800.3300.3350.3410.352
2022 Q11,0780.3330.3300.3410.348
2022 Q29530.2950.3120.3350.322
2022 Q39100.2910.3090.3360.310
2022 Q49380.2780.2990.3280.334
2023 Q11,1460.3020.3090.3350.354
2023 Q29420.2950.3360.3470.363
2023 Q31,2030.3640.3600.3480.347
New and young movies per quarter
Liked movies by how many ratings they had on the batch day
QuarterNo rating1 to 19In any top 20Re-ranker found, 20 or more
2019 Q22.5%4.2%0.0%8.5%
2019 Q33.4%7.0%0.0%9.6%
2019 Q45.8%6.7%0.0%9.5%
2020 Q11.7%5.9%0.0%8.8%
2020 Q21.3%3.1%0.0%9.9%
2020 Q32.0%3.6%0.0%9.7%
2020 Q42.8%3.4%0.0%9.5%
2021 Q12.0%4.0%0.0%9.5%
2021 Q22.6%4.1%0.0%9.9%
2021 Q32.9%4.4%0.0%9.7%
2021 Q44.2%5.5%0.0%9.3%
2022 Q12.7%5.3%0.0%9.3%
2022 Q22.8%5.3%0.0%9.4%
2022 Q33.0%4.3%0.0%9.5%
2022 Q43.7%6.1%0.0%8.7%
2023 Q12.3%5.1%0.0%9.4%
2023 Q23.5%5.0%0.0%10.1%
2023 Q35.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.

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
Calibration error and mean predicted chance against the observed rate, served top 20
QuarterError, retrainedError, never retrainedError, new usersPredicted, new usersObserved, new users
2019 Q20.0050.0050.1840.4930.309
2019 Q30.0080.0040.0530.2590.312
2019 Q40.0050.0050.0530.3020.291
2020 Q10.0100.0090.2210.4940.272
2020 Q20.0090.0110.2060.0940.299
2020 Q30.0210.0060.0520.2690.303
2020 Q40.0110.0110.1130.1970.309
2021 Q10.0060.0120.0600.2620.295
2021 Q20.0040.0060.1270.1690.296
2021 Q30.0070.0070.1490.1490.298
2021 Q40.0040.0050.0800.2100.284
2022 Q10.0130.0110.2110.0710.282
2022 Q20.0090.0060.2190.4870.277
2022 Q30.0050.0060.0570.2890.280
2022 Q40.0040.0080.1920.0690.261
2023 Q10.0070.0100.1900.1020.292
2023 Q20.0120.0080.0490.2410.290
2023 Q30.0120.0140.0620.2550.293

What went wrong or was missed

What I would use when

Choices in this study and when I would switch
NeedUsed hereSwitch when
CandidatesImplicit-feedback matrix factorization (ALS)A two-tower network once there is text, images or a cold catalogue to embed
Re-rankingLightGBM on ten plain features, retrained each quarterLearning-to-rank objectives once there are graded outcomes such as watch time
RegistryA versioned folder with a manifest per releaseMLflow or a cloud registry once more than one team ships models
Release gateNot used; the drift index on served features is the candidateAlways, before the first release; it is cheap and saw both bugs on day one
RollbackLive against shadow on a month of labels, below 0.95Pool two months or test the gap against its noise when monthly users are this few
New titlesNothing recommended themA reserved slot fed by metadata or an editor, from day one

How I would roll this out with a team

  1. 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.
  2. Pipeline and registry. A machine learning engineer builds quarterly retraining, the release manifest and batch scoring (about 3 engineer-weeks, assumed).
  3. 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).
  4. 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).
  5. 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.

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
Registered releases and what happened to each in the untouched run
ReleaseServedMoviesRolled back
v00-2019Q12019 Q118,842no
v01-2019Q22019 Q219,228no
v02-2019Q32019 Q319,676no
v03-2019Q42019 Q420,018no
v04-2020Q12020 Q120,344no
v05-2020Q22020 Q220,729no
v06-2020Q32020 Q321,181no
v07-2020Q42020 Q421,508no
v08-2021Q12021 Q121,851no
v09-2021Q22021 Q222,254no
v10-2021Q32021 Q322,552no
v11-2021Q42021 Q422,879month 2
v12-2022Q12022 Q123,213no
v13-2022Q22022 Q223,488no
v14-2022Q32022 Q323,730no
v15-2022Q42022 Q423,941no
v16-2023Q12023 Q124,221no
v17-2023Q22023 Q224,529no
v18-2023Q32023 Q324,739month 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.

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/