K-文化的一切——从回归到 K-美妆,发送到您的邮箱订阅邮件

METAL MEDIA

DistilVDR: A Compact End-to-End Visual Document Retriever via Dual-Student Distillation

arXiv:2608.106362026-08-10

把80亿参数的文档检索大模型压缩蒸馏成5.24亿参数的小模型

DistilVDR训练了一个5.24亿参数的学生模型,让它复制一个80亿参数视觉语言教师模型的向量空间,由此构建出一套可以用文字查询检索文档图片的紧凑系统。整个训练只用余弦相似度损失,不需要标签或对比学习,却在ViDoRe基准上达到教师模型平均分数的86.9%,索引存储空间比此前最强的十亿参数以下模型小15.6倍,索引速度快十倍以上。论文发布了HiRes和Fast两个版本,通过改变文档端处理的图像切片数量来权衡质量与速度。

METAL MEDIA 解读图

从一个冻结教师模型中独立蒸馏出两个学生模型

证据状态已报告实测结果

  1. 冻结的8B教师模型预先为查询和文档图片各算出4096维目标向量并缓存,训练学生时不再运行
  2. 文档学生模型(4.54亿)把页面图片切成图块,用InternViT视觉编码器处理后再用ModernBERT文本骨干做上下文编码,通过余弦损失模仿教师的文档向量
  3. 查询学生模型(0.7亿)用DistilBERT编码文字查询,独立地通过余弦损失模仿教师的查询向量
  4. 单向量检索用两个学生模型输出向量的点积来排序文档,避免多向量匹配带来的存储和延迟开销
  5. HiRes与Fast两个版本仅在文档编码器处理的图像切片数量上不同,提供质量与速度的两种权衡方案
这是 METAL MEDIA 制作的解读图,并非论文作者提供的原图。

他们做了什么

  1. 问题背景:视觉文档检索(VDR)直接把文档页面当图片编码以避免OCR文字提取错误,但目前最强模型参数量在20亿到80亿之间,给百万级文档库建索引要花掉数十个GPU小时。
  2. 方法:一个冻结的80亿参数教师模型(Qwen3-VL-Embedding-8B)事先算好目标向量并缓存,然后分别独立训练一个4.54亿参数的文档学生模型和一个0.7亿参数的查询学生模型,让它们用纯余弦对齐损失去模仿这些缓存目标,不需要相关性标签也不需要负样本采样。
  3. 结构设计:文档编码器把页面图片切成多个图块,先用InternViT视觉编码器处理,再用ModernBERT文本骨干重新做上下文编码;查询编码器则是轻量的纯文本DistilBERT,这种不对称结构分别匹配图像文档端和文字查询端的输入特点。
  4. 结果:HiRes版本在ViDoRe v1+v2+v3三套基准上平均NDCG@5达到61.74分(教师模型的86.9%),领先所有已复现的十亿参数以下基线;Fast版本视觉token预算缩小3倍,仍保持59.98分。两个版本存储一百万文档时索引体积都比此前最强的十亿以下多向量基线小15.6倍,索引速度也快得多。
