Manuscript Offprint

arXiv:2610.21162

Coordination-Free Workload Regularization for Variable-Cost Distributed Training

Tao Huang, Chen Zhu, Antonio Alonso, Daming Li, Adarsh Goura, Jaideep Ray, Yitong Zhou

ABSTRACT

Synchronous data-parallel training usually assigns every rank the same number of records, even when record costs vary by orders of magnitude. For variable-length models, this converts input variation into idle time because each step waits for its most expensive rank-local batch. We present Batch Cost Lookahead (BCL), a coordination-free data-loading policy that buffers a bounded rank-local window and repartitions it into fixed-cardinality packs with balanced estimated cost. BCL preserves the trainer's record-count contract and requires neither cross-rank metadata exchange nor runtime modification. In simulation over public workload distributions, enabling BCL reduces per-rank estimated batch-cost variability by up to 82.8%. Across 13 NeMo-RL SFT corpora on eight H200 GPUs, rank-local BCL runs 1.050–1.167× faster than pooled MFFD. Compiled H200 measurements on an internal sequence workload show 1.197–1.343× speedup over packed execution from one to four nodes. We also identify a memory-feasibility boundary: a p99 cap for high-variance or OOM-prone data bounds outliers before BCL balances the rest. These results show that substantial variable-cost imbalance can be removed at the data-loader boundary, while clarifying when data preparation or broader coordination is still necessary.

1 INTRODUCTION

In synchronous data-parallel training, each rank processes a local batch, computes gradients, and participates in collective synchronization (Li et al., 2020; Goyal et al., 2017). Workload imbalance is pronounced for variable-length sequences. The cost of token-wise operations grows with sequence length, while dense self-attention includes a quadratic sequence-length component (Vaswani et al., 2017; Dao et al., 2022). Consequently, two batches with the same number of records can have very different costs when one contains longer sequences. In synchronous training, this imbalance lies on the critical path because each step waits for the slowest rank (Chen et al., 2016). The resulting idle time tends to grow with workload variability and the number of participating ranks (Dean & Barroso, 2013; Chen et al., 2016).

Sequence packing and variable-length kernels reduce padding work within a batch (Krell et al., 2021; Dao et al., 2022), but they do not determine how records should be grouped across rank-local batches in a synchronized step. Cross-worker balancing can use global metadata to make that decision, but recent designs require additional communication or runtime coordination (Wang et al., 2026; Wan et al., 2026). This paper asks a narrower systems question:

How much variable-cost imbalance can be removed using only bounded information already available to each rank-local data loader?

We study Batch Cost Lookahead (BCL), a local workload-regularization policy. A worker buffers K future fixed-cardinality batches, estimates a cost for each record, and partitions the KB records into K packs of exactly B records. The objective is to reduce the maximum pack cost while preserving the existing fixed-cardinality interface. Each input reader schedules independently, without exchanging record costs with other readers or changing the model and distributed collectives.

Our production trainer expects a fixed record count, so BCL retains that interface. Token-budget batching can improve utilization, but varying the number of records per step requires careful loss normalization (Ott et al., 2018; Krell et al., 2021). BCL regroups the same records within a bounded window while emitting exactly B records per pack. This makes BCL complementary to padding elimination and packed execution: packing removes wasted work within a pack, while BCL reduces cost dispersion among packs that must synchronize. Fixed-token packing can also leave unequal attention work across ranks (Wang et al., 2026);

†^{\dagger}Corresponding author: Tao Huang (taohuang@linkedin.com).

∗^{*}Adarsh Goura was a summer 2026 intern at LinkedIn.

globally coordinated assignment offers another response to this skew (Li et al., 2026).

Our evaluation separates three forms of evidence. First, a self-contained simulation over six checked-in length arrays derived from public datasets isolates the scheduling effect. With batch size 128, eight ranks, and a quadratic capped-length cost, increasing lookahead from K = 1 to K = 32 reduces per-rank estimated batch-cost variability by up to 82.8%. Second, NeMo-RL SFT runs (NVIDIA, n.d.) compare independent per-rank input with pooled MFFD. At B = 8 on eight H200 GPUs, BCL improves wall-clock step time by 1.050–1.167× across 13 corpora; this includes both scheduling and input-path differences. Third, compiled H200 measurements on an internal Feed sequential-ranking workload whose model setting is described publicly by Hertel et al. (2026) compare BCL at K = 32 with packed execution from one to four nodes. The measured speedup ranges from 1.197× to 1.343×.

BCL cannot split an overlong record, so we set the length policy before comparing packers. Earlier feasibility probes found five corpora that passed uncapped smoke tests, four that used p99 proactively for high length variability, and four for which p99 enabled runs that had OOMed uncapped. Every NeMo comparison arm uses the same per-corpus cap, separating the effect of grouping from changes in truncation.

This paper makes four contributions:

• We formulate a coordination-free operating point for variable-cost balancing: rank-local scheduling under a fixed-cardinality and bounded-reordering data-loader contract.

• We implement fixed-cardinality balancing within bounded reader windows.

• We evaluate BCL in a public-distribution simulation, NeMo-RL SFT on 13 corpora, and internal H200 runs on one to four nodes.

• We identify regimes in which local scheduling is insufficient and length capping or broader coordination is required.

Paper organization. Section 2 motivates the cost model and distinguishes cross-rank imbalance from padding waste. Section 3 describes BCL and its fixed-cardinality implementation. Section 4 develops the reducible and irreducible regimes. Sections 5–7 present the public-distribution, NeMo, and multi-node internal evaluations; each introduces its workload, setup, reporting provenance, and results together. Section 8 situates BCL against related work, Section 9 summarizes deployment boundaries, and Section 10 concludes.

References (24)