TL;DR
This paper introduces EVLM, an efficient vision-language model that tackles the computational overhead of processing long visual sequences. By employing hierarchical visual features, cross-attention, and a Mixture of Experts (MoE) architecture, EVLM achieves strong performance on various multimodal benchmarks while being more computationally efficient.
What Problem Does This Paper Address?
Current vision-language models, often based on architectures like LLaVA, typically use a single layer of visual features from a Vision Transformer (ViT) as a prompt for large language models (LLMs). While effective for many tasks, this approach faces significant challenges when dealing with long visual inputs like videos. The self-attention mechanism in LLMs becomes computationally expensive with extended visual sequences. Furthermore, relying on a single ViT feature layer might limit the LLM's ability to fully grasp the nuances of visual information. This paper aims to bridge this gap by proposing an efficient model that maximizes visual perception while minimizing computational costs.
Methods
EVLM introduces several key innovations:
- Cross-Attention Mechanism: Similar to Flamingo, EVLM utilizes cross-attention for image-text interaction. This allows for controlled interaction between visual and textual inputs, preventing excessive computational overhead even with long visual sequences.
- Hierarchical ViT Features: Instead of a single ViT feature layer, EVLM leverages hierarchical features from multiple layers of the visual encoder. This enables the LLM to perceive visual signals at different granularities, leading to a more comprehensive understanding.
- Mixture of Experts (MoE): To enhance model effectiveness and scalability, EVLM incorporates a Mixture of Experts (MoE) mechanism within its cross-attention layers. This allows for sparse activation of experts, leading to more efficient parameter utilization and potentially better performance.
Datasets
EVLM is trained and evaluated on a variety of datasets:
- Pre-training: The model is pre-trained on a large-scale dataset comprising 2.5 billion image-text captions and 50 million web-type multimodal data. This dataset includes a significant portion of Chinese data to improve fine-grained alignment.
- Multi-task Continual Pre-training: This stage utilizes a diverse set of data, including Visual Question Answering (VQA), Natural Language Processing (NLP), OCR, and detection data, along with data from the initial pre-training stage.
- Supervised Fine-tuning: For instruction-following abilities, the model is fine-tuned on 2.3 million samples of high-quality instruction tuning data, including ShareGPT-4V, LLaVA-ZH, multimodal document/chart data, and math problems.
- Evaluation Benchmarks: EVLM is evaluated on general VQA benchmarks (VQAV2, GQA, ScienceQA, VizWiz), text-oriented VQA benchmarks (TextVQA, DocVQA, ChartQA, AI2D), and general multimodal benchmarks (MME, MMB, MMBCN, POPE). It also demonstrates performance on image captioning and video captioning tasks.
Key Insights and Ideas
- Hierarchical Features are Key: The paper highlights that using features from multiple layers of a ViT encoder significantly improves the model's ability to perceive visual signals at different levels of detail, which is crucial for comprehensive understanding.
- Cross-Attention for Efficiency: The adoption of cross-attention, rather than direct concatenation of visual tokens into the LLM, is a critical design choice for managing computational costs, especially with long visual inputs.
- MoE for Scalability and Performance: Integrating MoE into the cross-attention mechanism offers a pathway to scale model capacity without a proportional increase in computational cost, leading to improved effectiveness.
- Importance of Diverse Pre-training Data: The inclusion of a substantial amount of Chinese data and a mix of caption and web-type data during pre-training is shown to be beneficial for fine-grained alignment and overall multimodal understanding.
Key Results
EVLM demonstrates competitive performance across various benchmarks:
- General VQA: EVLM-Chat and EVLM-MoE achieve strong results, with EVLM-Chat reaching 86.4% accuracy and EVLM-MoE reaching 86.8% on ScienceQA, outperforming previous generalist models.
- Text-oriented VQA: On the AI2Diagram dataset, EVLM-MoE and EVLM-Chat achieve accuracies of 75.5% and 76.0%, respectively, showcasing their ability to comprehend complex text within images.
- General Multimodal Benchmarks: The model shows commendable performance on MME, MMB, MMBCN, and POPE, highlighting its adaptability and bilingual capabilities. It also excels in reducing hallucinations on the POPE benchmark.
- Image and Video Captioning: EVLM achieves promising results in image-dense captioning, with notably reduced hallucination phenomena. For video captioning, the model demonstrates good performance in generating descriptive captions.
- Efficiency: The paper emphasizes the computational efficiency gains achieved through the cross-attention mechanism, with FLOPS reductions reported for various pre-training stages.
Limitations and Future Work
- "Star" Category Accuracy: Despite extensive pre-training, the accuracy for the "Star" category remains relatively low, suggesting that the current pre-training data may not sufficiently cover all comprehensive multi-modal knowledge. The authors suggest further expansion of the dataset scale.
- Future Directions: The authors propose two main directions for future work:
- Employing more powerful, larger-scale language models.
- Exploring the capability of video understanding under extremely long sequences using cross-attention mechanisms.
Summary updated