Figure 2: Per-epoch train (blue) and validation (red) loss for the document students DistilVDR-HiRes (solid) and DistilVDR-Fast (dashed) on top, and the shared query student on bottom.
Figure 2: Per-epoch train (blue) and validation (red) loss for the document students DistilVDR-HiRes (solid) and DistilVDR-Fast (dashed) on top, and the shared query student on bottom.
Table 1: Retrieval quality (NDCG@5) on ViDoRe v1, v2 and v3. “Type” is single vector or multi-vector with MaxSim.
ModelParamsTypev1v2v3Avg
Sub-1 B
SigLIP2-L880 Msingle43.5820.1714.0425.93
BiModernVBERT250 Msingle37.4010.885.5217.93
colSmol-256M256 Mmulti79.7234.6325.2346.53
colSmol-500M478 Mmulti82.4243.0933.5253.01
ColModernVBERT250 Mmulti76.7633.1817.4542.46
SauerkrautLM-ColLFM2451 Mmulti78.2445.0933.1952.17
DistilVDR-Fast (ours)524 Msingle81.3454.9543.6659.98
DistilVDR-HiRes (ours)524 Msingle82.8155.3447.0761.74
Mid- to large-scale references
DSE-Qwen22.2 Bsingle85.1455.7041.2860.71
Qwen3-VL-Embedding-2B2.1 Bsingle84.3065.2549.9866.51
ColPali v1.32.9 Bmulti84.2154.7242.0460.32
Tomoro-ColQwen3-4B4.4 Bmulti90.2265.2557.5771.01
ColNomic-7B7.0 Bmulti89.7660.4455.8768.69
Tomoro-ColQwen3-8B8.8 Bmulti90.6165.0059.0071.54
Qwen3-VL-Embedding-8B (teacher)8.1 Bsingle87.3169.7656.0771.05
Table 2: Gap decomposition (NDCG@5) for DistilVDR-HiRes. T = teacher, S = student. Bottom row is the full system.
Query × Docv1v2v3Avg
T × T (oracle)87.3169.7656.0771.05
T × S83.7260.9250.4365.02
S × T84.6864.3050.0966.36
S × S (ours)82.8155.3447.0761.74
Table 3: Deployment efficiency on a single H200 GPU at fixed batch size B=8 in bf16. Each encoder runs under its best-supported flash-attention backend Dao et al. (2022); Dao (2024); per-baseline details are in Appendix G. Index size is per million documents. Avg NDCG@5 from Table 1 is repeated for reference. In each efficiency column we bold the column-best and underline the second-best.
ModelParamsTypeQuery (ms)Query(ms)Doc thpt (docs/s)Doc thpt(docs/s)Peak VRAM (GB)Peak VRAM(GB)Index / 1 MIndex/ 1 MScore 10 K (ms)Score 10 K(ms)Avg NDCG@5Avg
Query
(ms)
Doc thpt
(docs/s)
Peak VRAM
(GB)
Index
/ 1 M
Score 10 K
(ms)
Avg
NDCG@5
Sub-1 B
SigLIP2-L880 Msingle113.828.221.984.1 GB1.325.93
BiModernVBERT250 Msingle7.42.497.473.1 GB0.917.93
colSmol-256M256 Mmulti23.62.584.49256 GB1 25946.53
colSmol-500M478 Mmulti22.62.824.97256 GB1 16153.01
ColModernVBERT250 Mmulti61.83.064.26256 GB1 23842.46
SauerkrautLM-ColLFM2451 Mmulti8.519.022.56256 GB1 33052.17
DistilVDR-Fast (ours)524 Msingle3.499.042.1016.4 GB9.659.98
DistilVDR-HiRes (ours)524 Msingle3.436.823.0716.4 GB9.661.74
Mid- to large-scale references
DSE-Qwen22.2 Bsingle167.417.176.316.1 GB2.260.71
Qwen3-VL-Embedding-2B2.1 Bsingle14.58.537.038.2 GB3.466.51
ColPali v1.32.9 Bmulti266.717.247.81264 GB1 15860.32
Tomoro-ColQwen3-4B4.4 Bmulti266.411.9112.93819 GB3 18771.01
ColNomic-7B7.0 Bmulti542.69.9617.88256 GB1 20668.69
Tomoro-ColQwen3-8B8.8 Bmulti499.39.2021.76819 GB3 17671.54
Qwen3-VL-Embedding-8B (teacher)8.1 Bsingle19.85.4019.2816.4 GB9.471.05
Table 4: Document- and query-encoder ablations, NDCG@5. Blocks (a) and (b) are end-to-end student×student; block (c) is doc-side isolation (student documents against teacher queries); block (d) is query-side isolation (student queries against teacher documents), whose teacher×teacher ceiling is 71.05 average. Absolute values are therefore comparable within a block, not across blocks. † marks the deployed default.
Variantv1v2v3Avg
(a) Max tiles (end-to-end)
0 (no tiling)77.5751.2941.0056.62
2 (Fast)81.3454.9543.6659.98
6 (HiRes, default)82.8155.3447.0761.74
(b) Training-data scale (end-to-end)
25 % (300 K)78.3549.6940.7556.26
50 % (600 K)80.9754.4444.5860.00
75 % (900 K)82.4056.5846.0561.68
100 % (1.20 M, default)82.8155.3447.0761.74
(c) Doc output dim (doc-side isolation)
768-d (3.07 GB/1 M)81.4058.4445.6661.83
4096-d (16.4 GB/1 M)†83.7260.9250.4365.02
(d) Query backbone (query-side isolation)
DistilBERT-base (70 M)†84.6864.3050.0966.36
BERT-base (110 M)81.8158.5244.5561.63
ModernBERT-base (149 M)85.3665.4051.4367.40
Table 5: Contrastive-supervision ablation under Eq. 3. All rows are one-epoch joint refinements from the cosine-distilled 768-d sibling checkpoint; absolute NDCG@5 is below Section 4.2 because of the 768-d output.
Refinement objectivev1v2v3Avg
γ=0 (cosine only)79.9053.2342.2258.45
+ 0.5​ℒInfoNCE80.4752.0842.4458.33
+ 1.0​ℒInfoNCE80.4851.8042.4158.23
+ 2.0​ℒInfoNCE80.2551.3142.3057.95
+ 0.5​ℒKL80.3252.3142.3058.31
+ 1.0​ℒKL80.2052.5542.3458.36
+ 2.0​ℒKL80.3152.5442.4458.43
Table 6: All 22 ViDoRe evaluation datasets. “Doc” is the document corpus language. “Query” is the languages in which queries are released. “Source” indicates how the queries were obtained: H = human-authored, L = LLM-generated, L+H = LLM-generated with expert review. The six languages of v3 are English, French, Spanish, German, Italian, and Portuguese.
DatasetVer.Document domainDocQuerySource
DocVQAv1Industrial documentsENENH
ArXivQAv1Scientific papersENENH
InfoVQAv1InfographicsENENH
TatDQAv1Financial tablesENENH
TabFQuADv1Tables in French PDFsFRFRH
SyntheticDocQA-AIv1AI documentsENENL
SyntheticDocQA-Energyv1Energy sector reportsENENL
SyntheticDocQA-Gov.v1Government reportsENENL
SyntheticDocQA-Hlt.v1Healthcare documentsENENL
ShiftProjectv1Environmental reportsFRFRL
ESG Reportsv2ESG / sustainabilityENEN/FR/ES/DEL+H
Biomedical Lecturesv2Biomedical slidesENEN/FR/ES/DEL+H
Economics Reportsv2Economics reportsENEN/FR/ES/DEL+H
ESG Reports (Human)v2ESG / sustainabilityENENH
Finance-ENv3US annual reportsEN6 languagesL+H
Finance-FRv3French annual reportsFR6 languagesL+H
Computer Sciencev3CS textbooksEN6 languagesL+H
HRv3EU HR reportsEN6 languagesL+H
Energyv3French energy reportsFR6 languagesL+H
Industrialv3USAF technical ordersEN6 languagesL+H
Pharmaceuticalv3FDA reportsEN6 languagesL+H
Physicsv3French physics lecturesFR6 languagesL+H
Table 7: Training data composition. HuggingFace identifiers are hyperlinked; the organisation prefix is omitted in the second and third groups.
SourceSamples
Base mixture (711 K)
VisRAG-Ret-Train-Synthetic Yu et al. (2025)234 K
VisRAG-Ret-Train-In-domain Yu et al. (2025)94 K
colpali_train_set Faysse et al. (2025)109 K
vdr-multilingual-train275 K
Multi-domain supplement (Racineai, deduplicated)
racineai/VDR_* (14 sub-sources)454 K
Finance supplement (31.7 K)
Sujet-Finance-Vision-10k9.8 K
FinHNQue21.9 K
Document encoder total1.20 M
Query encoder mixture
NanoVDR query training set Liu et al. (2026)1.49 M
Table 8: Training recipe under the cosine alignment objective (Eq. 1–2).
HyperparameterDoc enc.Query enc.
Trainable parameters454 M70 M
OptimizerAdamWAdamW
Peak LR1×10−35×10−4
LR scheduleone-cycle, 3% warmup
Effective batch256512
Epochs315
Hardware2× H2002× H200

