Notes

Latent Semantic Indexing (LSI)

You type "heart attack" into a document search and miss every file that says "myocardial infarction". Keyword indexes match strings, not meanings. Latent Semantic Indexing closes that gap by indexing documents in a compressed space where related wording collapses together.

Indexing in a reduced space
LSI is Latent Semantic Analysis put to work as a search engine. The collection becomes a TF-IDF document-term matrix, truncated singular value decomposition reduces it to a few hundred dimensions, and each document is stored as a dense vector rather than as the list of words it contains. A query is folded into the same space by the same transformation, and ranking is cosine similarity between query and document vectors.

What it buys you

  • Synonymy stops hurting: a query word and a document word that keep the same company sit near each other, so a document can rank with zero literal overlap.
  • Short queries degrade gracefully, where exact-match scoring has almost nothing to work with.
  • The index is far smaller than the vocabulary-wide sparse one it replaces.

Why it matters, and where it stops
LSI is the ancestor of dense retrieval: the same move — put documents and queries in one vector space, rank by proximity — now done with a trained encoder instead of a decomposition. The limits are real. Adding documents means refolding or recomputing the decomposition, a polysemous word gets one blurred position, and the dimensions explain nothing, so you cannot tell a reader why a result matched. It survives as a dependable baseline that needs no training data at all.

Latent Semantic Indexing is document retrieval over a truncated singular value decomposition of the document-term matrix: documents and queries become dense vectors of a few hundred dimensions and are ranked by cosine similarity instead of literal word overlap. A document can therefore match a query it shares no words with, provided the wording is used in similar contexts. It is the count-based ancestor of dense retrieval and needs no labelled training data.

Imagine asking a librarian for books about cars and being handed one called "The Automobile Age". A plain word-matching search would have skipped it, because the word "cars" never appears in the title. Latent Semantic Indexing is a way of arranging a collection of documents so that searching it behaves more like that librarian.

It watches which words keep turning up together across the whole collection, and uses that to place documents about similar things close to one another. Your search lands in the same arrangement and picks up its neighbours. Nobody writes out a list of synonyms — the grouping comes from how the words were actually used.