Data Engineering and Distributed Training for Large Language Models: A Review of Methods and Trade-offs
Abstract
Large language model pretraining requires decisions about both training data and the resources used to process them. This narrative review examines how data engineering and distributed training jointly shape the training workload. Following a brief account of the transition from feature engineering to Transformers, it reviews corpus preparation, parallel strategies, memory optimization, and operational costs. Controlled studies are used to examine individual effects, while public model reports illustrate complete training configurations. The synthesis identifies three connections: data curation and mixture design determine where training effort is spent; sequence construction links learning context with computational demand; and state partitioning and execution optimizations expand feasible workloads. These connections explain why useful progress must be assessed through model quality, execution speed, and memory demand together. The practical implications are to evaluate data choices against a stated learning objective, keep prediction targets and context comparable across implementations, and count preparation and recovery costs alongside training. Open questions concern the transfer of data choices across scales, long-context organization, and sustainable data supply.
References
- LeCun, Y., Bengio, Y., & Hinton, G. (2015). Deep learning.Nature, 521(7553), 436–444. https://doi.org/10.1038/nature14539
- Vaswani, A., Shazeer, N., Parmar, N., et al. (2017). Attention is all you need.Advances in Neural Information Processing Systems, 30. arXiv:1706.03762
- Wang, Z., Zhong, W., Wang, Y., et al. (2024). Data management for training large language models: A survey. arXiv:2312.01700v3
- Zhou, X., He, J., Zhou, W., et al. (2025). A survey of LLM × DATA. arXiv:2505.18458
- Schmidt, V., Nguyen, H. H., Jung, C., et al. (2026). Unifying data, memory, and compute efficiency in LLM training: A survey.IEEE Transactions on Artificial Intelligence. https://doi.org/10.1109/TAI.2026.3702625
- Working Group on the National Data Resources Statistical Survey. (2026). National data resource survey report (2025) [in Chinese]. https://www.nda.gov.cn/sjj/ywpd/sjzy/0429/ff808081-9b5e8626-019d-d86d1ac9-115b.pdf
- Hoffmann, J., Borgeaud, S., Mensch, A., et al. (2022). Training compute-optimal large language models. arXiv:2203.15556.
- Rajbhandari, S., Rasley, J., Ruwase, O., et al. (2020). ZeRO: Memory optimizations toward training trillion parameter models. InSC, 1–16. arXiv:1910.02054.
- Narayanan, D., Shoeybi, M., Casper, J., et al. (2021). Efficient large-scale language model training on GPU clusters using Megatron-LM. InSC, 1–15. arXiv:2104.04473.
- Rumelhart, D. E., Hinton, G. E., & Williams, R. J. (1986). Learning representations by back-propagating errors.Nature, 323, 533–536. DOI: 10.1038/323533a0.
- Krizhevsky, A., Sutskever, I., & Hinton, G. E. (2012). ImageNet classification with deep convolutional neural networks.Advances in Neural Information Processing Systems, 25. https://proceedings.neurips.cc/paper/2012/hash/c399862d3b9d6b76c8436e924a68c45b-Abstract.html.
- Hochreiter, S., & Schmidhuber, J. (1997). Long short-term memory.Neural Computation, 9(8), 1735–1780. DOI: 10.1162/neco.1997.9.8.1735.
- Devlin, J., Chang, M. W., Lee, K., et al. (2019). BERT: Pre-training of deep bidirectional transformers for language understanding. InProceedings of NAACL-HLT(pp. 4171–4186). DOI: 10.18653/v1/N19-1423.
- Brown, T. B., Mann, B., Ryder, N., et al. (2020). Language models are few-shot learners. InNeurIPS, 33, 1877–1901. arXiv: 2005.14165.
- Qiu, X., Sun, T., Xu, Y., et al. (2020). Pre-trained models for natural language processing: A survey.Science China Technological Sciences, 63(10), 1872–1897. DOI: 10.1007/s11431-020-1647-3.
- Dosovitskiy, A., Beyer, L., Kolesnikov, A., et al. (2021). An image is worth 16x16 words: Transformers for image recognition at scale. InICLR. arXiv: 2010.11929.
- Kaplan, J., McCandlish, S., Henighan, T., et al. (2020). Scaling laws for neural language models. arXiv: 2001.08361.
- Touvron, H., Lavril, T., Izacard, G., et al. (2023). LLaMA: Open and efficient foundation language models. arXiv: 2302.13971.
- Grattafiori, A., Dubey, A., Jauhri, A., et al. (2024). The Llama 3 herd of models. arXiv:2407.21783.
- DeepSeek-AI. (2024). DeepSeek-V3 technical report. arXiv:2412.19437.
- Lee, K., Ippolito, D., Nystrom, A., et al. (2022). Deduplicating training data makes language models better. InProceedings of ACL(pp. 8424–8445). DOI: 10.18653/v1/2022.acl-long.577.
- Li, J., Fang, A., Smyrnis, G., et al. (2024). DataComp-LM: In search of the next generation of training sets for language models. InNeurIPS, 37, 14200–14282. arXiv:2406.11794.
- Xie, S. M., Pham, H., Dong, X., et al. (2023). DoReMi: Optimizing data mixtures speeds up language model pretraining. InNeurIPS, 36, 69798–69818. arXiv:2305.10429.
- Team OLMo, Walsh, P., Soldaini, L., et al. (2025). 2 OLMo 2 furious. arXiv:2501.00656v3.
- Villalobos, P., Ho, A., Sevilla, J., et al. (2024). Position: Will we run out of data? Limits of LLM scaling based on human-generated data. InICML. PMLR, 235, 49523–49544.
- Shumailov, I., Shumaylov, Z., Zhao, Y., et al. (2024). AI models collapse when trained on recursively generated data.Nature, 631(8022), 755–759. DOI: 10.1038/s41586-024-07566-y.
- Micikevicius, P., Narang, S., Alben, J., et al. (2018). Mixed precision training. InICLR. arXiv:1710.03740.
- Dao, T., Fu, D. Y., Ermon, S., et al. (2022). FlashAttention: Fast and memory-efficient exact attention with IO-awareness.Advances in Neural Information Processing Systems, 35, 16344–16359. arXiv:2205.14135.
- Jiang, Z., Lin, H., Zhong, Y., et al. (2024). MegaScale: Scaling large language model training to more than 10,000 GPUs. InUSENIX NSDI, 745–760. https://www.usenix.org/conference/nsdi24/presentation/jiang-ziheng.
- Bommasani, R., Hudson, D. A., Adeli, E., et al. (2021). On the opportunities and risks of foundation models. arXiv:2108.07258.