Research archive
Algorithms and estimators
Archived reference. Read the current results →
Parameter mixing, local AdamW moments, and curvature diagnostics in mathematical notation.
Local gradients and clipping
Let be worker ‘s parameters before update , and its local minibatch mean loss. Each worker computes . With clipping threshold , the gradient passed to AdamW is
The small denominator constant follows the gradient-clipping implementation. With clipping disabled, . Gradients are normalized by each worker’s valid local targets, not by the number of workers. Nonfinite gradients stop training in either mode.
AdamW and mixing order
The first and second moments remain local:
Products, squares, and quotients involving vectors are elementwise. Let be the parameter mixing matrix and let denote weight decay for the parameter group. Adapt-while-combine (AWC) applies
The gradients were evaluated before mixing; weight decay acts on the mixed parameters. Adapt-then-combine (ATC) instead applies
ATC mixes updated parameters, but it still does not mix moment buffers. For synchronous training there is one model and no parameter mixing. Both methods follow the same token-based learning-rate schedule in the tuning studies.
Topology and evaluation
One-peer exponential mixing uses incoming offsets 1, 2, 4, and so on below the number of workers, cycling across updates. Each row assigns half its weight to the worker itself and half to its selected incoming peer. Other supported topologies include complete averaging and an alternating one-peer ring. Details and checkpoint behavior are in the implementation reference.
Packed validation evaluates the ordinary model with weights
For workers, local microbatch size , and context length , the full global batch is prediction targets. The global budget is based on one local model’s parameter count. Local models receive disjoint worker partitions of that stream.
Gradient noise and curvature
At a fixed checkpoint, let be the full-epoch token-mean gradient and the Hessian of that same mean loss. A sampled effective minibatch gives gradient , with noise . The reported unnormalized and normalized alignment estimators are
The normalized estimator is a ratio of sums, not the average of individually normalized samples. Zero total noise yields an undefined normalized value, stored as null. Negative curvature is retained. Independent Rademacher directions provide the isotropic reference , where counts unique trainable parameters.
Packed consensus errors are . Their alignment is evaluated using the Hessian at . The analysis reference describes sampling, seen/unseen data, precision, and provenance. The adaptive-consensus investigation uses these diagnostics in a separate historical study; its recipes are not pooled into the current tuning grids.