AlgoViz

The ranker never saw the best item

medium 6 min

A learning feed scores 200 candidate lessons per user.

Video lesson · Chapter 1 of 5

A relevant lesson disappears upstream

0:00 / 3:45

The ranker never saw your best lesson

1:13Reel

Theory

Read or listen first. About 1 min.

What it is

Scoring every lesson against every learner with a large model would make opening the app slow and expensive. Candidate generation cheaply finds a manageable pool. A later ranker can then afford richer features for that pool, such as prior attempts or the relationship between the lesson and a recent mistake.

Where did the relevant lesson disappear?

Target exists100Retrieved80On screen6020 lost before ranking, 20 more before display.
In 100 example sessions, retrieval includes the target lesson in 80 candidate pools. The ranker puts it on screen in 60.

Why it exists

The boundary changes what a metric means. Poor results may come from a relevant item that never entered the pool, an item the ranker buried, or a useful item removed by an eligibility filter. Each failure calls for a different intervention.

View diagram · Candidate boundary
Learner context → Candidate pool (retrieve); Catalog → Candidate pool (eligible lessons); Candidate pool → Ranker (limited pool); Ranker → Final list (top ten)
Fix retrieval to raise end-to-end recall above 80 percent here.
Full size

Words to know

Candidate recall
The fraction of relevant targets that enter the pool.
Ranking objective
The quantity a scoring model is trained to predict or optimize.

How it works

Step through the idea, or press Play.

Step 1 of 3

Audit the candidate set. Generate a small pool from a large catalog using inexpensive retrieval. Log which sources supplied each candidate so you can locate omissions.

Understand it

Start here

Where did the lesson go?

Imagine marking one lesson that should appear in each of a hundred learning sessions. Count those marked lessons at each stage to see exactly where a better ranker can help.

Where did the lesson go?
Following 100 judged targets100 targets80 retrieved60 displayedStart with 100 known relevant lessons

Log the pool and the final list.

Structure

Candidate boundary

Candidate boundary

Learner context → Candidate pool (retrieve); Catalog → Candidate pool (eligible lessons); Candidate pool → Ranker (limited pool); Ranker → Final list (top ten)
Fix retrieval to raise end-to-end recall above 80 percent here.

Find the failing stage

For 100 labeled sessions, suppose 80 target lessons reach the candidate pool and 60 reach the final ten. Candidate recall is 80%. Even a perfect ranker under this pool cannot surface the other 20. Audit retrieval first for those sessions.

Where a lesson can disappear

Trace 100 target lessons

StageTargets remainingInterpretation
Catalog with 100 judged targets100Reference set for this example
Candidate pool80Twenty targets cannot reach the ranker
Final ten per session60Three quarters of retrieved targets make the final list
Improve ranker aloneAt most 80Candidate coverage caps the result

Cold-start lessons

A new lesson has no interaction history. A popularity-only source can omit it repeatedly, leaving no chance to collect feedback. Add a retrieval source based on content or topic, log its contribution, and reserve a bounded opportunity to evaluate new material. Check whether new items reach the pool before increasing their final-ranking weight.

Buying recall with latency

Doubling the pool can increase coverage while doubling expensive scoring work. Measure the extra targets reached per additional candidate and look at slow requests, especially for users with large histories. An additional retrieval source may bring more distinct candidates than simply asking an existing source for another hundred.

Measure each stage

  • Log the pool and the final list.

Inspect final ranks alone

  • You cannot tell whether a missing item ever reached scoring.

Where the recall went

80100×6080=0.60\frac{80}{100} \times \frac{60}{80} = 0.60
Retrieval preserves 80% of the targets. Final selection keeps three quarters of those.

Summary

The whole topic in one minute.

Log where an item entered and left the pipeline. Candidate recall, ranking quality and end-user value answer different questions.

Sources