Sub topic 3
Cold start: new users and new posts
This chapter assumes you know the basic feed pipeline (candidates, scoring, re-ranking), can read short Python, and understand probabilities between 0 and 1.
A ranker learns from engagement history. A new user has no history, and a new post has no reactions yet, so the model has little to predict from. Platforms handle this with fallback signals such as location, language, declared interests, or the author's past performance. New posts often get a small guaranteed audience so the system can measure them.
Balancing exploration and exploitation
Exploitation means showing what the model already predicts will work. Exploration means showing something uncertain to gather data. Showing only the top scores starves new content of data, so ranking systems reserve a small share of slots for exploration.
import random
def pick_post(scored_posts, new_posts, epsilon=0.1, rng=random):
"""Show a new post with probability epsilon, otherwise the top scored post."""
if new_posts and rng.random() < epsilon:
return rng.choice(new_posts)
return max(scored_posts, key=lambda p: p["score"])
scored = [{"id": "a", "score": 0.8}, {"id": "b", "score": 0.5}]
new = [{"id": "n1", "score": 0.0}]
print(pick_post(scored, new, rng=random.Random(1))["id"])Feedback loops and amplification
A post that gets early engagement scores higher, gets shown more, and collects even more engagement. The loop can bury quality content that started slowly and narrow what a user sees over time.
Testing feed changes with A/B experiments
Teams split users into a control group and a treatment group, then compare metrics such as time spent, return visits, and hide rates.
| Group | Feed version | Metric compared |
|---|---|---|
| Control | Current ranker | Hide rate per 1,000 views |
User controls and transparency
Most platforms offer controls such as hiding a post, muting an account, choosing a chronological view, or reviewing why a post appeared. These controls feed back into the ranker as strong negative or positive signals.
Exercise
If epsilon is set to 0 in the pick_post function, what happens to new posts?
Show answer
They are never shown, so the system gets no engagement data about them and cannot learn whether they are worth ranking higher.