Unveiling Encoder-Free Vision-Language Models

Haiwen Diao, Yufeng Cui, Xiaotong Li, Yueze Wang, Huchuan Lu, Xinlong Wang

Introduction

The landscape of Vision-Language Models (VLMs) has been dominated by a "sandwich" architecture: a pre-trained vision encoder (e.g., CLIP) paired with a large language model (LLM) via a projector. While effective, this paradigm introduces significant constraints in flexibility and efficiency. In this paper, we present EVE (Encoder-free Vision-Language Model), a pure decoder-only architecture that eliminates the need for a dedicated vision encoder. By treating image patches as tokens directly within the LLM, EVE achieves performance parity with established encoder-based models like LLaVA-1.5 while offering superior computational efficiency and handling arbitrary aspect ratios.

The Limitations of Encoder-Based Architectures

Modern VLMs face three primary bottlenecks due to their reliance on separate vision encoders:

  1. Rigid Geometry: Most encoders are pre-trained on fixed-size, square images. Processing real-world images requires resizing or cropping, which often distorts the visual content or loses fine-grained details.
  2. Deployment Overhead: Running a deep vision encoder and a large LLM sequentially increases latency and memory usage, particularly for high-resolution inputs.
  3. Capacity Mismatch: Aligning the representational "intelligence" of a specific vision encoder with the reasoning capabilities of a specific LLM is a non-trivial challenge.

EVE addresses these issues by asking: Can we treat pixels just like text tokens and process them directly within the LLM?

The EVE Methodology

EVE replaces the traditional vision encoder with two lightweight components designed to bridge the gap between raw pixels and linguistic representations.

1. Patch Embedding Layer (PEL)

Instead of a deep neural network, EVE utilizes a simple convolutional layer followed by an average pooling strategy. This layer transforms image patches into visual tokens. To preserve spatial context, EVE introduces a "newline" token (<SPL>), allowing the model to understand 2D structures across any aspect ratio without distortion.

2. Patch Aligning Layer (PAL)

The PAL is the core innovation of EVE. During the training phase, a standard vision encoder (such as CLIP) acts as a "teacher." EVE is trained to align its internal visual representations with the teacher's output using a Mean Squared Error (MSE) loss. Crucially, this teacher model is discarded after training, resulting in a lean, encoder-free model for inference.

Training Strategy

To prevent "model collapse"—a common issue when training encoder-free models from scratch—the authors employ a three-stage strategy:

  • LLM-guided Pre-aligning: The LLM remains frozen while the PEL and PAL learn to map visual inputs to the LLM's existing knowledge base.
  • Generative Pre-training: The entire model is unfrozen and trained on 35 million image-text pairs (including subsets of SA-1B, OpenImages, and LAION-5B) to develop deep multimodal understanding.
  • Supervised Fine-tuning (SFT): The model is refined on high-quality instruction data (e.g., LLaVA-mix-665K) to improve its prompt-following capabilities.

Key Results and Performance

EVE-7B demonstrates that an encoder-free approach is not only viable but highly competitive.

  • Benchmark Performance: EVE-7B (HD) achieved scores of 78.6 on VQAv2 and 62.6 on GQA, matching the performance of the popular encoder-based LLaVA-1.5.
  • Comparison with Fuyu: EVE significantly outperforms Fuyu-8B, the previous state-of-the-art encoder-free model, across multiple benchmarks, including a substantial lead on the MME benchmark (1217.3 vs 728.6).
  • Efficiency Gains: By removing the encoder, EVE achieves an order-of-magnitude speedup in image processing. For high-resolution tasks, EVE-7B (HD) requires only 170G FLOPs, compared to 1860G FLOPs for LLaVA-1.6.

Discussion and Limitations

While EVE represents a significant step forward, several challenges remain. The model still lags slightly behind the absolute state-of-the-art encoder-based models in complex reasoning tasks. Additionally, the authors observed "catastrophic forgetting," where training on vision-language data leads to a decline in pure linguistic performance. Future work will explore Mixture-of-Experts (MoE) architectures to balance multimodal learning and scaling the LLM capacity to determine if encoder-free models can eventually surpass their encoder-based counterparts.

Conclusion

EVE proves that the "teacher" encoder is only necessary during the learning phase. By using implicit compression to inherit visual priors, EVE offers a faster, more flexible, and more efficient path forward for multimodal large language models.

Summary updated

BibTeX
@inproceedings{diao2024unveiling,
  author = {Haiwen Diao and Yufeng Cui and Xiaotong Li and Yueze Wang and Huchuan Lu and Xinlong Wang},
  title = {{Unveiling Encoder-Free Vision-Language Models}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=SpPAB1tmlC},
}
Figure