Latent Semantic Analysis (LSA)
Search for "car" and a document that only ever says "automobile" never matches, even though it is exactly what you wanted. Latent Semantic Analysis was the first widely used answer to that problem: compress the vocabulary until related words land in the same place.
How the compression works
LSA starts from a document-term matrix, usually TF-IDF weighted — one row per document, one column per vocabulary word, tens of thousands of mostly-zero columns. It applies truncated singular value decomposition, keeping only the strongest few hundred components, and rewrites every document and every word as a dense vector in that reduced space. Words appearing in similar documents end up with similar vectors, so "car" and "automobile" become near neighbours with no dictionary saying so. Applied to retrieval, the same method is called latent semantic indexing.
What it gives, and what it costs
- Cosine similarity in the reduced space matches documents that share meaning rather than wording, which is the whole point.
- The components are not interpretable: the values are signed, so a dimension is a direction, not a topic you can name — the contrast with a probabilistic topic model.
- It is still a bag of words, so syntax is gone and one vector per word means "bank" gets a single blurred position between the river and the high street.
Why it matters
LSA is the distributional hypothesis made computational a decade before word embeddings, and the lineage is direct: Word2Vec and its successors swapped the decomposition for a learned prediction task but kept the premise that meaning can be read off co-occurrence. It survives as a fast, deterministic baseline — TruncatedSVD over a TF-IDF matrix needs no training loop and no GPU.
Latent Semantic Analysis applies truncated singular value decomposition to a TF-IDF document-term matrix, replacing each sparse vocabulary-sized vector with a dense one of a few hundred dimensions. Documents and words that co-occur with the same neighbours land close together, so retrieval and similarity survive synonymy — "car" matches "automobile". Its components are signed and not interpretable as topics, unlike a probabilistic topic model, but it is fast, deterministic and needs no training loop.
If you search for "car" and a page only ever says "automobile", a word-matching search engine finds nothing — even though the page is exactly what you wanted. Latent Semantic Analysis was an early fix. It studies which words tend to turn up in the same documents and uses that to place words of similar meaning close together.
Nobody hands it a list of synonyms; it works them out from usage alone. That idea — you can learn what a word means from the company it keeps — is the same one behind today's much larger language models. LSA simply got there first, with far less arithmetic.