Build a Cold-Start Recommendation Strategy for New Users and Items
recommendation-systems classical-ml feature-engineering model-evaluation View full code for this problem
ML Problem & Solution
Cold Start for New Users and New Items
One name, two problems, two different fixes, and a pooled metric that cannot see either of them.
An audiobook subscription service has a home rail with 10 slots, a catalogue of 1.4 million titles, 311 million play events over 18 months and a confidence-weighted implicit matrix factorisation that scores NDCG@10 of 0.284 on a held-out week. The model is good. The problem is that 1.1 million accounts sign up every week and 62,000 titles are published every week, and for both of those populations the model’s output is not a bad recommendation, it is not a recommendation at all: an alternating-least-squares row with no observed interactions is the zero vector, because the right-hand side of its normal equations is an empty sum, so the score is constant across the entire catalogue and the ranking is whatever the tie-break happens to be.
That is usually where the phrase “cold start” gets introduced, and that is where most of the damage is done, because cold start is two different problems that share a name and the fixes are not symmetric. A new user has no interaction history and a great deal of context: a locale, a device, an hour of day, the acquisition campaign that paid for them, and in 46% of installs the one title their deep link arrived on. A new item has no interaction history and rich metadata: a genre, a language, a duration, a price tier, a publisher, a cover, a blurb. Those two situations have nothing in common except the empty sum. A new item’s metadata is a description of the thing being embedded, so it can be mapped into the learned embedding space and placed next to its neighbours. A new user’s context is a description of a session rather than of a taste, and projecting it into the same space produces a vector that is confidently wrong rather than usefully approximate.
The third cell of the taxonomy is the one that gets forgotten and is the most expensive. A new locale launch is cold on both sides at once: no accounts, no plays, and a catalogue that nobody in that market has touched. It contributes exactly zero rows to any offline evaluation set, which means every metric in the company says it is fine.
The naive fix is a popularity fallback: when the factor model has nothing, serve the 200 most-played titles. It takes an afternoon, it is defensible, and on this service it scores 0.071 NDCG@10 on accounts with no plays, which is a great deal better than the 0.000 it replaces. It is also, measured honestly, close to useless, and the reason is the part everybody gets wrong. Accounts with zero plays are 18.9% of weekly active accounts, 11.2% of rail impressions and 1.8% of held-out rows, because a held-out row is an interaction and this cohort is defined by not having many. So the pooled offline metric, which averages over rows, gives the whole cohort a weight near zero. Improving it from 0.071 to 0.163 moves the pooled number by 0.004. Regressing it to 0.000 moves the pooled number by 0.001. An offline dashboard built on a pooled metric is not insensitive to cold start, it is blind to it, and that blindness is symmetric: it will not notice the fix and it will not notice the breakage.
The analogy worth carrying is a hospital that reports average patient outcomes. The average is dominated by the many patients with routine conditions, and it is exactly as good whether the emergency department is excellent or closed. You do not fix that by improving the average, you fix it by reporting outcomes by triage category, and then you discover that the two categories need different staff.
Given a user with between 0 and several thousand observed plays and a catalogue item with between 0 and several million observed plays, produce a ranking over 1.4 million titles that optimises NDCG@10 within every interaction-count segment rather than pooled, under a 140 ms p99 rail budget, without letting catalogue coverage or the share of served slots holding a low-play title fall below their contractual floors.
Framing the Problem
This is a ranking problem with two conditioning variables that the model does not have, and the framing decision that matters is made before any modelling: the problem is split in two and the two halves get different evaluation units.
The user-side unit is the user. Metrics are computed per user over the full catalogue and then averaged, and the averaging is reported three ways: weighted by held-out rows, weighted by users, and macro-averaged over interaction-count buckets. The spread between those three is the size of the cold-start problem.
The item-side unit is the held-out event. A user-averaged NDCG cannot answer “do new titles get found”, because a new title is a property of a row rather than of a user. The item-side metric is a per-event top-20 hit rate, bucketed by the item’s interaction count at serving time and by its age in days. Using one unit for both sides is the single most common way a cold-start project ends up unable to say whether half of it worked, and it is a free mistake to avoid.
The target is binary: did this user play this title in the held-out window. Progress-weighted labels are better for the warm model and worse here, because a new title has no progress distribution to weight by and a new account’s first play is the only signal that exists.
# The two bucket families. Buckets rather than a regression on the count,
# because all the structure is at 0 and 1 where a regression has no leverage.
import numpy as np
USER_BUCKETS = ((0, 0, "0"), (1, 2, "1-2"), (3, 9, "3-9"),
(10, 39, "10-39"), (40, 10 ** 9, "40+"))
ITEM_BUCKETS = ((0, 0, "0"), (1, 4, "1-4"), (5, 19, "5-19"),
(20, 99, "20-99"), (100, 10 ** 9, "100+"))
AGE_BUCKETS = ((0.0, 14.0, "<14d"), (14.0, 60.0, "14-60d"),
(60.0, 180.0, "60-180d"), (180.0, 1e9, "180d+"))
def bucket_labels(counts: np.ndarray, spec=USER_BUCKETS) -> np.ndarray:
"""Map an as-of interaction count to a bucket label.
`counts` must be the count as of serving time, not the count over the
whole log. The gate downstream reads the same array, so a count from the
future does not merely inflate a metric here, it dissolves the cohort.
"""
out = np.empty(len(counts), dtype=object)
for lo, hi, name in spec:
out[(counts >= lo) & (counts <= hi)] = name
return out
Constraints, and the second and the fourth decided the architecture:
- 140 ms p99 for the home rail, of which candidate generation takes 78 ms and the cold-start layer gets 12. That rules out anything that embeds text at request time and is comfortable for a count lookup and two multiplies.
- A new title must be scoreable within 90 seconds of publication. Publishers push 62,000 titles a week against a contractual availability window, and a nightly batch that embeds new items is 14 hours too slow for a title published at 10am. The cold-item path therefore has to be a function that applies to one row at publish time, not a model that is refitted.
- Contractual catalogue reach. 41 publishers have minimum-exposure terms, so the share of served slots holding a title with fewer than 12 plays is a floor rather than a preference, and it is 0.090.
- No onboarding questionnaire. It was tested, it works, and it costs 31% signup abandonment, so the cold-user path has to run on context that is already in the request.
- The warm model is owned by another team and retrained nightly. The cold-start layer is a function of that model’s output distribution, which post 23 established is a thing that moves without any code changing.
The optimisation metric is **NDCG@10 macro-averaged over both bucket families**, the five user interaction-count buckets and the five item interaction-count buckets, and it exists because the three obvious alternatives all fail in the same direction. Row-weighted NDCG@10 gives accounts with no plays a weight of 0.018 and is the number that made this project hard to fund. User-weighted NDCG@10 is better and still cannot see the item side at all, because it averages over users and a new title is a property of a row. A macro average over user buckets alone picks a hand-off threshold that is 3.1 times too large, because it is improved by routing more users to a popularity-flavoured fallback and it does not charge for the slots that fallback takes away from new titles. Four guardrails, and the first two are the ones a ranking metric cannot express. **Cold-slot share**, the fraction of served slots holding a title with fewer than 12 plays, floored at 0.090 against a catalogue share of 0.231, which is the contractual term. **Catalogue coverage**, the share of distinct titles appearing in anybody's top 10 over a week, floored at 0.080. **New-title escape rate**, the share of a week's publications reaching 12 plays within 90 days, which is the only metric that measures the feedback loop rather than a snapshot of it. And **day-7 retention for accounts in their first week**, which is the business number the whole project is accountable to and which moved from 0.188 to 0.231. Across the 14 configurations below, the row-weighted metric and the cold-slot share move in opposite directions nine times.
The taxonomy has three cells and the third one is the expensive one, which is worth stating before any modelling because it changes what gets built. A new user with a warm catalogue needs a PRIOR: something defensible to serve to a stranger, conditioned on whatever context the request already carries. A new item with warm users needs a REPRESENTATION: a position in the space the warm model already learned, so that existing user factors can score it. Those are different objects, they are produced by different code, and they are evaluated with different units. The third cell, a locale launch or a brand new marketplace, is both at once, and it has a property the other two do not: it contributes exactly zero rows to any offline evaluation set, so every metric in the company reports that it is fine. The only honest way to handle it is to stop pretending it is an offline problem. On this service the pre-launch procedure is to evaluate the cold-start layer on a TRANSFER locale, holding out one existing market entirely and serving it with only the context prior and the content ridge, which gave 0.112 cold-user NDCG@10 against the 0.163 available with that market's own history, and to carry that 0.051 gap as the expected launch penalty. A single switch, a single threshold and a single fallback cannot express three situations that differ in what information exists, and the cost of trying is measurable in every table below.
Out of scope: the warm factor model itself, which is post 21; the content embedding that feeds the cold-item path, which is post 22; the session-based path for a logged-out visitor with a two-click history, which is post 25 and is a genuinely different problem from a logged-in account with no plays; and bandit formulations of the new-item exploration problem, which get one paragraph here and a whole post at id 28.
Data and Features
Three tables, and the interesting thing about them is that two of them are available before any interaction exists.
The play log is 311 million rows of (account, title, started_at, completed_fraction) over 18 months. The title metadata is 1.4 million rows of (title, genre, language, duration_minutes, price_tier, publisher, published_at, blurb), available at publication time, which is the whole basis of the cold-item path. The signup context is 1.1 million rows a week of (account, locale, device, signup_hour, campaign, deep_link_title), available at signup, which is the whole basis of the cold-user path.
| Feature block | Columns | Available at | Shape |
|---|---|---|---|
| Title metadata dummies (genre, language, duration band, price tier, publisher) | 112 | publication | sparse one-hot, 1.4M rows |
| Title blurb and author embedding (post 22’s field-aware assembly, whitened) | 384 | publication | dense, unit norm after whitening |
| Account context (locale, device, signup hour band, campaign) | 56 | signup | sparse one-hot, 4 fields |
| Deep-link title id | 1 | signup, 46% of installs | a single item id |
| As-of interaction counts, per account and per title | 2 | serving | the gate’s only input |
Two things about that table decide the rest of the section. The first two blocks describe an item and the next two describe a session, and that difference is the asymmetry the whole post is about. And the last row, two integers, is the input to the hand-off, which makes it the most leakage-prone feature in the system.
The split has to be temporal, and the reason is not the usual one
Post 21 used a temporal leave-one-out split and the argument was the ordinary one about not predicting the past from the future. Cold start adds a harder requirement: a user or an item that is cold is cold by being late in the log, so a random split does not merely leak, it destroys the cohort being measured. Hold out 20% of interactions at random and every account that signed up last Tuesday has 80% of its plays in the training set, which means it is not cold any more and the bucket that the entire project exists to improve is empty.
# Three temporal segments: history fits the models, tune fits the pivots,
# test reports. The as-of counts come from history and nowhere else.
import numpy as np
import pandas as pd
def temporal_split(events: pd.DataFrame, n_users: int, n_items: int,
t_history: float, t_tune: float) -> dict:
"""Post 23's three segments, with one cold-start-specific rule.
`user_counts` and `item_counts` are computed from the HISTORY segment,
which is exactly what the factor model saw. Computing them over the whole
frame is the most expensive bug in this post: it does not inflate a
metric, it reports that the cold cohort is small.
"""
history = events[events["t"] <= t_history].reset_index(drop=True)
tune = events[(events["t"] > t_history)
& (events["t"] <= t_tune)].reset_index(drop=True)
test = events[events["t"] > t_tune].reset_index(drop=True)
def counts(frame, col, n):
out = np.zeros(n)
if len(frame):
agg = frame.groupby(col)["plays"].sum()
out[agg.index.to_numpy()] = agg.to_numpy()
return out
return {
"history": history, "tune": tune, "test": test,
"user_counts": counts(history, "user", n_users),
"item_counts": counts(history, "item", n_items),
}
Computing the interaction count over the whole log. This is post 23's count-leakage trap with the stakes raised, because in a cold-start system the count is not a feature the model consumes, it is the variable that decides which model runs. Three measured consequences, and the second one is the reason this bug survives review. It shifts the fitted hand-off pivot, because a count that includes the future makes every cohort look better-evidenced than it was. It moves the cold-item hit rate from 0.167 to 0.008 in the companion codebase's synthetic run, because a title that got 40 plays in the test window is no longer routed to the cold path during the test window when it had none. And it DISSOLVES THE COHORT: under full-log counts the same synthetic log contains 42 zero-interaction items where the as-of counts find 205, and zero cold test users where the as-of counts find 291. The resulting dashboard has a column headed "accounts with no plays", the number in it is small, and everything downstream of that number is a decision not to fund the work. The fix is unglamorous and total: the count array is snapshotted into the model artifact alongside the factors, the gate and the evaluation read that same array, and the request-time delta comes from a streaming counter whose lag is itself monitored. The lag matters: a 31-hour counter stall in post 23's project set the gate weight to zero for every item published in the window, which counter-intuitively RAISED the cold-slot share while the quality for those items fell.
Measuring the two cohorts before building anything
The first useful artifact of this project was not a model, it was a four-column table, and it took an afternoon.
| User history bucket | Share of weekly accounts | Share of rail impressions | Share of held-out rows | Users-to-rows ratio |
|---|---|---|---|---|
| 0 plays | 18.9% | 11.2% | 1.8% | 10.5 |
| 1 to 2 | 9.4% | 7.6% | 2.1% | 4.5 |
| 3 to 9 | 14.2% | 12.8% | 8.3% | 1.7 |
| 10 to 39 | 28.1% | 29.9% | 41.1% | 0.68 |
| 40 or more | 29.4% | 38.5% | 46.7% | 0.63 |
The bottom bucket is ten and a half times larger as a share of accounts than as a share of rows. That single ratio is the whole argument for segmented reporting and it is why the pooled metric cannot be fixed by reweighting after the fact: the rows do not exist, so no weighting of them recovers the cohort.
The item side has the same shape with different numbers. Titles with zero plays are 11.4% of the catalogue and 2.9% of held-out events, and titles published in the last 14 days are 1.9% of the catalogue and 0.4% of held-out events. The leakage risk specific to the item side is more subtle than a count from the future: the held-out set is drawn from a log that the incumbent system generated, so a title the incumbent never showed has no held-out events at all, and its absence from the evaluation reads as evidence that nobody wants it. That is the feedback loop, and it means the item-side offline metric is an upper bound on how badly things are going rather than a measurement of it.
The two cohorts need two different evaluation units and the reason is grammatical rather than statistical. "This account got a bad rail" is a statement about a user, so the user-side metric averages over users. "This title was never found" is a statement about a title, and there is no user you can attribute it to, so the item-side metric has to be computed per held-out event and bucketed by the item. In the companion codebase the consequence is unmissable: adding the cold-item path moves the all-events top-20 hit rate from 0.176 to 0.185, which is 0.009 and looks like nothing, and moves the zero-play bucket from 0.0007 to 0.1670, which is a factor of 239. The same change read through a user-averaged NDCG@10 moves the pooled number by -0.004. Three numbers, one change, and only one of them is a measurement of what the change did. There is a second-order finding inside the same table that is worth more than the first: the 20-to-99-play bucket FELL from 0.129 to 0.062. Slots are zero-sum, so every slot a cold item wins is taken from a warm one, and the items it takes them from are the ones just above the gate rather than the blockbusters. A cold-start fix is a redistribution and the only honest way to present it is with both directions visible.
The Naive Baseline
Four baselines, each isolating one thing, because the final system has four moving parts and a single “before” number cannot attribute anything.
# The two model-free cold-user fallbacks. No fitting beyond a count table.
import numpy as np
class GlobalPopularity:
"""log1p of the as-of play count. The thing to beat, and it is not easy."""
def __init__(self, item_counts: np.ndarray):
self.scores_ = np.log1p(item_counts)
def score(self, users: np.ndarray) -> np.ndarray:
return np.repeat(self.scores_[None, :], len(users), axis=0)
class ContextPopularity:
"""Popularity inside a context cell, shrunk towards the global rate.
The shrinkage is the model. A cell holding 11 accounts has an empirical
title distribution that is almost all noise, and an unshrunk conditioned
prior is worse than the global one for exactly the cells that matter
most, which are the new locales. `shrink` is a prior sample size in
pseudo-plays: the cell's own evidence only dominates past that point.
"""
def __init__(self, shrink: float = 400.0):
self.shrink = shrink
self.table_ = None
def fit(self, history, cell, n_cells: int, n_items: int):
glob = np.zeros(n_items)
table = np.zeros((n_cells, n_items))
u = history["user"].to_numpy()
i = history["item"].to_numpy()
p = history["plays"].to_numpy(float)
np.add.at(glob, i, p)
np.add.at(table, (cell[u], i), p)
glob_p = glob / max(glob.sum(), 1.0)
tot = table.sum(axis=1, keepdims=True)
rate = (table + self.shrink * glob_p[None, :]) / (tot + self.shrink)
self.table_ = np.log(rate + 1e-12)
self.cell_ = cell
return self
def score(self, users: np.ndarray) -> np.ndarray:
return self.table_[self.cell_[users]]
| Baseline | Pooled NDCG@10 | Cold-user NDCG@10 | Cold-item hit@20 | Catalogue coverage | Cold-slot share |
|---|---|---|---|---|---|
| Warm ALS alone, 192 factors | 0.284 | 0.000 | 0.000 | 4.1% | 0.011 |
| Warm ALS, popularity fallback for cold rows | 0.284 | 0.071 | 0.000 | 4.1% | 0.011 |
| Warm ALS, random fallback for cold rows | 0.283 | 0.003 | 0.000 | 61.4% | 0.228 |
| Content-space scoring for cold rows, post 22’s route | 0.276 | 0.141 | 0.128 | 9.3% | 0.071 |
Row two is the baseline to beat and it is the one almost every production system actually runs. It is not embarrassing: 0.071 against 0.000 on the cold-user bucket is a real improvement over doing nothing, it costs one count table, and it is the correct first version.
Row three is in the table because it is the control that makes the coverage column interpretable. Serving a uniformly random title to cold rows reaches 61.4% of the catalogue, which is the best coverage number anywhere in this post, and it is worthless. A coverage metric without an accuracy metric next to it is as misleading as an accuracy metric without a coverage metric next to it, and the pair is the minimum honest reporting unit.
Row four is the interesting baseline and it is the one that a team who has read post 22 will build. Represent each title by its whitened content embedding, represent each user by the weighted mean of the embeddings of what they have played, and score by cosine. It handles both cold cases at once with one index, it gets 0.141 on cold users and 0.128 on cold items, and it costs 0.008 pooled NDCG@10 because it is a worse model than ALS for anybody warm.
Treating the popularity fallback in row two as a solved cold-start problem and moving on. It is the most common state of production recommenders and it looks finished from every angle a dashboard offers. The diagnostics that distinguish "we have a cold-start strategy" from "we have a popularity fallback" are three columns that no recommender library computes, and all three are in the table above. Catalogue coverage: 4.1%, which is identical to the warm model's, because the fallback serves the same head the warm model already serves. The share of served slots inside the 200 most-played titles: 100% for the cold cohort, against 38% for the shipped system. And the cold-slot share: 0.011 against a catalogue share of 0.231, so a title below the gate threshold is 21 times under-represented in the slots it could appear in. The reason this matters beyond aesthetics is that the fallback is doing nothing the feature was funded to do. Nobody builds a cold-start path so that a new account sees the same ten bestsellers the app's marketing page already showed them; they build it so that a new account finds something, and the measurement of "finds something" is a coverage number rather than an accuracy number. The honest version of row two is that it scores 0.071 and reaches 0.4% of the catalogue, and the project should be judged on both.
The four rows also settle a question that gets argued rather than measured, which is whether the warm model should simply be replaced by something that handles both cases. Row four is that proposal, implemented properly with post 22’s whitened embeddings, and it costs 0.008 pooled NDCG@10 across 24 million accounts to buy 0.141 and 0.128 on two cohorts that are 18.9% of accounts and 11.4% of the catalogue. That is not an obviously bad trade and it is the trade a one-model answer forces you to make.
Build four baselines rather than one, and make the fourth one the plausible competing architecture rather than a straw man, because the number that matters is not how much better the final system is than nothing. Row one and row two differ only in a fallback and they are IDENTICAL on the pooled metric to three decimal places, 0.284 and 0.284, which is the cleanest demonstration in this post that the pooled metric cannot see the cold cohort: one of those configurations serves a cold account the ten bestsellers and the other serves it an arbitrary slice of a 1.4 million title catalogue, and the reported metric does not distinguish them. Row three is the control that keeps the coverage column from being read as a good thing on its own. And row four is the honest bound on the whole project: a content-space recommender handles both cold cases with one index and costs 0.008 pooled. Everything in the next section is an argument that you can keep the 0.284 and get the cold performance at the same time, and that the way to do it is not a better single model but two models and a gate. Without row four in the table, that argument has nothing to be an argument against.
The Solution
Three parts, and they are deliberately three rather than one: a cold-user score family, a cold-item embedding predictor, and a count-gated hand-off that is the same form as post 23’s and is fitted rather than guessed.
The cold-user path: a different score family, not a projection
The tempting move is symmetry. If a cold item can be placed in the learned embedding space by regressing its metadata onto the factors, surely a cold user can be placed there by regressing their context onto the user factors. The construction is identical and it is 20 lines.
It does not work, and the measurement is worth more than the argument. Regressing the 56 context columns onto the 192 user factors gives a held-out R-squared of 0.07, against the item side’s 0.38. Using the predicted user vectors to score the catalogue gives cold-user NDCG@10 of 0.089, which beats the popularity fallback’s 0.071 by a useful 0.018 and loses to the score-family route below by 0.074.
The mechanism generalises past this dataset, and it is the reason to prefer a separate score family rather than a projection whenever the available features describe the context rather than the entity. A ridge fit on a feature block with little signal does not degrade to “no opinion”, it degrades to a confidently wrong vector pointing at the population mean. A dot product then ranks that vector as though it were a taste, and the resulting rail is not a sensible default, it is a specific and arbitrary opinion. A score family degrades to a popularity prior, which is a defensible thing to serve to somebody you know nothing about.
So the cold-user path is a ladder of priors over increasingly specific context, standardised per user so they can be mixed, which is post 23’s effective-weight lesson applied to two cold models rather than to a cold and a warm one.
# The cold-user score: a context-conditioned prior plus the deep-link item's
# co-occurrence row, each standardised per user before mixing.
import numpy as np
def zscore_rows(S: np.ndarray) -> np.ndarray:
"""Per-user standardisation, which is what makes two families addable.
Post 23 measured a 7.6-fold spread mismatch turning a nominal weight of
0.5 into an effective weight of 0.884. The two families here differ by a
factor of 4.5 in the other direction, which is the same bug mirrored.
"""
mu = S.mean(axis=1, keepdims=True)
sd = np.maximum(S.std(axis=1, keepdims=True), 1e-9)
return (S - mu) / sd
class SeedCooccurrence:
"""Item-item co-occurrence, scored from the one title the user arrived on.
`normalise` is not a detail. A raw co-occurrence row is dominated by the
popularity of the co-occurring title, so the unnormalised version is a
popularity prior wearing a personalisation costume and it scores like
one. Dividing by the geometric mean of the two counts removes that, at
the cost of promoting titles whose only co-occurrence is with the seed.
"""
def __init__(self, normalise: str = "cosine", shrink: float = 20.0,
fallback_weight: float = 0.9):
self.normalise = normalise
self.shrink = shrink
self.fallback_weight = fallback_weight
def fit(self, history, n_items, item_counts, seed_items):
C = np.zeros((n_items, n_items))
for _, grp in history.groupby("user"):
it = np.unique(grp["item"].to_numpy())
if len(it) >= 2:
C[np.ix_(it, it)] += 1.0
np.fill_diagonal(C, 0.0)
if self.normalise == "cosine":
C = C / (np.sqrt(np.outer(item_counts, item_counts)) + self.shrink)
self.C_, self.seed_ = C, seed_items
pop = np.log1p(item_counts)
self.pop_ = pop / max(pop.std(), 1e-9)
return self
def score(self, users: np.ndarray) -> np.ndarray:
seeds = self.seed_[users]
out = np.zeros((len(users), self.C_.shape[0]))
has = seeds >= 0
if np.any(has):
rows = self.C_[seeds[has]]
out[has] = rows / np.maximum(rows.std(axis=1, keepdims=True), 1e-9)
# No deep link: fall back to popularity rather than to zeros, which
# would otherwise hand the account an arbitrary catalogue order.
out[~has] = self.pop_[None, :]
return out + self.fallback_weight * self.pop_[None, :]
| Cold-user model | Cold-user NDCG@10 | Context cells | Catalogue coverage | Slots in the top 200 |
|---|---|---|---|---|
| Global popularity, top 200 titles | 0.071 | 1 | 0.4% | 100% |
| Conditioned on locale | 0.101 | 38 | 1.4% | 81% |
| Conditioned on locale, device and hour band | 0.124 | 456 | 2.8% | 62% |
| Conditioned on locale, device, hour and campaign | 0.115 | 5,016 | 4.9% | 54% |
| Plus the deep-link title’s co-occurrence row | 0.163 | 456 | 6.2% | 41% |
Three readings, and the third one is where the engineering time should go.
Conditioning helps and it helps much less than the cell count suggests. Locale alone buys 0.030 of the total 0.053 available from context, and past 456 cells the prior starts losing, because the cells are empty. A context cell is a low-cardinality description of a session and not a description of taste, and no amount of crossing fixes that.
The shrinkage constant is where the remaining care goes, and it goes there for a specific reason. At 456 cells the prior is insensitive to it, with 0.122 at a prior of 0 and 0.124 at a prior of 400. At 5,016 cells it is the only thing that matters, 0.093 unshrunk against 0.115 at a prior of 400. Shrinkage is a prior sample size, so it only binds where the cells are thin, which is exactly where a new locale launch lives. The right way to choose it is to find the smallest cell you intend to serve and to set the prior above its typical interaction count.
The deep-link title is worth 0.039, more than everything else about the context put together, and it is one join away in almost every product. 46% of installs arrive on a title page from an advertisement, a share link or a search result, and for that cohort cold-user NDCG@10 is 0.212 against 0.121 for the installs that arrive on the home screen. Nobody treats it as a cold-start feature because it is logged by the growth team as an attribution field rather than by the recommendations team as a signal.
The co-occurrence normalisation is the place where the popularity trap hides inside a single component, and it is worth looking at closely because the same shape appears in every cold-start model that has a popularity term. A raw co-occurrence row is mostly a ranking of how popular the co-occurring titles are, because a popular title co-occurs with everything. Cosine normalisation removes that and gives up accuracy for coverage: on the production data the raw version scores 0.171 cold-user NDCG@10 with 2.1% coverage and the cosine version scores 0.163 with 6.2%, so the "better" model by the accuracy column is the one that has quietly reverted to popularity. The companion codebase makes the mechanism undeniable by sweeping the popularity term that the cosine version adds back for users with no deep link: at weights of 0.0, 0.9 and 1.8 the cold-user NDCG@10 is 0.034, 0.051 and 0.072, so **the model gets monotonically better the more of it is replaced by popularity**, and that constant is not part of the model and appears in no paper. If the only number on the dashboard is accuracy, that constant will be tuned upwards until the component is a popularity prior, by a well-meaning engineer, in an afternoon, and the commit message will say "tuned cold-start fallback". The structural defence is to compute catalogue coverage in the same function that computes the accuracy so that they land in the same dictionary and the same regression test.
The cold-item path: regression onto the learned embedding space
The cold-item fix is the one that works cleanly, and the idea is one sentence: the warm model has already decided what the item space looks like, a new title cannot be placed in it by factorisation because it has no plays, but it can be placed in it by a regression from the metadata that exists at publication time.
The analogy: the factor model has drawn a map of the catalogue from how people move through it, and a new title arrives with a description but no coordinates. You do not redraw the map, you learn to read descriptions into coordinates from the titles that have both.
# Content metadata regressed onto the learned item factors, then blended
# into them with a count gate. This is Gantner et al. 2010's attribute-to-
# factor mapping, and van den Oord et al. 2013's audio-to-factor regression.
import numpy as np
def _design(X):
return np.hstack([np.ones((len(X), 1)), X])
def _ridge(X, Y, reg):
"""Closed form. The penalty must NOT hit the intercept column.
Penalising the intercept shrinks every predicted factor towards zero
rather than towards the mean, which is a different and worse bias: a
short vector loses to every warm item regardless of its content.
"""
pen = reg * np.eye(X.shape[1])
pen[0, 0] = 0.0
return np.linalg.solve(X.T @ X + pen, X.T @ Y)
class ColdEmbeddingPredictor:
def __init__(self, reg=12.0, min_train_count=50.0, rescale=True,
holdout_frac=0.25, seed=26):
self.__dict__.update(locals())
del self.self
def fit(self, X, F, counts):
"""Fit on warm-ENOUGH items only.
A factor vector fitted from three plays is mostly the regulariser, so
training the regression on those rows teaches it to predict the
regulariser. This threshold is an AGGRESSIVENESS knob rather than an
accuracy knob and the two metrics move in opposite directions along
it; see the evaluation table.
"""
rng = np.random.default_rng(self.seed)
warm = np.flatnonzero(counts >= self.min_train_count)
perm = rng.permutation(len(warm))
n_hold = max(int(self.holdout_frac * len(warm)), 5)
hold, train = warm[perm[:n_hold]], warm[perm[n_hold:]]
self.beta_ = _ridge(_design(X[train]), F[train], self.reg)
pred = _design(X[hold]) @ self.beta_
ss_res = np.sum((F[hold] - pred) ** 2, axis=0)
ss_tot = np.sum((F[hold] - F[hold].mean(axis=0)) ** 2, axis=0)
self.r2_per_dim_ = 1.0 - ss_res / np.maximum(ss_tot, 1e-12)
self.r2_ = float(1.0 - ss_res.sum() / max(ss_tot.sum(), 1e-12))
self.target_norm_ = float(np.median(np.linalg.norm(F[train], axis=1)))
return self
def predict(self, X):
P = _design(X) @ self.beta_
if self.rescale:
# A ridge prediction is shrunk towards the mean, so predicted
# vectors are systematically SHORTER than learned ones and score
# lower against every user. Geometry, not content.
n = np.maximum(np.linalg.norm(P, axis=1, keepdims=True), 1e-9)
P = P / n * self.target_norm_
return P
def blended_factors(self, F_learned, X, counts, pivot=12.0, w_max=1.0):
"""The item-side hand-off, done in the EMBEDDING space.
Post 23 blended two scores. On the item side there is a better place,
because the predicted representation lives in the same space as the
learned one, so the user side of the dot product never has to know
whether the item was cold.
"""
w = (np.full(len(counts), w_max) if pivot <= 0
else w_max * counts / (counts + pivot))
return w[:, None] * F_learned + (1.0 - w[:, None]) * self.predict(X)
Four things in that class are worth more than the headline, and the first is the diagnostic that tells you in advance how much this approach can be worth on your data.
The per-dimension R-squared is the ceiling and it is not uniform. Pooled across 192 factors the held-out R-squared is 0.38, and the distribution runs from 0.61 on the best factor to 0.04 on the worst, with 71 of 192 factors above 0.20. The predictable dimensions are the coarse ones, genre-like and language-like and duration-like, and the unpredictable ones are the idiosyncratic quality directions that are exactly what a factor model exists to discover. So a predicted embedding is a good approximation of where a title sits in the broad structure of the catalogue and a poor approximation of whether it is any good, which is the right expectation to set with a product team before anything ships.
Predicting into the learned space beats scoring in content space by 0.021. Post 22’s route, cosine between a user’s content profile and a title’s content embedding, gets 0.128 cold-item hit rate. Predicting the factor vector and scoring with the existing user factors gets 0.149. The difference is that the second route leaves the user side of the system completely unchanged, so a warm user’s taste, learned from 400 plays of collaborative signal, is applied to the new title. The first route throws that away and replaces it with a content profile.
The norm problem is the single largest lever and it cuts both ways. A ridge prediction is shrunk towards the mean, so predicted factor vectors have a median norm 0.64 times the learned ones, and a shorter vector produces a smaller dot product against every user. The cold items were being demoted by geometry rather than by content. Rescaling each predicted vector to the median warm norm is worth 0.082 of cold-item hit rate and costs 0.011 of pooled NDCG@10, because the slots have to come from somewhere. In the companion codebase the same trade is 0.154 against 0.019. There is no setting that is better on both columns.
The minimum training count is an aggressiveness knob, not an accuracy knob. Fitting the regression only on titles with 50 or more plays gives the cleanest target, the highest held-out R-squared and the best cold-item hit rate, and it costs the most pooled NDCG@10, because it predicts longer and more confident vectors that take more slots from warm titles. Anybody who tunes it against a pooled metric will set it to 1 and conclude the whole approach does not work.
The design decision that mattered most was doing the item-side hand-off inside the embedding and the user-side hand-off at the score level, which looks like an inconsistency and is the whole architecture. On the item side the two representations live in the same space, so blending them produces a vector that the existing dot product consumes without knowing anything happened: the user factors, the candidate generator and the whole serving path are untouched, and a new title becomes scoreable 90 seconds after publication by applying one 496-by-192 matrix. On the user side there is no shared space, because the cold-user signal is a context-conditioned count table and a co-occurrence row rather than a point in the factor geometry, so the blend has to happen between standardised scores. Trying to force the user side into the embedding, which we did first because symmetry is seductive, cost 0.074 cold-user NDCG@10 against the score-level route and produced a failure mode that is worse than the number: a confidently wrong vector, where a prior would have produced a defensible default. The general rule is that a predicted representation is only usable when the features DESCRIBE the entity being represented. Item metadata describes an item. Signup context describes a session. The same 20 lines of ridge regression are the right answer in the first case and the wrong answer in the second, and the thing that tells you which case you are in is the held-out R-squared, which is 0.38 and 0.07.
The hand-off: two gates, fitted against the right objective
Post 23 established the count-gated blend, w(n) = w_max * n / (n + pivot), and its effective-weight diagnostic. Two things are new and both are about the pivot rather than the form.
The pivot is a data question with an answer. It is derived from the count at which the warm model’s segmented quality crosses the cold model’s, and that crossover is directly measurable on a tune segment. Guessing it is the universal practice, and the guesses cluster at 5 and 20 for no reason anybody can state.
There are two pivots, and they are nothing like each other. The user-side crossover is 4 plays and the item-side crossover is 41 plays. The asymmetry has a mechanism: a user’s factor vector is fitted from their own interactions, so one play already gives them a vector pointing at that title, which is most of an item-item recommendation; an item’s factor vector is fitted from everybody’s interactions and needs many of them before it beats its own metadata.
# Two gates, two pivots, fitted on a tune segment against several objectives.
import numpy as np
def gate_weight(counts, pivot, w_max=1.0):
if pivot <= 0:
return np.full(len(counts), w_max)
return w_max * counts / (counts + pivot)
class ColdStartRecommender:
"""Warm factors, predicted cold item factors, cold user scores, two gates."""
def __init__(self, als, cold_pred, cold_user_score, item_content,
item_counts, user_counts, user_pivot=9.0, item_pivot=12.0,
w_max=1.0):
self.als = als
self.cold_user_score = cold_user_score
self.user_counts = user_counts
self.user_pivot = user_pivot
self.w_max = w_max
self.V_eff = cold_pred.blended_factors(
als.V, item_content, item_counts, pivot=item_pivot, w_max=w_max)
def scores(self, users):
warm = zscore_rows(self.als.U[users] @ self.V_eff.T)
cold = zscore_rows(self.cold_user_score[users])
w = gate_weight(self.user_counts[users], self.user_pivot,
self.w_max)[:, None]
return w * warm + (1.0 - w) * cold
def fit_pivot(build_scores, objectives: dict, grid):
"""Sweep one pivot and report the argmax under EVERY objective given.
The objectives disagree and the disagreement is the output. A row-pooled
metric is dominated by warm rows. A macro over USER buckets gives cold
users equal say and is still blind to the item half. A two-sided macro
that also averages the item buckets is the only one that sees both, and
it lands somewhere else again, because the two gates interact.
"""
scores = {name: [] for name in objectives}
for p in grid:
S = build_scores(p)
for name, fn in objectives.items():
scores[name].append(fn(S))
return {name: grid[int(np.argmax(v))] for name, v in scores.items()}
The sweep is where this stops being a tuning exercise. The same grid, fitted on the same tune segment, gives three different answers depending on which segmented metric you maximise:
| Objective on the tune segment | Fitted user pivot | Test cold-user NDCG@10 | Test cold-item hit@20 | Test pooled NDCG@10 |
|---|---|---|---|---|
| Row-weighted NDCG@10 | 28 | 0.163 | 0.041 | 0.296 |
| Macro over user buckets | 14 | 0.163 | 0.094 | 0.293 |
| Macro over user and item buckets | 9 | 0.163 | 0.149 | 0.288 |
| Resampled 95% interval, two-sided objective | 6 to 17 | 0.163 | 0.112 to 0.171 | 0.286 to 0.291 |
Three readings, and the third is the one that changed how this team fits anything.
The cold-user column does not move at all, and that is correct rather than a bug: an account with zero plays gets a gate weight of exactly 0 / (0 + pivot) = 0 for any positive pivot, so the pivot cannot affect it. The pivot is a parameter about the second, third and tenth play, not about the first, which is a sentence worth saying out loud because the whole conversation about cold start is conducted as though the pivot were the cold-user knob.
The cold-item column moves by a factor of 3.6 across objectives that differ only in what they average over. The mechanism is that the gates interact: raising the user pivot routes more accounts to the cold score family, that family has a popularity flavour, and those slots come out of the new titles the item gate just rescued. Fitting two gates one at a time against a user-side metric optimises one half of the problem into the other half, and the only objective that notices is the one that averages both bucket families.
The resampled interval is the part that stops a team over-reading the sweep. Bootstrapping the tune accounts 200 times gives a 95% interval from 6 to 17 for the two-sided argmax, so four plausible pivots are statistically indistinguishable and the difference between them is 0.059 of cold-item hit rate. A flat optimum with a wide interval and a steep guardrail consequence is the signature of a parameter that should be set by the guardrail.
Evaluation and Metrics
Six numbers, reported together, because each one answers a question the others cannot.
NDCG@10, pooled three ways. Row-weighted, user-weighted and macro over the five interaction-count buckets. On the warm model alone these read 0.284, 0.239 and 0.204, and the 0.080 spread between the first and third is the size of the cold-start problem in this log.
Top-20 hit rate per held-out event, bucketed by the item’s as-of count. The item side’s unit. The all-events number and the zero-play number move by factors of 1.05 and 239 for the same change.
Catalogue coverage, the share of distinct titles appearing in any top 10 over a week.
Cold-slot share, the share of served slots holding a title below the item pivot, against the catalogue share of such titles.
New-title escape rate, the share of a week’s publications reaching 12 plays within 90 days.
Day-7 retention for accounts in their first week, the business number.
# The two diagnostics no recommender library computes, in the same function
# as the accuracy so they land in the same dictionary.
import numpy as np
def catalogue_coverage(topk: np.ndarray, n_items: int, k: int = 10) -> float:
"""Share of the catalogue appearing in anybody's top-k slots."""
return float(len(np.unique(topk[:, :k])) / n_items)
def cold_slot_share(topk: np.ndarray, item_counts: np.ndarray,
threshold: float = 12.0, k: int = 10) -> float:
"""Share of served slots holding an item below the item-side pivot.
The threshold is tied to the gate rather than to zero. Zero-play titles
are the extreme case; the cohort that needs protecting is everything
below the count at which the warm model becomes the better scorer.
"""
sel = topk[:, :k].ravel()
return float(np.mean(item_counts[sel] < threshold))
def pooled_views(values: np.ndarray, n_positives: np.ndarray,
labels: np.ndarray, order: list) -> dict:
"""Three poolings of one per-user metric. They are not close.
row weights each user by their held-out positive count, which is what
a metric computed over an event table does by default
user weights each active account equally
macro weights each interaction-count bucket equally, which is the only
view in which a cold cohort can move the number at all
"""
m = ~np.isnan(values)
w = np.where(m, n_positives, 0.0)
seg = {name: float(np.mean(values[(labels == name) & m]))
for name in order}
return {
"row_weighted": float(np.sum(values[m] * w[m]) / max(w[m].sum(), 1e-9)),
"user_weighted": float(np.mean(values[m])),
"bucket_macro": float(np.mean([v for v in seg.values()
if not np.isnan(v)])),
"segments": seg,
}
The full ladder, on a held-out week of 4.1 million accounts and 19.8 million events:
| Configuration | Pooled NDCG@10 | User-weighted | Bucket macro | Cold-user NDCG@10 | Cold-item hit@20 | Coverage | Cold-slot share |
|---|---|---|---|---|---|---|---|
| Warm ALS alone | 0.284 | 0.239 | 0.204 | 0.000 | 0.000 | 4.1% | 0.011 |
| + popularity fallback | 0.284 | 0.247 | 0.218 | 0.071 | 0.000 | 4.1% | 0.011 |
| + locale-conditioned prior | 0.285 | 0.253 | 0.229 | 0.101 | 0.000 | 4.6% | 0.012 |
| + device and hour conditioning | 0.286 | 0.258 | 0.236 | 0.124 | 0.000 | 5.4% | 0.014 |
| + deep-link co-occurrence | 0.287 | 0.266 | 0.247 | 0.163 | 0.000 | 7.1% | 0.019 |
| + predicted cold item factors, no rescale | 0.290 | 0.270 | 0.251 | 0.163 | 0.067 | 8.8% | 0.044 |
| + norm rescaling (the shipped shape) | 0.288 | 0.271 | 0.254 | 0.163 | 0.149 | 11.8% | 0.096 |
| Shipped, user pivot fitted on pooled NDCG | 0.296 | 0.268 | 0.249 | 0.163 | 0.041 | 7.9% | 0.028 |
| Shipped, one shared pivot of 12 | 0.289 | 0.272 | 0.255 | 0.163 | 0.128 | 10.9% | 0.081 |
| Shipped, raw co-occurrence instead of cosine | 0.291 | 0.274 | 0.257 | 0.171 | 0.147 | 6.9% | 0.091 |
| Content-space scoring for all cold rows | 0.276 | 0.258 | 0.241 | 0.141 | 0.128 | 9.3% | 0.071 |
| Cold user embedding projected from context | 0.285 | 0.259 | 0.238 | 0.089 | 0.149 | 10.4% | 0.093 |
| Random fallback for cold rows | 0.283 | 0.241 | 0.207 | 0.003 | 0.000 | 61.4% | 0.228 |
| Onboarding questionnaire, 3 questions | 0.289 | 0.279 | 0.266 | 0.204 | 0.149 | 13.1% | 0.104 |
Five readings, and the first is the point of the whole post.
Between row 1 and row 7 the pooled column moves from 0.284 to 0.288 and the cold-user column moves from 0.000 to 0.163. A project judged on the first column delivered 0.004 over two quarters. The same project judged on the fourth column delivered 0.163, on the fifth 0.149, and on day-7 retention for new accounts 0.188 to 0.231. Those are the same commits.
Row 8 is the configuration a well-run team would ship. Fit the hand-off pivot against the pooled metric, which is the metric the company reports, and you get the best pooled number in the table at 0.296 and the second-worst cold-item hit rate among the configurations that have a cold-item path at all. Nothing about that process is sloppy. The objective was wrong.
Row 10 is the uncomfortable one. Raw co-occurrence beats the shipped configuration on the pooled column, the user-weighted column, the macro column and the cold-user column. It loses only on catalogue coverage, 6.9% against 11.8%, and on the share of slots inside the top 200 titles, 63% against 38%. Whether that is a better system is a contract question rather than a modelling one, and it has to be decided before the sweep rather than after it, because afterwards there is a table that says the popularity-flavoured variant won.
Row 12 is the symmetry that does not hold. Projecting context into the user embedding gets the cold-item column right, because that half is unchanged, and lands at 0.089 on cold users against 0.163. Note that it looks perfectly reasonable on every pooled column, within 0.003 of the shipped configuration, which is how a worse fallback survives review.
Row 14 is the honest ceiling. Asking three onboarding questions beats every modelling approach here by 0.041 cold-user NDCG@10, and it costs 31% signup abandonment, which on 1.1 million weekly signups is 341,000 accounts a week. The modelling exists because the product decision went the other way, and it is worth knowing that the modelling recovers 80% of what asking would have bought.
Read the table by column rather than by row and it stops being a ladder. The pooled column's maximum is row 8, the configuration whose hand-off was fitted against the pooled metric, and that row has the second-worst cold-item hit rate among the seven configurations that have a cold-item path at all: 0.041 against the shipped 0.149. The user-weighted and macro columns' maximum is row 14, the questionnaire, which is not a model. The cold-user column's maximum among the modelling rows is row 10, the raw co-occurrence variant, which also has the SECOND-WORST catalogue coverage in the table at 6.9%. And the coverage column's maximum is row 13, a uniformly random fallback, which is worthless. **Not one of the six columns, read alone, recommends the configuration that shipped.** That is not a defect of the table, it is what a genuinely multi-objective problem looks like once the objectives are all written down, and it is the reason the decision about which guardrail is contractual has to be made before the sweep. Make it afterwards and there is a table in which the popularity-flavoured variant won on four columns out of six, produced by a process nobody can fault, and the argument against shipping it is a preference rather than a number.
The metric that catches silent degradation here is not NDCG@10 on a fresh holdout, it is the **daily cold-slot share and new-title escape curve over a frozen cohort**, paired with the staleness of the count snapshot. 200,000 account profiles are held frozen, run against the live serving path nightly, and four numbers are recorded: the share of served slots holding a title below 12 plays, the catalogue coverage of the union of those rails, the median age in days of the oldest title in each rail, and the lag of the streaming play counter that feeds the gate. It has fired five times in 19 months and the offline NDCG@10 caught none of them, which is not a surprise once you notice that the offline holdout is made of interactions with titles that already had interactions. Once when a publisher metadata feed started sending an empty genre field for a new imprint, which sent 14,000 titles' predicted factors to the intercept and took their share of slots to zero without changing a single line of code. Once when the nightly ALS retrain changed its factor count from 192 to 256 as part of an unrelated capacity change, which invalidated the ridge coefficients fitted against 192 and produced predicted vectors in the wrong space: the cold-slot share went from 0.096 to 0.004 overnight and the pooled metric moved by 0.002. Once when the play counter fell 26 hours behind during a migration, which set the gate weight to zero for every title published in the window and, counter-intuitively, RAISED the cold-slot share while the quality of those slots fell, because those titles were being served from a predicted embedding with no popularity prior at all. Once when a candidate-generation change cut the pool from 1,400 to 600 titles, which removed most low-play titles before the cold-start layer ever saw them and made the whole system a no-op. And once correctly, when a locale launch legitimately moved every distribution and the audit flagged it as expected. The general lesson is that a cold-start layer's behaviour is a function of two upstream distributions, the metadata feed's completeness and the factor model's geometry, and neither of those is a versioned artifact in a normal ML stack.
Common Pitfalls and Failure Modes
| Pitfall | Why It Happens | How to Detect | How to Fix |
|---|---|---|---|
| Reporting a pooled offline metric | It is the metric the company already has | Pool the same per-user numbers three ways; 0.284, 0.239, 0.204 here | Macro-average over interaction-count buckets, and report the share table next to it |
| One evaluation unit for both sides | A recommender’s metric is user-averaged by convention | Bucket held-out EVENTS by the item’s count; the all-events column moves 0.009 where the cold bucket moves 0.149 | Per-user NDCG for users, per-event hit rate for items |
| A random train/test split | It is the default everywhere | Count users with zero history in the test set; a random split leaves almost none | Temporal three-segment split, always |
| The interaction count computed over the whole log | The count feels like a static attribute | Compare cohort SIZES under both counts; 205 cold items against 42 | Snapshot counts into the model artifact, apply a monitored streaming delta |
| Projecting user context into the item embedding | The item-side fix works, so symmetry is assumed | Held-out R-squared per side; 0.38 against 0.07 | A separate score family for the user side; worth 0.074 cold-user NDCG@10 |
| Predicted factor vectors shorter than learned ones | A ridge prediction is shrunk towards the mean | Median norm ratio; 0.64 here | Rescale to the median warm norm; worth 0.082 cold-item hit rate, costs 0.011 pooled |
| Fitting the regression on every warm item | More rows looks like more data | Sweep the minimum count; 0.149 at 50 plays against 0.089 at 1 | Fit only on items whose factors mean something, and accept the pooled cost |
| One shared gate pivot for both sides | A single parameter is easier to reason about | Measure both crossovers; 4 plays and 41 plays | Two pivots, fitted separately; worth 0.021 cold-item hit rate |
| Fitting the pivot against the pooled metric | It is the reported metric | Fit under three objectives; 28, 14 and 9 | Fit against a macro over BOTH bucket families |
| A popularity fallback declared a cold-start strategy | It improves the only number being watched | Catalogue coverage and top-200 slot share; 0.4% and 100% | Report coverage from the same function as the accuracy |
| A popularity term inside a cold model | It is a sensible default for missing inputs | Sweep its weight; 0.034, 0.051, 0.072 as it rises | Treat the weight as a product parameter with a coverage floor |
| New items never escaping the feedback loop | No impressions without a score, no score without impressions | Escape rate within 90 days; 38.7% under warm scores alone | Metadata-seeded scores first, exploration second |
| A locale launch with no rows in any metric | Both sides are cold, so the cohort has no log | Count held-out rows per locale; a new locale has zero | A pre-launch evaluation on a transfer locale, and an online guardrail |
The exploration cost of a new item, quantified
The feedback loop is quoted constantly and almost never measured. It is a closed cycle with five arrows: no score, so no slot; no slot, so no play; no play, so no count; no count, so no factor vector; no factor vector, so no score. Under the warm model with a popularity prior, 38.7% of a quarter’s publications reach 12 plays within 90 days, which means 61.3% of 62,000 titles a week never become scoreable by the system that is supposed to recommend them, and the median escape time for the ones that do is 71 days.
Three fixes, and they have very different prices. The companion codebase simulates all three forward over 90 days on a synthetic catalogue, and the production numbers below are from the live experiment:
| Policy | Escape rate in 90 days | Median escape | Never escaped | Rail play-through cost |
|---|---|---|---|---|
| Warm scores with a popularity prior | 38.7% | 71 days | 61.3% | 0.0% |
| Metadata-seeded scores and a predicted popularity prior | 65.3% | 23 days | 34.7% | 0.4% |
| Plus an uncertainty bonus of 0.9 score sd over sqrt(1 + n) | 68.6% | 19 days | 31.4% | 1.1% |
| Plus one forced exploration slot in eight | 81.9% | 34 days | 18.1% | 3.8% |
Metadata seeding is close to free and should be done first, because it changes a score that was absent rather than displacing a score that was good. Everything after it is displacement, and the cost is the displacement. The forced-slot row has the highest escape rate and a longer median than the uncertainty bonus, which is not a contradiction: it rescues the hard tail, and the hard tail takes longer, which drags the median among escapers upwards. Reading the median without the escape rate would rank forced slots below doing nothing.
The second half of metadata seeding is the half that gets forgotten. Seeding the embedding fixes the personalised term, and the popularity term is still log1p(0) for a new title, so in any ranker that adds a popularity prior the seeded title is still last. A second ridge from metadata onto log1p(count), fitted on warm titles, gives a new release a predicted popularity, and without it the seeding bought 0.079 of escape rate rather than 0.294 in the companion codebase’s simulation.
Contextual bandits are the principled version of the last two rows and they are post 28’s subject. The short version of why they are not the first thing to build: an uncertainty bonus of b / sqrt(1 + n) is a crude upper confidence bound whose constant has to be tuned, and the point at which tuning that constant becomes harder than running a proper posterior is the point at which a bandit earns its operational cost. On this service that point arrived after the seeding was already shipped, which is the right order.
Sort the pitfall table by its detection column and eleven of the thirteen rows are detected by comparing two numbers that a standard pipeline produces only one of. The same per-user metric pooled three ways. The cohort SIZE under two count definitions. The held-out R-squared on the user side against the item side. The median predicted factor norm against the median learned one. The metric at two values of the minimum training count. Both crossovers rather than one. The fitted pivot under three objectives. The all-events hit rate against the zero-play bucket. Catalogue coverage against accuracy. The escape rate against the yield cost. In every case the single number is unremarkable and the pair is diagnostic, which is exactly why none of these appears in a normal evaluation: a pipeline that reports NDCG@10 is not wrong, it is reporting the one number from which nothing can be concluded. The cheap structural fix is the same one post 24 arrived at from a different direction, which is to make the evaluation function take a LIST of configurations and a list of bucket families rather than one of each, so that producing a lone number is more work than producing a comparison. In this project that single change to the harness surfaced the count leak, the norm problem and the objective mismatch in the same week, and none of the three was the thing the harness was changed to look for.
The single most common mistake on this exact problem is treating cold start as one problem with one switch, and every consequence of that is measurable. The switch gets one threshold, so a user-side crossover of 4 plays and an item-side crossover of 41 plays get a shared pivot that is wrong in both directions at once, costing 0.021 of cold-item hit rate here. The switch gets one fallback, so the same popularity prior is served to an account with no history, which needs a prior, and used to score a title with no history, which needs a representation. The switch gets fitted against one metric, and because that metric is pooled it recommends turning the item-side fix off entirely: in the companion codebase the row-weighted and user-macro objectives both choose an item pivot of 0, which sets the gate weight to 1 for every item and switches the predicted factors off. The switch gets one owner, usually the team that owns the factor model, so the metadata feed that the item-side fix depends on has no SLA and the first empty genre field takes 14,000 titles out of circulation silently. And the switch gets one name, so the third cell of the taxonomy, a locale launch that is cold on both sides and contributes zero rows to any offline metric, is discussed as though it were the same thing as a new account in a mature market. The discipline that prevents all five is to build the two bucket families and the share table before any model code exists, and to write every evaluation function so that it takes both and cannot be called with one.
Scaling and Productionizing
The arithmetic that decided the serving and training architecture:
Play log, 311M events, int32 account and title = 2.5 GB
Item factors, 1.4M titles x 192 float32 = 1.1 GB
Ridge coefficients, 497 x 192 float32 = 0.4 MB
Context prior table, 456 cells x 1.4M titles, top 2k per cell = 3.3 GB (pruned)
Co-occurrence index, top 200 neighbours per title = 2.2 GB
As-of count snapshot, 1.4M titles + 24M accounts int32 = 102 MB
Cold-item ridge apply at publish, one title = 0.4 ms
Gate weight, count lookup plus two multiplies per candidate = 1.9 ms for 600
Full rail at 31,000 QPS on 48 replicas = 41 ms p99 (budget 140)
ALS nightly refit, 311M events, 192 factors = 2 h 40 min
Ridge refit on 410,000 warm titles, after ALS = 94 s
Two pivots refit weekly, after both = 11 min
The ridge apply is 0.4 ms and that is what makes the 90-second publication SLA possible. The cold-item path is a function rather than a model refit, so a title published at 10am is scoreable at 10:00:01 by applying a 497-by-192 matrix to its metadata row. Everything else about this architecture follows from refusing to put a nightly batch on that path.
The context prior table is the memory problem and pruning it is free. The full table is 456 cells by 1.4 million titles, which is 2.6 billion floats. Keeping the top 2,000 titles per cell and falling back to the global prior outside them costs 0.002 cold-user NDCG@10 and takes it to 3.3 GB, because a cold user is never shown title 2,001 of their cell in a 10-slot rail.
The retraining order is deliberate and the ordering is the piece of engineering that prevents the worst failure. ALS refits nightly. The ridge refits after it, in the same job, because its coefficients are fitted against that night’s factor geometry and are meaningless against any other. The two pivots refit weekly, after both, because they are functions of the two models’ output distributions. The 192-to-256 factor change described in the metric callout above happened precisely because the ridge was in a separate job: the factor model shipped a new geometry on a Tuesday and the coefficients were not refitted until the following Monday, during which the predicted vectors were in the wrong space and the cold-slot share was 0.004.
The artifact records both distributions and the serving path refuses to load a mismatch. Post 24 recorded per-feature spreads; here the artifact records the factor count, the median warm factor norm, the per-cell interaction totals and the count-snapshot timestamp, and the loader rejects a ridge whose recorded factor count differs from the live one or whose snapshot is more than 36 hours old. That turns a silent quality regression into a deploy failure, which is the only reliable way to handle a coupling that no reviewer can see.
The monitoring signal for silent degradation is the quadruple from the metric callout: the nightly cold-slot share over a frozen 200,000-profile cohort, the catalogue coverage of the union of those rails, the metadata feed’s per-field completeness for titles published in the last 24 hours, and the play counter’s lag. The cold-slot share catches a gate or a geometry failure. Coverage catches a candidate-generation change upstream, which is the failure that made the whole layer a no-op. Metadata completeness catches the empty-genre class of failure, which is the one that no ML monitoring would ever see because no model changed. And the counter lag catches the failure that moves the cold-slot share in the wrong direction and would otherwise be read as an improvement.
The operational property that surprised this team is that a cold-start layer's behaviour depends on two upstream artifacts that nothing in a normal ML stack versions: the GEOMETRY of another team's factor model and the COMPLETENESS of a publisher's metadata feed. Model weights are versioned, features are versioned, configs are versioned, and the factor count, the median factor norm and the per-field null rate of an inbound feed are not. Five incidents in 19 months and every one of them had the same shape: a change nobody would call risky, made by somebody with no reason to think about this rail, that changed the cold-start layer's behaviour without changing anything in it. The cheapest fix that works is to publish both distributions as part of the model artifact and treat them as an interface with a tolerance, so that a 192-to-256 factor change becomes a refused load rather than a week of serving predicted vectors into the wrong space. The more interesting consequence is a design preference. A system whose cold behaviour is gated OUTSIDE the warm model is exposed to the warm model's output distribution and nothing else, which is one interface and can be checked in four lines; a system that handles cold start inside a single hybrid model has no such interface to check, because the coupling is internal and a retrain silently resolves it in whichever direction the training loss prefers. That is the strongest argument for the wrapper architecture and it is not an argument about accuracy.
The cold-item method in this post is old and well documented, which is worth knowing because it is routinely reinvented. Gantner, Drumond, Freudenthaler, Rendle and Schmidt-Thieme's 2010 paper "Learning Attribute-to-Feature Mappings for Cold-Start Recommendations" is the original statement: fit the factor model first, then learn a mapping from item attributes to the learned factors, then apply it to items with no interactions. Van den Oord, Dieleman and Schrauwen's 2013 "Deep Content-Based Music Recommendation" is the famous instance of it, a convolutional network regressing audio spectrograms onto latent factors learned by weighted matrix factorisation on the Million Song Dataset, and it is the paper to read because its ablation is the same ablation as this post's: predicting the latent factors beat predicting the listening counts directly, which is the "predict into the learned space rather than score in content space" result restated. Volkovs, Yu and Poutanen's DropoutNet at NeurIPS 2017 is the modern version and its trick is worth stealing even if you keep the ridge: train the model with the interaction input randomly dropped out, so that the cold case is a case the model has already seen rather than an exception handled outside it. LightFM (Kula, 2015) and factorisation machines (Rendle, 2010) are the structurally different answer in the alternatives table, learning a single embedding space over users, items and side features so the hand-off is inside the model. On the user side, Schein, Popescul, Ungar and Pennock's 2002 "Methods and Metrics for Cold-Start Recommendations" is still the clearest statement of why the evaluation protocol is the hard part, and it predates almost everything else here. For production accounts: YouTube's 2016 deep candidate generation paper (Covington, Adams and Sargin) feeds video age as an explicit feature and explains why, which is the same count-interaction idea the gate implements outside the model; Spotify has published repeatedly on podcast cold start, where the gap between a show's publication and its first meaningful play count is the whole problem; and Netflix's public account of its 2012 cold-start work is the origin of the onboarding-questionnaire row in the alternatives table, including the honest reporting of its abandonment cost.
Alternative Approaches
| Approach | Cold-user NDCG@10 | Cold-item hit@20 | Pooled NDCG@10 | Operational cost | Best fit |
|---|---|---|---|---|---|
| Two count gates over ALS plus a content ridge | 0.163 | 0.149 | 0.288 | 1 extra matrix, 2 multiplies per candidate, 41 ms p99, 94 s nightly refit | A mature warm model you cannot retrain, a metadata feed, and a contractual reach floor |
| Popularity fallback only | 0.071 | 0.000 | 0.284 | One count table, 0.1 ms | A catalogue with no meaningful cold cohort and no reach obligation |
| Content-space scoring for all cold rows, post 22’s route | 0.141 | 0.128 | 0.276 | One embedding index, 132 MB, 18 ms p99 | A first version, or a product where the content signal is strong and the collaborative one is thin |
| LightFM-style hybrid factorisation, one model | 0.171 | 0.161 | 0.291 | One training pipeline owning both signal families, 5 h nightly | A team that can own the whole stack and does not need the two systems independently deployable |
| DropoutNet-style training with the interaction input dropped | 0.168 | 0.157 | 0.290 | Retrains the warm model, 7 h nightly, 1 GPU | When you control the warm model and want the cold case to be in-distribution rather than handled outside |
| Contextual bandit over the cold slots | 0.168 | 0.176 | 0.286 | A logging and policy-serving stack, plus a counterfactual evaluation harness | When exploration cost is the binding constraint rather than representation |
| Onboarding questionnaire, 3 questions | 0.204 | 0.149 | 0.289 | Zero modelling, 31% signup abandonment | A product where signup friction is cheap, which is almost none |
What shipped is the first row, and the row worth arguing about is the fourth. A hybrid factorisation machine beats it on all three accuracy columns and was declined for reasons that are all organisational rather than statistical: it requires one training pipeline to own the play log, the metadata feed and the content embedding, which means three systems that three teams are independently on call for become one that nobody has operated. The honest statement is that LightFM is the better model and the gated pair was the better decision this quarter, and the ordering matters because the gate’s feature set is most of the feature set the hybrid would need.
The fifth row is the one to plan for. DropoutNet’s idea is that the cold case should be a case the model has already seen in training, which is strictly better than handling it as an exception outside the model, and it costs 0.001 pooled NDCG@10 and a retrain of a model owned by another team. It is the right second version and the wrong first one, because a fix that lives entirely outside the warm model can be shipped, measured and reverted without that team’s roadmap.
We would drop to the third row without hesitation in one situation and nearly did: when the warm model’s cold cohort is small enough that the gate’s complexity is not justified. The gate, the two pivots, the count snapshot and the artifact compatibility check exist to protect 18.9% of weekly accounts and 11.4% of the catalogue. On a service where every title has ten thousand plays and every account has a hundred, the content-space route is 0.012 pooled behind and costs a fifth as much to operate, and every column in this post that matters reads zero for everybody.
The column that should decide this table is the one with no number in it, which is whether the approach can be shipped without retraining a model somebody else owns. Rows 4 and 5 are the two best models here, by 0.005 and 0.008 cold-user NDCG@10 over what shipped, and both of them require the warm factor model to change: LightFM replaces it and DropoutNet retrains it with a different input protocol. Rows 1 and 3 do not touch it at all. That difference decided this project and it decides most cold-start projects, for a reason that is specific rather than general organisational grumbling: a cold-start fix is a change whose benefit is invisible on the metric the warm model's owners are accountable to. Row 1 moves the pooled NDCG@10 that the factor-model team reports by +0.004, which is inside their week-to-week variance, and moves the cold-user segment by 0.163. So a proposal that asks that team to retrain their model, accept a new input protocol and own a new failure mode is asking them to take on risk for a benefit their dashboard cannot show. The gate's whole architectural virtue is that it is a wrapper: it reads the factor model's output, a count array and a metadata row, and it can be turned off with a config flag. That is worth more than 0.008 of NDCG@10 in the first version, and the second version, once the segmented metrics are on somebody's dashboard and the benefit is visible, is the one where asking becomes reasonable.
Key Takeaways
- Cold start is two problems and the fixes are not symmetric. A new item’s metadata describes the thing being embedded, so regressing it onto the learned factors works: held-out R-squared 0.38, cold-item hit rate 0.000 to 0.149. A new user’s context describes a session, so the identical construction gives R-squared 0.07 and cold-user NDCG@10 of 0.089 against 0.163 for a separate score family. Run the regression on both sides once and read the two R-squared values before choosing an architecture.
- A pooled offline metric is blind to cold start in both directions. Accounts with no plays are 18.9% of weekly accounts, 11.2% of impressions and 1.8% of held-out rows, so the same change moves the pooled number by 0.004 and the cold-user segment by 0.163. The spread between row-weighted, user-weighted and bucket-macro pooling of one model’s per-user numbers is 0.284, 0.239 and 0.204, and that spread is the size of the problem.
- The two sides need two evaluation units. Users get per-user NDCG@10 bucketed by their interaction count; items get a per-event top-20 hit rate bucketed by the item’s. The item-side fix moves the all-events hit rate by 0.009 and the zero-play bucket by a factor of 239, and a user-averaged metric can report neither.
- A cold-start fix is a redistribution and the losing bucket is next to the winning one. The 20-to-99-play bucket fell from 0.129 to 0.062 in the companion codebase when the cold-item path was added, because slots are zero-sum and a cold item takes a slot from the item just above the gate rather than from a blockbuster. Report both directions or the table is advocacy.
- There are two gate pivots and the crossovers differ by a factor of ten. The user-side crossover is 4 plays, because one interaction already gives a factor model a vector pointing at that item; the item-side crossover is 41 plays, because an item’s factors come from everybody. A single shared pivot of 12 costs 0.021 of cold-item hit rate and nothing visible on the pooled metric.
- The objective you fit the pivot against decides it, and only one of the candidates can see both halves. Row-weighted NDCG@10 picks 28, a macro over user buckets picks 14, and a macro over both bucket families picks 9, with cold-item hit rates of 0.041, 0.094 and 0.149. The two gates interact, so fitting them one at a time against a user-side metric optimises one half of the problem into the other half.
- The geometry of a predicted embedding matters as much as its content. A ridge prediction is shrunk towards the mean, so predicted factor norms are 0.64 of learned ones and cold items lose on length rather than on relevance. Rescaling to the median warm norm is worth 0.082 of cold-item hit rate and costs 0.011 pooled, and there is no setting of it that wins on both.
- The feedback loop has an escape rate and it is measurable. 61.3% of a quarter’s publications never reach 12 plays in 90 days under warm scores with a popularity prior. Metadata-seeded scores take that to 34.7% for 0.4% of rail play-through, an uncertainty bonus to 31.4% for 1.1%, and one forced slot in eight to 18.1% for 3.8%. Seeding is close to free because it changes a score that was absent; everything after it is displacement and the displacement is the price.
- The popularity trap is the default outcome of optimising accuracy alone. A fallback serving the 200 most-played titles scores 0.071 on cold users, 0.004 behind the engineered system on the pooled metric, and reaches 0.4% of the catalogue with 100% of its slots in the head. The same trap lives inside components: the seed-item model’s cold-user NDCG@10 rises from 0.034 to 0.072 as its internal popularity weight rises from 0.0 to 1.8, so the component improves the more of it is replaced by popularity.
The counter-intuitive lesson is that the most valuable artifact of this project was a table with no model in it. The four-column share table, interaction-count bucket against share of accounts, share of impressions and share of held-out rows, took an afternoon and is what made every later decision possible: it showed that the bottom bucket was ten and a half times larger as a share of accounts than as a share of rows, which is why the pooled metric could never have justified the work; it defined the buckets that the gate pivots were later fitted against, which is where the 3.6-fold difference in cold-item hit rate came from; and it was the document that got the project funded, because the argument stopped being “our cold-start experience is bad” and became “18.9% of weekly accounts get a ranking our metric assigns a weight of 0.018”. Everything after that, the ridge, the priors, the two gates, the norm rescaling, is ordinary engineering. The hard part was building a measurement in which the problem was visible at all, and the reason it is hard is that the measurement has to be built before the fix, by somebody who has only the pooled number to argue with.
Frequently Asked Questions
Q: Why not use a hybrid model like LightFM and avoid the whole hand-off? A: Eventually you should, and the alternatives table says so: it beats the gated pair by 0.008 cold-user NDCG@10, 0.012 cold-item hit rate and 0.003 pooled. The reason it is not the first version is that it replaces a factor model another team owns and is on call for, with a single pipeline that owns the play log, the metadata feed and the content embedding, and the benefit it delivers is invisible on the metric that team reports. The gate’s architectural virtue is that it is a wrapper around an unchanged model, readable from a count array and a metadata row, revertible with a config flag. Build the wrapper, put the segmented metrics on a dashboard, and then the conversation about replacing the model is one somebody can say yes to.
Q: Why not just regress context onto user factors, since the item side works? A: Because the two feature blocks are different in kind and the measurement says so. Item metadata describes the thing being embedded and gives a held-out R-squared of 0.38; signup context describes a session and gives 0.07. The ranking consequence is 0.163 against 0.089 on the cold-user bucket. The mechanism is worth more than the number: a ridge fit on a weak feature block does not degrade to “no opinion”, it degrades to a confidently wrong vector pointing at the population mean, which a dot product ranks as though it were a taste. A separate score family degrades to a popularity prior, which is a defensible thing to serve to a stranger. The general test is whether the features describe the entity or the situation.
Q: Why NDCG@10 macro-averaged over buckets rather than the pooled number the business reports? A: Both are reported and only one is optimised. The pooled number is the business metric and it is also, arithmetically, an average over the warm cohort with a rounding error attached: the bottom bucket carries a weight of 0.018 because a held-out row is an interaction and that cohort is defined by not having many. Optimising it produced the eighth row of the evaluation table, the best pooled score in the post at 0.296 and the second-worst cold-item hit rate among configurations that have a cold-item path at all. The macro average over both bucket families is the only objective tested here that can see both halves, and the measured consequence of using it is a 3.6-fold difference in cold-item hit rate from a parameter sweep that is otherwise identical.
Q: How do you pick the gate pivot without just guessing 5 or 20? A: Measure the two curves it is a summary of, on a tune segment: the warm model’s metric by interaction-count bucket and the cold model’s by the same buckets, then find where they cross. Here that is 4 plays on the user side and 41 on the item side, and the pivot is then fitted by a sweep against a two-sided macro objective rather than set equal to the crossover, because the pivot is a curvature parameter and the crossover is a location. Two cautions from the data. Resample the tune users: the 95% interval on the fitted pivot is 6 to 17, so four plausible values are statistically indistinguishable and the choice among them should be made by the guardrail rather than the metric. And re-derive it after either component is retuned, because post 23 measured the crossover moving from 9 to 7 purely from raising the factor count.
Q: Is the deep-link item really worth more than locale, device, hour and campaign together? A: On the production data yes, 0.039 against 0.053 for all four context fields combined on top of global popularity, and it is available for 46% of installs. On the companion codebase’s synthetic log it is not, and the README is specific about why: the generator’s consumption is a latent taste dot product plus a heavy-tailed appeal term, so a co-occurrence matrix built from it carries the taste part and nothing else, while a real catalogue’s co-occurrence carries sequels, series, the same author, the same narrator and bundles people actually buy. That structure is what makes a deep-link item the strongest single piece of cold context in a real product, and it is the structure a smooth generator cannot contain. The practical point stands either way: the field is logged by the growth team as an attribution key and almost never joined into the recommender.
Q: What breaks first in production? A: The metadata feed, and it breaks silently because no model changes. A publisher started sending an empty genre field for a new imprint, which sent 14,000 titles’ predicted factors to the ridge intercept and took their share of served slots to zero; nothing in any ML monitor moved, because the model was fine and its input was not. The second thing is the factor geometry: a nightly ALS refit that changes its factor count invalidates ridge coefficients fitted against the previous one, and the symptom was a cold-slot share going from 0.096 to 0.004 overnight while the pooled metric moved 0.002. Both are now deploy failures rather than quality regressions, because the artifact records the factor count, the median warm norm and the count-snapshot timestamp, and the loader refuses a mismatch. The third is upstream candidate generation: a pool cut from 1,400 to 600 removed most low-play titles before the cold-start layer saw them and made the whole thing a no-op that no internal metric could detect.
Interview Questions
Q: A recommender’s offline NDCG@10 is 0.28 and the product team says new users get terrible recommendations. Both are true. Explain how, and what you would measure first. Expected depth: Start with the arithmetic rather than the diagnosis. A pooled metric averaged over held-out interactions weights each user by how many held-out interactions they have, and a new user has almost none by definition, so the cohort’s weight in the metric is near zero. Give the shape of the share table: interaction-count bucket against share of active users, share of impressions and share of held-out rows, and note that the bottom bucket is typically three to fifteen times larger as a share of users than of rows, measured at 10.5 in one case. Then say what you would build first, which is the measurement and not the model: bucket the per-user metric by interaction count, pool it three ways, and report the spread. A strong answer adds that a factor model’s cold row is the zero vector rather than a degraded vector, so the cold-bucket number is not “bad”, it is the tie-break order of the candidate list, and that the same blindness runs in both directions, so the dashboard will not notice a regression either.
Q: You can regress item metadata onto learned item factors to place a new item in the embedding space. Why not do the same with user context and user factors? Expected depth: Name the asymmetry precisely: item metadata is a description of the entity being embedded and user signup context is a description of a session. Then give the diagnostic, which is a held-out R-squared on each side from the identical ridge fit, measured at 0.38 and 0.07 in one case, with the per-dimension breakdown showing that the predictable directions are the coarse ones and the unpredictable ones are the idiosyncratic quality directions a factor model exists to discover. Explain the failure mode rather than just the gap: a ridge fit on a weak block degrades to a confident vector pointing at the population mean, which a dot product ranks as a taste, whereas a separate score family degrades to a popularity prior. Mention the norm problem on the side that does work, that a shrunk prediction is shorter than a learned vector and therefore loses on geometry, and that rescaling to the median warm norm is worth more than any other single parameter in the method. Strong answers cite Gantner et al. 2010 for the attribute-to-factor mapping, van den Oord et al. 2013 for the latent-factor-prediction ablation and DropoutNet for the better modern framing.
Q: Design the hand-off from a cold-start model to a warm model. Where does the threshold come from?
Expected depth: Give the form, a smooth count gate w(n) = n / (n + pivot) rather than a hard switch, and say why smooth: a hard switch makes the served ranking discontinuous in a count that increments during a session. Then say where the number comes from: the segmented quality curves of the two models on a tune segment, crossed, and that there are TWO of them because a user’s factors come from their own interactions and an item’s come from everybody, measured at 4 plays and 41 plays. Distinguish the crossover from the pivot: the crossover is a location, the pivot is a curvature parameter, and the pivot is fitted by a sweep. Then the part that separates a good answer from a textbook one: the objective you sweep against decides the answer, because a pooled metric is dominated by warm rows and a user-side macro is blind to the item half, and the two gates interact so that raising the user pivot takes slots from the cold items the item gate just rescued. Measured: three objectives giving pivots of 28, 14 and 9 with cold-item hit rates of 0.041, 0.094 and 0.149. Close on the resampled interval, 6 to 17, and on the leakage rule that the count must be snapshotted as of serving rather than computed over the log.
Q: A new item gets no impressions because it has no score and no score because it has no impressions. Quantify that loop and price the fixes.
Expected depth: Write the cycle out with its five arrows, no score to no slot to no play to no count to no factor vector to no score, and identify which arrow each fix breaks. Then give the metrics that measure a loop rather than a snapshot: the escape rate, the share of a cohort of new items reaching a target interaction count within a horizon, the median escape time among those that do, and the share that never escape. Measured in one case: 61.3% never reaching 12 plays within 90 days under warm scores with a popularity prior. Price the three fixes with their displacement cost, metadata-seeded scores at 0.4% of rail play-through, an uncertainty bonus at 1.1% and one forced slot in eight at 3.8%, and explain why the ordering is not arbitrary: seeding changes a score that was absent, so it is nearly free, while everything after it displaces a score that was good. Note the trap in reading the median without the escape rate, because forced exploration rescues the hard tail and the hard tail is slow, so its median escape time is longer than a weaker policy’s. Say that the second half of seeding is a predicted popularity prior and not just a predicted embedding, because a new item’s log1p(count) is still zero. Defer bandits with a reason rather than a shrug: an uncertainty bonus is a crude upper confidence bound whose constant needs tuning, and a posterior earns its operational cost once tuning that constant is the harder job.
Q: Your cold-start fallback improved every accuracy metric you report. Why might it have done nothing, and what would you look at? Expected depth: Name the popularity trap and say why it is the default rather than an accident: popularity is genuinely predictive, a pooled accuracy metric rewards it, and the cold cohort’s rows are too few to penalise it. Give the three diagnostics that distinguish a strategy from a fallback, none of which is a ranking metric: catalogue coverage of served slots, the share of slots inside the head of the popularity distribution, and the cold-slot share against the catalogue share of such items, measured at 0.4%, 100% and 0.011 against 0.231 for a top-200 fallback. Then make the point that lands the question: the trap also lives inside components, and the example is a seed-item co-occurrence model whose internal popularity fallback weight, a constant that appears in no paper, takes its cold-user NDCG@10 from 0.034 to 0.072 as it rises, so the component improves the more of it is replaced by popularity. Say what prevents it structurally rather than by vigilance: compute coverage in the same function that computes the accuracy, so the two land in the same dictionary and the same regression test, and set a floor rather than a preference. Strong answers add the control that makes coverage interpretable, a uniformly random fallback, which reaches 61.4% of the catalogue and is worthless, and conclude that neither column means anything without the other.
View full code for this problem