Vision Model Pre-training on Interleaved Image-Text Data via Latent Compression Learning

Chenyu Yang, Xizhou Zhu, Jinguo Zhu, Weijie Su, Junjie Wang, Xuan Dong, Wenhai Wang, Bin Li, Jie Zhou, Yu Qiao, Jifeng Dai

Introduction

The success of modern vision-language models has largely been predicated on the availability of massive datasets of paired images and captions, such as LAION. However, the vast majority of visual and textual information on the web exists in an "interleaved" format—where multiple images are integrated into long-form text, such as in blog posts, news articles, and digital essays. While models like Flamingo have successfully utilized interleaved data, they typically rely on vision encoders that were pre-trained on paired data. Pre-training a vision model from scratch on interleaved data has historically proven difficult due to the phenomenon of representation collapse.

In this work, we present Latent Compression Learning (LCL), a framework that enables the pre-training of vision models from scratch using interleaved image-text data. By framing pre-training as a data compression task, LCL achieves performance parity with industry-standard paired-data models like CLIP while unlocking the potential of richer, more complex web-scale interleaved datasets.

The Challenge: Representation Collapse

The primary obstacle in training vision models from scratch using only text generation objectives is representation collapse. In a standard generative setup, a model predicts the next token in a sequence. When images are embedded in a text stream, the surrounding text often provides sufficient context for the language model to predict subsequent words without actually "looking" at the image. Consequently, the vision encoder fails to learn meaningful features, as the model finds a shortcut to minimize loss by ignoring the visual input.

Methodology: Latent Compression Learning

LCL overcomes this by treating learning as a form of data compression. The framework utilizes a Vision Transformer (ViT) and a Causal Language Model, optimizing for a dual objective that maximizes mutual information between inputs and outputs.

The LCL training objective consists of two symmetric components:

  1. Contrastive Learning (Looking Backward): This component ensures that the current image representation remains consistent with the preceding context (both text and images). This acts as a semantic anchor, forcing the vision encoder to extract features that are grounded in the established narrative.
  2. Auto-regressive Generation (Looking Forward): The model uses the compressed visual latents to predict the subsequent text.

By combining these two losses, LCL prevents the vision encoder from being bypassed, ensuring that the learned visual features are both contextually relevant and predictive of future information.

Experimental Evaluation

The researchers evaluated LCL across a variety of benchmarks to test its versatility and compare it against existing paradigms:

  • Paired Data Benchmarks: Using LAION-400M, LCL was compared against CLIP to establish a baseline.
  • Interleaved Data Benchmarks: Using MMC4 and OBELICS datasets to test performance on web-scale content.
  • Controlled Comparisons: The team created "LAION-Random" (an interleaved version of LAION) and "MMC4-Pair" (a paired version of MMC4) to isolate the effects of data format versus data content.

Key Results

LCL demonstrates that interleaved data is a viable, and perhaps superior, source for foundational vision training.

Parity with CLIP

When trained on standard paired data (LAION), LCL achieves performance nearly identical to CLIP. In "frozen transfer" evaluations on ImageNet-1k, LCL reached approximately 75% top-1 accuracy, matching the established industry standard.

Superiority on Interleaved Data

The true strength of LCL is revealed when training on interleaved datasets like MMC4. While previous architectures like Flamingo fail to learn effectively from scratch in this setting (achieving only 24.0% accuracy on ImageNet), LCL reached 75.2% accuracy. This suggests that LCL effectively mitigates representation collapse, allowing the model to benefit from the rich narrative structures found in interleaved content.

Robustness and Downstream Utility

Beyond classification, LCL-trained models showed strong performance in image-text retrieval, captioning, and multi-modal dialogue. When integrated into the LLaVA-1.5 pipeline, the LCL encoder proved to be a robust foundation for complex visual reasoning tasks.

Conclusion and Future Directions

Latent Compression Learning represents a significant step forward in multi-modal pre-training. By moving beyond simple image-caption pairs, LCL allows researchers to tap into the vast, unstructured wealth of interleaved data on the internet.

While the results are promising, challenges remain. Processing long interleaved sequences is more computationally intensive than processing simple pairs. Future work will focus on scaling LCL to larger model architectures (ViT-H or ViT-G) and refining data filtering techniques to identify the most informative sequences for compression. Ultimately, LCL proves that with the right objective, the "messy" data of the web is a goldmine for training the next generation of vision models.

Summary updated

BibTeX
@inproceedings{yang2024vision,
  author = {Chenyu Yang and Xizhou Zhu and Jinguo Zhu and Weijie Su and Junjie Wang and Xuan Dong and Wenhai Wang and Bin Li and Jie Zhou and Yu Qiao and Jifeng Dai},
  title = {{Vision Model Pre-training on Interleaved Image-Text Data via Latent Compression Learning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=z6KNvOe9zQ},
}
Figure