---
agent:
  instructions: "Use this search API to find relevant content across this site with keywords or natural-language queries, instead of crawling individual pages. Results are returned in Markdown."
  endpoint: "https://mixpeek.com/.well-known/search?q={query}"
  method: GET
  documentation: "https://mixpeek.com/llms.txt"
---

1.  [](/)
2.  [Diagrams](/diagrams)
3.  Sparse and Dense Are One Spectrum, Not Two Camps

[Back to Diagrams](/diagrams)Retrieval Mechanics

# Sparse and Dense Are One Spectrum, Not Two Camps

BM25, SPLADE and dense embeddings sit on one axis. What moves along it is how much vocabulary survives compression, which is why a rare identifier ranks below three passages that never mention it.

![Diagram placing BM25, SPLADE and dense embeddings on a single axis measuring how much vocabulary survives compression, with what each one stores and why production systems run more than one.](/diagrams/sparse-vs-dense.webp)Full screen

BM25, SPLADE and dense embeddings sit on one axis. What moves along it is how much vocabulary survives compression, which is why a rare identifier ranks below three passages that never mention it.

Ask a dense retriever for "error code E-4042 on the XR-9 valve" and it happily returns passages about valves, errors and hardware faults. Semantically adjacent, lexically wrong. The one document containing the literal string can rank below three that never mention it.

That's not a bug in the model. Compress a passage into a single 1024-dimensional vector and you keep its gist. You lose the guarantee that any specific token survives.

Sparse and dense get talked about as two camps. They're one axis, and what moves along it is how much vocabulary survives compression.

BM25 sits at one end. One dimension per vocabulary term, no expansion at all. It scores by summing term frequency, inverse document frequency and a length normalisation over each query term. The formula matters less than the property: the literal term has to appear.

SPLADE sits in the middle, and this is the part most people skip. It's still a sparse vector over the same roughly 30,000-term vocabulary, almost all implicitly zero. The difference is that a model assigns the weights and adds expansion terms the document never wrote. So "valve" can be weighted into a document that only said "spool". You pay a model forward pass at index and query time, and longer postings lists than raw BM25.

Dense sits at the far end. One fixed-length vector, nothing in it corresponding to a term. That's exactly what lets it match paraphrase and cross-language, and exactly what loses the rare identifier.

Published hybrid systems routinely report recall gains in the 15 to 30 percent range over dense-only on mixed workloads. The gain isn't spread evenly. It concentrates on rare-term queries, which is the same place dense search fumbles.

Before deciding, pull a hundred of your real queries and count how many contain a token that has to match exactly. That number tells you where on this axis you need to sit. A benchmark won't.

mxp.co/d/sparse-vs-dense

\[image: sparse-vs-dense.png\]

## Where this diagram appears

*   [Hybrid Search: BM25, Vector Retrieval and Rank Fusion →](/guides/hybrid-search-bm25-vector-fusion)
*   [Best Multimodal Embedding Models →](/curated-lists/best-multimodal-embedding-models)

Run this on your own data

Mixpeek turns video, images, audio, and documents in your object storage into searchable, timestamped results through one API.

[Search your own data](https://studio.mixpeek.com/namespaces/create?mode=managed&utm_source=homepage&utm_medium=diagram_detail&utm_campaign=mvs_onramp)

## Related diagrams

[

![A layered architecture diagram of the Mixpeek Vector Store. Tiers move on their own and an index nobody queries scales to zero: a right-hand rail shows where a segment lives, hot and resident, warm in local cache, or cold in object storage. The main flow runs top to bottom. Your application reaches MVS over SDK, REST or MCP and feeds a query planner that runs one per namespace and does plan, fan out, score and merge. The planner fans out to four segments; three are active and each carries dense, sparse, BM25 and payload, while the fourth is drawn dashed as a cold segment restored on first query. All four converge on your object storage, an S3, GCS or R2 bucket holding vectors, payloads and index snapshots.](/diagrams/mvs.webp)

MVS Architecture: Object Storage Is the Database



](/diagrams/mvs)[

![A 3072-dimensional embedding encodes everything about a video and distinguishes nothing: lighting, camera angle, dominant color, who is on screen, the room and the vibe of the room are all smeared across the same floats at equal weight, with no name you can filter on. That is why a search for a person holding a coffee cup returns videos with people, videos with cups, and a surprising number with neither, and why reranking and hybrid BM25 each help only a little. Decomposition is where the dimension reduction actually lives: a shot detector turns a thirty-second video into eight scenes with timestamps, a face identity model turns a frame into bounding boxes and 512-dimension face embeddings, a multimodal extractor turns a scene into a Gemini embedding plus OCR output plus dominant colors, and a custom plugin does the same for a proprietary file type. Each extractor's output becomes its own collection with its own schema and its own embedding space, so the features are named and filterable where a smear is not. Reduction alone leaves a smarter vector database; the leverage is placement. A new ad is placed against a brand taxonomy at ingest, and because the taxonomy that locates it is the same retriever a user invokes to ask for ads in that brand, enrichment and search become one traversal in two directions. Six primitives compose in one direction: bucket, extractor, collection, retriever, taxonomy, cluster.](/diagrams/the-3072-dimension-problem.webp)

The 3072-Dimension Problem: Reduce, Then Place



](/diagrams/the-3072-dimension-problem)[

![An ordinary embedding model spreads information across all dimensions with no ordering guarantee, so dimension 900 may carry as much signal as dimension 5 and truncating the vector discards random pieces of meaning. Matryoshka Representation Learning changes the objective so the model packs the most general information into the front of the vector and progressively finer detail toward the back, which makes every prefix a complete usable coordinate. The nesting is drawn as five bars that all start at dimension 0 and grow: the first 64 dimensions carry coarse semantics, enough to tell a cat photo from a car photo; 128 is the prefix the retrieval cascade indexes the whole corpus at; 256 gives mid resolution, enough to separate breeds of cat or a refund request from a refund confirmation; and the full 1024 gives fine resolution for ranking near-duplicates. The mechanism is a modified loss rather than a special architecture: one forward pass produces one d-dimensional output, the training loss is computed independently at each prefix size in the set 64, 128, 256, 512, 1024, and those losses are summed, so the front of the vector has to work on its own. What it buys is a retrieve-coarse, rerank-fine cascade: index 10,000,000 items at a 128-dimension truncation costing 5.1 GB instead of the full 41 GB, retrieve a top-200 shortlist with the truncated query, fetch the full 1024-dimension vectors for those 200 candidates only, and return a final top 10.](/diagrams/matryoshka-representation-learning.webp)

Matryoshka Representation Learning: One Vector, Five Resolutions



](/diagrams/matryoshka-representation-learning)