TVDIM: Enhancing Image Self-Supervised Pretraining via Noisy Text Data

Pengda Qin, Yuhong Li, Kefeng Deng, Qiang WuarXiv 2021 · OpenReview

Abstract

Among ubiquitous multimodal data in the real world, text is the modality generated by human, while image reflects the physical world honestly. In a visual understanding application, machines are expected to understand images like human. Inspired by this, we propose a novel self-supervised learning method, named Text-enhanced Visual Deep InfoMax (TVDIM), to learn better visual representations by fully utilizing the naturally-existing multimodal data. Our core idea of self-supervised learning is to maximize the mutual information between features extracted from multiple views of a shared context to a rational degree. Different from previous methods which only consider multiple views from a single modality, our work produces multiple views from different modalities, and jointly optimizes the mutual information for features pairs of intra-modality and inter-modality. Considering the information gap between inter-modality features pairs from data noise, we adopt a ranking-based contrastive learning to optimize the mutual information. During evaluation, we directly use the pre-trained visual representations to complete various image classification tasks. Experimental results show that, TVDIM significantly outperforms previous visual self-supervised methods when processing the same set of images.

Introduction

Self-supervised learning (SSL) has revolutionized the training of vision models by enabling them to learn from vast amounts of unlabeled data. However, most existing SSL methods are restricted to intra-modality learning, focusing solely on pixel-level patterns. While these methods teach models about shapes and spatial structures, they often miss high-level semantic meanings that humans naturally grasp through language.

The internet provides a wealth of "free" supervision in the form of image-text pairs, such as web captions and movie posters. However, this data is inherently noisy; captions may be tangential or metaphorical rather than literal. TVDIM addresses this by integrating noisy text into the visual pretraining process, using language as a semantic anchor to help models categorize the world more like humans do.

Methodology

TVDIM operates on two parallel tracks during the pretraining stage to maximize mutual information across different views of the same context.

1. Visual Intra-modality Learning

TVDIM adopts the Augmented Multiscale Deep InfoMax (AMDIM) approach for visual-only learning. It generates two augmented "views" of an image and forces the model to recognize that local features from one view correspond to the global summary of the other. This ensures the model learns robust, scale-invariant visual features.

2. Visual-Text Inter-modality Learning

This is the core innovation of TVDIM. The model encodes an image and its associated noisy text into a shared feature space. To handle the noise inherent in web-scraped text, the authors replace the standard InfoNCE loss with a Pairwise Ranking (PwR) loss. Unlike InfoNCE, which imposes a heavy penalty for any misalignment, PwR uses a "margin" that only penalizes the model if the match between a correct pair isn't significantly better than a random negative pair. This provides the necessary "slack" to learn from loosely related text.

The TVDIM architecture illustrating the integration of image and text encoders with intra-modality and inter-modality loss functions.

Experimental Setup

The model was pretrained on two major datasets:

  • Conceptual Captions: 3.3 million image-caption pairs containing short, noisy alt-text.
  • MM-IMDb: Approximately 26,000 movie posters paired with complex plot summaries.

For text encoding, the researchers found that simple averages of Word2Vec embeddings often outperformed complex, frozen BERT models. They hypothesize that simpler encoders prevent the task from becoming "too easy," forcing the vision model to work harder to extract meaningful features.

Results and Discussion

TVDIM consistently outperformed vision-only baselines across multiple benchmarks. On the MM-IMDb multi-label classification task, TVDIM achieved a significant lead in F-scores compared to both the AMDIM baseline and a standard supervised approach.

Comparison of F-Scores on the MM-IMDb dataset, showing TVDIM's superiority over vision-only and supervised baselines.

Key findings from ablation studies highlighted that matching text to local image patches, rather than just the global image, was critical for performance. Furthermore, removing the inter-modality matching track led to immediate performance drops, confirming that the integration of text provides a superior semantic signal for visual representation learning.

Conclusion

TVDIM demonstrates that even noisy, naturally occurring text can significantly enhance visual self-supervised pretraining. By utilizing a ranking-based loss to accommodate data noise and matching features across both local and global scales, TVDIM bridges the gap between raw pixels and human-level semantic understanding. Future work will explore scaling this approach to billions of images and refining the balance of difficulty in multi-modal self-supervised tasks.

Summary updated

Abstract

Among ubiquitous multimodal data in the real world, text is the modality generated by human, while image reflects the physical world honestly. In a visual understanding application, machines are expected to understand images like human. Inspired by this, we propose a novel self-supervised learning method, named Text-enhanced Visual Deep InfoMax (TVDIM), to learn better visual representations by fully utilizing the naturally-existing multimodal data. Our core idea of self-supervised learning is to maximize the mutual information between features extracted from multiple views of a shared context to a rational degree. Different from previous methods which only consider multiple views from a single modality, our work produces multiple views from different modalities, and jointly optimizes the mutual information for features pairs of intra-modality and inter-modality. Considering the information gap between inter-modality features pairs from data noise, we adopt a \emph{ranking-based} contrastive learning to optimize the mutual information. During evaluation, we directly use the pre-trained visual representations to complete various image classification tasks. Experimental results show that, TVDIM significantly outperforms previous visual self-supervised methods when processing the same set of images.
BibTeX
@misc{qin2021tvdim,
  author = {Pengda Qin and Yuhong Li and Kefeng Deng and Qiang Wu},
  title = {{TVDIM: Enhancing Image Self-Supervised Pretraining via Noisy Text Data}},
  year = {2021},
  eprint = {2106.01797},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2106.01797},
}
Figure