Optimus: Accelerating Large-Scale Multi-Modal LLM Training by Bubble Exploitation

Weiqi Feng, Yangrui Chen, Shaoyu Wang, Yanghua Peng, Haibin Lin, Minlan Yu · DOI

Abstract

Training state-of-the-art Multimodal Large Language Models (MLLMs) at scale is hindered by significant hardware underutilization. Standard 3D parallelism creates "bubbles"—idle GPU periods—that can waste nearly half of available compute cycles. We present Optimus, a distributed training system that accelerates MLLM training by strategically scheduling encoder computations within these idle windows. By decoupling parallelization plans for encoders and LLM backbones and employing kernel-level scheduling, Optimus achieves over a 20% training speedup for massive models like GPT-175B on thousands of GPUs with minimal memory overhead.

Introduction

The development of advanced Multimodal Large Language Models (MLLMs), such as GPT-4V and Gemini, requires massive computational resources. To manage these workloads, researchers typically employ 3D Parallelism, a combination of Data (DP), Pipeline (PP), and Tensor (TP) parallelism. However, this approach is fundamentally inefficient for multimodal architectures.

The primary bottleneck is the emergence of "bubbles"—periods where GPUs sit idle while waiting for data from other pipeline stages or for cross-GPU communication to synchronize. In large-scale MLLM training, these bubbles can account for up to 48% of GPU cycles. Traditional frameworks exacerbate this by treating the specialized encoders (for images, audio, etc.) and the massive LLM backbone as a single, unified pipeline. Because the LLM backbone is orders of magnitude larger than the encoders, this leads to severe load imbalances and wasted capacity.

Figure 2: Pipeline schedule highlighting various types of GPU bubbles (idle time) during distributed training.

Methodology

Optimus addresses these inefficiencies by treating the encoder and LLM as distinct entities that can be scheduled independently to maximize hardware utilization. The system introduces three core innovations:

1. Separate Parallel Plans and Colocation

Standard training systems apply a single parallel strategy to the entire model. Optimus, however, searches for different optimal 3D parallel plans for the encoder and the LLM. Crucially, it ensures that every GPU holds the model states for both components. This colocation allows any GPU to execute encoder tasks during the specific idle periods generated by the LLM's pipeline stages.

Figure 5: Optimus employs distinct parallelization strategies for encoders and the LLM backbone to maximize hardware utilization.

2. Dual-Stage Dependency Management

MLLMs have strict data dependencies; for instance, an encoder forward pass must complete before the LLM can process the resulting tokens. Optimus manages this through a two-tier system: "local scheduling" handles internal encoder timing, while "global ordering" ensures the encoder and LLM hand off data at precise microbatch-level intervals, preventing synchronization stalls.

3. Kernel-Level Bubble Exploitation

Many bubbles, particularly those caused by Tensor Parallelism (TP) communication, are extremely brief, often lasting less than a millisecond. A full encoder layer is too large to fit into these gaps. Optimus solves this by decomposing encoder layers into smaller kernels. This fine-grained approach allows the system to slot tiny fragments of computation into even the briefest idle windows, effectively getting the encoder computation for "free."

Evaluation and Results

Optimus was evaluated using a production cluster of up to 3,072 NVIDIA Hopper GPUs connected via NVLink and RDMA. The testing focused on massive configurations, including Vision Transformers (ViT) up to 22B parameters and LLM backbones like Llama-70B and GPT-175B.

  • Significant Speedups: In the 3,072-GPU environment, Optimus accelerated the training of a ViT-22B + GPT-175B model by 20.5% to 21.3% compared to state-of-the-art baselines like Megatron-LM.
  • Improved Utilization: Optimus maintained a stable Model Flops Utilization (MFU) of approximately 34.6%. In contrast, traditional baselines saw their efficiency drop significantly as they scaled to more GPUs.
  • Memory Efficiency: While colocating encoder and LLM states increases memory demand, the overhead is manageable. Because encoders are relatively small compared to the LLM backbone, the actual memory increase is less than 12%.

Discussion and Future Work

The core insight of Optimus is that encoders, while computationally "cheap" relative to the LLM, are necessary for every step. By treating them as a "filler" workload, the system hides their cost entirely. Furthermore, the move from layer-level to kernel-level scheduling is critical for capturing the frequent but short-lived TP bubbles that previous works ignored.

Currently, Optimus relies on offline profiling to build its schedule. Future iterations may incorporate "Online Scheduling" to adjust to real-time execution "jitter" or fluctuations in cluster performance. Additionally, the authors aim to extend this framework to more complex, multi-branch computation graphs where data flows between modalities multiple times during a single pass.

Summary updated

BibTeX
@inproceedings{feng2025optimus,
  author = {Weiqi Feng and Yangrui Chen and Shaoyu Wang and Yanghua Peng and Haibin Lin and Minlan Yu},
  title = {{Optimus: Accelerating Large-Scale Multi-Modal LLM Training by Bubble Exploitation}},
  booktitle = {USENIX ATC},
  year = {2025},
}
Figure