← AI ChannelInside AIChapter 15 / 255日本語

Volume 1 / Part 2 History — 70 Years of Setbacks and Comebacks / Chapter 15

Word2Vec — The Day "King − Man + Woman = Queen" Worked

About 5 min read

Take the word "king," subtract "man," add "woman," and you get "queen." It sounds like a parlor trick, but in 2013 researchers showed this arithmetic actually holds up inside a computer. Google's Tomas Mikolov and his colleagues published Word2Vec, a way of treating word meaning as a string of numbers. This is the story of the first moment semantic closeness could be measured as literal distance.

What's left when you subtract "man" from "king"?

Try this thought experiment. Take the word "king," subtract the concept of "man," and add the concept of "woman." What's left? Most people would say "queen" without much hesitation. It's a natural leap for a human mind to make.

But ask a computer to do it, and things get complicated fast. A computer only sees characters as characters. There's no built-in way to subtract the string "man" from the string "king" — the operation simply isn't defined.

Think of a printed thesaurus. Flip to "king" and you'll find "queen" and "monarch" sitting nearby, while an unrelated word like "airplane" sits pages away. What Word2Vec set out to do was recreate that thesaurus-like arrangement automatically, using coordinates instead of pages.

Then, in 2013, a research team showed that if you convert words into strings of numbers first, this subtraction genuinely works — and the results line up surprisingly well with human intuition. Let's dig into how.

Remember this

Turn word meaning into a string of numbers, and suddenly you can add and subtract meaning itself. That's the starting point of Word2Vec.

2013: what Mikolov and his Google team showed

The method came from Tomas Mikolov and colleagues at Google. In January 2013, their paper "Efficient Estimation of Word Representations in Vector Space" landed on arXiv. All the authors were affiliated with Google Inc.

At the heart of the paper were two new models for computing vector representations of words from huge piles of text. The team reported training useful word vectors in under a day, even on a dataset of roughly 1.6 billion words. For the time, that was a stunning level of efficiency.

Picture 1.6 billion words as the equivalent of years' worth of newspaper archives stacked up. Feeding all of that in and getting usable answers back in less than a day — it's easy to see why researchers at the time were floored.

Off the back of this paper, Mikolov's team also released an open-source tool called word2vec. Researchers including Sutskever, Chen, Corrado, and Dean contributed to it, and it was implemented in C. Suddenly, anyone could compute word vectors from their own data — a development that mattered almost as much as the research itself.

Remember this

Word2Vec wasn't just one paper. It spread as a package: an efficient computational model plus a practical tool anyone could run.

Turning words into coordinates — the idea of distributed representation

In one sentence, what Word2Vec does is turn a word into a point on a map. This is called a distributed representation, or a word vector. The word "cat," for instance, might be represented as a string of 100 numbers.

What matters is that words used in similar ways end up with coordinates close to each other. "Cat" and "dog" land near one another; "cat" and "airplane" land far apart. The only thing the model learns from is which words tend to appear near each other in text. Nobody teaches it meaning directly.

Try sketching this yourself. Draw a simple map with just two axes — up-down and left-right. Place "king" and "queen" close together, and put "dog" and "cat" somewhere else entirely. That crude little map is basically a miniature version of what Word2Vec actually does.

Push it a step further. If you had to represent every word using just two numbers instead of a hundred, where would you put things? Grab a pen and paper, and plot points for "fruit," "animal," and "vehicle" words as separate clusters. The way related words naturally huddle together is close to what's happening inside Word2Vec.

Remember this

A word vector is a coordinate that turns closeness in meaning into closeness in distance.

Inside king − man + woman ≈ queen

The famous "king − man + woman = queen" example comes from a companion paper by Mikolov and colleagues, "Linguistic Regularities in Continuous Space Word Representations," presented at NAACL 2013. This paper showed that adding and subtracting word vectors could extract real relationships between words.

Concretely: take the vector for king, subtract the vector for man, add the vector for woman, and you land very close to the vector for queen. The relationship of gender showed up consistently as a direction in vector space. Similar results have been reported elsewhere — subtract France from Paris and add Morocco, for example, and you land near Rabat, a geographic relationship captured the same way.

The pattern isn't limited to gender or geography. It also shows up with singular and plural forms. Take the vector for Kings, subtract King, add Person, and you get a vector close to People. Even grammatical relationships turned out to be consistently encoded as directions.

One caveat is worth flagging. When you search for the word closest to the result of this arithmetic, you have to exclude king, man, and woman themselves from the candidates — otherwise king often comes back as its own nearest answer. The equation looks elegant, but there's a bit of search-trick bookkeeping behind the scenes.

Remember this

king − man + woman ≈ queen is the emblematic proof that word vectors capture meaning as direction, not just position.

The starting point of "embeddings"

What Word2Vec really demonstrated was an idea: turn words into coordinates, and you can compute with meaning. That idea — converting language into numerical vectors — later came to be called an embedding, and it's still the foundation under today's generative AI. Comparing sentences, images, even personal preferences by turning them into vectors — all of it traces back to this starting point.

Think about the recommendation engine on your favorite shopping site, or the "similar searches" feature on a search engine. Both rest on this same embedding idea. The surface features look completely different, but underneath, the same trick is running: turn meaning into numbers, then find the nearest ones. Word2Vec was simply the first concrete example of that trick.

Back in 2013, though, this technology converted each word into a vector independently. It couldn't yet handle word order or context within a sentence. Word2Vec alone couldn't tell "the cat chased the dog" apart from "the dog chased the cat."

So how do you capture the order words come in? Next time, we'll look at RNNs and LSTMs, the technologies that took on exactly that challenge — how to draw the flow of time onto the map that embeddings had already built.

Remember this

Word2Vec is the starting point for the idea of embeddings, but it still couldn't handle the order words come in.

FAQ

What is Word2Vec?

It's a technique that converts words into strings of numbers (vectors) so that semantic closeness can be treated as distance. Tomas Mikolov and colleagues at Google published it in 2013.

Why did king − man + woman = queen become such a famous example?

Because it showed that once words are turned into vectors, relationships like gender can be expressed through simple addition and subtraction. Mikolov's team detailed this in a companion 2013 paper.

How is an embedding different from Word2Vec?

Embedding is the general concept of converting words, images, or other data into vectors. Word2Vec is one of the earliest and most influential ways of actually doing that for words.

We can turn words into coordinates, but word order is still off the table. Next time: RNNs and LSTMs, the technologies that took on the challenge of sequence.

Primary sources

This article organizes general knowledge based on our experience and public sources. Product specs, prices, and regulations reflect the time of writing (October 2, 2026) and may change.