Glossary
SPLADE
SPLADE is a neural retrieval model that produces sparse term vectors with learned weights and expansion terms, searchable with an ordinary inverted index.
SPLADE (Sparse Lexical and Expansion model) is a neural retrieval model that turns text into a sparse vector over a fixed vocabulary of about 30,000 word pieces, with a learned weight for each term that matters. Unlike classic keyword scoring, it can give weight to terms that never appear in the text, so a passage about "automobile repairs" can also score for "car" and "mechanic". The vectors stay sparse enough to be stored and searched in an ordinary inverted index, which makes SPLADE a middle ground between BM25 and dense embeddings: it keeps the speed, exact matching and interpretability of term-based search while closing much of the vocabulary gap that dense models were introduced to fix. SPLADE was introduced by researchers at Naver Labs Europe in 2021 and has been refined in several later versions.
The problem SPLADE addresses
Term-based keyword search such as BM25 scores a document by the query words it contains, weighted by how rare they are. It is fast, explainable and very good at exact identifiers, but it fails when the query and the document use different words for the same thing. A query for “heart attack symptoms” can miss a page that only says “myocardial infarction”. Dense retrieval solves the vocabulary problem by mapping text to dense vectors that capture meaning, but it needs an approximate nearest neighbour index, gives results that are hard to explain, and often handles rare names and codes poorly.
SPLADE asks whether a model can learn what a document is about, as dense models do, while still producing a representation that a term index can search. Its answer is a learned sparse vector with expansion.
How SPLADE works
SPLADE is built on a BERT-style transformer, the same kind of network used as an embedding model, and reuses the masked language modelling head, the part of the model that normally predicts a missing word from its context. For each token in the input, that head produces a score for every term in the vocabulary, describing which words are plausible at that position. SPLADE turns these scores into term weights.
Scoring. For every input token, the model computes a score for all roughly 30,000 vocabulary terms. Negative scores are cut to zero, and the rest are dampened with a logarithm so a few very large values do not dominate.
Pooling. The per-token scores are combined into one vector for the whole text, taking the maximum score for each vocabulary term across all tokens in later versions. The result is one weight per vocabulary term.
Sparsity. Left alone, the model would give small weights to thousands of terms, which would make the index slow. Training adds a regularisation penalty (a FLOPS penalty, named after the cost of scoring) that pushes most weights to exactly zero. A typical document vector ends up with somewhere between tens and a few hundred non-zero terms, a mix of words from the text and expansion terms the model judged relevant.
Matching. Queries go through the same model, or a lighter one, and the score between a query and a document is the dot product of their sparse vectors: the sum, over shared terms, of query weight times document weight. Because only shared non-zero terms contribute, this is exactly the computation an inverted index is built for.
A worked example
Take the passage “The court held that the tenant could withhold rent until the landlord repaired the heating.” A BM25 representation weights the words present: court, held, tenant, withhold, rent, landlord, repaired, heating. A SPLADE representation of the same passage might give high weights to tenant, landlord, rent and withhold, lower weights to the less central words, and add expansion terms such as lease, eviction, repairs, housing and dispute, each with a modest weight. Function words get zero.
Now search for “can I stop paying my lease if the boiler is broken”. BM25 finds very little overlap: no “lease” or “boiler” in the passage, and “paying” does not match “rent”. SPLADE’s document vector already carries “lease”, and its query vector may add “rent” and “heating” as expansions of “paying” and “boiler” (a learned form of query expansion), so the dot product is high and the passage ranks near the top. Inspecting the shared terms shows why it matched, which is not possible with a dense vector.
SPLADE compared with BM25 and dense retrieval
Aspect | BM25 | SPLADE | Dense embeddings |
|---|---|---|---|
Representation | Sparse, terms in the text | Sparse, learned weights plus expansion | Dense, every dimension filled |
Handles synonyms | Poorly | Reasonably well | Well |
Exact identifiers | Very well | Well | Often poorly |
Index | Inverted index | Inverted index | ANN index such as HNSW |
Explainable | Yes | Mostly | No |
Encoding cost | None | Transformer per document and query | Transformer per document and query |
Out-of-domain robustness | Good | Good on many benchmarks | Varies |
On standard benchmarks such as MS MARCO and the BEIR collection, later SPLADE versions match or beat many dense retrievers of similar size, and they tend to hold up well on domains they were not trained for, where pure dense models can drop sharply. The dense vs sparse retrieval entry covers the broader comparison, and BM25 vs embeddings looks at the two endpoints SPLADE sits between.
Variants and related models
SPLADE has gone through several revisions. SPLADE v2 changed the pooling to max and added distillation from a stronger model. SPLADE++ added training with hard negatives and distillation from a cross-encoder, which raised accuracy further. Document-only variants expand documents at indexing time and keep queries as plain bag-of-words, so query encoding costs nothing and latency is close to BM25. Efficiency-focused versions use smaller query encoders and stronger sparsity to cut search cost.
Other learned sparse approaches share the idea. Earlier work such as DeepCT, which built on the classic TF-IDF idea of term weighting, reweighted the terms already in a document, and doc2query generated likely questions and appended them before indexing with BM25. Some commercial search engines offer their own learned sparse models built on the same principle. Late interaction models such as ColBERT take a different route to the same goal, keeping a dense vector per token rather than a sparse vector per document; late interaction and multi-vector retrieval explain that family.
Costs and trade-offs
Encoding. Every document has to pass through a transformer at indexing time, which is far more expensive than tokenising for BM25. For a corpus of tens of millions of passages this needs GPUs and planning, and the cost recurs whenever the model changes.
Index size and speed. Expansion means each document has more terms than its raw text, and some expansion terms are common across documents, so posting lists grow longer. Without care, query latency can be several times that of BM25. Pruning low weights, capping terms per document, and document-only expansion all bring it back down.
Query encoding. A full SPLADE query encoder adds a transformer call to every search. For latency-sensitive applications, a lightweight query encoder or no query expansion at all is often the better trade.
Licensing and domain. The original research checkpoints were released for research use, so teams should check the licence of any model they deploy. Like any learned model, SPLADE reflects its training data, and very specialised vocabularies may need fine-tuning.
Vocabulary limits. The term space is the model’s word-piece vocabulary. Rare identifiers split into several pieces, which usually still match but with less precision than a whole-token keyword index.
How SPLADE fits into a retrieval stack
SPLADE is most often used as a first-stage retriever in place of, or next to, BM25. A common design runs SPLADE and a dense retriever in parallel, merges the lists with reciprocal rank fusion, and passes the top candidates to a reranking model. That combination is a form of hybrid search, and because SPLADE already covers some synonyms, it often narrows the gap between the two first-stage lists.
Measuring the gain is the same as for any retriever in information retrieval: a set of real queries with known relevant passages, and metrics such as recall at 10 or 100 and precision and recall at the cut-off the application uses. Evaluating retrieval without a labelled dataset covers practical ways to build that set. In RAG pipelines, better first-stage recall matters because the generator can only use what retrieval hands it; a passage missed at this stage is lost for good.
Where Exabase fits
Exabase does not run SPLADE or expose a choice of sparse model. It provides the result that teams usually build SPLADE-plus-dense stacks to reach: content stored as Resources is extracted and indexed on arrival, and every text query to Deep Search combines semantic matching with typo-tolerant keyword matching, with double quotes available to force an exact phrase. Results are passages with page numbers, timestamps or video scenes, and a precision parameter between 0 and 1 widens or narrows them per query. Each Base keeps its own isolated index.
Teams researching retrieval models, or that need a specific sparse encoder for compliance or domain reasons, will run their own stack; Exabase vs OpenSearch and Elasticsearch alternatives describe search engines that host learned sparse models. Teams that want hybrid retrieval without operating encoders can start with the searching resources guide and the search endpoint reference. RAG accuracy explains why passage-level retrieval matters for answers, and the research agents use case shows it applied to a literature corpus.
Frequently asked questions
What does SPLADE stand for?
SPLADE stands for Sparse Lexical and Expansion model. It produces sparse term vectors with learned weights and adds related terms that do not appear in the text.
Is SPLADE a sparse or dense model?
SPLADE is a sparse model. It uses a transformer to compute its weights, but its output is a sparse vector over the vocabulary that can be searched with an inverted index.
How is SPLADE different from BM25?
BM25 weights only the words present in a text with a fixed formula. SPLADE learns the weights from data and adds expansion terms, so it can match synonyms and related words.
Is SPLADE better than dense embeddings?
Neither is better everywhere. SPLADE is often stronger on exact terms and on unfamiliar domains, while dense embeddings can be stronger on paraphrase. Many systems use both.
Does SPLADE need a vector database?
No. SPLADE vectors are sparse and are searched with an inverted index, the same structure keyword search engines use, though some vector databases also store sparse vectors.
What are the main costs of SPLADE?
Transformer encoding for every document and query, larger indexes because of expansion terms, and higher query latency than BM25 unless the vectors are pruned or queries are left unexpanded.
Do I need SPLADE to get hybrid search in Exabase?
No. Deep Search combines keyword and semantic matching on every text query automatically, with no sparse model to choose or run.
Related pages: Sparse vectors, BM25, ColBERT, Late interaction retrieval, Dense vectors, Query expansion, Hybrid search, Dense vs sparse retrieval, Elasticsearch alternatives, RAG accuracy