研究结果

  • 在ViDoRe v1+v2+v3三套基准的平均NDCG@5上,HiRes达到61.74分(教师8B模型的86.9%),比此前最强的十亿以下基线colSmol-500M(53.01分)高出8.73分。
  • Fast版本视觉token预算缩小3倍,仍保持59.98分的平均NDCG@5,依然超过所有已复现的十亿参数以下基线。
  • 在对高分辨率敏感的v3基准上,HiRes得分47.07,领先次强的十亿以下基线(33.52分)达13.55分。
  • 两个版本存储一百万文档时,索引体积都比此前最强的十亿以下多向量基线小15.6倍(16.4GB对256GB),索引速度也快了一个数量级左右,其中Fast达到每秒99.04篇文档,约为教师模型速度的18倍。
  • 两个版本编码单条查询都只需3.4毫秒,比所有其他被测系统都快;对一万篇文档打分只需9.6毫秒,而多向量基线的MaxSim打分需要1.1到3.2秒。

可应用场景

  • 需要把大量扫描报告或PDF当图片直接索引、实现快速检索的企业文档搜索系统
  • 需要保留表格、图表和版面结构、把检索结果传给语言模型的视觉检索增强生成(RAG)流水线
  • GPU显存或服务成本有限、希望用紧凑模型替代数十亿参数视觉语言嵌入模型的部署场景
  • 需要在保留大部分教师模型检索质量的同时大幅缩减索引存储空间的大规模文档归档系统

