> ## Content Index
> Fetch the complete content index at: https://globalfeed.ai/llms.txt
> Use this file to discover other available public pages before exploring further.

# Hugging Face 感知池化训练：检索索引缩小到四分之一
- URL: https://globalfeed.ai/zh/hugging-face-gan-zhi-chi-hua-xun-lian-jian-suo-suo-yin-suo-xiao-dao-si-fen-zhi-yi/
- Published: 2026-11-14T16:05:16.000Z
- Updated: 2026-11-14T16:05:16.000Z
- Description: Hugging Face 介绍一种训练方法，在多向量检索中减少 74.8% 文档向量，同时保留 97.8% 的质量。
- Author: GlobalFeed Editor
- Tags: Hugging Face, Sentence Transformers, 语义检索, ColBERT, token pooling, x-huggingface, dil-zh, elle

Hugging Face 的 Tom Aarsen 于 11 月 11 日发布[指南](https://huggingface.co/blog/token-pooling?ref=globalfeed.ai)，介绍"感知 token 池化的训练"：在文档向量减少 74.8% 的情况下，模型保留未压缩检索得分的 97.8%，普通训练的模型为 94.6%。

## 原理

ColBERT 等多向量模型为每个 token 保存一个向量，检索效果好但占用存储。HierarchicalTokenPooling 用 Ward 层次聚类合并相似向量。感知池化的训练在每批数据上同时计算完整向量和压缩后向量的检索损失并取平均，让模型学会在合并后保留关键信息。

## 结果与试用

在 NanoBEIR@13 上，pool\_factor=4 时 nDCG@10 从 49.03 提升到 51.23；每篇文档仅保留 4 个向量时从 37.22 提升到 43.00。代码已开源在 Sentence Transformers，示例模型可在 Hugging Face 下载。

来源： [Hugging Face：Token Pooling](https://huggingface.co/blog/token-pooling?ref=globalfeed.ai), [Sentence Transformers](https://github.com/huggingface/sentence-transformers?ref=globalfeed.ai)