Search arXiv⌕ Search

arXiv · 2610.26742

Polar Switch: Fast Muon Orthogonalization with Polynomial Circuits

Abstract

Muon, a 2024-born optimizer for language models, differs from the 2015-born spectral gradient descent mainly in its fast, GPU-friendly Newton--Schulz polynomial for orthogonalizing the gradient matrix. Accordingly, a line of research proposes faster polynomial iterations for gradient orthogonalization, such as Polar Express and Gram Newton--Schulz, both built on quintic polynomials. In this paper, we introduce Polar Switch, a new approach to polynomial gradient orthogonalization. Using simple polynomial circuits, Polar Switch reaches a given high polynomial degree at a lower FLOP cost than quintic iterations. We define a circuit as a short sequence of symmetric matrix products on a few square buffers, and circuits with $k$ products form a restricted family of odd polynomials of degree up to $2^{k+1}+1$. We choose the sequence of products in each circuit, their coefficients, and how the circuits are composed by numerically minimizing a worst-case bound on the polar approximation error. This minimization is subject to a FLOP budget that accounts for symmetric matrix multiplication kernels and a rounding constraint for numerical stability in half precision. Our two recommended Polar Switch methods have 15.5--18.7\% lower runtime than Polar Express on square matrices and 8.6--16.2\% lower runtime than Gram Newton--Schulz on rectangular matrices with aspect ratios 3.25, 3.5, and 8, with comparable approximation accuracy. In pretraining Modded-NanoGPT \#91, Qwen3-0.6B, and Gemma 3-1B, Polar Switch reaches final validation losses similar to those of established orthogonalization methods. Across the more than 14 million matrices that each of the two recommended methods orthogonalized in these runs, the estimated output spectral norms never exceed the designed bounds by more than 3\%, demonstrating their numerical stability.

Explore related subjects

Keep this discovery

Explore connections, maps & timelines

BibTeXRIS

Zhehang Du, Weijie Su. 2026-10-19. Polar Switch: Fast Muon Orthogonalization with Polynomial Circuits. https://arxiv.org/abs/2610.26742

Cite the original work for its findings. Save a collection to share your selection of sources.

KEEP EXPLORING

Related papers

Shape calculus and automatic differentiation for multi-phase level-set topology optimisation with unfitted finite elements

We present shape calculus techniques and a scalable automatic shape differentiation framework for multi-phase topology optimisation on unfitted discretisations defined by several level-set functions. First we establish general, exact shape calculus expressions in the discrete case for multi-phase systems by leveraging concepts from convex geometry. To complement this theoretical foundation, we introduce an open-source multi-phase automatic shape differentiation framework based on polytopal cutting. This computational framework is validated against both finite differences and our established exact expressions, matching the latter to near machine precision. Furthermore, the proposed automatic shape differentiation is scalable across distributed computing environments, demonstrating near ideal weak scaling up to 1.65 billion finite elements across 13,824 computer cores. We demonstrate our implementation by solving unfitted multi-phase topology optimisation problems for anisotropic diffusion, linear elasticity, and fluid--structure interaction. Together, these theoretical and computational contributions provide a robust and accessible foundation for advancing multi-phase topology optimisation using unfitted finite element methods. In particular, the methods enable the solution of topology optimisation problems involving multi-phase and multi-physics systems with non-trivial boundary conditions. The open-source software is available at https://github.com/zjwegert/GridapTopOpt.jl.

math.NA↗

Soliton Profiles in 1D: Enhanced Neural-Network Solvers and Constrained Deep Ritz Methods

We develop and compare enhanced neural-network solvers for one-dimensional ground-state profiles, which are solutions of $$ Q^{\prime\prime}=bQ-γQ^{p},\quad Q>0,\quad p>1, \quad b, γ>0, $$ the stationary profile equation for the nonlinear Schrödinger, generalized Korteweg-de Vries, and nonlinear Klein-Gordon equations. Its explicit sech-type solutions serve as exact reference for error computation and benchmark hyperparameter selection. We improve on the standard Adam-trained physics-informed neural network (PINN) baseline by introducing higher-order optimization via Gauss-Newton/Levenberg-Marquardt and L-BFGS refinements, as well as Fourier-feature PINNs, and constrained Deep Ritz (DR) formulations. In DR approaches we introduce two new neural-network formulations, which implement two classical variational characterizations: a Nehari-constrained Deep Ritz method, in which the height is learned by projecting onto the Nehari/Pokhozhaev manifold, and a Weinstein Deep Ritz method, in which a normalized profile minimizes the Weinstein quotient. The Deep Ritz formulations perform best overall, in particular, the Weinstein variant gives the best error-runtime balance. The neural-network based solvers remain less accurate and efficient than classical Petviashvili iteration in 1D, however, the current study provides a proof of concept: the mesh-free formulation, non-reliance on exact profiles or the related features make them promising in higher dimensions and for more complicated nonlinearities and dispersive operators.

math.NA↗

Trace Inverse Estimates and Kernel-based Nitsche Galerkin Methods for Elliptic Interface Problems

We establish trace inverse estimates for products of independently generated Sobolev-kernel trial spaces on Lipschitz subdomains and use them to analyze symmetric Nitsche Galerkin methods for elliptic interface problems. The estimates control one-sided gradient traces by subdomain gradients, the interface jump, and an exterior boundary trace. Their conormal form provides the flux control required by the Nitsche formulation without imposing value constraints on the trial spaces, including configurations with an interior inclusion. For quasi-uniform center families with comparable fill distances and a fixed kernel scale, we obtain coercivity and well-posedness for sufficiently large penalty parameters independent of refinement. We prove energy and $L^2$ error bounds of orders $h^{s-1}$ and $h^s$ for piecewise $H^s$ solutions, $2\le s\le m$, where $h$ is the maximum fill distance and $m$ is the kernel Sobolev order. The $L^2$ bound additionally requires piecewise $H^2$ regularity of the homogeneous adjoint interface problem. For scaled kernels $Φ_{m,\varepsilon}$ with $0<\varepsilon\le1$, we also derive a scale-explicit condition-number bound in the kernel-translate basis. The analysis assumes exact geometry and integration. Planar experiments examine convergence and support scaling, whereas a three-dimensional mixed-boundary calculation illustrates the method.

math.NA↗