局限与待验证事项

  • 论文中比较的所有基线都是各自官方发布的原样模型,教师、训练数据和架构都各不相同,因此性能差距不能单纯归因于蒸馏方法本身。
  • 没有做用相同5.24亿参数架构、在同样数据上从零开始用对比学习和难负样本训练的对照实验,因此蒸馏本身的效果未被单独隔离验证。
  • 只使用了一个教师模型,论文没有测试更弱或更强、或不同系列的教师会如何改变结果。
  • DistilVDR与最强的4到8B多向量模型相比仍落后7到10分,在ViDoRe v3上差距最大。
  • 查询编码器只处理纯文本,覆盖英语和另外五种经翻译的欧洲语言,图像式查询以及中文、日语、阿拉伯语等非拉丁文字尚不支持,且每篇文档的视觉token预算是固定的,不会根据页面复杂度调整。

为什么重要

部署数十亿参数的检索大模型对GPU显存和索引时间都是沉重负担,而这项工作证明仅凭教师模型的向量输出、不用任何标注相关性数据,也能蒸馏出紧凑高效的检索器。这为想要低成本搭建企业文档检索或视觉检索增强生成系统的开发者提供了一条切实可行的设计思路。

本文术语

  • 视觉文档检索(VDR) · 不做OCR文字提取,直接把文档页面当图片编码后进行检索的方式
  • 余弦对齐损失 · 让学生模型输出向量的方向尽量贴近固定目标向量方向的训练目标函数
  • 单向量与多向量检索 · 用一个向量代表整篇文档(存储小)还是用每个token一个向量代表(存储大但更精细)的两种方式
  • NDCG@5 · 衡量检索结果前5条排序质量的指标,数值越高越好
  • MaxSim · 多向量检索中,取查询和文档各token向量对里相似度最高的一对来计分的方法

论文原文摘要(英文)

Visual document retrieval (VDR) is dominated by multi-billion-parameter models that are slow to index at full corpus scale and expensive to serve. Prior compression routes either train a smaller multi-vector encoder from scratch or distil only the query side; neither yields a compact single-vector retriever end-to-end. We present DistilVDR, a 524M end-to-end VDR system distilled bilaterally from a single 8B vision-language teacher under a pointwise cosine alignment loss. All supervision comes from the frozen teacher's embedding space, which was itself trained with relevance supervision, so the student objective needs no relevance labels, negative sampling, or contrastive term. We match VDR's text-query and image-document input asymmetry with an asymmetric encoder-only student that concentrates visual capacity on the document side and keeps the query side at 70M parameters. We release two variants that share the same encoders and training and differ only in the document encoder's visual-tile budget: DistilVDR-HiRes attains 61.74 average NDCG@5 on ViDoRe v1+v2+v3 (86.9% of the 8B teacher) and leads every reproduced sub-1B baseline on the high-resolution-sensitive v3 benchmark, while DistilVDR-Fast attains 59.98 at a 3 times smaller visual-token budget. Both variants store one million documents in a 15.6 times smaller index than the strongest sub-1B multi-vector baseline and index the corpus an order of magnitude faster. The code is available at https://github.com/Ryenhails/NanoVDR.

作者 · Zhuchenyang Liu

在 arXiv 阅读

最新论文

全部论文 →

METAL MEDIA 最新报道

图片来源: Zhuchenyang Liu et al., arXiv:2608.10636, CC BY 4.0