RuDoRe ColPali v1.3
A LoRA adapter for retrieving Russian document pages from text queries, trained on ColPali v1.3. The model encodes rendered page images directly and ranks them with late interaction, preserving visual information from tables, charts, and document layouts.
RuDoRe adaptation increases nDCG@5 from 0.5071 to 0.7091 on RuDoRe and from 0.4967 to 0.6642 on the held-out X5-private corpus. The companion RuDoRe ColQwen3-2B achieves higher retrieval quality on all three evaluated datasets.
Model overview
| Property | Value |
|---|---|
| Artifact | LoRA adapter; requires the base model |
| Base retriever | vidore/colpali-v1.3 |
| Backbone | PaliGemma-3B |
| Input | Text queries and document page images |
| Output | Multiple 128-dimensional vectors per query/page |
| Retrieval score | Late interaction with MaxSim |
| Adaptation data | RuDoRe, Russian query-page pairs |
| Companion model | RuDoRe ColQwen3-2B |
MaxSim compares each query-token vector with the page vectors, takes its highest similarity, and sums those maxima into a page score. Pages can be encoded in advance and ranked for each new query. The model returns retrieval embeddings; a downstream system can use the retrieved pages for question answering.
Training data and method
RuDoRe is built from Russian PDF, PPTX, and DOCX documents across 13 topics. Qwen3-VL-32B-Instruct generates queries from page images, then a judge prompt checks query relevance and specificity. The pipeline splits documents into separate partitions, filters pairs using the target page's rank under a frozen retriever, mines negatives, and samples by topic. Queries are rephrased while preserving their information need.
The training set contains 188,192 query-page pairs and 96,607 pages. The RuDoRe dataset repository contains the evaluation split, with 18,805 pairs and 6,383 pages. The full training corpus is not distributed because of restrictions on redistributing source materials.
Training recipe
| Setting | Value |
|---|---|
| Loss | ColbertPairwiseNegativeCELoss |
| Negatives | Five mixed hard and soft negatives per query |
| Temperature | Loss-class default, no explicit override |
| Per-device batch size | 4 |
| Gradient accumulation | 4, giving an effective optimizer batch of 16 |
| LoRA rank / alpha | 32 / 32 |
| LoRA dropout | 0.1 |
| LoRA initialization / bias | Gaussian / none |
| Target modules | q_proj, k_proj, v_proj, o_proj, down_proj, gate_proj, up_proj |
| Optimizer | paged_adamw_8bit |
| Learning rate | 5e-5 |
| Warm-up steps | 500 |
| Training duration | 1 epoch, approximately 11,000 optimizer steps |
| Sampling | Group-aware sampler, seed 42 |
| Checkpoint selection | Highest nDCG@5 on a held-out RuDoRe validation shard |
This recipe uses explicit negative pages with the pairwise-negative objective. The companion ColQwen3 adapter uses a different recipe based on in-batch negatives.
Evaluation
The primary metric is nDCG@5. ViDoRe V3 reports the macro average over seven tasks. RuDoRe and X5-private use rephrased queries; the non-rephrased controls are separate experiments. Evaluation on the final test sets follows checkpoint selection on the validation shard. X5-private was not used for adaptation.
| Evaluation set | Base ColPali | RuDoRe adapter |
|---|---|---|
| ViDoRe V3, seven-task macro average | 0.4492 | 0.4732 |
| RuDoRe, held-out Russian documents | 0.5071 | 0.7091 |
| X5-private, held-out business documents | 0.4967 | 0.6642 |
Adaptation improves all seven ViDoRe V3 tasks as well as both Russian evaluation sets. Despite these gains, adapted ColPali remains below unadapted SauerkrautLM-ColQwen3-2b-v0.1 on all three datasets. Backbone choice and adaptation both matter for the observed retrieval quality.
Comparison with text retrieval on X5-private
| Model | nDCG@5 | nDCG@10 | Recall@5 | MRR@10 |
|---|---|---|---|---|
| RuDoRe ColPali v1.3 | 0.6642 | 0.6887 | 0.7893 | 0.6322 |
| pplx-embed-v1-4B | 0.7683 | 0.7874 | 0.8809 | 0.7386 |
Text-model comparisons were conducted on X5-private, where document text is available. Several text models outperform adapted ColPali on this corpus; moving to visual retrieval alone does not ensure better results.
Changing X5-private queries from their original wording to rephrased wording lowers this adapter's nDCG@5 from 0.7283 to 0.6642, an 8.8% relative decrease. The corpus, target pages, and model are held fixed in this comparison.
Usage
Install the dependencies in a project with a CUDA-enabled PyTorch setup:
uv add torch peft pillow "colpali-engine>=0.3.0,<0.4.0"
The example extends the upstream ColPali Engine usage with the RuDoRe adapter. Replace the example page paths with your rendered document pages.
import torch
from PIL import Image
from peft import PeftModel
from colpali_engine.models import ColPali, ColPaliProcessor
BASE = "vidore/colpali-v1.3"
ADAPTER = "rudore/colpali-v1.3"
base = ColPali.from_pretrained(
BASE,
torch_dtype=torch.bfloat16,
device_map="cuda:0",
)
model = PeftModel.from_pretrained(base, ADAPTER).eval()
processor = ColPaliProcessor.from_pretrained(BASE)
pages = [
Image.open("page_1.png").convert("RGB"),
Image.open("page_2.png").convert("RGB"),
]
queries = ["Выручка по кварталам с разбивкой по регионам"]
batch_images = processor.process_images(pages).to(model.device)
batch_queries = processor.process_queries(queries).to(model.device)
with torch.inference_mode():
page_embeddings = model(**batch_images)
query_embeddings = model(**batch_queries)
scores = processor.score_multi_vector(query_embeddings, page_embeddings)
ranking = scores.argsort(dim=-1, descending=True)
print(ranking)
For reproducible evaluation, record the exact library versions and processor configuration. The upstream card documents query-prefix, newline, and attention-mask differences between processor implementations and versions; these can change embeddings and scores.
For larger corpora, encode pages in batches and store their multi-vector embeddings. MaxSim can rank the full corpus or rerank a smaller candidate set; evaluate candidate recall and final retrieval quality alongside latency.
Limitations
- Adaptation improves ColPali, but stronger text and visual retrievers outperform it in the reported comparisons. Benchmark against those alternatives on the intended corpus.
- Small or unclear text, dense tables, and nearly identical pages can cause wrong-page retrieval. Primarily textual documents may be better served by a text retriever.
- Multi-vector page representations require more storage and scoring work than a single dense vector per page. Adapter size does not represent full model memory or index size.
- RuDoRe queries and labels are generated automatically. An audit of 150 accepted training pairs found 89% mean relevance and 94% raw annotator agreement; filtering can also exclude valid pairs that the reference retriever finds difficult.
- X5-private is not available for public reproduction.
License and attribution
This repository declares the Gemma terms. The PaliGemma backbone is subject to those terms; the upstream ColPali card separately identifies the upstream adapters as MIT-licensed.
ColPali and PaliGemma are upstream architectures. This work contributes RuDoRe data preparation, Russian-language LoRA adaptation, and evaluation. For the original architecture, see ColPali: Efficient Document Retrieval with Vision Language Models.
Adaptation and evaluation: Roman Makeev and Egor Machnev.