Abstract
Training Multimodal Large Language Models (MLLMs) is significantly hindered by "Modality Composition Incoherence," where varying data types (audio, image, text) lead to massive load imbalances across GPUs. OrchMLLM introduces a novel training framework centered on a "Batch Post-Balancing" strategy. By rearranging data across GPUs after sampling, OrchMLLM eliminates idle time caused by heavy batches. Experimental results show a 3.1× throughput increase over Megatron-LM and a Model FLOPs Utilization (MFU) of 41.6% on a cluster of 2,560 H100 GPUs, proving that the minimal overhead of data shuffling is a negligible price for maximizing hardware efficiency.
Introduction: The Challenge of Modality Composition Incoherence
While standard Large Language Models (LLMs) primarily manage varying text lengths, MLLMs must simultaneously process text, high-resolution images, and long audio clips. This complexity introduces Modality Composition Incoherence: the proportion of different modalities varies wildly between training examples.
In a standard Data Parallel (DP) setup, different GPUs process different mini-batches. If one GPU receives a "heavy" batch (e.g., multiple high-resolution images) while another receives a "light" batch, the latter sits idle waiting for the former to synchronize. This leads to poor GPU utilization and significantly slower training iterations. Existing "Pre-Balancing" methods attempt to solve this during data loading, but balancing multiple modalities simultaneously is a complex multi-objective optimization problem that these methods fail to address effectively.
Methodology: Batch Post-Balancing
The core innovation of OrchMLLM is Batch Post-Balancing. Rather than attempting to select a perfectly balanced batch initially, the system allows GPUs to sample data randomly and then performs a strategic "swap" before computation begins. This is made possible by the consequence-invariant property: as long as the global batch remains the same, the specific GPU processing an example does not change the final gradients or model convergence.
System Architecture
The framework consists of several key components designed to minimize both computation imbalance and communication overhead:
- MLLM Global Orchestrator & Dispatchers: These manage data flow across different model phases (vision encoders, audio encoders, and the LLM backbone). The system treats rearrangement as a load-balancing problem (similar to the Subset Sum Problem), using approximation algorithms to find an optimal distribution quickly.
- Node-wise All-to-All Communicator: To mitigate the cost of moving data, OrchMLLM prioritizes high-speed intra-node connections (NVLink) over slower inter-node connections (Ethernet/InfiniBand).
- Rearrangement Composition: This mathematical optimization combines multiple data-shuffling steps into a single operation, effectively halving the communication overhead.
Evaluation and Key Results
The authors evaluated OrchMLLM using a mixture of multimodal datasets, including LLaVA-1.5 (vision), Librispeech, and AIR-Bench (audio), to simulate real-world incoherent training data. The framework was tested on models ranging from 10B to 84B parameters.
- Throughput & Efficiency: OrchMLLM achieved a Model FLOPs Utilization (MFU) of 41.6% when training an 84B model on 2,560 H100 GPUs. It outperformed the industry-standard Megatron-LM by up to 3.1× in training throughput.
- Ablation Studies: Compared to a baseline without balancing, OrchMLLM improved MFU by 1.5× to 2.0×, confirming that modality incoherence was the primary bottleneck.
- Scalability: Communication overhead remained consistently low, accounting for less than 2% of total iteration time even as the cluster scaled to thousands of GPUs.
Conclusion
OrchMLLM demonstrates that decoupling data balancing from sampling is a highly effective strategy for MLLM training. By moving the balancing act to the post-sampling phase, the framework transforms a difficult multi-objective optimization problem into a series of manageable single-objective ones. While currently tailored for Transformer-based architectures, the underlying principle of Batch Post-Balancing provides a scalable foundation for future models incorporating even more diverse modalities like video and 3D data.
Summary updated