betaFeedback

WorksComputer Science

Weight Scale Rebalancing: Transferable Training Recipes for Transformers

Abstract

Training Transformers requires careful hyperparameter tuning, which becomes increasingly costly for large models. We introduce UDV-Rebalance (UDVR), a reparameterization that inserts an auxiliary diagonal matrix DD between naturally paired weight matrices (U,V)(U,V) appearing throughout Transformer architectures. UDVR periodically rebalances the factors to maintain unit-norm columns in UU and unit-norm rows in VV, with DD absorbing the corresponding scales. With rebalancing, a single hyperparameter setting of UDVR remains effective across model scales, architectures, and data distributions. This yields a tuning-free rule that adapts to each weight matrix using only its dimensions. We fit this rule once on ViT models trained on CIFAR-10 and CIFAR-100, and it remains valid when the activation function or the optimizer is changed. The same rule transfers to new image domains in DomainNet, to ViT, Swin, and MaxViT on ImageNet, and to language-model pretraining with up to 1.3B parameters. UDVR consistently outperforms Weight Normalization and σσReparam and matches a vanilla baseline whose hyperparameters are swept on each target model.

Paper details

vlnc:W_mbeyzgh7
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
arXiv nonexclusive license
Usage

views · 5

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

Not recorded for this paper

View statement
Looking for related papers…