Weakly Supervised Vision-and-Language Pre-training with Relative Representations

Chi Chen, Peng Li, Maosong Sun, Yang Liu

Introduction

Standard Vision-and-Language Pre-training (VLP) models, such as CLIP or ALBEF, typically rely on massive datasets of paired images and captions. However, acquiring these pairs is either prohibitively expensive through manual annotation or results in significant noise when scraped from the web. Weakly Supervised VLP (WVLP) seeks to mitigate this by utilizing abundant, low-cost unimodal data (images or text alone).

Previous WVLP approaches often used "object tags" as anchors to bridge modalities. For instance, if an image contains a "dog" tag and a sentence contains the word "dog," they are treated as a weak pair. This method suffers from two major flaws: it is local, focusing on specific objects rather than scene-level interactions, and it is limited by a predefined vocabulary that struggles with complex or abstract semantics.

Methodology: Relative Representations

The researchers introduce RELIT, a framework that replaces superficial human-designed tags with Relative Representations. This approach leverages the deep semantic structures already learned by unimodal encoders (e.g., ViT for images and Sentence-BERT for text).

Relative representations (a) and the cross-modal anchor bridge (b).

Anchors as a Bridge

Instead of thousands of tags, RELIT selects a small set (approximately 8,000) of high-quality image-text pairs to serve as cross-modal anchors. Any new image or text is represented as a vector of its similarities to these anchors. Because these anchors are paired, an image's similarity to the "image-side" of an anchor is mathematically close to a related text's similarity to the "text-side" of that same anchor. This creates a modality-invariant space by design, where internal relationships between data points are preserved across different feature spaces.

The RELIT Framework

The RELIT framework employs these relative representations through three main stages:

  1. Retrieval: The model uses relative representations to find the most semantically relevant sentences from a large text-only corpus for a given image.
  2. Generation (Rel2Cap): A generative model (GPT-2) is fine-tuned to produce "pseudo-captions" directly from an image's relative representation. This allows the model to describe images even when a perfect match does not exist in the retrieval corpus.
  3. Quality Filtering and Pre-training: A quality score is calculated for both retrieved and generated pairs. The model then undergoes pre-training using standard objectives like Masked Language Modeling (MLM) and Image-Text Matching (ITM), with the quality scores used to weight the training data and minimize the impact of noise.

Experimental Results

RELIT was evaluated on standard benchmarks including VQAv2, NLVR2, VE, and Flickr30k. It consistently outperformed previous weakly supervised methods, achieving a new state-of-the-art (SOTA) accuracy of 76.4% on NLVR2 and 70.2% R@1 on Flickr30k.

Comparison of alignment quality (CLIPScore) between relative representations and traditional tag-based retrieval as the number of anchors increases.

A critical insight from the results is the superior alignment quality of relative representations compared to traditional tags. Using CLIPScore to measure semantic alignment, RELIT’s generated data scored 65.23, significantly higher than the 57.94 achieved by tag-based retrieval. Furthermore, as shown in the figure above, the quality of the retrieved data improves steadily as the number of anchors increases, far surpassing the stagnant performance of tag-based methods.

Conclusion

By moving beyond human-designed object tags toward a relative, modality-invariant representation, RELIT demonstrates that a small set of anchors can effectively bridge the gap between vision and language. This approach not only improves the quality of weakly supervised pre-training but also offers a scalable path for incorporating diverse unimodal data into multi-modal models. Future work may explore extending this framework to other modalities, such as audio or video, where paired data is even scarcer.

Summary updated

BibTeX
@inproceedings{chen2023weakly,
  author = {Chi Chen and Peng Li and Maosong Sun and Yang Liu},
  title = {{Weakly Supervised Vision-and-Language Pre-training with Relative Representations}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2023},
  doi = {10.18653/v1/2023.acl-long.464},
}
Figure