[Paper Review] DocumentCLIP: Linking Figures and Main Body Text in Reflowed Documents
DocumentCLIP introduces a salience-aware contrastive learning framework to model sentence-level multimodal interactions between images, captions, and long-form text in reflowed documents such as news articles and Wikipedia pages. By incorporating layout-aware section embeddings, entity alignment, and hard negative sampling, it achieves state-of-the-art performance in both supervised and zero-shot intra-document retrieval, outperforming CLIP and SBERT in human evaluation with a mean rank of 0.75.
Vision-language pretraining models have achieved great success in supporting multimedia applications by understanding the alignments between images and text. While existing vision-language pretraining models primarily focus on understanding single image associated with a single piece of text, they often ignore the alignment at the intra-document level, consisting of multiple sentences with multiple images. In this work, we propose DocumentCLIP, a salience-aware contrastive learning framework to enforce vision-language pretraining models to comprehend the interaction between images and longer text within documents. Our model is beneficial for the real-world multimodal document understanding like news article, magazines, product descriptions, which contain linguistically and visually richer content. To the best of our knowledge, we are the first to explore multimodal intra-document links by contrastive learning. In addition, we collect a large Wikipedia dataset for pretraining, which provides various topics and structures. Experiments show DocumentCLIP not only outperforms the state-of-the-art baselines in the supervised setting, but also achieves the best zero-shot performance in the wild after human evaluation. Our code is available at https://github.com/FuxiaoLiu/DocumentCLIP.
Motivation & Objective
- To address the gap in vision-language models that fail to model intra-document image-text relationships in long, structured documents like news articles and Wikipedia pages.
- To improve multimodal document understanding by capturing semantic, structural, and positional relationships between images, captions, and long text sections.
- To enable robust zero-shot generalization across diverse document types and topics without fine-tuning.
- To develop a pretraining framework that leverages weak supervision from Wikipedia's HTML structure to learn document-level alignment.
- To design a method that effectively handles ambiguous or multiple image-text correspondences in linguistically rich, reflowed documents.
Proposed method
- DocumentCLIP employs a layout-aware transformer encoder with three input embeddings: text, section position, and entity embeddings to model document structure and content flow.
- It uses early fusion of image and caption features via CLIP's vision and text encoders before the layout transformer to preserve multimodal interactions.
- A salient sentence extraction module identifies the most relevant sentences per image/caption pair, reducing noise and focusing on informative content.
- The model optimizes a salience-aware contrastive loss that compares image-caption pairs with relevant text sections, using both normal negatives (other sections) and hard negatives (swapped image/caption pairs).
- Pretraining is conducted on a large Wikipedia dataset of 66k articles and 320k image-caption pairs with natural section-to-image links as weak supervision.
- The framework is fine-tuned for retrieval and evaluated in both supervised and zero-shot settings on real-world document collections.

Experimental results
Research questions
- RQ1Can a vision-language model effectively learn sentence-level image-text alignment in long, reflowed documents with complex layouts and multiple images?
- RQ2How does incorporating layout and section position information improve multimodal document understanding compared to standard contrastive learning?
- RQ3Can a model pre-trained on Wikipedia achieve strong zero-shot performance on unseen document types like open textbooks?
- RQ4How does salience-aware contrastive learning improve performance over standard contrastive objectives in intra-document retrieval?
- RQ5To what extent do hard negative samples improve the model’s ability to distinguish subtle semantic differences between candidate text segments?
Key findings
- DocumentCLIP achieves a mean rank of 0.75 in human evaluation on the Open Textbook dataset, significantly outperforming CLIP (1.13) and SBert (1.29), indicating superior zero-shot relevance prediction.
- In the zero-shot setting, 49% of predictions were ranked first by human annotators, compared to only 18% for DocumentCLIP being ranked last, demonstrating high reliability.
- The model outperforms state-of-the-art baselines in both supervised and zero-shot settings, confirming its robustness and generalization capability.
- Using CLIP-encoders for both images and captions yields the best performance, reducing the semantic gap between modalities.
- The ablation study confirms that section position and entity embeddings significantly improve performance, while training from scratch (SCRATCH) underperforms due to lack of pretraining prior.
- Qualitative analysis shows DocumentCLIP correctly identifies contextually relevant sentences even when keywords are absent, such as linking 'live action special' to 'TV drama'.

Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.