Retrieval Representation | How Queries and Documents Become Sparse, Dense and Hybrid Search Signals

Retrieval begins by deciding what a query and a document should look like to a search system. The same sentence can be represented as lexical terms, a sparse learned vector, one dense embedding, many token-level vectors or a hybrid combination of several signals.

Retrieval representation is the mechanism layer between source text and the evidence set returned to a reader or language model.

This article extends the eduKateSingapore Representation and Tokenisation series beyond search tokenisation into modern retrieval geometry.

The Retrieval Representation Route

QUERY + DOCUMENTS
→ LEXICAL / SPARSE / DENSE / TOKEN-LEVEL REPRESENTATIONS
→ INDEX
→ CANDIDATE RETRIEVAL
→ SCORE FUSION OR RERANKING
→ EVIDENCE SET
→ CONTEXT SUFFICIENCY TEST
→ ANSWER / SEARCH RESULT

1. Search Representation Determines What Can Match

If the system represents a query only through exact terms, paraphrases may be missed. If it represents only semantic similarity, exact identifiers can be diluted.

Retrieval quality begins with the chosen representation family.

2. Lexical Retrieval Uses Sparse Term Signals

Traditional systems such as BM25 represent documents and queries through term occurrence statistics over a large vocabulary.

Most vocabulary dimensions are zero for any one document, making the representation sparse.

3. Sparse Lexical Signals Preserve Exact Words

Rare names, error codes, product IDs and unusual technical terms can match strongly when they appear exactly.

This is a major strength of sparse retrieval.

4. Exact Words Can Miss Paraphrase

A user asks “How do I cancel?” while the document says “terminate the subscription”.

Lexical mismatch can hide semantically relevant evidence.

5. Stemming and Expansion Try to Bridge Lexical Gaps

Classical systems can stem related word forms or expand queries with related terms.

These techniques enrich sparse representation without abandoning explicit vocabulary dimensions.

6. Learned Sparse Retrieval Makes Expansion Contextual

SPLADE v2 learns sparse lexical representations whose non-zero vocabulary dimensions can include useful expansion terms not literally present in the source.

The representation remains indexable through sparse inverted-index machinery while gaining learned semantic expansion.

7. Learned Sparse Vectors Are Still Interpretable at Vocabulary Level

Because dimensions correspond to vocabulary terms, engineers can inspect which terms receive weight.

This offers more lexical transparency than one dense vector.

8. Dense Retrieval Maps Text Into Continuous Embeddings

A dense retriever encodes a query and document into compact numerical vectors where similarity approximates semantic relevance.

The match no longer requires shared surface words.

9. Dense Passage Retrieval Popularised Dual-Encoder Search

Dense Passage Retrieval showed that separately encoded question and passage vectors could outperform strong lexical baselines on several open-domain QA benchmarks.

The architectural benefit is indexability: document embeddings can be precomputed and searched efficiently.

10. One Dense Vector Is Strong Compression

A passage containing hundreds of tokens can become one embedding.

This improves search efficiency and inevitably loses exact token-level detail.

11. Dense Similarity Is Not Exact Identity

Two semantically related passages can sit close in vector space while differing on names, dates or negation.

Similarity should not be mistaken for factual equivalence.

12. Embedding Models Define the Geometry of Search

Changing the embedding model changes which passages count as near neighbours.

Vector indexes are therefore tied to the representation model that produced them.

13. Embedding Migration Requires Re-Indexing

Old document vectors and new query vectors should not be compared unless they share a compatible embedding space.

Retrieval representation has versioning requirements just like tokenizers.

14. Dense Indexes Need Approximate Nearest-Neighbour Search

Large vector collections are commonly searched through ANN structures rather than exhaustive comparison.

The index introduces another recall-versus-speed trade-off above the embedding itself.

15. Representation Recall and Index Recall Are Separate

A relevant passage can be far away because the embedding is weak, or it can be near and still missed by the approximate index.

Diagnose semantic representation and search infrastructure separately.

16. Late Interaction Preserves More Token-Level Detail

ColBERT encodes query and document token representations separately and performs a lightweight late interaction at search time.

This keeps more fine-grained matching capacity than compressing each passage into one vector.

17. Late Interaction Trades Storage for Matching Resolution

Storing many token vectors per document is more expensive than storing one passage vector.

The gain is richer alignment between specific query terms and specific document regions.

18. Retrieval Granularity Matters

Documents can be indexed as whole pages, paragraphs, sentences or overlapping chunks.

The representation of the item determines what context arrives together when it is retrieved.

19. Small Chunks Improve Precision and Lose Context

A sentence-sized chunk can match one fact cleanly and omit the heading or exception required to interpret it.

Fine retrieval units need contextual metadata or neighbouring evidence.

20. Large Chunks Preserve Context and Dilute Similarity

A long section can contain the answer plus several unrelated topics.

Its embedding may become a broad average rather than a precise query match.

21. Hybrid Retrieval Combines Sparse and Dense Signals

Sparse retrieval preserves exact lexical evidence. Dense retrieval captures semantic paraphrase.

Hybrid systems combine both because their errors differ.

22. Hybrid Search Needs Score Fusion

BM25 scores and embedding similarities live on different numerical scales.

Fusion can normalise scores, learn weights or combine rank positions rather than raw scores.

