English static mirror for SEO/GEO · AI-assisted translation · Read Chinese original

Streaming Newton-Schulz Orthogonalization and mclip Spectral Norm Clipping: Extending the Muon Optimizer

Forum topic · ✨步子哥 · 2026-04-20

Summary

This post explores streaming (incremental) matrix computation techniques that extend the Muon optimizer, focusing on two applications: streaming Newton-Schulz iteration for orthogonal projection onto the Stiefel manifold, and mclip (streaming spectral norm clipping). Instead of performing a full SVD (O(mn^2) cost) at every training step, the streaming approach exploits the fact that parameter matrices change only slightly between steps: an auxiliary matrix tracks the nearest orthogonal projection via a soft update plus a single Newton-Schulz iteration per step, at roughly O(mn) cost. Experiments report orthogonality error ||W^T W - I||_F stable at 10^-3 to 10^-2 and 2-5x training speedups with negligible performance loss. mclip uses the maintained left/right singular vector estimates u_t and v_t from Muon's streaming power iteration to estimate the largest singular value and subtract a rank-one correction whenever it exceeds 1, enforcing Lipschitz constraints useful for adversarial robustness, GANs, and WGAN training. The article also covers streaming matrix square roots, inverse estimation, and Oja-rule PCA, presenting a unified framework of incremental computation in the training loop.

Introduction

Traditional methods apply a one-shot SVD-based "surgery" to make parameter matrices orthogonal or to cap their spectral norm. The streaming idea instead flows along each training step: because parameters change only slightly per step (learning rates typically 10^-3 to 10^-5), expensive matrix decompositions can be replaced by tiny per-step adjustments, turning the training loop itself into a self-optimizing mechanism.

Orthogonal Projection onto the Stiefel Manifold

For a matrix \(W \in \mathbb{R}^{m \times n}\) (\(m \geq n\)), the Stiefel manifold \(\mathrm{St}(m, n)\) is the set of matrices satisfying \(W^\top W = I_n\). Orthogonality preserves signal norms (\(\|Wx\|_2 = \|x\|_2\)), mitigating vanishing/exploding gradients and smoothing the optimization landscape.

The direct projection method computes the polar decomposition \(W = UP\) via full SVD each step, costing \(O(mn^2)\) — prohibitive for large models.

Streaming Newton-Schulz Iteration

Newton-Schulz iteration approximates the orthogonal factor of the polar decomposition. Starting from \(X_0 = W / \|W\|_F\):

\[X_{k+1} = \frac{1}{2} X_k (3I - X_k^\top X_k)\]

with quadratic convergence. The streaming version maintains an auxiliary matrix \(X_t\) that tracks \(W_t\)'s projection. Per step:

1. Soft update: \(X_t \leftarrow (1 - \alpha) X_{t-1} + \alpha \cdot W_t\) (e.g., \(\alpha = 0.1\)) 2. Single iteration: \(X_t \leftarrow \frac{1}{2} X_t (3I - X_t^\top X_t)\) 3. Assign \(W_t \leftarrow X_t\)

Extra cost is only two matrix multiplications per step. The projection is not strictly orthogonal, but small errors self-correct over subsequent steps. Experiments show \(\|W^\top W - I\|_F\) stable at \(10^{-3}\) to \(10^{-2}\), with 2–5x training speedups at near-zero performance loss.

Spectral Norm Clipping: mclip

The spectral norm \(\|W\|_2 = \sigma_{\max}(W)\) is the Lipschitz constant of \(f(x) = Wx\); clipping it to ≤ 1 helps adversarial robustness, generalization bounds, and GAN training stability. Standard clipping \(W \leftarrow W / \max(1, \|W\|_2)\) requires SVD or many power-iteration steps.

mclip reuses the streaming power iteration state already maintained by Muon (\(u_t\), \(v_t\)) to estimate \(\sigma_1 \approx u_t^\top W v_t\), then:

\[W \leftarrow W - \max(0, \sigma_1 - 1) \cdot u_t v_t^\top\]

This subtracts a rank-one correction only when \(\sigma_1 > 1\), at \(O(mn)\) cost (one matrix-vector product, one outer product, one subtraction).

Geometric intuition: \(W = \sum_i \sigma_i u_i v_i^\top\) is a set of weighted beams; mclip dims only the brightest one each step. Over training, the second-largest singular value eventually becomes the largest and gets clipped in turn — like a gardener cutting the tallest blade of grass each day. Convergence to all \(\sigma_i \leq 1\) holds within at most \(n\) steps for a fixed \(W\); in training, small gradient steps are corrected promptly. It behaves like projected gradient descent with soft projection.

Other Streaming Computations

  • Matrix square root (Newton-Schulz style): \(Y_{k+1} = \frac{1}{2} Y_k (3I - Y_k^2)\), streamed with one update per step.
  • Inverse estimation: \(Z_{k+1} = 2Z_k - Z_k A Z_k\).
  • Streaming PCA via Oja's rule: \(v_{t+1} = v_t + \eta_t (x_t x_t^\top v_t - (v_t^\top x_t x_t^\top v_t) v_t)\) — the spiritual sibling of Muon's streaming power iteration.

Unified View and Cost Comparison

General streaming framework: maintain state \(S_t\) with a cheap update \(S_t \leftarrow \mathrm{Update}(S_{t-1}, W_t)\) so that \(S_t \approx f(W_t)\). Requirements: function continuity, cheap iterations, slowly changing parameters.

| Method | Complexity | Constant factor | |---|---|---| | Full SVD projection | \(O(mn^2)\) | Large (∼10–20n) | | Multi-step Newton-Schulz | \(O(kmn^2)\) | Moderate (∼k) | | Spectral normalization | \(O(mn + n^2)\) | Small | | Streaming Newton-Schulz | \(O(mn)\) | Very small | | mclip | \(O(mn)\) | Very small |

Streaming methods scale linearly with parameter count, yielding order-of-magnitude speedups for large models. In adversarial training and WGAN experiments, mclip reliably keeps the spectral norm below 1.

Conclusion

Streaming Newton-Schulz and mclip demonstrate that complex matrix computations need not be performed monolithically; they can be dissolved into per-step micro-adjustments within the training loop. Together they round out the Muon family — orthogonal projection safeguarding gradient flow, spectral clipping enforcing Lipschitz constraints — opening a path toward efficient training of trillion-parameter models.

References

1. Su Jianlin. Streaming power iteration based Muon implementation, Part 5: Extensions. Scientific Spaces, kexue.fm/archives/11719. 2. Su Jianlin. Earlier Muon optimizer series posts (streaming power iteration core ideas). Scientific Spaces. 3. Literature on polar decomposition and Newton-Schulz iteration (Stiefel manifold applications). 4. Theory and practice of spectral norm / Lipschitz constraints in GANs and adversarial training. 5. Unified streaming computation frameworks for incremental matrix operations and Oja's rule extensions.

Tags

#deep-learning#optimization#muon-optimizer#newton-schulz#spectral-normalization#orthogonal-constraints#stiefel-manifold#streaming-computation

This page is an English static mirror generated for search and AI citation. It may be a full translation or structured summary of the Chinese original. Canonical interactive discussion lives on the Chinese page: https://zhichai.net/topic/177618582