How the pooling works
HierarchicalTokenPooling groups similar token embeddings using Ward hierarchical clustering. [1]
Starting with one group per token vector, it repeatedly merges the two groups that cause the smallest increase in how spread out the vectors are within their groups. [2]
These merges build a hierarchy of progressively larger groups, letting us choose a level of compression that fits our budget. [3]
With pool_factor=4, documents retain approximately one quarter of their original vectors, so longer documents can keep proportionally more capacity. [4]
What the post reports
Pooling-aware training teaches the encoder to preserve the information that matters when its vectors are merged, helping you retrieve better from the same storage budget. [5]
With pool_factor=4, my normally trained model retains 94.6% of its unpooled NanoBEIR nDCG@10, with a 4x reduction in document vectors. [6]
Token pooling-aware training raises that retention to 97.8% at the same storage budget! [7]
What stays unchanged
By default, the first token is protected from merging and pooling applies only to document embeddings, leaving query embeddings unchanged. [8]
Sources
- The Hugging Face source says: HierarchicalTokenPooling groups similar token embeddings using Ward hierarchical clustering. Token Pooling-Aware Training for Multi-Vector Embedding Models
- The Hugging Face source says: Starting with one group per token vector, it repeatedly merges the two groups that cause the smallest increase in how spread out the vectors are within their groups. Token Pooling-Aware Training for Multi-Vector Embedding Models
- The Hugging Face source says: These merges build a hierarchy of progressively larger groups, letting us choose a level of compression that fits our budget. Token Pooling-Aware Training for Multi-Vector Embedding Models
- The Hugging Face source says: With pool_factor=4, documents retain approximately one quarter of their original vectors, so longer documents can keep proportionally more capacity. Token Pooling-Aware Training for Multi-Vector Embedding Models
- The Hugging Face source says: Pooling-aware training teaches the encoder to preserve the information that matters when its vectors are merged, helping you retrieve better from the same storage budget. Token Pooling-Aware Training for Multi-Vector Embedding Models
- The Hugging Face source says: With pool_factor=4, my normally trained model retains 94.6% of its unpooled NanoBEIR nDCG@10, with a 4x reduction in document vectors. Token Pooling-Aware Training for Multi-Vector Embedding Models
- The Hugging Face source says: Token pooling-aware training raises that retention to 97.8% at the same storage budget! Token Pooling-Aware Training for Multi-Vector Embedding Models
- The Hugging Face source says: By default, the first token is protected from merging and pooling applies only to document embeddings, leaving query embeddings unchanged. Token Pooling-Aware Training for Multi-Vector Embedding Models