Continual Vision-Language Representaion Learning with Off-Diagonal Information

Zixuan Ni, Longhui Wei, Siliang Tang, Yueting Zhuang, Qi Tian

TL;DR

This paper tackles the challenge of continually training large vision-language models like CLIP on streaming data, a common real-world scenario. They identify "Spatial Disorder" (intra-modal rotation and inter-modal deviation) as the cause of performance degradation and propose "Mod-X," a novel framework that preserves crucial off-diagonal information in contrastive matrices to mitigate this issue.

What Problem Does This Paper Address?

Large-scale vision-language models such as CLIP are incredibly powerful for cross-modal tasks, but they typically require massive datasets and computational resources for training. In real-world applications, data often arrives continuously, necessitating continual learning. However, directly applying continual learning to CLIP leads to significant performance drops, a phenomenon the authors call "Cognitive Disorder" (CD). This is unlike pure self-supervised image models, which are more robust to catastrophic forgetting. The authors aim to understand why CLIP suffers from CD in a continual setting and propose a method to overcome it.

Methods

The core of the paper involves analyzing the internal representation space of CLIP during continual training. They introduce the concept of Spatial Disorder (SD), which they break down into two components:

  • Intra-modal Rotation: The representation space of either the vision or language encoder rotates significantly around a high-dimensional sphere's center.
  • Inter-modal Deviation: The rotations of the vision and language encoders are unsynchronized, leading to a misalignment between the two modalities.

They theoretically and empirically demonstrate how SD leads to CD. To combat this, they propose Mod-X: Maintain off-diagonal information-matrix. This framework focuses on preserving the "off-diagonal information" within the contrastive similarity matrices. Essentially, it selectively aligns the distribution of these off-diagonal elements, which represent inter-sample similarities, to retain the model's understanding of older data domains while learning new ones. This is achieved through a "Spatial Alignment" module that distills information from a previous model's contrastive matrix.

Datasets

The authors use the following datasets:

  • MS COCO Captions (COCO): A standard image captioning dataset.
  • Flickr30K: Another widely used image-text dataset.
  • ECommerce-T2I: A specific e-commerce text-to-image dataset.
  • CC12M: A large-scale dataset for continual pre-training.

Key Insights and Ideas

  • CLIP's Vulnerability to Continual Learning: Unlike pure self-supervised image models, CLIP is highly susceptible to catastrophic forgetting (Cognitive Disorder) when trained continually.
  • Spatial Disorder as the Culprit: The degradation isn't just about forgetting specific facts but a fundamental geometric shift in the model's representation space, characterized by "Intra-modal Rotation" and "Inter-modal Deviation."
  • Unsynchronized Rotations Matter: The key insight is that the unsynchronized rotation between vision and language encoders (Inter-modal Deviation) is a major driver of performance loss, even if individual modal spaces rotate.
  • Off-Diagonal Information is Crucial: The paper highlights that the off-diagonal elements of the contrastive matrix, representing inter-sample relationships, are vital for maintaining cross-modal alignment and preventing performance degradation.
  • Mod-X Preserves Relationships: The proposed Mod-X framework effectively leverages this off-diagonal information to maintain spatial alignment, allowing CLIP to learn new data without forgetting old.

Key Results

  • Continual CLIP training (CLIPct) shows significant performance degradation on cross-modal retrieval tasks compared to joint training (CLIPjt). For example, on COCO(5K), Image-Text R@1 dropped from 14.7% to 6.1%.
  • The proposed Mod-X framework significantly mitigates this performance drop. In experiments, Mod-X achieved results close to joint training, outperforming CLIPct by a considerable margin. For instance, on Flickr30K(1K), Mod-X achieved 27.9% Image-Text R@1 compared to CLIPct's 16.1%.
  • Mod-X also shows improved representation quality (linear probe accuracy) compared to pure continual training.
  • The framework demonstrates effectiveness across different datasets and scales, including a specific e-commerce dataset and large-scale pre-training scenarios.

Limitations and Future Work

  • Hyperparameter Sensitivity: While the paper shows Mod-X is robust to the hyperparameter $\alpha$ (controlling the balance between old and new information), excessively large values can limit fitting to new datasets.
  • Future Work: The authors suggest that their analysis and framework provide a good baseline for future continual self-supervised pre-training works, implying further research into more sophisticated alignment strategies or applications.

Summary updated

BibTeX
@inproceedings{ni2023continual,
  author = {Zixuan Ni and Longhui Wei and Siliang Tang and Yueting Zhuang and Qi Tian},
  title = {{Continual Vision-Language Representaion Learning with Off-Diagonal Information}},
  booktitle = {International Conference on Learning Representations},
  year = {2023},
  url = {https://openreview.net/forum?id=X1-0f_y88F9},
}
Figure