Multi-Vector (Late Interaction) Embedding Models with Sentence Transformers
Hugging Face’s Sentence Transformers v6.0 introduces MultiVectorEncoder models for ColBERT-style late interaction retrieval, supporting PyLate, Stanford-NLP ColBERT, and ColPali checkpoints via a unified API.
Hugging Face’s Sentence Transformers library now supports a fourth model type, MultiVectorEncoder, with the v6.0 update. This addition enables ColBERT-style late interaction retrieval, allowing models to retain one vector per token instead of compressing entire texts into single vectors. The approach preserves token-level matching details, improving retrieval accuracy for complex queries but increasing index size. The library supports loading PyLate, Stanford-NLP ColBERT, and ColPali checkpoints through a consistent API, streamlining integration for existing workflows.
Multi-vector models defer interaction scoring until runtime using the MaxSim operator, which compares each query token against all document tokens. This method enhances retrieval quality for multi-requirement queries and out-of-domain data, where dense models may lose critical details due to compression. For example, a query like 'green sofa with wooden legs' benefits from token-level matching, avoiding mismatches that single-vector models might produce. The scoring mechanism also enables soft alignment between non-lexical terms, improving semantic search beyond traditional lexical methods.
The tradeoff for improved retrieval is increased storage and computational requirements. A multi-vector index can be significantly larger than a dense index, though compression techniques like PLAID reduce storage needs. For instance, encoding 4,874 passages produced 608,414 token vectors, requiring about 92 MB when compressed. This remains comparable to the storage needs of larger dense models, making late interaction feasible for practical applications.
To use these models, users must install Sentence Transformers v6.0 alongside compatible dependencies like transformers v5.x and torch 2.2+. Models are available on the Hugging Face Hub with 'multi-vector' and 'sentence-transformers' tags. Visual document retrieval models require additional setup, including image dependencies and specific configurations for ColPali-family checkpoints. The update consolidates capabilities previously handled by PyLate, integrating them directly into Sentence Transformers for broader accessibility.