Pick the property that distinguishes dense embeddings from one-hot vectors
Same topic, related formats. Practice these next.
Same topic, related formats. Practice these next.
Dense embeddings encode semantic similarity geometrically; one-hot vectors are mutually orthogonal and carry no inter-token similarity signal at all.
Picture a row of school lockers. A one-hot label is like saying 'this is locker number 47'. Every locker is its own slot and locker 47 has nothing to do with locker 48, even if both belong to twins. A dense description is more like a seating chart in the cafeteria, where friends sit near each other and strangers sit far apart. The locker system tells you which one a kid owns. The seating chart tells you who likes whom. Both are ways to refer to people, but only the seating chart lets you guess relationships by looking at how close two seats are. That is the difference: locker numbers identify, seating charts relate.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example.
Everything important, quickly.
Define the one-hot construction. Show all pairs are orthogonal. Contrast with dense embeddings whose geometry is learned. Eliminate the three distractors with one sentence each. Close with the practical reason this matters: retrieval breaks under one-hot.
Real products, models, and research that use this idea.
What an interviewer would ask next. Try answering before peeking at the approach.
Red flags and common mistakes that signal junior thinking. Click to expand.
Picking "lower dimensionality" as the defining property. Smaller size is a consequence of dense encoding, not the thing that makes embeddings useful.
The night-before-the-interview bullets. Scan these on the way to the call.
Primary sources. Skim if you want the original framing.