Efficient Large Multi-modal Models via Visual Context Compression

Jieneng Chen, Luoxin Ye, Ju He, Zhaoyang Wang, Daniel Khashabi, Alan L. Yuille

TL;DR

This paper tackles the inefficiency of large multi-modal models (MLLMs) by addressing the redundancy in visual tokens. They introduce a "Visual Context Compressor" and a staged training scheme called "LLaVolta" that significantly reduces training costs and inference latency without sacrificing performance, paving the way for more efficient MLLMs.

What Problem Does This Paper Address?

Large Language Models (LLMs) have revolutionized AI, and their extension to multi-modal LLMs (MLLMs) has opened up new possibilities for understanding and interacting with the world through both text and vision. However, a significant challenge in MLLMs is the computational cost associated with processing visual information. While text token compression has been explored, the redundancy within visual tokens in MLLMs has been largely overlooked. This redundancy leads to inefficient training and inference, hindering the scalability and practical deployment of these powerful models. The authors aim to address this by investigating visual token redundancy and proposing methods to compress and efficiently train MLLMs.

Methods

The core of this work lies in two main contributions:

  • Visual Context Compressor (VCC): This is a novel compression technique designed to reduce the number of visual tokens. Surprisingly, the authors found that a simple average pooling method, applied at a specific Transformer layer, is the most effective compressor. This contrasts with more complex attention-based methods, which are found to be unstable during training. The VCC aims to minimize information loss while enhancing efficiency.
  • LLaVolta: This is a staged training scheme that leverages the VCC. Instead of applying compression uniformly, LLaVolta progressively compresses visual tokens over multiple training stages. It starts with heavy compression in early stages and gradually reduces the compression ratio, eventually reaching a subtle or no compression stage to align with inference. This multi-stage approach allows for adaptive compression, ensuring training efficiency without sacrificing performance at inference time.

Datasets

The authors evaluated their approach on a comprehensive set of thirteen benchmarks for image-language understanding and video-language understanding. These include:

  • Image-Language Understanding: GQA, MM-Vet, ScienceQA (SQA), MME, TextVQA, POPE, MMBench, MMBench-CN, VQA-v2, LLaVA-Bench-in-the-Wild (LLaVAW), VisWiz, SEED-Image, and MMMU.
  • Video-Language Understanding: MSVD-QA, MSRVTT-QA, and ActivityNet-QA.

Key Insights and Ideas

  • Visual tokens are surprisingly redundant: Initial experiments showed that removing up to 70% of visual tokens with simple average pooling only resulted in a minimal performance drop (around 3% on GQA). This strongly suggests significant redundancy in visual context.
  • Simple is often better (for training): Contrary to expectations, a straightforward average pooling compressor outperformed more complex attention-based methods for training MLLMs. This is attributed to the stability of average pooling during the training process.
  • Staged training is key for efficiency: The LLaVolta scheme, which progressively reduces compression during training, is crucial for mitigating information loss and achieving both efficiency and high performance. This multi-stage approach allows the model to adapt to varying levels of visual information.
  • Compression can be beneficial even at light levels: The study found that MLLMs trained with light compression (e.g., stride 16) could outperform the baseline even with a higher compression ratio, indicating that efficient representation doesn't necessarily mean losing information.

Key Results

  • Significant Training Cost Reduction: LLaVolta reduced training costs by 16% and inference latency by 24%.
  • Competitive Performance: The LLaVolta-trained models achieved competitive results across thirteen benchmarks, often surpassing the non-compression baseline.
  • Best Performance with Last Stage Compression: The "last stage compression" training scheme achieved the highest average performance (62.1%) while requiring the least training time (12.4 hours) and lowest inference cost (5.47 TFLOPs).
  • Scalability: The approach demonstrated scalability to larger models (e.g., LLaVA-13b), maintaining comparable performance while reducing training time by 16%.

Limitations and Future Work

  • Limitations of Compression: While the authors found average pooling to be effective, they acknowledge that it's a non-parametric approach. They also note that in heavy compression levels, performance is inversely proportional to the compression ratio.
  • Future Work: The paper suggests that future work could explore more sophisticated compression strategies that are stable during training. They also call for more in-depth analysis of visual redundancy and the development of efficient training methods for MLLMs. The authors hope their work will inspire further research in this area.

Summary updated

BibTeX
@inproceedings{chen2024efficient,
  author = {Jieneng Chen and Luoxin Ye and Ju He and Zhaoyang Wang and Daniel Khashabi and Alan L. Yuille},
  title = {{Efficient Large Multi-modal Models via Visual Context Compression}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=5RkWOjgRKL},
}
Figure