TL;DR
EE-MLLM breaks the efficiency trade-off in Multimodal Large Language Models by introducing a composite attention mechanism and a parameter-free, weight-reusing aligner. By eliminating redundant self-attention among visual tokens, it slashes image prefilling latency on an H800 GPU from 277 ms to just 79 ms while maintaining high data efficiency and state-of-the-art performance.
What Problem Does This Paper Address?
Current Multimodal Large Language Models (MLLMs) force a frustrating trade-off between data efficiency and computational efficiency:
- Self-attention-based models (e.g., LLaVA): These concatenate visual and text tokens into a single sequence. They are highly data-efficient—requiring minimal training data to align modalities—but their computational complexity explodes quadratically ($O((V+T)^2)$) as high-resolution images introduce thousands of visual tokens ($V$).
- Cross-attention-based models (e.g., Flamingo): These insert dedicated cross-attention layers to keep the text sequence length fixed, making them computationally efficient. However, these new layers introduce millions of fresh, untrained parameters, requiring massive datasets (billions of image-text pairs) to achieve proper modality alignment.
EE-MLLM aims to deliver the best of both worlds: the low data requirements of self-attention methods combined with the high computational speed of cross-attention methods.
Methods
The authors introduce two architectural innovations to modify the standard LLM decoder layer:
- Composite Attention Module: Standard self-attention computes interactions across all tokens (visual-to-visual, text-to-text, and cross-modal). EE-MLLM completely eliminates the intra-visual token attention, arguing that a vision encoder already handles visual relationships. Instead, text tokens serve as queries ($Q$), while the concatenated visual and text tokens serve as keys ($K$) and values ($V$). This keeps the query sequence length short (equal to text length $T$) and cuts out heavy quadratic visual-visual overhead.
- Weight-Reusing Aligner: To avoid adding new learnable parameters, EE-MLLM reuses the existing weights of the LLM layer (the value matrix $W_v$, output matrix $W_o$, and the Feed-Forward Network) to project and align visual tokens into the LLM's feature space at every layer.
The authors also present EE-MLLM-F, a training-free variant. It allows developers to take an existing self-attention model (like LLaVA-v1.5) and drop-in the composite attention mechanism into its deeper layers (e.g., layers 16–31), yielding instant inference speedups without any additional training.
Datasets
- Pre-training: The model uses the standard
blip-558kdataset for a single epoch to train the initial projector. - Fine-tuning: A 3-million sample mixture is used, combining general instruction data (
ShareGPT4V,LVIS-Instruct4V,LAION-GPT4V,TextOCR-GPT4V,Localized Narratives,IconQA) with text-centric/fine-grained datasets (DVQA,PlotQA,CLEVR,DocVQA,ChartQA,ScienceQA), alongside text-only and proprietary in-house data. - Evaluation: The model is benchmarked across general capabilities (
MMBench-EN,MME,ScienceQA,HallusionBench,MMMU,CCBench,SeedBench,BLINK) and fine-grained visual tasks (AI2D,OCRBench,TextVQA,ChartQA,Seed2 Plus).
Key Insights and Ideas
- Visual Self-Attention inside the LLM is Redundant: The core premise is that computing attention between visual tokens inside the LLM decoder is a waste of compute. The vision encoder (e.g., SigLIP) has already contextualized the visual features, and subsequent text-to-visual attention naturally aggregates multi-modal information.
- LLM Layers are Natural Aligners: Instead of adding specialized cross-attention blocks that require billions of samples to train, the existing projection matrices inside a pre-trained LLM can be repurposed to align visual features dynamically across layers.
- Deep Layers are Sparser: The success of the training-free variant (EE-MLLM-F) confirms that visual attention becomes highly sparse in deeper layers of standard MLLMs, allowing aggressive compute cutting later in the network without sacrificing accuracy.
Key Results
- Massive Speedup in Prefilling: For a single 980×980 image, EE-MLLM reduces prefilling time from 277 ms (LLaVA) to just 79 ms on a single NVIDIA H800 GPU. The gap widens drastically with multiple images (e.g., 158 ms vs 1086 ms for two images).
- FLOP Reduction: EE-MLLM requires only 76% of the FLOPs needed by standard self-attention methods for high-resolution inputs.
- Top-Tier Performance: Despite the efficiency gains, it scores 70.4 on MMBench and 1528.1 on MME, outperforming LLaVA-v1.6. On fine-grained tasks like TextVQA and ChartQA, it beats LLaVA-v1.6 by 4.6 and 13.0 points respectively.
Limitations and Future Work
The computational advantage of EE-MLLM primarily shines during the prefilling stage (processing the initial visual and text inputs). During the token generation (decoding) phase, the speed advantage relative to standard models gradually diminishes because decoding is dominated by autoregressive text generation.
The authors suggest that future work should focus on optimizing the decoding phase or extending this composite attention mechanism to video-language models, where token counts are even more extreme.
Summary updated