Abstract
Multimodal Large Language Models (MLLMs) are increasingly central to AI applications, yet their deployment faces significant challenges due to the computational intensity and heterogeneous nature of multimodal workloads. Traditional serving systems, optimized for text, struggle with the "bursty" resource demands of image and video processing. This paper introduces ElasticMM, a specialized serving system that leverages Elastic Multimodal Parallelism (EMP) to decouple text and multimodal requests. By dynamically scaling parallelism across inference stages and implementing modality-aware load balancing, ElasticMM achieves up to a 4.2× reduction in Time-To-First-Token (TTFT) and a 4.5× increase in throughput compared to state-of-the-art systems like vLLM.
1. Introduction
The evolution of models such as Llama 3.2-Vision and Qwen2.5-VL has shifted the paradigm of AI interaction from text-only to rich multimodal inputs. However, serving these models at scale is computationally expensive. Unlike text-only LLMs, MLLMs must handle high-resolution visual data, which introduces massive computational overhead and unpredictable traffic patterns.
Existing serving frameworks often treat multimodal requests as standard text sequences, leading to three primary bottlenecks:
- Resource Contention: Heavy image encoding tasks often block lighter text-only queries when processed on the same hardware.
- Stage Heterogeneity: The MLLM pipeline—comprising image preprocessing, encoding, prefill, and decoding—has varying scaling requirements. Prefilling is compute-bound and benefits from high parallelism, while decoding is memory-bound.
- Context Redundancy: Visual tokens significantly expand the context window, often leading to redundant computations when images are reused across sessions.
To address these issues, we present ElasticMM, a system designed to handle the unique demands of multimodal traffic through elastic resource management.
2. System Design: Elastic Multimodal Parallelism
ElasticMM introduces the concept of Elastic Multimodal Parallelism (EMP), which moves away from static resource allocation in favor of a dynamic, stage-aware approach. The system architecture is built on three core pillars:
2.1 Modality-Aware Load Balancing
ElasticMM separates incoming traffic into independent resource groups: "Text-Only" and "Multimodal." This separation prevents heavy visual processing from stalling text-based interactions. The system employs a proactive/reactive mechanism that shifts GPU resources between these groups in real-time to accommodate sudden spikes in multimodal traffic.
2.2 Elastic Partitioned Scheduling
This component serves as the system's orchestrator, decoupling the various stages of inference. When the system detects a backlog of visual data, it elastically scales up the number of GPUs assigned to the encoding and prefill stages. Conversely, during the decoding stage—where adding more GPUs yields diminishing returns due to communication overhead—the system scales down resources to the minimum required, freeing up compute power for other pending prefill tasks.
2.3 Multimodal Optimizations
To further enhance efficiency, ElasticMM implements:
- Unified Multimodal Prefix Caching: A two-tier cache that stores both visual tokens and text prefixes, ensuring that recurring images or prompts do not require re-encoding.
- Non-blocking Encoding: By treating image encoding as an asynchronous background process, the system ensures the LLM backend remains active, reducing idle time.
3. Experimental Evaluation
3.1 Methodology
ElasticMM was evaluated using two primary datasets designed to simulate production environments:
- VisualWebInstruct: 700k+ samples involving long text and web-based multimodal tasks.
- ShareGPT-4o: 50k images of varying resolutions to test high-intensity visual processing.
The system was benchmarked against vLLM and DistServe on a single-node workstation equipped with 8 NVIDIA A800 GPUs.
3.2 Key Results
The experimental results demonstrate the superiority of elastic scaling in multimodal contexts:
- Latency: ElasticMM reduced TTFT by up to 4.2× on the ShareGPT-4o dataset.
- Throughput: The system achieved 3.2× to 4.5× higher throughput while maintaining strict Service Level Objectives (SLOs).
- Ablation Studies: Modality-aware load balancing alone contributed a 1.8× to 2.3× performance boost, highlighting the importance of separating heterogeneous request types.
4. Discussion and Limitations
A critical insight from this research is that the "burstiness" of vision tasks makes static resource allocation inherently inefficient. Elasticity is not merely an optimization but a requirement for MLLM serving. Furthermore, the researchers provided a formal proof (Appendix B) ensuring that elastic scaling and KV cache migration are mathematically equivalent to standard inference, maintaining model accuracy.
Despite these gains, the current implementation focuses on single-node deployments. Future work will explore multi-node clusters, where communication latency between nodes becomes a more significant factor. Additionally, the authors suggest that combining ElasticMM with lossy techniques, such as token pruning, could yield even greater efficiency gains.
5. Conclusion
ElasticMM represents a significant step forward in MLLM infrastructure. By recognizing the fundamental differences between text and visual data processing, and by implementing a system that can elastically adapt to those differences, ElasticMM provides a scalable solution for the next generation of multimodal AI applications.
Summary updated