23. Reciprocal Rank Fusion Combines Ranked Lists Simply

RRF rewards documents that appear highly in one or more ranked lists without requiring score calibration between systems.

It is useful precisely because heterogeneous retrieval representations do not naturally share one scoring scale.

24. Rerankers Add a More Expensive Representation Stage

A first-stage retriever can fetch hundreds of candidates cheaply. A cross-encoder reranker can then jointly inspect query and candidate text with deeper interaction.

The pipeline spends high-resolution computation only on a narrowed set.

25. Retrieval Is Naturally Hierarchical

Broad sparse or dense search → finer reranking → evidence assembly is a coarse-to-fine representation process.

This mirrors Hierarchical Representation.

26. Training Positives Define What Relevance Means

A dense retriever trained on question-answer pairs learns one notion of relevance. A product-search retriever trained on purchases learns another.

Embedding geometry inherits the training objective.

27. Hard Negatives Shape Decision Boundaries

A hard negative looks superficially relevant but is not the correct evidence.

Training against hard negatives teaches the model distinctions that easy random negatives never require.

28. False Negatives Can Poison Retrieval Training

A passage labelled negative may actually contain valid alternative evidence.

Representation learning then pushes useful documents away from the query.

29. Query Rewriting Changes the Retrieval Representation Upstream

A conversational query such as “What about the second one?” can be rewritten into a self-contained search query before encoding.

Search quality can fail because the query representation was incomplete before the retriever ever saw it.

30. Metadata Filtering Is Another Retrieval Signal

Date, language, jurisdiction, document type and access permissions can restrict candidate sets before semantic scoring.

Typed filters protect distinctions embeddings may blur.

31. Currentness Needs Temporal Representation

Semantic relevance cannot tell whether a regulation, price or schedule is outdated.

Freshness needs explicit dates and update policy.

32. Authority Needs Provenance Representation

A primary regulator and a scraped summary can be semantically similar.

Source authority should travel as metadata rather than emerge accidentally from embedding distance.

33. Retrieval Quality Is Not Answer Quality

High recall can return many relevant passages while omitting one decisive premise.

Retrieved evidence should pass the Context Sufficiency test before confident generation.

34. Retrieval Needs Evaluation at Several Layers

35. Retrieval Representation Audit

  1. What item is indexed: document, passage, sentence or token set?
  2. Is representation lexical, learned sparse, dense, late-interaction or hybrid?
  3. What tokenizer and embedding model produced it?
  4. What training objective defined relevance?
  5. What hard negatives were used?
  6. What exact identifiers require lexical matching?
  7. What paraphrase patterns require semantic matching?
  8. How are sparse and dense scores fused?
  9. What ANN or inverted index is used?
  10. How is index recall measured?
  11. What reranking stage follows retrieval?
  12. How are freshness, authority and permission represented?
  13. Are near-duplicate passages wasting top-k slots?
  14. Does the final set contain sufficient evidence?

36. What Students Should Remember

37. The Deep Principle

A retrieval representation defines what “near” means before search begins.

The best retrieval system does not choose between words and meaning. It preserves enough lexical identity to find exact things, enough semantic geometry to find paraphrases, and enough provenance to know whether the evidence deserves to be believed.

Continue the Representation & Tokenisation Series

Explore the connected learning guides

Choose the question that brought you here. Open one useful guide, try a small task, and stop when you have what you need.

Take one question further

The same learning habit can travel across subjects, while each subject keeps its own methods. These routes help you notice a difficulty, understand one part of it, and return to something you can do.

A word is familiar, but using it is difficult.

Move from recognising a word to retrieving it in a new context. Understand vocabulary plateaus.

Try it without the guide: Choose one word you already know. Close the guide and use it in a new sentence. Explain why it fits; try another context tomorrow.

A piece of writing has ideas, but the reader loses the thread.

Make the order of events and the links between sentences clear. Explore composition writing.

Try it without the guide: Choose one short paragraph. Read the relevant explanation, close it, and revise the paragraph. Ask someone to tell you what happened and why.

The Mathematics seems familiar, but marks still disappear.

Find the first point where the working stops being reliable. Find Secondary 4 A-Math mark leakage.

Try it without the guide: For a Secondary 4 A-Math question you have attempted, locate the first uncertain line. Repair that step, then try a comparable question without the worked answer.

A Science fact is remembered, but the explanation is incomplete.

Connect the evidence to a scientific idea and the resulting change. Follow the Primary Science learning route.

Try it without the guide: Choose a familiar Primary Science example. Explain the evidence, the idea and the result without notes. Then change one condition and explain your prediction.

Two accounts of the world seem to disagree.

Check the question, source, date and evidence before combining claims. Explore the World Knowledge research library.

Try it without the guide: Take one claim. Find the source best placed to support it, note its date, and state what remains uncertain. Return to your original question.

There is plenty of help, but independence is hard to see.

Check what the learner can understand and do after support is removed. Understand how education works.

Try it without the guide: Choose one small task the child has practised. Agree on a calm, brief attempt without prompts. Use what happens to choose one next step, then stop.

For the structure behind these connections, read the eduKateSingapore runtime manifest and the eduKate ecosystem boot contract. The reader map describes public navigation; those manifests preserve the wider ownership and return rules.

Discover more from eduKate Singapore

Subscribe now to keep reading and get access to the full archive.

Continue reading