TL;DR
Training a new Transformer usually means burning serious compute on hyperparameter sweeps just to find a learning rate and weight decay that won't diverge. This paper introduces UDV-Rebalance (UDVR), a practically zero-overhead reparameterization that decouples weight directions from their magnitudes, allowing a single hyperparameter recipe—calibrated once on tiny CIFAR vision models—to transfer directly to massive ImageNet architectures and 1.3B-parameter language models with zero re-tuning.
What Problem Does This Paper Address?
Every time you scale up a Transformer or tweak its architecture, the optimal learning rate and weight decay shift. If you don't have a massive compute budget to run grid searches on your target network, you are flying blind.
Existing solutions only get us halfway there. Parameterization schemes like $\mu$P let you tune hyperparameters on a small "proxy" model and transfer them across width, but you still have to run a fresh proxy sweep for every new architecture. Meanwhile, layer reparameterizations (like Weight Normalization or $\sigma$Reparam) make training more stable, yet they still don't tell you which learning rate to actually plug into your script before training starts. The authors ask: can we create a truly tuning-free training recipe determined purely by the shape of each layer?
Methods
Inside every Transformer block, weight matrices naturally pair up in sequence: query-key ($W_q, W_k^\top$), value-output ($W_v, W_o$), and the feed-forward network projections ($W_{\text{up}}, W_{\text{down}}$). Because they multiply together, these pairs have a hidden scaling ambiguity: multiplying the first matrix by 10 and dividing the second by 10 leaves the output unchanged, yet drastically alters how gradients flow and what step sizes the optimizer needs.
UDV-Rebalance (UDVR) takes control of this symmetry:
- The $UDV$ Block: Between each natural weight pair $(U, V)$, the authors insert a diagonal matrix $D$. Crucially, $D$ is just a state buffer—the optimizer never touches it directly with gradients.
- Post-Step Rebalancing: After every gradient update, UDVR rescales every column of $U$ and row of $V$ to a fixed Euclidean norm ($\alpha\sqrt{d}$, where $d$ is embedding width) and dumps the stripped-away scale into $D$. (In feed-forward layers with non-homogeneous activations like GELU, only $U$'s scale goes into $D$, while $V$ is simply projected back onto its sphere).
- Indirect Regularization: Because $D$ could otherwise grow to infinity, a gentle Frobenius norm penalty is applied to $UD$ and $DV$, shrinking the factors slightly so the next rebalance passes that shrinkage into $D$.
- Shape-Determined Learning Rates: Because $U$ and $V$ live on fixed-norm spheres, their learning rates can be set deterministically using layer dimensions and a single universal constant $C$ ($0.0217$), calibrated once on small ViTs and frozen forever.
Datasets
No new datasets are introduced; instead, the authors test cross-dataset and cross-modality transfer using standard benchmarks:
- CIFAR-10 & CIFAR-100: Used for the one-off calibration of UDVR's constants on small Vision Transformers (ViTs).
- DomainNet (Real & Sketch): Used to test robustness under distribution shift (natural photos vs. line drawings).
- ImageNet-1K: Used to test scaling and architectural transfer across ViT, Swin, and MaxViT.
- SlimPajama & LAMBADA: A 7B-token subset across 7 domains of SlimPajama is used to pretrain GPT-2-style language models (121M to 1.3B parameters), evaluated on validation perplexity and LAMBADA accuracy.
Key Insights and Ideas
- Fixing norms turns hyperparameter search into geometry: When weight norms drift during training, the relationship between a parameter step and how much the layer's output changes is a moving target. Locking $U$ and $V$ to data-independent norms makes this relationship purely a function of matrix dimensions—explaining why a shape-only learning rate rule works across domains.
- Vision rules train language models: Because decoder-only LLMs are built from the exact same attention and MLP matrix pairs as ViTs, a constant $C$ found on 32x32 CIFAR images deploys directly to 1.3B-parameter LLM pretraining without a single language tuning run.
- Plug-and-play across optimizers and activations: Because UDVR stabilizes the underlying geometry, you can swap AdamW for Lion or Muon (using standard RMS update conversions) or swap GELU for ReLU/SiLU without re-tuning.
Key Results
- CIFAR-10/100: Using its single fixed configuration, UDVR beats per-model swept Vanilla, Weight Normalization (WN), and $\sigma$Reparam baselines—achieving 88.55% mean accuracy on CIFAR-10 (vs. 87.00% for swept Vanilla) and 67.95% on CIFAR-100 (vs. 66.62% Vanilla).
- Distribution Shift: Reusing CIFAR-100 settings on DomainNet, UDVR leads the strongest baseline by 2.8 percentage points on Real photos and 8.5 points on Sketch drawings (where WN even diverges).
- ImageNet-1K: With zero sweeps (1 run vs. multiple grid-search runs per baseline), UDVR beats WN and $\sigma$Reparam across ViT, Swin, and MaxViT. It trails the best grid-swept Vanilla top-1 accuracy by at most ~1 point, while tying Vanilla in top-5 accuracy on Swin-B (96.03%) and beating it on ViT-B (94.68% vs. 94.58%).
- LLM Pretraining: Across 121M, 380M, and 1.3B GPT models, zero-sweep UDVR beats all swept WN and $\sigma$Reparam runs in validation perplexity and closes the gap with swept Vanilla entirely at the 1.3B scale.
Limitations and Future Work
- Robustness vs. Per-Model Optimality: UDVR's universal constant $C$ is chosen for safe transferability, not to squeeze the absolute peak metric out of a single target. Consequently, if you do have the compute for an exhaustive grid search, a tuned Vanilla baseline can still edge out UDVR by a small margin (as seen in ImageNet top-1 and LAMBADA accuracy).
- Unpaired Layers Are Left Out: UDVR needs two consecutive linear maps $(U, V)$ to sandwich $D$. In hybrid architectures like MaxViT, convolutional blocks make up a large chunk of parameters and sit outside UDVR's reach, keeping them reliant on standard learning rate heuristics. Factorizing single matrices into $W = UDV$ is left as an open question, as adding artificial linear layers changes optimization dynamics.
Summary updated