Some neural networks are built around a numerical solver rather than a fixed stack of layers. A Neural ODE is one example: a network that defines a continuous trajectory by a learned rate of change, which a numerical integrator steps through at training and test time. These models train badly across many machines. In synchronous data-parallel training, every worker must finish its batch before gradients are averaged, so the slowest worker sets the pace for everyone. Neural ODE workers are slow for two unrelated reasons that look identical from the outside. Some batches are numerically hard, and an adaptive solver takes many more steps on them. Some machines are degraded by hidden neighbors on shared cloud hardware, so each step costs more. A conventional load balancer sees only seconds per batch and cannot tell the two apart.
This note proposes using the solver itself as a free measuring instrument. The solver already reports how many times it evaluated the network (the number of function evaluations, NFE). Dividing a worker's compute time by its NFE gives a per-evaluation cost. That cost reflects the machine and changes slowly. NFE reflects the data and model, and it is fairly persistent per sample across epochs. Keeping the two factors separate lets a scheduler predict each worker's next-step time from quantities it can already observe. It can then assign samples so workers reach the gradient barrier together, with no hardware counters and no probe jobs. The core claim is that this two-factor model removes most straggler wait in distributed training of solver-based models on opaque infrastructure. A balancer that uses a single throughput number misattributes data hardness to hardware and oscillates.
Why this gap is real
Prior work has examined each piece separately. On the systems side, On the Utility of Gradient Compression in Distributed Training Systems shows that modern data-parallel runtimes hide communication behind a predictable layer-by-layer backward pass. Across more than 200 configurations of ResNet and BERT, compression gave end-to-end speedups in only 6 cases. Its analysis assumes deterministic per-layer compute, and that assumption fails here. Distributed Stochastic Gradient Descent with Staleness models asynchronous training as a stochastic delay differential equation. It shows divergence once learning rate times Hessian norm times staleness passes $\pi/2$, and it treats delay as exogenous network queuing with identical worker compute. On the solver side, Stiff Neural Ordinary Differential Equations makes stiff models trainable with forward-interpolating adjoints, on a single device only. PointFlow identifies solver cost that grows with shape complexity as its main bottleneck. On the opacity side, Alioth infers interference from low-level hardware counters that tenants often cannot read. SeBS needs dedicated benchmarking to expose provider overheads.
These papers play different roles here. The compression and staleness papers motivate the problem: they leave out endogenous, data-dependent compute time. The opacity papers motivate a probe-free alternative, because their inference requires telemetry or measurement runs that cost money. The stiff-ODE adjoints supply the training method we distribute. The proposal differs from all of them in treating the solver's step counter as infrastructure telemetry.
A second structural point sharpens the systems picture. With adjoint training, the parameter gradient is an integral accumulated over the entire reverse-time solve. No parameter's gradient is final until the backward solve ends. DDP's bucketed overlap of communication with backward compute therefore has nothing to overlap with, and the all-reduce is fully exposed. This is our inference from how adjoints work, not a result in the file, and the characterization study will measure it directly.
Core Claim
For worker $k$ holding sample set $S_k$, we model the time to reach the barrier as
$$T_k = c_k \sum_{i \in S_k} \hat n_i + T_{\text{comm}},$$
where $\hat n_i$ is the predicted forward-plus-backward NFE of sample $i$, estimated from its exponentially averaged NFE history. $c_k$ is worker $k$'s per-evaluation cost at the current batch size, estimated from its own recent compute time divided by its NFE. $T_{\text{comm}}$ is the exposed all-reduce time. Each step, the scheduler repartitions the global batch to minimize $\max_k T_k$, keeping the global batch fixed so the optimizer sees the same data distribution. Two claims follow. First, $c_k$ tracks injected interference closely and is nearly independent of which samples a worker draws, while seconds-per-batch is not. Second, balancing on the factored model reduces barrier wait more than balancing on measured throughput, and the gap grows with variance in per-sample NFE.
Research Program
We start with a characterization study. Synchronous data-parallel training will run on 8 to 32 GPUs, using shared cloud instances and a controlled cluster. On the controlled cluster we inject the contention types Alioth catalogs (cache, memory bandwidth, network) on chosen nodes, which gives ground truth. We log per-step NFE, rejected steps, compute time and barrier wait for every worker. The study answers three questions. How much barrier wait comes from NFE variance, and how much from per-evaluation cost variance? Does contention ever change NFE itself, for example through altered step acceptance? We expect this to be rare because floating-point results should not depend on contention, but we will check. How large is the exposed all-reduce under adjoint training?
Next we build the scheduler as a thin layer over PyTorch DDP. Repartitioning is a greedy longest-processing-time assignment over predicted sample costs, which is cheap compared with a solver step. The cost estimates $c_k$ are updated online. A change-point test resets an estimate when a node's neighbors change, which addresses the non-stationarity flagged for static surrogates in the opacity literature.
Finally we test whether the theory transfers. We examine whether endogenous NFE variance, combined with the large Hessian norms of stiff problems, pushes asynchronous variants past the stability bound of the staleness paper. This would explain why the synchronous-plus-balancing route is preferable.
Benchmarks
Three settings require a solver during training. The first is the stiff kinetics problems ROBER and POLLU, trained with the interpolating adjoint of Stiff Neural Ordinary Differential Equations. The second is PointFlow on ShapeNet airplanes, chairs and cars, scored on 1-NNA, Chamfer and EMD. The third is AirDDE on KnowAir, which tests whether the method extends to delay equations (AirDDE). As a control, we include Kuramoto–Sivashinsky from CFO, where simulation-free training is available. The primary metric is wall-clock time to a fixed validation target. Secondary metrics are barrier-wait fraction and cost-model prediction error, defined as the relative error of predicted versus observed $T_k$. Final model quality must match the naive baseline within seed variance.
Baselines
The do-nothing reference is standard synchronous DDP with an adaptive Dormand–Prince solver, uniform random batch splitting and default NCCL all-reduce. Every method is measured against it on identical data order, hardware, injected-interference schedule and hyperparameters.
The strongest systems competitor is throughput-based dynamic load balancing. It gives each worker a share of the batch proportional to its recently measured samples per second, and it is the standard response to heterogeneous workers. No paper in the file describes it for solver-based models. We implement it ourselves, with the same update frequency and smoothing tuned on the same budget as our method. Beating it means at least a 20% lower barrier-wait fraction on PointFlow and the stiff benchmarks, and a smaller advantage, if any, on the low-NFE-variance control. That difference in advantage is what the factored model predicts.
Two ablations isolate the key ingredient. The first is endogenous-only: it balances on predicted NFE and assumes equal $c_k$. The second is exogenous-only: it balances on $c_k$ and assumes equal sample cost. If either one matches the full model across both clean and injected-interference runs, the two-factor claim fails.
We also run a drop-slowest baseline, which averages the first $K-1$ gradients each step. It is the cheapest straggler remedy, and we compare at matched final quality, not only speed.
There is no reported result on Lacuna for wall-clock training of Neural ODEs under distributed data parallelism. The closest numbers concern other model classes and do not transfer. The compression study's 6-of-200 speedup rate applies to discrete models with overlap. Alioth reports 5.29% offline MAE for interference prediction, but on its own application dataset with hardware counters. We report our cost-model error alongside Alioth's figure only as context, not as a head-to-head comparison.
Why not just…?
Why not just use a fixed-step solver so compute becomes deterministic? On non-stiff models like PointFlow this is a serious threat. Fixed-step RK4 at a step size matched to the adaptive solver's average might give acceptable likelihoods and remove NFE variance outright. We run it at three step sizes on every benchmark and report time-to-target and quality. On ROBER and POLLU the scale separation documented in Stiff Neural Ordinary Differential Equations should force explicit fixed steps to be tiny or unstable. If fixed steps win on PointFlow, we will state that the method's value is confined to stiff and delay models.
Why not just train simulation-free, as CFO does? CFO removes the solver from training and reports roughly 40x faster training on KS (1 hour versus about 41). Where it applies, it makes straggler-aware solving pointless, which is why KS is our control. CFO needs dense trajectory data to fit splines, and losses like PointFlow's likelihood need the solve as the file describes them. We still run CFO-style training on ROBER and POLLU. If it reaches the same error faster, we will narrow the scope to models whose objective requires integration.
Why not just go asynchronous to remove the barrier? The staleness analysis in Distributed Stochastic Gradient Descent with Staleness bounds stability by learning rate times Hessian norm times staleness. Stiff models have large Hessian norms, and high-NFE batches create long delays. Our asynchronous baseline, with a staleness cutoff tuned on the same budget, tests whether this combination causes divergence in practice.
Why not just compress gradients, or rent bare metal? Compression addresses the exposed all-reduce, not straggler wait. Because adjoint training leaves nothing to overlap, it may pay off here despite the overlap paradox, so we measure it separately with PowerSGD and DeMo-style DCT sparsification (DeMo). Bare metal removes most variation in per-evaluation cost but leaves NFE variance untouched. The no-interference controlled runs measure exactly how much benefit remains in that case.
Decisive Checks
The idea is supported if three things hold. Estimated $c_k$ follows injected interference while staying flat across sample draws. The full model beats both single-factor ablations and the throughput balancer on stiff and PointFlow workloads at equal final quality. Its advantage disappears on the KS control. If NFE turns out to be unpredictable from per-sample history, with correlation across epochs near zero, the endogenous half of the model fails. The proposal would then reduce to ordinary heterogeneity-aware balancing, and we would report that.
References
- On the Utility of Gradient Compression in Distributed Training Systems
- Distributed Stochastic Gradient Descent With Staleness: A Stochastic Delay Differential Equation Based Framework
- Stiff Neural Ordinary Differential Equations
- PointFlow: 3D Point Cloud Generation with Continuous Normalizing Flows
- Alioth: A Machine Learning Based Interference-Aware Performance Monitor for Multi-Tenancy Applications in Public Cloud
- SeBS: a serverless benchmark suite for function-as-a-service computing
- AirDDE: Multifactor Neural Delay Differential Equations for Air Quality Forecasting
- CFO: Learning Continuous-Time PDE Dynamics via Flow-Matched Neural Operators
- DeMo: Decoupled Momentum Optimization