Nearest Neighbour in Embedding Space

Dimensionality Reduction & EmbeddingsMedium+20 XP+20

Nearest Neighbour in Embedding Space

A toy language model has learned 333-dimensional embeddings. The query word puppy has the vector

q=(6, 8, 0)q = (6,\ 8,\ 0)q=(6, 8, 0)

and four candidate words sit in the same space:

WordEmbedding vector
dog(12, 16, 0)(12,\ 16,\ 0)(12, 16, 0)
kitten(7, 9, 1)(7,\ 9,\ 1)(7, 9, 1)
the(20, 20, 20)(20,\ 20,\ 20)(20, 20, 20)
wheel(6, 0, 8)(6,\ 0,\ 8)(6, 0, 8)

A retrieval system ranks candidates by cosine similarity to the query and returns the highest-scoring one.

Which word does it return as puppy's nearest neighbour?

Hints

Solve it to unlock the solution

Once you get it right, the reasoning behind the answer shows up here.

Select all that apply.