DataFlex: A Unified Framework for Data-Centric Dynamic Training of Large Language Models
Not on the map. Why?
Abstract (arXiv)
Data-centric training has emerged as a promising direction for improving large language models (LLMs) by optimizing not only model parameters but also the selection, composition, and weighting of training data during optimization. However, existing approaches to data selection, data mixture optimization, and data reweighting are often developed in isolated codebases with inconsistent interfaces, hindering reproducibility, fair comparison, and practical integration. In this paper, we present DataFlex, a unified data-centric dynamic training framework built upon LLaMA-Factory. DataFlex supports three major paradigms of dynamic data optimization: sample selection, domain mixture adjustment, and sample reweighting, while remaining fully compatible with the original training workflow. It provides extensible trainer abstractions and modular components, enabling a drop-in replacement for standard LLM training, and unifies key model-dependent operations such as embedding extraction, inference, and gradient computation, with support for large-scale settings including DeepSpeed ZeRO-3. We conduct comprehensive experiments across multiple data-centric methods. Dynamic data selection consistently outperforms static full-data training on MMLU across both Mistral-7B and Llama-3.2-3B. For data mixture, DoReMi and ODM improve both MMLU accuracy and corpus-level perplexity over default proportions when pretraining Qwen2.5-1.5B on SlimPajama at 6B and 30B token scales. DataFlex also achieves consistent runtime improvements over original implementations. These results demonstrate that DataFlex provides an effective, efficient, and reproducible infrastructure for data-centric dynamic training of LLMs.
Key facts. Cited by 4 papers in the map (data through 7 Oct 2026). Builds on 43 of its 55 references that are in the map. First posted on arXiv 27 Mar 2026.
Builds on
43 of 55 references.
References · 43
- 2023GPT-4 Technical Reportcited by 18,132
- 2024The Llama 3 Herd of Modelscited by 14,192
- 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,084
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
- 2020Measuring Massive Multitask Language Understandingcited by 7,768
- 2018Think you have Solved Question Answering? Try ARC, the AI2 Reasoning Challengecited by 4,710
- 2021Program Synthesis with Large Language Modelscited by 3,509
- 2023Qwen Technical Reportcited by 3,273
- 2023FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioningcited by 2,551
- 2020DeBERTa: Decoding-enhanced BERT with Disentangled Attentioncited by 2,157
- 2019BoolQ: Exploring the Surprising Difficulty of Natural Yes/No Questionscited by 2,140
31 more
- 2022Challenging BIG-Bench Tasks and Whether Chain-of-Thought Can Solve Themcited by 1,767
- 2024LlamaFactory: Unified Efficient Fine-Tuning of 100+ Language Modelscited by 1,442
- 2018Learning to Reweight Examples for Robust Deep Learningcited by 670
- 2024LESS: Selecting Influential Data for Targeted Instruction Tuningcited by 514
- 2023Sheared LLaMA: Accelerating Language Model Pre-training via Structured Pruningcited by 408
- 2023DoReMi: Optimizing Data Mixtures Speeds Up Language Model Pretrainingcited by 385
- 2023What Makes Good Data for Alignment? A Comprehensive Study of Automatic Data Selection in Instruction Tuningcited by 354
- 2024RedPajama: an Open Dataset for Training Large Language Modelscited by 178
- 2024RegMix: Data Mixture as Regression for Language Model Pre-trainingcited by 172
- 2024LLaMA-MoE: Building Mixture-of-Experts from LLaMA with Continual Pre-trainingcited by 122
- 2023#InsTag: Instruction Tagging for Analyzing Supervised Fine-tuning of Large Language Modelscited by 108
- 2023MoDS: Model-oriented Data Selection for Instruction Tuningcited by 107
- 2023DoGE: Domain Reweighting with Generalization Estimationcited by 87
- 2023Efficient Online Data Mixing For Language Model Pre-Trainingcited by 77
- 2024A Survey of Multimodal Large Language Model from A Data-centric Perspectivecited by 73
- 2024Adaptive Data Optimization: Dynamic Sample Selection with Scaling Lawscited by 46
- 2024Data Selection via Optimal Control for Language Modelscited by 38
- 2023Self-Influence Guided Data Reweighting for Language Model Pre-trainingcited by 37
- 2023Rethinking the Instruction Quality: LIFT is What You Needcited by 33
- 2024Aioli: A Unified Optimization Framework for Language Model Data Mixingcited by 33
- 2024TSDS: Data Selection for Task-Specific Model Finetuningcited by 28
- 2025DataFlow: An LLM-Driven Framework for Unified Data Preparation and Workflow Automation in the Era of Data-Centric AIcited by 22
- 2024Dynamic Data Mixing Maximizes Instruction Tuning for Mixture-of-Expertscited by 19
- 2026OPUS: Towards Efficient and Principled Data Selection in Large Language Model Pre-training in Every Iterationcited by 17
- 2024SelectLLM: Can LLMs Select Important Instructions to Annotate?cited by 16
- 2025Preference Curriculum: LLMs Should Always Be Pretrained on Their Preferred Datacited by 16
- 2025Dynamic Loss-Based Sample Reweighting for Improved Large Language Model Pretrainingcited by 16
- 2024Take the Bull by the Horns: Hard Sample-Reweighted Continual Training Improves LLM Generalizationcited by 12
- 2025Data Efficacy for Language Model Trainingcited by 8
- 2026Towards Next-Generation LLM Training: From the Data-Centric Perspectivecited by 3
- 2025Mixtera: A Data Plane for Foundation Model Trainingcited by 2
Built on by
Citing papers per year: 2026: 4.
4 papers.
- 2026OpenWorldLib: A Unified Codebase and Definition of Advanced World Modelscited by 3
- 2026DataMaster: Data-Centric Autonomous AI Researchcited by 3
- 2026DomainPilot: Domain-Level Loss-Guided Two-Stage Data Mixture Optimization for Efficient Language Model Fine-Tuningcited by 0
- 2026DataFlex-RL: An Evaluation Platform for RLVR Data Policiescited by 0
- 2026DataFlex-RL: An Evaluation Platform for RLVR Data Policies5 Sep 2026
- 2026DomainPilot: Domain-Level Loss-Guided Two-Stage Data Mixture Optimization for Efficient Language Model Fine-Tuning24 Jul 2026
- 2026DataMaster: Data-Centric Autonomous AI Research11 May 2026
- 2026OpenWorldLib: A Unified Codebase and Definition of Advanced World Models6 Apr 2026