MegaScale-Data: Scaling Dataloader for Multisource Large Foundation Model Training
Not on the map. Why?
Abstract (arXiv)
Modern frameworks for training large foundation models (LFMs) employ dataloaders in a data-parallel manner, with each loader processing a disjoint subset of training data. When preparing data for LFM training that originates from multiple, distinct sources, two fundamental challenges arise. First, due to the quadratic computational complexity of the attention operator, the non-uniform sample distribution over data-parallel ranks leads to significant workload imbalance among dataloaders, degrading the training efficiency. Second, supporting diverse data sources requires per-dataset file access states that are redundantly replicated across parallel loaders, consuming excessive memory. This also hinders dynamic data mixing (e.g., curriculum learning) and causes redundant access/memory overhead in hybrid parallelism. We present MegaScale-Data, an industrial-grade distributed data loading architecture for multisource LFMs training, with three key innovations: (1) Disaggregated data preprocessing via role-specific actors (Source Loaders/Data Constructors) to eliminate source and parallelism redundant data access and ensure multisource scalability. (2) Centralized and declarative data plane for load-time multisource orchestration, such as long-short context, multimodality, and curriculum learning. (3) Multi-level auto-partitioning and scaling mechanism for source loaders under heterogeneous preprocessing costs. We also contribute our designs and operational experience in deployment and fault tolerance. MegaScale-Data achieves up to: (1) 4.5x end-to-end training throughput improvement, and (2) 13.5x reduction in CPU memory usage.
Key facts. Cited by 4 papers in the map (data through 14 Oct 2026). Builds on 36 of its 79 references that are in the map. First posted on arXiv 14 Apr 2025.
Builds on
36 of 79 references.
References · 36
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
- 2017Proximal Policy Optimization Algorithmscited by 15,215
- 2024The Llama 3 Herd of Modelscited by 14,715
- 2024Qwen2-VL: Enhancing Vision-Language Model's Perception of the World at Any Resolutioncited by 4,234
- 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,673
- 2019Megatron-LM: Training Multi-Billion Parameter Language Models Using Model Parallelismcited by 1,868
- 2021LAION-400M: Open Dataset of CLIP-Filtered 400 Million Image-Text Pairscited by 1,555
- 2023Extending Context Window of Large Language Models via Positional Interpolationcited by 740
- 2023PyTorch FSDP: Experiences on Scaling Fully Sharded Data Parallelcited by 660
- 2024DeepSeek LLM: Scaling Open-Source Language Models with Longtermismcited by 642
- 2021Efficient Large-Scale Language Model Training on GPU Clusters Using Megatron-LMcited by 632
- 2017Ray: A Distributed Framework for Emerging AI Applicationscited by 527
24 more
- 2023Ring Attention with Blockwise Transformers for Near-Infinite Contextcited by 457
- 2022Reducing Activation Recomputation in Large Transformer Modelscited by 302
- 2018Horovod: fast and easy distributed deep learning in TensorFlowcited by 279
- 2023Patch n' Pack: NaViT, a Vision Transformer for any Aspect Ratio and Resolutioncited by 229
- 2024Data Mixing Laws: Optimizing Data Mixtures by Predicting Language Modeling Performancecited by 184
- 2023Skill-it! A Data-Driven Skills Framework for Understanding and Training Language Modelscited by 121
- 2024MegaScale: Scaling Large Language Model Training to More Than 10,000 GPUscited by 112
- 2020PyTorch Distributed: Experiences on Accelerating Data Parallel Trainingcited by 90
- 2022Pathways: Asynchronous Distributed Dataflow for MLcited by 82
- 2024Infinite-LLM: Efficient LLM Service for Long Context with DistAttention and Distributed KVCachecited by 73
- 2024Adaptive Data Optimization: Dynamic Sample Selection with Scaling Lawscited by 47
- 2024Characterization of Large Language Model Development in the Datacentercited by 46
- 2021tf.data: A Machine Learning Data Processing Frameworkcited by 41
- 2021The Stability-Efficiency Dilemma: Investigating Sequence Length Warmup for Training GPT Modelscited by 36
- 2021PyTorchVideo: A Deep Learning Library for Video Understandingcited by 32
- 2021Understanding Data Storage and Ingestion for Large-Scale Deep Recommendation Model Trainingcited by 28
- 2022tf.data service: A Case for Disaggregating ML Input Data Processingcited by 16
- 2023Tenplex: Dynamic Parallelism for Deep Learning using Parallelizable Tensor Collectionscited by 16
- 2024DistTrain: Addressing Model and Data Heterogeneity with Disaggregated Training for Multimodal Large Language Modelscited by 16
- 2024Optimus: Accelerating Large-Scale Multi-Modal LLM Training by Bubble Exploitationcited by 14
- 2025ByteScale: Efficient Scaling of LLM Training with a 2048K Context Length on More Than 12,000 GPUscited by 10
- 2024cedar: Optimized and Unified Machine Learning Input Data Pipelinescited by 6
- 2023An Empirical Evaluation of Columnar Storage Formatscited by 5
- 2025The Streaming Batch Model for Efficient and Fault-Tolerant Heterogeneous Executioncited by 3
Built on by
Citing papers per year: 2025: 1; 2026: 3.
4 papers.
- 2025Robust LLM Training Infrastructure at ByteDancecited by 16
- 2026BatchWeave: A Consistent Object-Store-Native Data Plane for Large Foundation Model Trainingcited by 0
- 2026AdaptiveLoad: Towards Efficient Video Diffusion Transformer Trainingcited by 0
- 2026Zephon: Elastic Determinism for Online, Stateful Foundation Model Data Loading Pipelinescited by 0
- 2026Zephon: Elastic Determinism for Online, Stateful Foundation Model Data Loading Pipelines2 Oct 2026
- 2026AdaptiveLoad: Towards Efficient Video Diffusion Transformer Training18 May 2026
- 2026BatchWeave: A Consistent Object-Store-Native Data Plane for Large Foundation Model Training11 May 2026
- 2025Robust LLM Training Infrastructure at ByteDance19 Sep 2025