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

Read full text
Authors: Juntao Zhao, Qi Cheng Lu, Wei Jia, Borui Wan, Lei Zuo, Junda Feng, Jianyu Jiang, Yangrui Chen, Shuaishuai Cao, Jialing He, Kaihua Jiang, Yuanzhe Hu
+4 more Shibiao Nong, Yanghua Peng, Haibin Lin, Chuan Wu
Cited by: 0

Abstract

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.

Fields of Study & Subjects

Advanced Data Processing Techniques Machine Learning and Data Classification Advanced Computational Techniques and Applications

Publication details

Pages
1–18
Publication date
24 April 2026
Language
EN