Learn AI Math

Sparse Retrieval

What is Sparse Retrieval?

In one sentence: Sparse retrieval finds documents by matching words, using long lists that are mostly zeros except for the words present.

Each document is represented by which words it contains and how important they are. Most entries are zero, so it is "sparse." BM25 is the classic example.

What does Sparse Retrieval look like?

A search for "solar panel cost" finds pages that actually contain those words.

Why does Sparse Retrieval matter?

Sparse retrieval is fast, exact and great for names and rare terms.

Sparse Retrieval vs. Dense Retrieval

Dense retrieval matches meaning using neural embedding vectors, while sparse retrieval (like BM25) matches exact words and rare identifiers—which is why Hybrid Search combines both.

DimensionSparse RetrievalDense Retrieval
Matches onExact keywords, error codes, SKUs, namesConceptual meaning and synonyms
RepresentationSparse word-weight index (BM25 / SPLADE)Compact float vector (e.g., 768–1,536 dims)
Blind spotMisses paraphrases that use different wordsCan blur exact product IDs or numbers

Last updated · Fact-checked by The AI Math

Linking to this page from a lesson or article?

Like this explanation? Get one every week.

The AI Math newsletter turns confusing AI news into plain English. No hype, no jargon walls.