Two controls for smaller retrieval representations
Sentence Transformers 6.3.0 added training methods that prepare retrieval models to use fewer document vectors or fewer dimensions per vector. Released on November 11, 2026, it introduces token-pooling-aware and multi-vector Matryoshka training. Pooling targets vector count; Matryoshka targets vector width. The distinction matters because these methods reduce different parts of a retrieval representation. Sources: Sentence Transformers
The project’s MultiVectorEncoder supports ColBERT-style token embeddings and late-interaction retrieval. Pooling replaces groups of document vectors with cluster representatives, while queries remain unpooled by default. Matryoshka retains each vector’s leading coordinates, and query vectors must match the document index’s width. The documented combined objective wraps the Matryoshka loss with the pooling loss, applying pooling before truncation. Sources: Sentence Transformers, Hugging Face
Hugging Face reports higher scores with pooling-aware training
Hugging Face’s pooling experiment compares two models under matched training conditions. Both ModernBERT-base models used fresh 128-dimensional projections and trained for one epoch over 120,000 MS MARCO triplets with seed 42. Both runs used a 300-token training cap and expanded short queries to at least 32 positions. Initialization and optimization matched; only the loss changed. The author reported no hyperparameter search. Sources: Hugging Face
The table below reports mean normalized discounted cumulative gain at 10, or nDCG@10, across 13 NanoBEIR datasets with 32-bit floating-point inference, or FP32. With factor-four pooling, the pooling-aware model scored 51.23, versus 49.03 for ordinary training, at an average of 48.68 document vectors. The release’s 97.8% retention claim compares the pooling-aware model’s pooled score with its own unpooled score. It describes score retention, not recall or the percentage of queries answered correctly. Sources: Sentence Transformers, Hugging Face
Table
Pooling quality in mean nDCG@10 (%) and document vector counts
| Pooling setting | Mean vectors | Ordinary training | Pooling-aware training |
|---|---|---|---|
| None | 193.22 | 51.84 | 52.39 |
| Factor 2 | 96.86 | 50.10 | 51.74 |
| Factor 4 | 48.68 | 49.03 | 51.23 |
| Factor 6 | 32.62 | 47.07 | 49.85 |
| Cap 16 | 15.60 | 46.61 | 49.26 |
| Adaptive threshold, matched budget | 15.60 | 47.23 | 49.63 |
Pooling offers three budget policies: a proportional factor, a per-document cap and an embedding-distance threshold. In the adaptive experiment, thresholds were calibrated separately for each encoder and corpus to match the fixed cap’s observed average vector count. At an average of 15.60 vectors, adaptive pooling scored 49.63 for the pooling-aware model, versus 49.26 for the fixed cap. For a comparable evaluation, calibrate against the observed average rather than assuming one threshold will suit every corpus. Sources: Sentence Transformers
Matryoshka results measure quality at smaller widths
The Matryoshka experiment measures retrieval quality as each token vector gets shorter. Training explicitly covered 128, 64 and 32 dimensions, using 30,000 MS MARCO triplets and seed 42. Evaluation used final checkpoints and the same mean metric across 13 datasets. It also tested 96 and 16 dimensions, widths absent from the training objective. The table below separates these results from pooling because the training budgets differ. Sources: Hugging Face, Sentence Transformers
Table
Matryoshka quality in mean nDCG@10 (%) by vector width
| Dimensions | Relative vector payload | Ordinary training | Matryoshka training |
|---|---|---|---|
| 128 | 100% | 48.45 | 48.95 |
| 96 | 75% | 47.00 | 47.69 |
| 64 | 50% | 45.46 | 47.11 |
| 32 | 25% | 37.38 | 43.44 |
| 16 | 12.5% | 18.76 | 28.48 |
At 32 dimensions, Matryoshka retained 88.7% of its full-width score, compared with 77.2% for ordinary training. Factor-four pooling’s 51.23 and 32-dimensional Matryoshka’s 43.44 do not establish a winner: the pooling experiment used four times as many training examples. The published experiments do not establish which method wins on quality, total index size, training cost and query latency under matched conditions. Use the results to select configurations for a controlled comparison, rather than rank the methods directly. Sources: Hugging Face, Sentence Transformers
Equal vector payloads do not guarantee equal indexes
Storage arithmetic gives the two methods a common starting point. Unquantized vector payload equals document count multiplied by mean vectors per document, dimensions and bytes per coordinate. The table below illustrates a million-document corpus averaging 200 vectors per document, with 128-dimensional FP32 vectors. Its decimal gigabyte totals are calculations under those assumptions, not measured index sizes.
Table
Calculated FP32 vector payload for one million documents, in GB
| Representation | Mean vectors per document | Dimensions | Calculated payload |
|---|---|---|---|
| Original | 200 | 128 | 102.4 |
| Fewer vectors | 50 | 128 | 25.6 |
| Shorter vectors | 200 | 32 | 25.6 |
| Both reductions | 50 | 32 | 6.4 |
Reducing vector count or width by the same proportion produces equal payloads under these assumptions. Combining the reductions makes the payload smaller still. These calculations exclude identifiers, offsets, graph edges, postings, centroids, alignment and other index structures. A comparison should report both vector payload and actual index bytes. Combined retrieval quality also needs measurement; multiplying the methods’ separate retention percentages does not predict it.
An earlier first-party MultiVectorEncoder report provides a pooling example on Natural Questions. Factor-four pooling reduced 608,414 vectors to 153,936 and reduced the reported FP32 payload from 311.5 MB to 78.8 MB. Pooling the original vectors took about six seconds. That timing describes indexing-stage work, so it should not be used as a query-latency result. Sources: Hugging Face
Separate training work from query latency
Both training wrappers reuse encoder embeddings while adding work around them. Pooling uses Ward clustering and a straight-through estimator, which lets gradients reach member token embeddings without differentiating discrete cluster assignments. Its extra objectives add clustering and scoring. Matryoshka adds truncation, normalization and retrieval losses at multiple widths; three training widths do not imply three encoder passes. Sources: Hugging Face, Sentence Transformers
The example configurations also differ in ways that affect timing comparisons. Pooling uses cached mini-batches of 64 within batches of 256, while Matryoshka uses cached mini-batches of eight within batches of 256. The pooling example’s A10G command specifies a four-hour timeout, not a measured training duration. At inference, Matryoshka truncation still runs the full backbone, so quarter-width output does not imply four-times-faster encoding. Sources: Hugging Face, Sentence Transformers
For exhaustive token scoring, dot-product work should scale approximately with query vectors, document vectors and dimensions. Pooling reduces document-vector comparisons; truncation shortens each dot product. This is an analytical expectation, and candidate selection, memory movement, batching and kernel efficiency can affect actual latency. Version 6.3.0 also adds optional acceleration kernels. Hold kernel configuration constant initially to isolate the effects of compression. Sources: Sentence Transformers
Test model reloads alongside compression settings
The API documentation describes an operational difference between the two controls. A constructor-specified truncation dimension is saved and used on subsequent loads. A constructor-supplied token pooler is a runtime default that must be supplied again after reload. Per-call compression arguments override corresponding defaults, but passing None for token pooling uses the model’s default pooler rather than disabling it. Sources: Sentence Transformers
That default-pooler behavior matters when setting up an unpooled control. An older guide saves pooling as an appended model module, a different path from the constructor’s runtime pooler. The API applies truncation after pooling with L2 normalization, and new hierarchical poolers normalize outputs by default. Older saved pooler configurations without the normalization setting preserve their previous unnormalized behavior. Sources: Sentence Transformers, Hugging Face
Begin a deployment comparison with matched storage targets and include a fresh-process reload test. Evaluate quality and serving costs on identical documents and queries. Use the following sequence to choose a configuration for a particular workload.
- Match initialization, training examples, ordering, optimizer, token limits and hardware across ordinary, pooling-aware, Matryoshka and combined objectives; repeat seeds.
- Evaluate identical documents, queries and relevance judgments; report per-corpus retrieval quality and uncertainty.
- Compare factor-two pooling with 64 dimensions and factor-four pooling with 32 dimensions; record actual vector counts and measured index bytes.
- Record training wall time, peak memory, encoding, pooling and index construction costs separately.
- Hold engine, candidate budget, precision, hardware and concurrency constant; measure query encoding, scoring, end-to-end latency and throughput, then test optional kernels separately.
- Reload in a fresh process and compare dimensions, counts, norms, scores and rankings, including a run with the runtime pooler explicitly restored.
- Inspect failures involving identifiers, rare terms, long documents and relevant evidence lost through compression. Sources: Hugging Face, Sentence Transformers