Papers
Topics
Authors
Recent
Search
2000 character limit reached

D³: Dynamic Directional Scheduling for LLMs

Updated 12 July 2026
  • D³ is a dynamic, directional data scheduling framework that treats training batches as non-exchangeable, stressing the importance of order in LLM training.
  • It models pairwise batch influences via a dynamic directed graph using first-order and curvature-aware second-order estimates to inform batch ordering.
  • The framework employs scalable techniques like chunking and gradient compression, achieving significant perplexity reductions and improved performance on reasoning tasks.

Searching arXiv for the specified paper and closely related scheduling work to ground the article. arxiv_search(query="(Xu et al., 29 May 2026)", max_results=5, sort_by="submittedDate") arxiv_search(query="D3 Dynamic Directional graph-constrained Data scheduling for LLM training", max_results=10, sort_by="relevance") D3^3, short for Dynamic, Directional graph-constrained Data scheduling, is a data scheduling framework for LLM training that treats training data as non-exchangeable: the utility of a batch depends not only on its intrinsic properties but also on when it is presented relative to other batches. The framework is motivated by the claim that real-world training samples exhibit asymmetric, evolving interactions, so that one batch may lower the future loss of another without the reverse being equally true. D3^3 models these interactions as a dynamic directed influence graph, converts the resulting pairwise preferences into a constrained ordering problem, and executes training according to an approximate solution that is recomputed online during training (Xu et al., 29 May 2026).

1. Conceptual basis and motivation

Most prior data scheduling or reweighting methods are described as focusing on the overall distribution of training data, such as domain proportions or sample difficulty, while neglecting interactions between training units. D3^3 is built on the opposing premise that the order of presentation is itself a primary optimization variable because a batch seen earlier can “prepare” the model in a way that changes the effect of a later batch. In this formulation, the central question is: given the current model state, which batches should be trained first so the whole epoch is most effective? (Xu et al., 29 May 2026)

The operational principle is explicit: if training batch ii now significantly lowers the future loss of batch jj, then ii should precede jj. This shifts the problem from static mixture design to graph-structured scheduling over evolving pairwise dependencies. The framework therefore departs from static curricula and fixed mixture weights by assuming that directional interactions are both asymmetric and state-dependent. A plausible implication is that scheduling quality cannot be reduced to a scalar notion of batch hardness or importance; it depends on relational structure among batches at the current parameter state.

A common misconception is to treat D3^3 as a reweighting method. The formulation indicates otherwise: the method does not primarily change how much data from a source is used, but which batch comes before which other batch. This distinction is substantive because the core signal is not a marginal score assigned to an individual batch, but a directional preference induced by pairwise influence.

2. Training influence prediction and asymmetry

D3^3 defines the interaction between two batches through a look-ahead loss change. Given model parameters θ(t)\theta^{(t)}, the method considers a hypothetical gradient step on batch 3^30: 3^31 where 3^32 is a look-ahead step size used only for influence estimation. The influence of batch 3^33 on batch 3^34 is then

3^35

If 3^36, updating on 3^37 makes 3^38 easier later (Xu et al., 29 May 2026).

Using a second-order Taylor expansion, the paper derives

3^39

The interpretation of this expansion is central. The first-order term is symmetric,

3^30

because it is a gradient inner product. By contrast, the second-order term is generally asymmetric,

3^31

because it depends on the batch-specific Hessian. D3^32 therefore argues that the decisive scheduling signal arises from curvature-aware asymmetry, not merely from gradient similarity.

This framing is significant because it identifies why static or first-order-only heuristics can be insufficient. If pairwise interactions were effectively symmetric, ordering would carry less information than weighting. The explicit asymmetry of the second-order term instead supports the claim that training order matters in a genuinely directional sense.

3. Dynamic influence graph and constrained ordering

At each step 3^33, D3^34 constructs a directed weighted graph

3^35

whose nodes correspond to batches 3^36. An edge 3^37 exists if 3^38, with weight 3^39, and the graph is encoded by

ii0

Because ii1 depends on ii2, the graph changes during training; the framework is therefore explicitly dynamic (Xu et al., 29 May 2026).

To translate pairwise influences into ordering preferences, the method defines the directional advantage matrix

ii3

so that

ii4

If ii5, then training ii6 before ii7 is preferable. The corresponding dominance edge set is

ii8

The schedule is represented by a permutation ii9, and Djj0 seeks

jj1

This is a violation-cost minimization objective. Whenever jj2, the preferred order is jj3 before jj4; if the realized order reverses that relation, the schedule incurs a penalty of jj5. If the dominance graph is acyclic, a topological ordering yields zero cost. If cycles exist, the schedule is a compromise that breaks weaker directional constraints.

A plausible implication is that Djj6 treats scheduling not as rank aggregation from independent batch scores, but as a constrained linearization of a directed relational structure. That distinction explains why the framework emphasizes graph construction and permutation optimization rather than only batch scoring.

4. Approximation, Random-Swap Refinement, and scalable implementation

Because exact permutation search is factorial in jj7, Djj8 uses a heuristic solver called Random-Swap Refinement (RSR). The first stage computes, for each batch jj9,

