Subword Embeddings
Train a word-vector model on a billion words and it still will not know "uncheerfulness", "Kowalczyk" or "tokeniser". Any model that stores one vector per word has a wall at the edge of its vocabulary. Subword embeddings move the unit of representation below the word, learning vectors for pieces of words so an unseen word can be assembled from parts the model does know.
Character n-grams and composition
The best-known version is FastText, which treats each word as its own vector plus the set of character n-grams inside it.
- "where" with n from 3 to 6 yields "<wh", "whe", "her", "ere", "re>" and longer pieces, the angle brackets marking word boundaries so "her" inside "where" differs from the standalone word.
- A word's embedding is the sum of its n-gram vectors, so morphologically related words share most of their parts and land near each other without ever co-occurring.
- Out-of-vocabulary words still get a vector, which is the whole point: a misspelling, an inflection or a surname never seen in training is composed on the spot.
What it fixes and what it does not
The gain is largest in morphologically rich languages — Turkish, Finnish, German compounds — where Word2Vec and GloVe waste capacity on hundreds of forms of one lemma. The cost is memory and a blurrier notion of a word: n-grams pull together words that look alike but mean different things, so "loose" and "lose" sit closer than they should. Note the distinct idea with a similar name: subword tokenization (BPE, WordPiece) splits text into pieces and lets a transformer learn one embedding per piece, rather than summing n-grams into a static vector. FastText-style embeddings remain the pragmatic choice when you need cheap multilingual vectors without running an encoder.
Subword embeddings represent a word as a composition of smaller units — in FastText, the sum of vectors for the character n-grams it contains plus the word itself. It matters because it closes the open-vocabulary hole in Word2Vec and GloVe: unseen words, misspellings and rare inflections still receive a meaningful vector, and morphologically related forms share parameters. The cost is extra memory and look-alike words drifting closer than their meanings warrant.
You have never seen the word "unfrighteningly" before, yet you can guess what it means, because you know "fright", "un-" and "-ly". Software that stores a separate entry for every whole word has no such luck: a word missing from its list is a blank.
Subword embeddings give software that same trick. Instead of memorising only complete words, they learn the meaning of small fragments of spelling, then build an unfamiliar word out of its pieces. That is why a typo, a plural, or a surname it has never met still lands somewhere sensible rather than nowhere at all — and why it helps most in languages that glue long words together from many parts.