Sub topic 2
What a feed is trying to optimize
This chapter assumes you know the difference between chronological and ranked feeds, can read short Python, and understand a probability as a number between 0 and 1. Later chapters cover how scores are computed. This one covers what those scores are meant to achieve.
A feed always has an objective
A chronological feed has a simple objective: show everything, newest first. A ranked feed has to choose which posts to show first, so it needs a definition of "better." That definition is the objective. Every later stage of the pipeline, including the signals, the prediction models, the weights and the experiments, is built to serve it.
Platforms never optimize one clean thing. They balance several goals that sometimes conflict:
- Keep people coming back to the product.
- Show people content they find valuable.
- Give creators enough reach that they keep posting.
- Earn revenue, usually from advertising.
- Avoid harm and keep the product safe.
The ranking system turns these goals into numbers it can compute. This translation is where most of the trade-offs in feed design appear.
Goals, proxies, and measurable events
A goal such as "people find this feed valuable" cannot be measured directly. A system can only observe what people do: tap, scroll past, comment, share, hide, or close the app. So designers pick proxies, which are measurable quantities that stand in for the real goal.
The chain usually has three layers:
- Business or product goal. An example is long-term user satisfaction.
- Metrics. Examples are daily active users, return rate, survey scores, and time spent.
- Predicted events. These are the per-post outcomes a model can estimate, such as the probability of a like, a comment, a share, or a hide.
The ranker works only at the third layer. It never sees "satisfaction." It sees predicted probabilities and weights.
A proxy is only useful while it stays correlated with the real goal. This chapter returns to that point under failure modes.
Common objectives and what each one rewards
Different objectives favor different content. The table lists the main ones and how each is usually measured.
| Objective | Typical proxy | What it tends to reward | Main risk |
|---|---|---|---|
| Engagement | Likes, comments, shares, clicks | Content that provokes quick reactions | Rewards outrage and bait |
| Time spent | Session length, video watch time | Long videos, endless scrolling | Time may not equal value |
| Retention | Return visits over days or weeks | Content that builds habit | Habit can be unwelcome |
| Stated satisfaction | Survey answers, "show me less" taps | Content people say they value | Surveys are sparse and noisy |
| Creator health | New creators reaching an audience | Variety and fresh sources | May lower short-term engagement |
| Revenue | Ad impressions, ad clicks | More sessions and ad-friendly content | Can conflict with user value |
| Safety | Reports, policy violations | Content that is not harmful | Over-blocking hides legitimate posts |
No row is "the" goal. A real system uses several at once, and the relative importance is a product decision, not a technical fact.
Implicit and explicit feedback
The signals that define "good" fall into two kinds.
Implicit feedback is behavior the user did not intend as a rating. Examples are dwell time, scrolling past, opening a profile, or watching a video to the end. It is plentiful, which is why systems rely on it.
Explicit feedback is a deliberate statement. Examples are "Not interested," "Show fewer posts like this," a report, or an answer to a survey like "How much did you enjoy this post?" It is scarce but clearer.
The two can disagree. People sometimes spend a long time on content they later say they did not want to see. This gap between revealed behavior and stated preference is a central reason platforms add survey questions and negative-feedback buttons. A hide or "not interested" tap is usually given a large negative weight because it is rare and direct.
Goals become weights
Once goals are mapped to events, they can be combined into a value function, a weighted sum of predicted event probabilities. The weights express what the platform cares about. Changing the weights changes the feed without changing any model.
The following example uses the same three posts and two different sets of weights. The weights are illustrative, not any real platform's values.
from dataclasses import dataclass
@dataclass
class Post:
id: str
label: str
p_like: float
p_comment: float
p_share: float
p_hide: float
p_report: float
POSTS = [
Post("a", "outrage thread", 0.20, 0.15, 0.10, 0.08, 0.04),
Post("b", "friend photo", 0.35, 0.06, 0.01, 0.01, 0.00),
Post("c", "explainer", 0.15, 0.03, 0.08, 0.01, 0.00),
]
OBJECTIVES = {
"raw engagement": {"like": 1, "comment": 1, "share": 1, "hide": 0, "report": 0},
"balanced": {"like": 1, "comment": 3, "share": 3, "hide": -10, "report": -20},
}
def value(post: Post, w: dict) -> float:
return (
w["like"] * post.p_like
+ w["comment"] * post.p_comment
+ w["share"] * post.p_share
+ w["hide"] * post.p_hide
+ w["report"] * post.p_report
)
for name, weights in OBJECTIVES.items():
ranked = sorted(POSTS, key=lambda p: value(p, weights), reverse=True)
print(name)
for p in ranked:
print(f" {p.id} {p.label:<15} {value(p, weights):6.2f}")Running it prints this ranking for raw engagement: a (0.45), b (0.42), c (0.26). For the balanced objective it prints: c (0.38), b (0.36), a (-0.65).
The outrage thread wins when only positive reactions count. It falls to last place once hides and reports carry negative weight. The models and the posts did not change. Only the definition of "good" changed.
Short-term versus long-term value
Most signals arrive within seconds of showing a post. The goals that matter most, such as whether someone still enjoys the product in six months, play out over weeks or months. This mismatch causes many design problems.
A system that optimizes only for immediate reactions may learn that sensational content wins each individual moment. Over time that can tire or annoy users, and they may use the product less. The short-term metric improves while the long-term goal gets worse.
Platforms respond in several ways:
- Long-horizon experiments. A holdout group keeps an older ranking for weeks or months, so teams can measure retention effects that a three-day test would miss.
- Survey-based signals. Asking "was this worth your time?" on a small sample gives a closer proxy for value than clicks do.
- Negative signals. Hides, mutes, unfollows, and reports are treated as strong evidence of harm, even though they are rare.
- Quality adjustments. Posts that are known to be clickbait, or that link to low-quality pages, get a score penalty regardless of predicted engagement.
Guardrails
A guardrail metric is a number the team watches to make sure an optimization does not damage something important. It is not the thing being maximized. A common pattern is "improve metric X, as long as guardrails Y and Z do not get worse."
Typical guardrails include:
- Rates of reports and hides.
- Share of impressions going to a few large accounts.
- Share of content flagged as low quality.
- Latency and crash rates.
- Complaint volume from creators or advertisers.
Guardrails matter because a single optimized number is easy to game, even by accident. They turn "maximize engagement" into "maximize engagement without making the feed worse in these other ways."
Where goals go wrong
Optimizing a proxy too well
When a measure becomes the target, it stops being a good measure. This is often called Goodhart's law. If comments are weighted heavily, creators learn that questions like "Comment your opinion!" attract comments. The comment rate rises, but the comments carry little value. Platforms then have to detect and demote this "engagement bait," which is one reason the weights keep changing.
Conflicting objectives
Revenue, user satisfaction, and creator fairness do not always point the same way. For example, a feed that shows fewer posts per session might satisfy users but reduce ad impressions. These conflicts are resolved by leadership and product judgment, usually through experiments, rather than by any single formula.
Averages hide groups
A change can raise the average metric while hurting a subgroup. Examples are new users, small creators, or people in one language. Good evaluation breaks results out by segment instead of reading only the overall number.
Measuring only what is easy
Clicks and watch time are easy to log. Wellbeing, trust, and "I learned something" are hard to log. The easy metrics get optimized because they are available. Teams that care about the harder goals have to invest in surveys and long experiments to see them at all.
Applying this chapter
When you analyze a feed, ask these questions in order:
- Which events does the system treat as success, and which as harm?
- How heavily is each one weighted?
- Which proxy stands in for a goal that cannot be measured directly?
- Which guardrails limit the damage if the proxy is over-optimized?
- Over what time horizon is success judged?
The next chapters follow the pipeline from the top. Candidate generation narrows the pool, signals describe each post and user, models predict the events, and the score combination chapter returns to weights in detail.
Exercise
A platform changes its value function so that "comment" has weight 6 instead of 3, and the share of posts ending in "Tell me what you think!" rises sharply within a month. Name the principle at work, and suggest one guardrail or adjustment that would respond to it.
Show answer
This is Goodhart's law: once comments became the target, creators optimized for the proxy (comment count) rather than for valuable discussion. A response could be a quality adjustment that demotes known engagement-bait phrasing, a lower weight on comments from replies that are very short, or a guardrail tracking survey ratings of commented posts so a rise in comments with a drop in satisfaction is caught.
Exercise
In the code above, a post has plike = 0.40, pcomment = 0.05, pshare = 0.02, phide = 0.10, and p_report = 0.01. Compute its value under the "balanced" weights. Does it rank above post b (0.36)?
Show answer
10.40 + 30.05 + 30.02 + (-10)0.10 + (-20)*0.01 = 0.40 + 0.15 + 0.06 - 1.00 - 0.20 = -0.59. It ranks below post b, because the large hide and report penalties outweigh its higher like probability.
Exercise
Why might a team run a holdout experiment for several weeks even though a three-day test already shows higher engagement?
Show answer
Engagement gains seen in days may come from content that is attention-grabbing but wears users out. Retention and satisfaction effects appear over weeks, so a long holdout measures whether the short-term gain hurts the long-term goal.