Introduction
The task fixes a mixture-of-experts decoder, its data, its data order and its token budget, and asks for the optimizer: the update rule, how matrix updates are orthogonalised or preconditioned, how weight norms are controlled, how experts, router, embeddings and output head are treated, and the batch-size and learning-rate schedules. The target is the lowest held-out cross-entropy for the compute spent, consistently across model sizes.
The field offers several families. Adaptive methods with decoupled weight decay [1] remain the default; Kronecker-factored preconditioners [2, 3, 4] and orthogonalised momentum, whose matrix sign is computed by a short polynomial iteration [5], are among the methods compared in recent studies of pretraining optimizers [6]. Norm-constrained steepest descent [7] and Hyperball optimisation [8] go one step further and control the weight norm directly: Hyperball fixes each matrix's Frobenius norm at its initial value and makes the learning rate an angle. Separately, the best optimizer and its rate depend on the batch size at a fixed token budget [9], and the critical batch size grows during training [10].
The starter of this task is Hyperball: MuonH on the weight matrices, AdamH on the output head and Adam on the remaining tensors, with a linear warmup and a linear decay to 5% of the peak rate. Freezing every matrix norm removes weight decay's tuning problem, but it also removes a degree of freedom. Our question was which tensors actually need that freedom, and how to give it back to them without undoing what the constraint buys.
Method
We call the method Polar Hyperball. It changes the starter in four ways; everything else (momentum, the Newton-Schulz polynomial and its step count, Adam's betas and epsilon, the peak rates and the warmup) is read from the starter's defaults.
# ---- constants of the method (dimensionless; none is fitted to a model size) ----
RADIUS_RATE = 1.0 # log-radius step = RADIUS_RATE x (the tensor's angular rate) x rho
RADIUS_EPS = 2.0 # Adam epsilon of the radial z-score: scale demands within chance level are ignored
RADIUS_KINDS = ("lm_head", "gated_norm")
MIN_STEPS = 5000 # runs shorter than this many optimizer steps are re-batched to reach it ...
MAX_SPLIT = 8 # ... splitting the default batch at most this many times over
MATRIX_BATCH_EXP = 2 / 3 # re-batched runs: angular rates ~ (batch / default batch) ** (2/3) ...
ADAM_BATCH_EXP = 1 / 3 # ... and Adam rates ~ (batch / default batch) ** (1/3)
FINAL_RATE = 0.0 # rates decay linearly to FINAL_RATE x peak (the default recipe stops at 0.05)A diagnostic for rate-limited tensors
We measure, per tensor, the persistence
the cosine between a tensor's new gradient and its previous first moment. means the tensor keeps being asked to move the same way, so its rate limits it; means it sits in a balanced or oscillating equilibrium. Under the starter, in our development runs, almost every tensor became balanced early, and the exceptions were the tensors that set an output scale: the final RMSNorm gain (positive for the whole run), the matrices of the final gated norm, and the output head. Hyperball freezes the norms of the head and of the gated-norm matrices, so all scale learning falls to the RMSNorm gains, which take small additive Adam steps. A gain cannot set the sharpness of a sigmoid gate at all, since it scales the gate's input and the gated signal together.
Polar form: a learnable radius
For a constrained tensor we write with . The direction keeps the Hyperball step. The radius becomes a free variable again and takes geometric steps. Since , we measure the radial gradient as a z-score,
where is the number of entries: the radial cosine expressed in units of what one direction of an isotropic -dimensional gradient would show by chance. We run Adam on with its own epsilon ,
with , the bias-corrected moments of under the starter's Adam betas and the tensor's own angular rate (the radius rate multiplier is 1). The epsilon is the point of the design: a tensor whose loss does not depend on its scale, with far below one, does not drift, while a clear demand for scale is followed at the full rate.
def factor(self, g, w, rate):
if self.per_matrix: # one radius per matrix of the stack
c = torch.linalg.vecdot(g.flatten(1), w.flatten(1), dim=1).view(-1, 1, 1)
c = c * (math.sqrt(w[0].numel()) / (_norm3(g) * _norm3(w)).clamp_min(1e-30))
else: # one radius for the whole tensor
c = torch.linalg.vecdot(g.flatten(), w.flatten(), dim=0)
c = c * (math.sqrt(w.numel()) / (torch.linalg.vector_norm(g) * torch.linalg.vector_norm(w)).clamp_min(1e-30))
if self.m is None:
self.m = torch.zeros_like(c)
self.v = torch.zeros_like(c)
self.t += 1
self.m.lerp_(c, 1 - self.b1)
self.v.mul_(self.b2).addcmul_(c, c, value=1 - self.b2)
rho = (self.m / (1 - self.b1 ** self.t)) / ((self.v / (1 - self.b2 ** self.t)).sqrt() + RADIUS_EPS)
return torch.exp(rho * (-rate))Radii are given only to the tensors that have no other scale knob, the output head (the logit scale) and the gated-norm matrices (the gate sharpness); each gated-norm matrix has its own radius and the head has one. For a matrix with momentum buffer and Nesterov look-ahead, the update is
with for a tensor with a radius and otherwise, so that a matrix without a radius stays on its sphere exactly as in the starter. Norms are taken per matrix, so in a routed-expert tensor each expert keeps its own norm. The output head takes a Hyperball step along Adam's direction, at the matrix rate, and is then multiplied by its radius factor.
w = torch.stack(bk.ps) if bk.stacked else bk.ps[0]
pn = _norm3(w)
scale = pn if bk.radius is None else pn * bk.radius.factor(g, w, lr * RADIUS_RATE)
coef = lr * pn / _norm3(u).clamp_min(1e-10)
if bk.stacked:
w = w - coef * u
w = w * (scale / _norm3(w).clamp_min(1e-10))
for i, p in enumerate(bk.ps):
p.copy_(w[i])
else:
w.addcmul_(u, coef, value=-1.0)
w.mul_(scale / _norm3(w).clamp_min(1e-10))Rates decay to zero
The starter decays every rate linearly to 5% of its peak. We decay it linearly to zero. With unit-norm updates the iterate noise is proportional to the rate, and a linear decay to zero is the last-iterate-optimal way to anneal it. With the fraction of the run's tokens consumed before update and the starter's warmup fraction, the schedule shape is
Re-batching runs that are short in optimizer steps
Learning a scale and annealing the noise both need optimizer steps. A run whose default batch gives fewer than 5000 updates has its batch halved, repeatedly, until it reaches 5000 updates or the batch is 8 times smaller than the default, as long as each smaller batch stays divisible by the number of GPUs; the token count is unchanged. Longer runs keep the default batch and cost exactly what the starter costs in steps.
def _plan(ctx):
"""Sequences per optimizer step. Runs that are short in optimizer steps are split into smaller batches (same
tokens, more updates); long runs keep the default batch."""
total = ctx.tokens // ctx.seq_len
w = max(1, ctx.world_size)
b0 = ctx.batch_size
n0 = max(1, total // b0)
split = 1
while split < MAX_SPLIT and n0 * split < MIN_STEPS and (b0 // (split * 2)) >= w and (b0 // (split * 2)) % w == 0 \
and b0 % (split * 2) == 0:
split *= 2
b = b0 // split
out, done = [], 0
while done < total:
out.append(min(b, total - done))
done += out[-1]
if len(out) > 1 and out[-1] % w: # a ragged tail joins the previous step
r = out.pop()
out[-1] += r
return outWhen a run is re-batched to sequences per update against a default of , the rates are rescaled:
The square-root rule is exact only for noise-dominated directions updated every step. The matrices also have curvature-limited directions, for which the linear rule holds, so their angular rate gets the steeper exponent 2/3. The Adam group holds sparsely updated rows, such as embedding rows, which move once per occurrence whatever the batch, so its rate gets the flatter exponent 1/3.
def _rates(self, k):
"""(matrix / head rate, Adam rate) of update k: the default warmup-linear shape over the run's tokens (ending
at FINAL_RATE), times the batch rule of a re-batched run."""
d = self.d
k = min(k, self.n - 1)
x = self.prog[k]
wu = d.warmup
if wu > 0 and x < wu:
shape = x / wu
else:
shape = 1 + (FINAL_RATE - 1) * (x - wu) / max(1e-12, 1 - wu)
rel = self.sizes[k] / self.b0
return d.learning_rate * shape * rel ** MATRIX_BATCH_EXP, d.adam_lr * shape * rel ** ADAM_BATCH_EXPStacked updates
Matrices of the same shape are updated as one stack, with one Newton-Schulz call and one norm call per shape instead of per tensor, and the Adam-group tensors of one kind and shape likewise. This is an implementation choice, not a change of the algorithm, but it made each optimizer step cheaper than the starter's in our development timings, which offsets part of the cost of the extra steps of a re-batched run.
Results
| Method | ① | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Held-out loss, small model ↓ | Held-out loss, medium model ↓ | Held-out loss, large model ↓ | Paloma loss, small model ↓ | Paloma loss, medium model ↓ | Paloma loss, large model ↓ | training PFLOPs, small model ↓ | training PFLOPs, medium model ↓ | training PFLOPs, large model ↓ | |
| Claude Fable 5.2 | 3.513 | 3.203 | 2.870 | 3.897 | 3.563 | 3.218 | 72.71 | 381.6 | 2,637 |
| MuonH | 3.511 | 3.211 | 2.880 | 3.892 | 3.574 | 3.226 | 72.71 | 381.6 | 2,637 |
| KL-SOAP | 3.498 | 3.198 | 2.872 | 3.877 | 3.558 | 3.224 | 72.71 | 381.6 | 2,637 |
| KL-SOAP, Hyperball | 3.496 | 3.202 | 2.869 | 3.885 | 3.570 | 3.220 | 72.71 | 381.6 | 2,637 |
| SOAP | 3.525 | 2.894 | 3.938 | 3.638 | 3.268 | 72.71 | 381.6 | 2,637 | |
| PSGD-Kron | 3.592 | 3.275 | 2.902 | 3.988 | 3.664 | 3.259 | 72.71 | 381.6 | 2,637 |
| Scion | 3.551 | 3.249 | 2.899 | 3.966 | 3.660 | 3.275 | 72.71 | 381.6 | 2,637 |
| Muon | 3.557 | 3.981 | 3.674 | 3.287 | 72.71 | 381.6 | 2,637 | ||
| Polar Express | 3.551 | 2.892 | 3.973 | 3.640 | 3.259 | 72.71 | 381.6 | 2,637 | |
| Muon, tuned polynomials | 3.552 | 2.892 | 3.975 | 3.638 | 3.255 | 72.71 | 381.6 | 2,637 | |
| Muon, fixed polynomial | 3.544 | 3.955 | 3.637 | 3.256 | 72.71 | 381.6 | 2,637 | ||
| MuonW | 3.526 | 3.959 | 3.669 | 3.299 | 72.71 | 381.6 | 2,637 | ||
| NorMuon | 3.547 | 3.980 | 3.666 | 3.290 | 72.71 | 381.6 | 2,637 | ||
| Shampoo | 3.602 | 3.301 | 2.945 | 3.980 | 3.669 | 3.299 | 72.71 | 381.6 | 2,637 |
| AdamH | 3.624 | 4.017 | 3.646 | 3.280 | 72.71 | 381.6 | 2,637 | ||
| NAdamW | 3.624 | 4.040 | 3.666 | 3.314 | 72.71 | 381.6 | 2,637 | ||
| AdamW | 3.640 | 4.079 | 3.735 | 3.337 | 72.71 | 381.6 | 2,637 | ||
| MARS-AdamW | 3.616 | 3.306 | 2.954 | 4.017 | 3.695 | 3.322 | 72.71 | 381.6 | 2,637 |
| Schedule-Free AdamW | 3.670 | 3.325 | 2.954 | 4.077 | 3.718 | 3.315 | 72.71 | 381.6 | 2,637 |
| Lion | 3.647 | 3.311 | 2.954 | 4.068 | 3.727 | 3.335 | 72.71 | 381.6 | 2,637 |
| LionW, 128K batch | 3.584 | 3.977 | 3.651 | 3.303 | 72.71 | 381.6 | 2,637 | ||
| MuonH, stable-then-decay | 3.536 | 3.266 | 3.916 | 3.626 | 3.276 | 72.71 | 381.6 | 2,637 | |
| MuonW, 128K batch | 3.526 | 2.934 | 3.959 | 3.669 | 3.355 | 72.71 | 381.6 | 2,637 | |
| MuonW, stable-then-decay | 3.523 | 3.952 | 3.655 | 3.287 | 72.71 | 381.6 | 2,637 | ||
| MuonW, batch warmup | 3.508 | 3.209 | 2.889 | 3.916 | 3.602 | 3.263 | 72.71 | 381.6 | 2,637 |
| MuonW, batch switch | 3.555 | 3.225 | 2.878 | 3.948 | 3.597 | 3.240 | 72.71 | 381.6 | 2,637 |
| MuonH, 128K batch | 3.511 | 3.211 | 3.892 | 3.574 | 3.234 | 72.71 | 381.6 | 2,637 | |
| AdamW, 128K batch | 3.640 | 4.079 | 3.735 | 3.395 | 72.71 | 381.6 | 2,637 | ||
- ① Grug MoE scaling ladder of three sizes, 330M / 747M / 2.04B parameters trained on 0.66B / 1.44B / 4.42B tokens · the curve of held-out loss against training compute over the ladder
The picture depends on the model size. On the large model our held-out loss is 2.870, against 2.880 for the Hyperball starter. Only KL-SOAP + Hyperball [3] is lower, at 2.869, and the difference between the two is far smaller than our margin over the starter; every other baseline with a value there is behind us, including KL-SOAP with weight decay at 2.872.
On the medium model we reach 3.203, an improvement on the starter's 3.211 and on batch-size warmup (3.209), but behind both KL-SOAP baselines, 3.198 with weight decay and 3.202 with Hyperball.
On the small model the method does not help: 3.513 against the starter's 3.511, slightly worse. Five baseline entries have a lower held-out loss there: KL-SOAP with Hyperball (3.496), KL-SOAP with weight decay (3.498), batch-size warmup (3.508), the starter, and MuonH at 128K tokens per step, which has the starter's value. This contradicts our development runs, in which every model size we trained to completion improved on the starter. We cannot tell from our inputs whether this is noise between runs or a real effect of the method at that size.
Apart from the two KL-SOAP baselines, the starter (with its 128K-token variant) and batch-size warmup, every baseline has a higher held-out loss than ours on every model size for which it has a value, among them AdamW, Lion, MARS, Schedule-Free AdamW, Scion, PSGD-Kron, SOAP, ShampooW and the Muon variants; the starter and batch-size warmup are behind us on the medium and large models. Our standing against the strongest baselines, the KL-SOAP pair, is mixed in held-out loss: level with KL-SOAP with Hyperball and ahead of KL-SOAP with weight decay on the large model, and behind both on the other two.
How we got here
The submitted file was reached in four banked versions over a single long session; the research log records each step.
Batch size first. We began by asking where the starter loses at a fixed token budget. Halving the batch repeatedly, with a square-root rule for the rates, was the largest single lever on the shortest development run: the held-out loss fell from 4.488 at the default batch to about 4.34 at a batch eight times smaller, while halving or doubling the peak rate at the default batch made it worse. The same scan on longer runs showed that the gain saturates once a run has roughly six to ten thousand updates. Our first candidate explanation was spectral, an SNR-weighted orthogonalisation in which Muon would stop re-amplifying the noisy directions its momentum had filtered; the decomposition that followed pointed elsewhere, and we did not test it.
The gain was in scale learning, not in batch size. Leaving one parameter group at a time at the default number of updates while the rest were re-batched, we found in our development runs that about 80% of the small-batch gain came from the Adam group, and within it from the RMSNorm gains: at the default batch, multiplying only the gain rate by 4 or 8 lowered the loss from 4.488 to 4.3805 and 4.3678, while larger rates for the embedding, router, attention gate or head did nothing or hurt. A diagnostic of the gains and the persistence diagnostic then located the cause: the final norm gain grew monotonically for the whole run and was still growing when the rate had decayed, and the head and final gated-norm matrices were the only other tensors the log records with positive persistence. Log-space gains and a persistence-driven rate controller both helped, but a learnable radius on the head and gated-norm matrices did the same job at the source; with it, the final norm gain's persistence fell to about zero and nothing was rate-limited after the first hundred or so steps, in our development measurements.
Which tensors get a radius. Our first banked version gave a radius to every Hyperball tensor and used an Adam step on the raw radial gradient. Two problems followed. The query and key projections, whose loss is invariant to their scale, saw a tiny but consistent radial gradient that Adam normalised to a full step, and their radii exploded by factors of 20 to 957 in our development runs. Per-expert radii performed a noise walk, because each expert sees only a fraction of the tokens. An epsilon on the raw cosine slowed the head, whose radial cosine is small simply because the head is large. The z-score with an epsilon of 2 measures every tensor against its own chance level, so a scale-invariant tensor stays still while the head is followed at the full rate. Ablating the radius kinds at a mid-length development run then showed a synergy: a radius on the head alone was about as good as none there, a radius on the gated norms alone was worse, and both together were best, which we read as the final gated norm acting as a surrogate logit scale while the head is frozen. The final version restricts radii to the head and the gated-norm matrices; we had made that choice when the head-only arm came out level with no radius, before the gated-norm-only arm was run. The radius rate mattered little upward: multiplying it by 2, 4 or 8 had no clear effect, so it stayed at 1.
The schedule. Decaying to zero instead of to 5% of the peak was worth about 0.008 nats in our development runs; a short tail to zero or an exponential weight average with a 2% horizon gave about the same, and cosine and polynomial decay shapes were no better, so we kept the plain linear decay and no averaging.
The batch exponents. On a re-batched development run, scaling the matrix rate down and the Adam rate up relative to the square-root rule lowered the loss by about 0.012 nats, while the same matrix change at the default batch made things worse, so the effect belongs to re-batching. At a longer re-batched run the change was neutral. The exponents 2/3 and 1/3 encode it. Halving the maximum split from 8 to 4 cost about 0.013 nats on the run that is split most, so the cap stayed at 8.
What the final recipe owes to each part. In a one-seed ablation inside the final recipe, removing the radii raised the development loss by about 0.010 nats on two mid-sized development models; the decay to zero was worth about 0.006, and re-batching accounted for the rest of the gain on the shorter runs. Across the model sizes we could train to completion, the development gain over the starter shrank with size, from 0.189 nats on the smallest to 0.009 on the largest, and a second development corpus of different composition showed comparable gains on the two models it was run on. Other warmup lengths, a rescaled second beta, halving the head rate, lowering the dense-matrix rate and doubling the Adam rate changed little; momentum of 0.9 and a larger expert rate were worse, and momentum of 0.975 was worse on one of the two models it was tried on, so the defaults stayed.
Abandoned: damping the dominant directions. Late in the session we tested a spectral-shaping step inspired by work on enhancing flat-direction dynamics (LITE): after orthogonalisation, subtract times the momentum scaled by an upper bound on its largest singular value, which damps the momentum's dominant, sharp directions for . With on the dense and expert matrices, all eight seed-paired comparisons against the final version were lower, but by only about 0.0024 nats on average, and was sharply worse, by about 0.03 to 0.04. We had fixed an adoption threshold before the runs, and the gain fell short of it; a mechanism with a cliff a factor of two away, which we could not check at the largest sizes, was not worth 0.002 nats. An attenuation of low-energy expert updates in the spirit of EnergyCal, proposed against loss spikes in Muon-family training of sparse mixture-of-experts models, had no effect in our runs, which showed no spikes to remove.
Limitations
- The method does not help the small model. Its held-out loss there is slightly above the starter's and behind four other baseline entries, against every full-length development comparison with the starter we made. The mechanisms we built on, scale learning and annealing, were meant to help most where runs are short, and the measured result does not show that.
- KL-SOAP with Hyperball remains at least as good in held-out loss. On the medium model both KL-SOAP variants are ahead of us in held-out loss, and on the large model KL-SOAP with Hyperball is level with us; our Paloma loss is below that baseline's on the medium and large models. Our contribution is a change of the Hyperball recipe, and it narrows, but does not reverse, its held-out-loss gap to the best preconditioned method on the medium and large models; on the small model the gap widens.
- The gain shrinks with size. In our own development runs the improvement fell from 0.189 nats on the smallest model to 0.009 on the largest we could train in full; only two of the larger models were checked, by short runs for stability, step time and memory, and none was trained to completion.
- Several constants are reasoned, not derived. The batch exponents 2/3 and 1/3, the minimum of 5000 updates and the split cap of 8 rest on an argument about curvature-limited and sparsely updated directions and on a few development runs; the radial epsilon of 2 is a chance-level threshold set by hand. A run that cannot be split evenly across the GPUs is re-batched less, so the method's behaviour on a short run depends on the number of GPUs.
- Ablations are thin. The per-part attributions above come from one or a few seeds per arm at a few development sizes, with differences of the order of 0.01 nats against a seed spread we measured at about 0.008 on its shortest run.
References
- Ilya Loshchilov, Frank Hutter (2019). Decoupled Weight Decay Regularization. ICLR.
- Vineet Gupta, Tomer Koren, Yoram Singer (2018). Shampoo: Preconditioned Stochastic Tensor Optimization. ICML.
- Nikhil Vyas, Depen Morwani, Rosie Zhao et al. (2024). SOAP: Improving and Stabilizing Shampoo using Adam.
- Xi-Lin Li (2018). Preconditioned Stochastic Gradient Descent. IEEE Transactions on Neural Networks and Learning Systems.
- Noah Amsel, David Persson, Christopher Musco et al. (2026). The Polar Express: Optimal Matrix Sign Methods and Their Application to the Muon Algorithm. ICLR.
- Kaiyue Wen, David Hall, Tengyu Ma et al. (2026). Fantastic Pretraining Optimizers and Where to Find Them. ICLR.
- Thomas Pethick, Wanyun Xie, Kimon Antonakopoulos et al. (2025). Training Deep Learning Models with Norm-Constrained LMOs. ICML.
- Kaiyue Wen, Xingyu Dang, Kaifeng Lyu et al. (2026). Fantastic Pretraining Optimizers and Where to Find Them II: Hyperball Optimization.
- Xingyu Dang, Kaiyue Wen, Sadhika Malladi (2026). The Best Optimizer Depends on Batch Size.
- William Merrill, Shane Arora, Dirk Groeneveld et al. (2025). Critical Batch Size Revisited: A Simple Empirical Approach to Large-Batch Language Model Training. NeurIPS.
- Zichong Li, Liming Liu, Chen Liang et al. (2026). NorMuon: Making Muon more efficient and scalable. ICML.
- George E. Dahl, Frank Schneider, Zachary Nado et al. (2023). Benchmarking Neural Network Training Algorithms.
- Huizhuo Yuan, Yifeng Liu, Shuang Wu et al. (2025). MARS: Unleashing the Power of Variance Reduction for Training Large Models. ICML.
- Aaron Defazio, Xingyu Alice Yang, Harsh Mehta et al. (2024). The Road Less Scheduled. NeurIPS.
- Xiangning Chen, Chen Liang, Da Huang et al. (2023). Symbolic Discovery of Optimization Algorithms. NeurIPS.