| ISSUE 59/456 · COMPUTER SCIENCE |
~4 MIN |
FOUNDATION / RECOMMENDATIONS · READING DATE 2026-11-29 · NOVEMBER 2026 — THE SYSTEMS AROUND YOU
How recommendations turn taste into geometry
START HERE
A film can be described with several numbers, such as how much comedy or action it contains. A vector is an ordered list of numbers that can represent a position, direction or set of measured features. Recommendation systems can compare such lists to estimate which items resemble a user’s interests.
|
/ WHY NOW
Similarity need not mean sharing the same words in a title. A system can represent viewing patterns as numbers, then compare the patterns. The geometry is useful only if those numbers capture something meaningful.
|
/ THE IDEA
An embedding is a learned numerical representation: training adjusts the numbers so useful relationships become easier to detect. In a tiny hand-built example, we can name the features ourselves, but real embedding dimensions often have no simple individual labels. Cosine similarity compares direction rather than length. Two lists pointing in the same direction score one. Perpendicular directions score zero. In spaces allowing negative values, opposite directions can score minus one. This is a chosen comparison rule, not an objective measure of human preference.
THE FORMAL IDEA
cosine(a,b) = (a · b) / (|a| |b|)
| a and b are two lists. a · b means multiply matching entries and add; |a| means square root of the sum of squared entries. | | The denominator removes the effect of overall length. Both lists must use corresponding dimensions and have nonzero length. This ratio has no units. |
|
RUN THE TINY EXAMPLE
Change one thing. Predict what happens.
Use invented comedy and action scores, in that order: user a = (1, 0); film b = (3, 0). a · b = 1 × 3 + 0 × 0 = 3; lengths 1 and 3 → similarity 3/3 = 1. Change film to c = (0, 3): dot product 0 → similarity 0. Change b to (6, 0): similarity stays 1 despite doubling its length.
|
The last change shows exactly what the comparison ignores. A longer vector is not automatically more similar under this rule. That can be useful when direction represents taste and length reflects some unrelated scale.
/ SO WHAT?
A recommender can retrieve nearby candidates and then rank them using freshness or other constraints. The resulting list may reinforce what was already watched, so variety and user control require additional choices rather than emerging automatically from a distance calculation.
ONE CAVEAT |
| These two dimensions are invented for clarity. Learned similarities depend on training data, objectives and representation; a high similarity is neither a factual claim nor a guarantee you will enjoy something. |
KEEP THIS
A similarity score is meaningful only after you know what the representation preserves and what the comparison ignores.
|
NEXT: What does a rocket push against in empty space?
|