Multimodal Large Language Models (MLLMs) have shown impressive capabilities in reasoning, yet come with substantial computational cost, limiting their deployment in resource-constrained settings. Despite recent efforts on improving the efficiency of MLLMs, prior solutions fall short in responding to varying runtime conditions, in particular changing resource availability (e.g., contention due to the execution of other programs on the device). To bridge this gap, we introduce AdaLLaVA, an adaptive inference framework that learns to dynamically reconfigure operations in an MLLM during inference, accounting for the input data and a latency budget. We conduct extensive experiments across benchmarks involving question-answering, reasoning, and hallucination. Our results show that AdaLLaVA effectively adheres to input latency budget, achieving varying accuracy and latency tradeoffs at runtime. Further, we demonstrate that AdaLLaVA adapts to both input latency and content, can be integrated with token selection for enhanced efficiency, and generalizes across MLLMs.
Our key contributions are three folds.
During inference, model is given:
Overview of AdaLLaVA:
AdaLlava demonstrates competitive performance with notable efficiency improvements across all benchmarks, adhering to the specified latency budgets . AdaLlava also complements to existing token selection approaches.
Adaptivity to input latency budget. AdaLLaVA exhibits the ability to complete inference under varying latency requirements using a single model.
AdaLLaVA can empower a base MLLM with static compute footprint (i.e., LLaVA-1.5, PruMerge+, or FastV as individual dots) to adapt to varying accuracy-latency tradeoffs (i.e. the corresponding curves). With varying latency budgets from 50% to 100%, AdaLLaVA effectively trades compute with accuracy.
Latency token shows different behavior given different image. The key-query attention scores of the latency token and the input visual tokens with different text questions are different. Our model dynamically adjust its computational focus based on the query type.
Latency token shows different behavior given different image. The key-query attention scores of the latency token and the input visual tokens with different text questions are different. Our model dynamically adjust its computational focus based on the query type.
Generalization to other MLLMs. AdaLLaVA can generalize to other MLLMs beyond LLaVA.
AdaLLaVA can empower Mipha-3B, a lightweight MLLM built on Phi-2.7B and achieves similar results as LLaVA 1.5.
Visualization for latency token across layers. Evolution of the attention score between latency token and visual tokens from layers 12 to 16
The latency token progressively gathers key information from the input visual tokens for scheduling.
@article{zhuoyan2025adallava,
title={Learning to Inference Adaptively for Multimodal Large Language Models},
author={Xu, Zhuoyan and Nguyen, Khoi Duc and Mukherjee, Preeti and Bagchi, Saurab and Chaterji, Somali and Liang, Yingyu and Li, Yin},
journal={arXiv preprint arXiv:2503.10905},
year={2025}
}
This website is adapted from Nerfies, licensed under a Creative Commons Attribution-ShareAlike 4.0 International License. We thank the LLaMA team for giving us access to their models, and open-source projects, including Alpaca and Vicuna.
Usage and License Notices: The data, code and checkpoint is intended and licensed for research use only. They are also restricted to uses that follow the license agreement of CLIP, LLaMA, Vicuna and GPT-4. The dataset is CC BY NC 4.0 (allowing only non-commercial use) and models trained using the dataset should not be used outside of research purposes.
Related Links: [CLIP] [LLaVA] [Instruction Tuning with GPT-4]