Preparing your design workspace

Loading the problem and your latest saved attempt…

Design Feed Dislike Prediction

Predict explicit negative feedback for proposed feed exposures with honest labels, calibrated probabilities and reproducible training and serving.

Problem statement

For this exercise, assume an existing feed service requests a dislike probability for a viewer and up to 50 distinct eligible posts at proposed positions. Dislike is an observable proxy: a hide or see-less action attributed to an actual impression within 24 hours.

Predict that event conditional on the proposed exposure and the information available when scoring. This is not an estimate of a person’s unobserved opinion.

Return results in the supplied post order, with a probability in [0,1] or an explicit unavailable outcome, feature freshness and compatible feature-definition, model and calibration versions.

Missing required features or an unavailable model must not become probability zero; the caller owns its existing ranking fallback. The existing feed service retains post eligibility and final display authority.

Actual impressions and negative-feedback events have stable identities. Only actual impressions may create labels. A matching action in the 24-hour event-time window is positive; no action becomes a negative only after that window and a declared late-event cutoff.

Duplicate, unmatched or incomplete evidence cannot create a second example or an invented negative. Later corrections enter a new dataset version.

Impressions link the scoring request and record actual position, exposure policy, experiment assignment and available selection-probability information; evaluation must notice when the observed context differs from the saved prediction’s proposed context.

Design event ingestion and label construction, point-in-time features, a simple modeling baseline and one justified alternative, held-out probability evaluation and calibration, batch serving, monitoring, controlled release and rollback. Training must exclude future features and use compatible serving definitions.

Use only authorized event evidence and declare the retention/reproduction boundary. Exclude feed fanout, candidate retrieval, the final ranking formula, moderation, ads and inference of hidden preferences.

What to build

  1. Return a versioned dislike-proxy probability or explicit unavailable outcome for each supplied viewer-post-position candidate without taking over feed eligibility or display.
  2. Accept deduplicated actual impressions and attributed feedback, distinguish immature or incomplete evidence from observed negatives, and publish reproducible label versions.
  3. Train and compare justified models using point-in-time features and evaluate and calibrate their probability estimates on held-out observed exposures.
  4. Monitor service health, probability quality and exposure slices, and safely release or roll back compatible feature, model and calibration versions.

At scale

  • For this exercise, assume ten million daily users, 100 million actual impressions per day and peaks of 2,000 scoring requests per second, each with at most 50 posts.
  • For this exercise, target 100 milliseconds p95 for healthy scoring batches and 99.9 percent scoring availability; required-feature or model failures produce explicit unavailable outcomes.
  • For this exercise, target five-minute freshness for accepted feedback features, retain authorized event evidence for 90 days, and declare which immutable version metadata supports reproduction within those retention boundaries.