NanoVDR:将20亿参数的视觉语言检索器蒸馏为7000万参数的纯文本编码器用于视觉文档检索
NanoVDR: Distilling a 2B Vision-Language Retriever into a 70M Text-Only Encoder for Visual Document Retrieval
AI总结:
利用查询-文档不对称性,通过蒸馏将20亿参数的视觉语言模型教师蒸馏为7000万参数的纯文本学生编码器,采用点态余弦对齐目标,实现视觉文档检索的高效推理。
摘要:
基于视觉语言模型(VLM)的检索器已将视觉文档检索(VDR)提升到令人印象深刻的水平。它们需要相同的数十亿参数编码器用于文档索引和查询编码,即使对于纯文本查询也会导致高延迟和GPU依赖。我们观察到这种设计是不必要对称的:文档在视觉上复杂且需要强大的视觉理解,而查询只是短文本字符串。NanoVDR利用这种查询-文档不对称性,解耦两个编码路径:冻结的20亿VLM教师离线索引文档,而蒸馏后的纯文本学生(小至6900万参数)在推理时编码查询。关键设计选择是蒸馏目标。通过对三个骨干网络和22个ViDoRe基准数据集的六个目标进行系统比较,我们发现查询文本上的点态余弦对齐始终优于基于排序和对比的替代方案,同时在训练期间仅需要预缓存的教师查询嵌入,无需处理文档。此外,我们识别出跨语言迁移是主要性能瓶颈,并通过使用机器翻译的查询增强训练数据廉价地解决它。最终的NanoVDR-S-Multi(DistilBERT,6900万)保留了教师质量的95.1%,在v2和v3上以32倍更少的参数和50倍更低的CPU查询延迟优于DSE-Qwen2(20亿),总训练成本低于13 GPU小时。
英文摘要:
Vision-Language Model (VLM) based retrievers have advanced visual document retrieval (VDR) to impressive quality. They require the same multi-billion parameter encoder for both document indexing and query encoding, incurring high latency and GPU dependence even for plain-text queries. We observe that this design is unnecessarily symmetric: documents are visually complex and demand strong visual understanding, whereas queries are just short text strings. NanoVDR exploits this query--document asymmetry by decoupling the two encoding paths: a frozen 2B VLM teacher indexes documents offline, while a distilled text-only student as small as 69M parameters encodes queries at inference. The key design choice is the distillation objective. Through systematic comparison of six objectives across three backbones and 22 ViDoRe benchmark datasets, we find that pointwise cosine alignment on query text consistently outperforms ranking-based and contrastive alternatives, while requiring only pre-cached teacher query embeddings and no document processing during training. Furthermore, we identify cross-lingual transfer as the primary performance bottleneck, and resolve it cheaply by augmenting training data with machine-translated queries. The resulting NanoVDR-S-Multi (DistilBERT, 69M) retains 95.1\% of teacher quality and outperforms DSE-Qwen2 (2B) on v2 and v3 with 32$\times$ fewer parameters and 50$\times$ lower CPU query latency, at a total training cost under 13 GPU-hours.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。