Everything K-culture — comebacks to K-beauty, straight to your inboxGet it in your inbox

METAL MEDIA

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

arXiv:2608.106362026-08-10

A big 8B document-search AI gets copied down into a 524M-parameter compact model

DistilVDR trains a 524M-parameter student to reproduce the embedding space of an 8B vision-language teacher, building a compact system that retrieves document images from text queries. Trained purely with a cosine-similarity loss and no labels or contrastive learning, it reaches 86.9% of the teacher's average retrieval score on the ViDoRe benchmark while storing 15.6 times less index data and indexing over ten times faster than the strongest prior sub-1B model. Two released variants, HiRes and Fast, trade off quality against speed by changing how many image tiles the document side processes.

METAL MEDIA explanatory visual

Two students distilled independently from one frozen teacher

Evidence statusMeasured results reported

  1. Frozen 8B teacherPrecomputes 4096-dim target embeddings for queries and document images once; never runs during student training
  2. Document student (454M)Splits page images into tiles, encodes them with an InternViT visual encoder, re-contextualises with a ModernBERT text backbone, and matches the teacher's document vector via cosine loss
  3. Query student (70M)Encodes text queries with DistilBERT and independently matches the teacher's query vector via cosine loss
  4. Single-vector retrievalRanks documents by dot product between the two students' vectors, avoiding the storage and latency cost of multi-vector matching
  5. HiRes / Fast variantsDiffer only in how many image tiles the document encoder processes, giving two quality-speed tradeoff points
An explanatory diagram made by METAL MEDIA, not a figure supplied by the paper's authors.

What they did

  1. Problem: Visual document retrieval (VDR) encodes document pages as images to avoid OCR errors, but top models span 2 to 8 billion parameters, making indexing a million-page corpus cost tens of GPU-hours.
  2. Method: A frozen 8B teacher (Qwen3-VL-Embedding-8B) precomputes target embeddings once; a 454M document student and a 70M query student are each trained independently to match those cached targets under a pointwise cosine alignment loss, needing no relevance labels or negative sampling.
  3. Architecture: The document encoder splits page images into tiles, encodes them with an InternViT visual encoder, then re-contextualises them with a ModernBERT text backbone, while the query encoder is a lightweight text-only DistilBERT, matching the input asymmetry between image documents and text queries.
  4. Results: DistilVDR-HiRes reaches 61.74 average NDCG@5 across the ViDoRe v1+v2+v3 suite (86.9% of the 8B teacher), leading every reproduced sub-1B baseline, while DistilVDR-Fast keeps 59.98 with a 3 times smaller visual-token budget; both store a million documents in a 15.6 times smaller index and index far faster than the strongest sub-1B multi-vector baseline.
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

Findings

  • DistilVDR-HiRes reaches 61.74 average NDCG@5 across ViDoRe v1+v2+v3 (86.9% of the 8B teacher), beating the strongest reproduced sub-1B baseline colSmol-500M (53.01) by 8.73 points.
  • DistilVDR-Fast keeps 59.98 average NDCG@5 despite a 3 times smaller visual-token budget, still exceeding every reproduced sub-1B baseline.
  • On the high-resolution-sensitive v3 benchmark, HiRes scores 47.07, leading the next-best sub-1B baseline (33.52) by 13.55 points.
  • Both variants store one million documents in a 15.6 times smaller index than the strongest sub-1B multi-vector baseline (16.4 GB vs 256 GB) and index roughly an order of magnitude faster, with Fast reaching 99.04 docs/sec (about 18 times the teacher's throughput).
  • Both variants encode a query in 3.4 ms, faster than every other profiled system, and score 10,000 documents in 9.6 ms versus 1.1 to 3.2 seconds for multi-vector MaxSim baselines.

Where it can be used

  • Enterprise document search systems that need to index large volumes of scanned reports or PDFs as images for fast retrieval
  • Visual retrieval-augmented generation pipelines that need to preserve tables, figures, and layout when feeding retrieved pages to a language model
  • Deployments with limited GPU memory or serving budget looking for a compact substitute for multi-billion-parameter embedding models
  • Large-scale document archives that need to shrink index storage while retaining most of a strong teacher model's retrieval quality

Limits and open work

  • Every baseline compared is an official public release evaluated as-is, with different teachers, training data, and architectures, so the reported margin cannot be attributed to distillation alone.
  • No control experiment trains the same 524M architecture from scratch with contrastive learning and hard negatives on the same data, so distillation itself is not isolated from other factors.
  • Only one teacher model was used; the paper does not test how a weaker or stronger teacher, or a different model family, would change results.
  • DistilVDR still trails the strongest 4-8B multi-vector models by 7 to 10 points, with the largest gap on ViDoRe v3.
  • The query encoder is text-only and covers English plus five translated European languages, so image-conditioned queries and non-Latin scripts like Chinese, Japanese, or Arabic are out of scope, and the visual-tile budget is fixed regardless of page complexity.

Why it matters

Serving multi-billion-parameter retrieval models is expensive in GPU memory and indexing time, and this work shows a compact retriever can be distilled purely from a teacher's embeddings without any labeled relevance data. That gives practitioners a concrete recipe for building cheaper document-search or visual retrieval-augmented generation systems without training from scratch.

Terms in this paper

  • Visual document retrieval (VDR) · Retrieving relevant pages by encoding document images directly, instead of running OCR text extraction first
  • Cosine alignment loss · A training objective that pushes a student's output vector direction to match a fixed target vector's direction
  • Single-vector vs multi-vector retrieval · Representing a document as one vector (compact) versus many per-token vectors (larger storage, finer matching)
  • NDCG@5 · A ranking quality metric measuring how well the top 5 retrieved results match relevance, higher is better
  • MaxSim · A late-interaction scoring method in multi-vector retrieval that takes the best-matching token pair between query and document

Original abstract (English)

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.

Authors · Zhuchenyang Liu

Read on arXiv

Latest papers

All papers →

Latest from METAL MEDIA

Figures: Zhuchenyang Liu et al., arXiv:2608.10636, CC BY 4.0