Multi-Vector (Late Interaction) Embedding Models with Sentence Transformers
Sentence Transformers v6.0 adds MultiVectorEncoder, a fourth model type for ColBERT-style late-interaction retrieval that loads PyLate, Stanford-NLP ColBERT and (with added config) colpali-engine checkpoints. Multi-vector models keep one projected, normalized vector per token and score with MaxSim, summing each query token's best match against document tokens. This preserves exact-match and multi-requirement signals that single-vector models average away, and helps on long documents (mLateOn 77.92 vs mDenseOn 51.59 on MLDR). The cost is index size: 4,874 NQ passages produced 608,414 vectors (311.5 MB float32 vs 7.5 MB for MiniLM), cut to 92 MB with a fast-plaid index and reducible further via token pooling or retrieve-and-rerank. The guide covers loading, separate query and document encoding, scoring, indexing, and visual document retrieval.
Related posts
- Training and Finetuning Multi-Vector Embedding Models with Sentence Transformers
Hugging Face mediumAdeptSentence Transformers v6.0 adds a MultiVectorEncoder model type for ColBERT-style late-interaction retrieval, with a full training stack covering models, datasets, losses, training arguments, evaluators and the trainer. A guide walks through finetuning on MIRIAD medical question-passage pairs. The resulting mLateOn-medical model, trained in 14.5 hours on one RTX 3090, beats every general-purpose dense, sparse, lexical and multi-vector retriever the author tested. Key findings: '-unsupervised' checkpoints taken before supervised finetuning adapt to a new domain better than finished ones, which barely improved or regressed. Lifting the 180–512 token document caps matters too, since truncation cost up to 0.24 NDCG@10 on long passages. A punctuation skiplist shrinks the index by 9.6% with a slight quality gain, and CachedMultiVectorMultipleNegativesRankingLoss allows large effective batch sizes.
- Token Pooling-Aware Training for Multi-Vector Embedding Models
Hugging Face hardMasterPooling-aware training teaches a multi-vector (ColBERT-style) encoder to keep retrieval-relevant information when document token vectors are merged by Ward hierarchical clustering, improving quality at a fixed storage budget. On a ModernBERT-base model trained on 120k MS MARCO triplets, pool_factor=4 retains 94.6% of unpooled NanoBEIR nDCG@10 with ordinary training versus 97.8% with a loss that averages unpooled and pooled retrieval objectives, while cutting document vectors 4x. Sentence Transformers provides HierarchicalTokenPooling (pool_factor, max_tokens or calibrated distance_threshold), a straight-through estimator for gradients through clustering, a MultiVectorTokenPoolingLoss wrapper, and optional CUDA kernels that make Ward clustering 30-150x faster than SciPy.
- Multimodal Embedding & Reranker Models with Sentence Transformers
Hugging Face mediumAdeptSentence Transformers v5.4 extends its familiar encode/similarity and CrossEncoder APIs to images, audio, video and mixed text-image inputs, mapping them into a shared embedding space for cross-modal search, visual document retrieval and multimodal RAG. Code examples show loading VLM-based models such as Qwen3-VL-Embedding-2B, using encode_query/encode_document for prompt-aware retrieval, ranking mixed-modality documents with multimodal rerankers, and combining both in a retrieve-then-rerank pipeline. Cross-modal similarity scores run lower than within-modality scores because of the modality gap, but relative ordering is preserved. VLM models need roughly 8 GB of VRAM for 2B variants and about 20 GB for 8B, while CLIP or text-only models suit CPU inference.
- NeoMME: an efficient Multimodal-native and Multilingual Encoder
Hugging Face hardMasterNeoMME is a family of 260M and 800M multilingual multimodal encoders that feed text tokens and raw 32×32 image patches through a single bidirectional Transformer, trained from scratch with a masked discrete-diffusion text objective instead of reusing a vision tower or causal LM. High text-masking rates on image-text pairs force the model to ground predictions in visual evidence. Fine-tuned ColPali-style for visual document retrieval, NeoMME-Retriever outputs dense and late-interaction embeddings in one pass and sits on the ViDoRe v3 size/nDCG@10 Pareto frontier (0.523 at 260M, near ColQwen2.5 with 14× fewer parameters). The 260M model encodes ~51 pages/s at 2048×2048 on an L40S, about twice ColModernVBERT, and hierarchical token pooling plus asymmetric quantization cut index storage from ~1.5 MB to 6 kB per page while keeping over 95% of retrieval quality.
- Training and Finetuning Multimodal Embedding & Reranker Models with Sentence Transformers
Hugging Face mediumAdeptFinetuning Qwen3-VL-Embedding-2B with Sentence Transformers for Visual Document Retrieval raised NDCG@10 from 0.888 to 0.947. On the author's evaluation data, that beats every tested VDR model, including models up to 4x larger. The walkthrough covers each training component: loading VLM or Router-composed multimodal models, formatting image/text triplet datasets, CachedMultipleNegativesRankingLoss with mini_batch_size=1 so a batch size of 64 fits in GPU memory via gradient caching, MatryoshkaLoss for truncatable embeddings (near-peak quality at 512 dims), training arguments, and an InformationRetrievalEvaluator built with hard negatives. It also extends the same approach to training multimodal rerankers.