mlsanityData to 14 Oct 2026

MegaScale-Data: Scaling Dataloader for Multisource Large Foundation Model Training

arXiv 2504.09844 ↗First posted 14 Apr 2025cs.DC cs.AIcited by 4

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

  1. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
  2. 2017Proximal Policy Optimization Algorithmscited by 15,215
  3. 2024The Llama 3 Herd of Modelscited by 14,715
  4. 2024Qwen2-VL: Enhancing Vision-Language Model's Perception of the World at Any Resolutioncited by 4,234
  5. 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,673
  6. 2019Megatron-LM: Training Multi-Billion Parameter Language Models Using Model Parallelismcited by 1,868
  7. 2021LAION-400M: Open Dataset of CLIP-Filtered 400 Million Image-Text Pairscited by 1,555
  8. 2023Extending Context Window of Large Language Models via Positional Interpolationcited by 740
  9. 2023PyTorch FSDP: Experiences on Scaling Fully Sharded Data Parallelcited by 660
  10. 2024DeepSeek LLM: Scaling Open-Source Language Models with Longtermismcited by 642
  11. 2021Efficient Large-Scale Language Model Training on GPU Clusters Using Megatron-LMcited by 632
  12. 2017Ray: A Distributed Framework for Emerging AI Applicationscited by 527
24 more
  1. 2023Ring Attention with Blockwise Transformers for Near-Infinite Contextcited by 457
  2. 2022Reducing Activation Recomputation in Large Transformer Modelscited by 302
  3. 2018Horovod: fast and easy distributed deep learning in TensorFlowcited by 279
  4. 2023Patch n' Pack: NaViT, a Vision Transformer for any Aspect Ratio and Resolutioncited by 229
  5. 2024Data Mixing Laws: Optimizing Data Mixtures by Predicting Language Modeling Performancecited by 184
  6. 2023Skill-it! A Data-Driven Skills Framework for Understanding and Training Language Modelscited by 121
  7. 2024MegaScale: Scaling Large Language Model Training to More Than 10,000 GPUscited by 112
  8. 2020PyTorch Distributed: Experiences on Accelerating Data Parallel Trainingcited by 90
  9. 2022Pathways: Asynchronous Distributed Dataflow for MLcited by 82
  10. 2024Infinite-LLM: Efficient LLM Service for Long Context with DistAttention and Distributed KVCachecited by 73
  11. 2024Adaptive Data Optimization: Dynamic Sample Selection with Scaling Lawscited by 47
  12. 2024Characterization of Large Language Model Development in the Datacentercited by 46
  13. 2021tf.data: A Machine Learning Data Processing Frameworkcited by 41
  14. 2021The Stability-Efficiency Dilemma: Investigating Sequence Length Warmup for Training GPT Modelscited by 36
  15. 2021PyTorchVideo: A Deep Learning Library for Video Understandingcited by 32
  16. 2021Understanding Data Storage and Ingestion for Large-Scale Deep Recommendation Model Trainingcited by 28
  17. 2022tf.data service: A Case for Disaggregating ML Input Data Processingcited by 16
  18. 2023Tenplex: Dynamic Parallelism for Deep Learning using Parallelizable Tensor Collectionscited by 16
  19. 2024DistTrain: Addressing Model and Data Heterogeneity with Disaggregated Training for Multimodal Large Language Modelscited by 16
  20. 2024Optimus: Accelerating Large-Scale Multi-Modal LLM Training by Bubble Exploitationcited by 14
  21. 2025ByteScale: Efficient Scaling of LLM Training with a 2048K Context Length on More Than 12,000 GPUscited by 10
  22. 2024cedar: Optimized and Unified Machine Learning Input Data Pipelinescited by 6
  23. 2023An Empirical Evaluation of Columnar Storage Formatscited by 5
  24. 2025The Streaming Batch Model for Efficient and Fault-Tolerant Heterogeneous Executioncited by 3

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 1; 2026: 3.

4 papers.