Cold start and exposure bias
Quick answer
Cold start occurs when a new user or item has insufficient interaction history. Exposure bias occurs because recorded interactions depend on what the previous system displayed and where it displayed it. Examples are static Python snippets tested locally on CPU; NumPy and scikit-learn are required for selected examples. ByteMind execution is unverified.
Exposure-conditioned rates
rows=[("a",100,10),("b",20,5),("c",0,0)]print([(i,None if e==0 else c/e) for i,e,c in rows])Expected output (locally tested): [('a', 0.1), ('b', 0.25), ('c', None)]. The zero-exposure item has no observed rate.
How it works
For a new user without history, use a nonpersonalized popularity or context-eligible baseline; ask for optional non-sensitive preferences only when appropriate. For a new item, metadata can provide a content vector even when collaborative factors are absent. Distinguish new-user, new-item and warm-user cohorts and report sizes, coverage and metric values for each. Exposure is not uniform: position, prior ranking, availability and interface affect whether users notice an item. A clicked item is observed conditional on exposure; absence of clicks on unseen items is missing evidence. A popularity loop may reinforce already exposed items. For a logged action with known nonzero logging propensity e, inverse propensity weighting can weight reward by 1/e under suitable consistency, overlap and logging assumptions. Tiny propensities inflate variance; clipping changes bias. Zero support cannot be repaired by division or by an offline ranking metric. Counterfactual policy evaluation requires assumptions about logging, intervention and outcomes; a randomized controlled experiment with appropriate safeguards can estimate causal lift. Offline recall only measures recovery of logged held-out positives. Track item coverage, exposure concentration, long-tail retrieval and user-level uncertainty; avoid real personal profiles in teaching fixtures.
Illustrative propensity weights
from fractions import Fractionprint([str(1/Fraction(p)) for p in ["1/2","1/10"]])Expected output (locally tested): ['2', '10']. Rare actions have larger weights; this alone does not validate a causal estimator.
Common mistakes
Do not assign unseen items a known negative reward or claim a larger offline NDCG causes more engagement. Do not calculate inverse propensity weights for zero support.
Practice and next steps
Compare two anonymous catalog exposure counts and click counts. Explain why raw click count and observed click-through rate can rank items differently; mark zero exposure as undefined.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
Cold start and exposure bias — knowledge check
Apply cold start and exposure bias to small examples and debugging scenarios.
What is new-item cold start?
Why does exposure bias arise?
What if logging propensity is zero?
What is a risk of tiny propensities?
What does higher offline recall establish?