D$^3$: Dynamic Directional Graph-Constrained Data Scheduling for LLM Training
Abstract
Lay Summary
Training data is central to optimizing large language models (LLMs), yet most existing scheduling strategies focus solely on adjusting the overall data distribution while ignoring how individual samples interact during training. We argue that these interactions matter: real-world data samples frequently exert directional influence on one another, making the order in which they are presented crucial. Intuitively, prioritizing training units with greater downstream influence should improve learning efficiency. We propose D³, a Dynamic, Directional graph-constrained Data scheduling framework. D³ models the complex interactions among training units as a dynamic influence graph, where edges capture loss-based dependencies between samples. It then solves a constrained optimization problem over this graph to determine the training order, ensuring the data sequence respects the evolving information flow throughout training. Theoretically motivated, D³ achieves consistent improvements over existing scheduling methods across both pre-training and post-training phases. For scalability, D³ employs an efficient approximation algorithm that keeps computational overhead manageable. Code: https://github.com/xuyj233/D3.