ii0

The initial ordering sorts batches in descending ii1, where a larger row sum indicates more global advantage as an early batch. The second stage performs up to ii2 random swap trials. For a swap of positions ii3, with batches ii4 and ii5, the change in cost is

ii6

where ii7 is the set of batches between ii8 and ii9. The swap is accepted if jj0. The reported complexity is jj1 for row-sum sorting, jj2 worst case per swap, and jj3 in total (Xu et al., 29 May 2026).

Scalability is addressed through two approximations. First, Djj4 applies chunk-wise internal reordering: instead of scheduling all jj5 batches at once, it samples a chunk jj6 of size jj7, builds the influence graph only within that chunk, and reorders only those batches. This reduces per-step cost from jj8 to roughly jj9. Second, it uses gradient compression and curvature approximation. Batch gradients are projected into a low-dimensional random subspace,

3^30

and the first-order influence is approximated via preserved inner products: 3^31

For second-order information, the framework uses a Hutchinson-style diagonal Hessian estimate and compresses curvature into a scalar

3^32

leading to the efficient approximation

3^33

The paper states that a small number of Hutchinson probes, typically 3^34, is used to balance speed and fidelity.

The online pipeline is correspondingly direct: sample 3^35 batches, compute compressed gradients and curvature estimates, build the directional advantage matrix 3^36, solve for an order using RSR, and perform SGD updates in that order. The method is therefore a dynamic online scheduler, not a preprocessing step performed once before training.

5. Theoretical analysis and interpretive scope

The theoretical analysis is presented in a simplified linear regression setting. There, the loss reduction from two samples depends on their interaction, and the difference between the losses obtained by the two possible orders is

3^37

This expression shows that the order of two examples can change the resulting loss and that the effect depends on both sample similarity and residuals (Xu et al., 29 May 2026).

The paper further proves a convergence-acceleration style result: an influence-aware policy can achieve lower expected loss than random ordering by exploiting pairwise differences. However, the stated theorem holds in a regression proxy setting, not for full Transformer training. The theory is therefore presented as motivation and illustration rather than a complete guarantee for large-scale LLM optimization.

This boundary matters for interpretation. The formal argument supports the idea that ordering effects are structurally real, but it does not eliminate the gap between proxy analysis and production-scale autoregressive training. A plausible implication is that the theory should be read as validating the mechanism—interaction-sensitive ordering—rather than fully characterizing its behavior in contemporary foundation-model regimes.

6. Empirical performance, ablations, and limitations

The empirical results are reported for both pre-training and post-training. On GPT-2 Medium trained on 100B tokens from SlimPajama, D3^38 achieves lower perplexity than all baselines, including Uniform Sampling, Dynamic Loss, RegMix, Data Mixing Law, DoReMi, and DoGE. The paper reports a 4.2% relative PPL reduction over the strongest baseline and an increase in aggregated commonsense reasoning accuracy to 42.56, compared to the strongest baseline around 41.26, with especially strong improvements on OBQA and COPA. On a 1.1B Llama-based model trained on 100B tokens from The Pile, D3^39 again outperforms all baselines, reaching PPL 2.53, a 4.1% improvement over the strongest baseline, while also improving commonsense reasoning on most tasks and again showing particularly strong gains on OBQA and COPA (Xu et al., 29 May 2026).

In supervised fine-tuning, the framework is evaluated on Llama-3-8B with datasets such as CodeAlpaca, GSM8K-RFT, and Alpaca-GPT4. It is reported to surpass static curricula such as easy-to-hard and hard-to-easy, multi-task learning baselines, and specialization ceiling baselines. The reported gains are GSM8K: +3.1%, MATH: +11.4%, HumanEval: +8.0%, MBPP: +6.6%, with an average improvement: +6.7%. The paper’s explicit interpretation is that dynamic scheduling based on current influence is better than fixed curricula.

The ablation results indicate that first-order-only influence is cheap but weak because it misses asymmetry; Fisher-based curvature helps somewhat but remains less effective than batch-specific diagonal Hessian estimation; and the diagonal Hessian / Hutchinson approach provides the best performance-efficiency tradeoff, while still adding overhead. The best setting is reported to use projection dimension 3^30 for GPT-style models and chunk size 3^31 for better scheduling quality. In solver comparisons, random ordering is worst, row-sum sorting and greedy insertion are better, and RSR gives the best perplexity, though with some extra GPU hours.

The paper is explicit about limitations. Exact pairwise influence estimation over all batches is infeasible for LLMs; second-order estimation increases overhead, though within a practical range; and chunking together with random projection is essential for scalability. Additional stated limitations are that resource cost could be further reduced with better gradient compression or layer-selective methods, the theory is proven only in a simplified linear regression proxy, the method relies on random projection and Hutchinson diagonal Hessian estimates together with local influence computed at the current 3^32, and it assumes batch-level or sample-level scheduling within an epoch rather than solving the full global combinatorial scheduling problem exactly. These caveats position D3^33 as a principled but approximate approach to influence-aware ordering rather than an exact solution to large-scale scheduling.

Definition Search Book Streamline Icon: https://streamlinehq.com
References (1)

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to d3j.