Inferensys

Glossary

Multi-Vector Encoding

A neural retrieval approach that represents a text passage as multiple dense vectors—typically one per token—to enable fine-grained late interaction scoring between query and document tokens.
Developer working on RAG retrieval system, document chunks visible on screen, technical workspace with code editor.
LATE INTERACTION ARCHITECTURE

What is Multi-Vector Encoding?

Multi-vector encoding is a neural retrieval paradigm that represents a text passage as multiple dense vectors—typically one per token—rather than a single pooled embedding, enabling fine-grained similarity comparisons through late interaction mechanisms.

Multi-vector encoding represents a text passage as a set of token-level dense vectors, preserving granular semantic information that would be lost in single-vector pooling. Unlike bi-encoder architectures that compress an entire document into one embedding, this approach stores every contextualized token representation, enabling more expressive matching at query time through operations like the MaxSim function.

The defining characteristic is late interaction: token-level similarity computation is deferred until retrieval, balancing the efficiency of pre-computed embeddings with the expressiveness of cross-encoder attention. ColBERT exemplifies this paradigm, storing document token embeddings in a vector index and computing relevance by summing maximum cosine similarities between query and document token sets.

FINE-GRAINED REPRESENTATION

Key Characteristics of Multi-Vector Encoding

Multi-vector encoding moves beyond single-vector representations by storing a distinct embedding for each token, enabling nuanced late interaction scoring that captures fine-grained semantic relationships.

01

Token-Level Granularity

Unlike bi-encoders that compress an entire passage into a single fixed-size vector, multi-vector models retain a unique dense vector for every token in the sequence. This preserves the distinct semantic contributions of individual words and phrases, preventing information loss from aggressive pooling operations like mean pooling.

02

Late Interaction Scoring

The defining computational paradigm where relevance is computed after independent encoding. The query and document are embedded separately, and their token-level vectors interact only at scoring time via operations like MaxSim (maximum similarity). This balances the efficiency of bi-encoders with the expressiveness of cross-encoders.

03

ColBERT Architecture

The canonical implementation of late interaction. ColBERT encodes a query into a set of token embeddings and a document into another set, then scores relevance by summing the maximum cosine similarity for each query token against all document tokens. This allows for soft term matching without expensive joint attention.

04

Storage and Retrieval Trade-offs

Multi-vector representations require significantly more storage than single-vector approaches. A single passage may generate hundreds of vectors, necessitating sophisticated vector compression techniques like product quantization (PQ). Retrieval involves a two-stage process: a fast approximate first pass, followed by exact late interaction re-ranking on a candidate set.

05

MaxSim Operation

The core scoring function in models like ColBERT. For each query token vector, MaxSim finds the document token vector with the highest cosine similarity and sums these maximum values. This allows the model to match 'solar' in a query to 'sun' in a document without requiring exact keyword overlap.

06

Comparison to Cross-Encoders

While cross-encoders jointly process query-document pairs with full self-attention for maximum accuracy, they are computationally prohibitive for large-scale retrieval. Multi-vector encoding pre-computes document token embeddings offline, shifting the heavy computation to indexing time and enabling fast, expressive online scoring.

RETRIEVAL ARCHITECTURE COMPARISON

Multi-Vector vs. Single-Vector vs. Cross-Encoder

Comparing the three dominant neural retrieval paradigms across expressiveness, latency, storage, and architectural trade-offs.

FeatureSingle-Vector (Bi-Encoder)Multi-Vector (Late Interaction)Cross-Encoder

Representation

One dense vector per passage

One dense vector per token

No pre-computed vectors

Query-Document Interaction

Post-hoc: cosine similarity of pooled vectors

Late: MaxSim over token-level embeddings

Early: full joint attention at query time

Indexing Speed

Fast: single forward pass per passage

Moderate: forward pass + store all token vectors

None: no index built

Storage Footprint

Low: 768-1024 floats per passage

High: N × 768 floats per passage (N = token count)

Zero: re-encodes on every query

Query Latency

< 10 ms with ANN index

50-200 ms with token-level MaxSim

500 ms - 5 sec per query-document pair

Expressiveness

Moderate: loses fine-grained token alignment

High: preserves token-level semantic matching

Maximum: full cross-attention between query and document

Re-Ranking Use Case

Stage-1 candidate retrieval

Stage-1 or Stage-2 retrieval

Stage-2 re-ranking only

Scalability (Documents)

Billion-scale with ANN + PQ

Million-scale with token-level indexing

Thousand-scale per query batch

MULTI-VECTOR ENCODING

Frequently Asked Questions

Clear, technical answers to the most common questions about multi-vector encoding, late interaction, and how they differ from single-vector bi-encoders.

Multi-vector encoding is a neural retrieval paradigm that represents a text passage as multiple dense vectors, typically one per token, rather than compressing the entire passage into a single fixed-size embedding. During indexing, a transformer encoder processes the passage and outputs a contextualized vector for each token. At query time, the query is similarly encoded into multiple token-level vectors. Relevance is then computed through a late interaction mechanism—such as the MaxSim operation in ColBERT—where each query vector interacts with the most similar passage vectors, and these maximum similarities are summed to produce a final relevance score. This approach preserves fine-grained token-level semantic relationships that are lost when mean pooling or CLS token extraction collapses a passage into a single vector.

Prasad Kumkar

About the author

Prasad Kumkar

CEO & MD, Inference Systems

Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.

His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.