TL;DR
CausalEmbed introduces a novel auto-regressive paradigm for Visual Document Retrieval (VDR) that sequentially generates compact multi-vector embeddings in a latent space. By replacing massive parallel patch-level representations with a dynamic token generation policy, it slashes token storage requirements by 30× to 155× while matching or even exceeding the retrieval accuracy of full-resource models.
What Problem Does This Paper Address?
Visual Document Retrieval (VDR) is essential for modern enterprise search and Retrieval-Augmented Generation (RAG) pipelines. Unlike text-only systems that rely on error-prone Optical Character Recognition (OCR), VDR treats document pages directly as images, preserving crucial layout, structural, and visual information.
State-of-the-art models like ColPali achieve high accuracy by using Multimodal Large Language Models (MLLMs) to produce patch-level multi-vector embeddings. However, this creates a massive storage bottleneck: representing a single page can require thousands of visual tokens. Existing compression techniques, such as token pruning or clustering (e.g., K-Means), alleviate storage costs but suffer from significant drops in retrieval accuracy because they are fundamentally capped by the quality of the initial parallel grid representations.
Methods
Instead of extracting all patch tokens simultaneously in a parallel grid, CausalEmbed reframes embedding creation as an auto-regressive generation process. It fine-tunes a pre-trained MLLM to sequentially synthesize a compact, fixed budget of latent vectors (typically just 32 tokens) by conditioning on the visual context and the history of previously generated tokens.
To prevent representation collapse and ensure high-quality embeddings, the authors introduce a joint training objective consisting of three distinct losses:
- Contrastive Alignment Loss ($\mathcal{L}_m$): A standard margin-based contrastive loss that ensures positive query-document pairs receive higher late-interaction (MaxSim) similarity scores than hard in-batch negatives.
- Progressive Refinement Loss ($\mathcal{L}_d$): A telescoping sum objective enforcing that each subsequent token generated adds marginal utility to the retrieval performance, encouraging the model to capture high-level semantics early and finer details later.
- Diversity Regularization ($\mathcal{L}_q$): An anti-homogenization constraint that penalizes high cosine similarity between distinct tokens in the generated sequence, ensuring the model doesn't collapse into repetitive patterns.
Datasets
The model was trained on the standard vidore/colpali_train_set and evaluated across three iterations of the Visual Document Retrieval benchmark (ViDoRe):
- ViDoRe V1: Academic datasets spanning various document types (e.g., ArxivQA, DocVQA, InfoVQA).
- ViDoRe V2: A more generalized benchmark featuring multilingual subsets and diverse domains (e.g., Biomedical, Economics).
- ViDoRe V3: A challenging benchmark focused on retrieving information from complex, visually rich industrial documents (e.g., Energy, Artificial Intelligence).
Key Insights and Ideas
- Superior Gradient Flow: In traditional parallel patch encoding, only a few document tokens match a query and receive direct gradient updates during training, leading to low sample efficiency. Auto-regressive generation allows gradients to propagate through the entire causal chain, significantly boosting training efficiency.
- Dynamic Test-Time Scaling: Because the embeddings are generated sequentially, CausalEmbed exhibits a unique "Matryoshka-like" property. Users can dynamically adjust the token budget at inference time without retraining—allocating fewer tokens for low-latency applications or more tokens for maximum precision.
- Information Concentration: Visualization reveals that document semantics naturally concentrate in the earliest generated tokens, while subsequent tokens progressively fill in fine-grained structural details.
Key Results
CausalEmbed was evaluated using two different MLLM backbones: Qwen2.5-VL-3B (CausalQwen) and PaliGemma-3B (CausalPali).
- Extreme Compression with High Accuracy: At a strict budget of 32 tokens,
CausalQwenachieved an average nDCG@5 of 0.426 on ViDoRe V3 and 0.516 on ViDoRe V2, significantly outperforming traditional pruning and clustering methods like K-Means and SemCluster at the same compression scale. - Surpassing the Base Model: Remarkably,
CausalPali(32 tokens) outperformed the full-resourceColPalibase model (1031 tokens) by nearly 5% across all three ViDoRe versions, despite using 30× fewer tokens.
- Efficiency Gains: Thanks to KV caching during the sequential generation process, CausalEmbed achieves lower adaptation latency during document encoding compared to heavy clustering baselines.
Limitations and Future Work
While CausalEmbed dramatically accelerates the critical Late Interaction (MaxSim) phase during retrieval by compressing document tokens, the auto-regressive generation mechanism introduces a slight computational overhead during the query encoding phase. The authors note that future work will focus on optimizing query-side generation speed and exploring the paradigm on even larger multimodal backbones.
Summary updated