Sub topic 9
Cold start: new users and new posts
This chapter assumes you have read the earlier chapters on signals and engagement prediction. You should know that a ranker predicts reaction probabilities from features, and that those features often come from past behavior. You should also be able to read short Python.
What the cold start problem is
A ranking model works well when it has history to learn from. Cold start is the situation where that history does not exist yet. It has three common forms:
| Case | What is missing | Typical effect |
|---|---|---|
| New user | No past likes, comments, hides, or watch time | The model cannot tell what the person prefers |
| New post | No impressions or reactions yet | Engagement features are empty or very noisy |
| New author | No track record of past posts | The ranker cannot lean on the author's earlier performance |
The three cases are related, but they have different fixes. A new user needs a reasonable first feed. A new post needs a fair chance to be seen. In both cases the system must act before it has evidence, and it has to avoid two failures. One failure is showing poor content because it guessed badly. The other is never showing something because it has no data.
Why cold start is hard in a ranked system
Most signals in a feed pipeline are measured from behavior. An author's average like rate, a user's affinity for a topic, and a post's early click-through rate all need past events. If a signal is missing, the model has to do something with the gap.
There is also a structural problem. Ranking decides what gets shown, and showing decides what data is collected. A post that is never shown never gets reactions. A post with no reactions scores low. A low score means it is never shown. Without intervention, new items can be locked out by the very mechanism that evaluates them. The feedback loops chapter returns to this pattern in general. Here it explains why platforms add explicit cold start handling.
Cold start for new users
When someone signs up, the feed still has to show something. Platforms combine several sources of information, roughly in this order of availability.
Information available at sign-up
- Explicit choices. Onboarding screens ask people to pick topics, follow accounts, or select interests. These are strong signals because the user stated them directly. Only a small fraction of users complete them thoroughly.
- Imported context. A contact list or a linked account can suggest people the user already knows. Whether this is allowed depends on the user's permission and local privacy rules.
- Coarse context features. Language, country, device type, and time of day are available immediately. They are weak individually but still useful. A feed in Portuguese is a better guess than a feed in a language the user does not read.
- The first few interactions. The first session produces the most valuable data. Every like, skip, or long pause moves the model's estimate.
Fallback strategies
Until personal data accumulates, a system typically falls back on non-personal signals:
- Popularity. Show posts that did well across many similar users, usually within the user's language and region.
- Topic or segment defaults. If the user picked cooking and travel, show strong posts from those topics.
- Social graph seeds. If the user followed accounts, rank those accounts' recent posts highly, since following is an explicit endorsement.
- Broad sampling. Show a varied mix on purpose, to learn which parts of it the user reacts to.
Popularity is a safe default but a weak personalization strategy. It favors content that is already successful, and it can feel generic. That is acceptable for the first minutes of use, and it needs to give way to personal signals as soon as they exist.
Blending personal and popular scores
A common approach is to shift weight smoothly from the fallback to the personalized model as evidence grows. The following code uses a simple linear ramp. The ramp value is illustrative, not taken from any real platform.
def blended_score(personal: float, popular: float,
n_interactions: int, ramp: int = 30) -> float:
"""Trust the personalized score more as the user's history grows."""
weight = min(1.0, n_interactions / ramp)
return weight * personal + (1 - weight) * popular
for n in (0, 10, 30):
print(n, round(blended_score(personal=0.8, popular=0.4,
n_interactions=n), 3))This prints 0 0.4, 10 0.533, and 30 0.8. With no history, the score is purely the popularity estimate. After 30 interactions, the personalized estimate takes over fully. Real systems often learn this blend from data instead of using a fixed ramp, but the idea is the same.
Cold start for new posts
A new post has the opposite problem. The user is known, and the content is not. The ranker has no engagement history for the post, so its predicted probabilities have to come from other sources.
What a ranker can use before reactions exist
- Content features. Text, image, or video content can be turned into numeric representations. These are often called embeddings, which are lists of numbers that place similar items close together. A new post can be matched to users who liked similar content.
- Author features. The author's past performance and follower relationships carry over to the new post. This is why new posts from established accounts get an easier start than posts from new accounts.
- Format and context. Post type, length, language, and time of posting all provide a prior estimate.
- Early reactions. The first few dozen impressions provide real data. The system watches these closely and updates the estimate quickly.
Small samples are noisy
Suppose a new post is shown to two people and both like it. The raw like rate is 100%. Treating that as the true rate would push the post to the top of many feeds, and it would be wrong most of the time. Small samples produce extreme rates.
A standard fix is smoothing, which pulls the estimate toward a prior until enough data accumulates. The prior is a baseline expectation, for example the average like rate across all posts. The code below adds pseudo-impressions at the prior rate. The numbers are illustrative.
from dataclasses import dataclass
@dataclass
class PostStats:
impressions: int
likes: int
PRIOR_RATE = 0.05 # typical like rate across posts
PRIOR_STRENGTH = 50 # how many impressions the prior is worth
def smoothed_like_rate(stats: PostStats) -> float:
"""Blend observed likes with a prior so tiny samples are not extreme."""
return (stats.likes + PRIOR_RATE * PRIOR_STRENGTH) / (
stats.impressions + PRIOR_STRENGTH
)
for stats in (PostStats(0, 0), PostStats(2, 2), PostStats(1000, 100)):
raw = stats.likes / stats.impressions if stats.impressions else None
print(stats, "raw:", raw, "smoothed:", round(smoothed_like_rate(stats), 4))The three cases give these smoothed rates:
- No impressions: 0.05, the prior itself.
- Two impressions and two likes: about 0.0865, a small lift above the prior instead of 1.0.
- 1000 impressions and 100 likes: about 0.0976, close to the raw rate of 0.1.
As impressions grow, the data outweighs the prior. This is the same idea as the blend for new users. Evidence gradually replaces assumptions.
Giving new content a chance to be seen
Smoothing makes the estimate fair, but it does not ensure the post gets shown at all. If the smoothed score is below the cutoff for most feeds, the post may never collect the data it needs. Platforms handle this in several ways:
- Initial test audience. A new post is shown to a small group, often followers or a sample of people with matching interests. If it performs well relative to expectations, it reaches a wider group in stages.
- Freshness boost. Some systems add a temporary bonus for very new posts. This works with the freshness decay in the scoring chapter. The decay shrinks old posts, and a boost lifts brand-new ones.
- Reserved exposure. A fraction of feed slots is set aside for items that have too little data. The next chapter covers this under exploration and exploitation.
The staged rollout is worth understanding in detail because it shapes what creators observe. A post can look like it "stalled" simply because it did not do better than expected in the test audience. That does not necessarily mean it was penalized.
Common errors and gotchas
- Treating missing as zero. If a missing feature is filled in with 0, new items look like bad items. Models should use a prior, an "unknown" indicator, or an average instead.
- Trusting tiny samples. Raw rates from a handful of impressions are unreliable. Smooth them or use a confidence interval.
- Over-boosting new content. A large freshness bonus pushes unproven posts above proven ones, which lowers feed quality for everyone. The boost has to be tuned and capped.
- Popularity lock-in for new users. If the fallback is too sticky, a new user sees only mainstream content and never reaches their niche interests. The blend needs to move on quickly.
- Measuring new users with average metrics. New-user behavior differs from that of established users. Evaluation should track new users as their own segment. The evaluation chapter covers this.
- Gaming through the early window. Because the first impressions weigh heavily, coordinated early reactions can distort a post's trajectory. Integrity filters should apply to early engagement, not only to the content.
Putting it together
Cold start does not add a separate algorithm to the pipeline. It changes how existing stages behave when data is sparse. Candidate generation leans on follows, topics, and popularity. Signals fall back to priors. Prediction models rely on content and author features. Scoring blends or smooths estimates. Finally, some exposure is reserved so new items can collect evidence. As reactions accumulate, each fallback fades and the normal personalized ranking takes over.
Exercise
A new post has been shown to 10 people and 4 of them liked it. The platform's prior like rate is 0.05 and the prior strength is 50 pseudo-impressions. Using the smoothing formula from this chapter, what is the smoothed like rate? Why is it better to rank on this number than on the raw rate of 0.4?
Show answer
Smoothed rate = (4 + 0.05 × 50) / (10 + 50) = 6.5 / 60, which is about 0.108. The raw rate of 0.4 comes from only 10 impressions, so it is very noisy and would put the post far above posts with well-measured rates. The smoothed value still shows the post is doing better than average, but it stays conservative until more impressions arrive.
Exercise
A new user has made 15 interactions. Using the blended_score function with ramp=30, a personalized score of 0.9, and a popularity score of 0.3, what is the final score?
Show answer
The weight is min(1.0, 15/30) = 0.5. The score is 0.5 × 0.9 + 0.5 × 0.3 = 0.6.