In orthogonalizing optimizers (such as Muon), after the momentum-based update matrix has been orthogonalized via Newton-Schulz iterations, its singular values are approximately 1. This makes the Root Mean Square (RMS) of its entries roughly for an matrix, which does not match the per-element update scale produced by AdamW. To reuse AdamW-style learning-rate hyperparameters, we rescale the orthogonalized update.
Given an orthogonalized update matrix of shape and a scaling factor , compute the rescaled update:
Return the rescaled matrix as a nested Python list.