ZICQ
中 Log in / Sign up
Newsroom Research & Papers #Manifold Optimization #Manifold Muon #Stiefel Manifold #Riemannian Optimization #Large-Model Training

Thinking Machines Lab Proposes Modular Manifolds for Constrained Optimization

Avatar of Mr.Xu

By Mr.Xu Compiled & Reviewed by Editorial

Published:

中文阅读 (Chinese) English Version
Co-reading Select any sentence in the article to highlight, annotate, or copy a quote card. Join discussion ↓

Summary:Thinking Machines Lab introduces Modular Manifolds, a framework for co-designing neural-network constraints and optimizers. Instead of taking an ambient Euclidean update and projecting it back afterward, the method constructs a tangent-space direction and applies a retraction that keeps each module on its intended geometric manifold. A proposed Manifold Muon variant constrains matrix weights to the Stiefel manifold, where the matrix retains unit singular values and a condition number of one. Th


Core Takeaway

Thinking Machines Lab reframes weight stability in large-model training as a joint design problem involving the optimizer and the geometry of its parameter space. Weights are no longer treated as ambient Euclidean tensors that happen to be projected afterward. Instead, each module is placed on a manifold with a defined numerical role, gradients are mapped into the local tangent space, and a retraction returns the parameters to the manifold.

This is not a model release or a fully validated training stack. The representative Manifold Muon proposal constrains matrix weights to the Stiefel manifold, where the matrix has unit singular values and a condition number of one. The broader idea of Modular Manifolds assigns different geometric constraints to modules with different functional properties.

Why projecting after the update is not enough

A conventional optimizer approximately performs Wₜ₊₁ = Wₜ − ηgₜ. To enforce a constraint set M, one could project after the step:

Wₜ₊₁ = P_M(Wₜ − ηgₜ).

This is convenient, but the original update may point far outside the constraint set. Projection then discards its normal component, so the actual displacement no longer equals the learning rate η. The optimizer also has no mechanism for adapting its direction to the constraint: the fastest ambient descent direction may become tiny after projection.

Manifold optimization reverses that order. A general formulation is:

  1. Compute the tangent gradient gₜ = Π_T(Wₜ)(g).
  2. Construct the tangent update Zₜ = −ηgₜ.
  3. Retract to the manifold: Wₜ₊₁ = R_W(Wₜ + Zₜ).

Here Π_T is the tangent-space projection and R_W maps a tangent vector back to the manifold. For a vector w on a hypersphere, tangent directions satisfy wᵀa = 0. Under the Euclidean metric, the optimal direction is:

a* = −η(g − (gᵀw)w) / ‖g − (gᵀw)w‖₂.

The learning rate can therefore correspond more closely to the distance traveled in the chosen local geometry, rather than to an ambient displacement later distorted by projection.

The metric determines the descent direction

Riemannian geometry does not provide a single notion of distance. The tangent-space inner product is commonly written as G_w(u,v) = uᵀM_wv, where M_w is positive definite. Changing M changes both the projected gradient and the steepest direction under a fixed step-length budget.

On a hypersphere, for example, moving along the Euclidean gradient is not necessarily the direction that maximizes loss reduction within a fixed-length ℓ₁ tangent ball. The optimal direction under a non-Euclidean metric need not be parallel to the ordinary gradient. Metric selection is thus an optimizer design decision, not a cosmetic parameter.

This creates a natural route to module-specific geometry. An embedding can live on a unit hypersphere, a matrix can live on a Stiefel manifold, and a module with rotational, translational, or low-rank structure can use constraints that reflect those symmetries. A useful metric should be selected from the module's sensitivity to scale, direction, and perturbation, not merely because a particular geometric object is fashionable.

Manifold Muon and the Stiefel manifold

Matrix weights are harder to control than vectors because their behavior depends on singular values, orientation, and conditioning. Muon-style matrix optimers use orthogonalization to control the spectral scale of updates. Manifold Muon extends the idea from the update itself to the weight matrix.

The Stiefel manifold St(n,p) is the set of n×p matrices satisfying XᵀX = Iₚ. For n ≥ p, all nonzero singular values are one, so the matrix has unit condition number as a linear map. With the canonical metric, the tangent space at X consists of matrices Z satisfying:

XᵀZ + ZᵀX = 0.

The projection of an ambient gradient G is:

Π_T(X)(G) = G − X·sym(XᵀG),

where sym(A) = (A + Aᵀ)/2. QR decomposition and polar decomposition are candidate retractions, although the supplied material does not establish which kernel or reorthogonalization schedule would be used in an implementation.

The potential benefits are substantial but local. Constraints can prevent weight-norm explosion, clarify the meaning of update magnitudes, and remove some ill-conditioned modes from a single matrix. EDM2's weight constraints and BiT's weight standardization provide precedent for paying attention to weight geometry. Manifold Muon's stronger claim is that the constraint should shape the optimizer rather than act as an after-the-fact sanitizer. The proposal builds on related work by Jianlin Su and Franz-Louis Cesista.

A unit condition number for one matrix does not imply a unit condition number for the entire network. Cross-layer Jacobians, normalization layers, attention operators, and residual connections can still amplify perturbations. Manifold constraints may make local robustness analysis more tractable, but they do not automatically provide an end-to-end Lipschitz guarantee.

The modular extension

Modularity means that a parameter set can be decomposed into components with independent geometries, conceptually forming a product manifold:

M = M₁ × M₂ × … × Mₖ.

An embedding may use a hypersphere, a linear matrix may use the Stiefel manifold, and a low-rank adapter may benefit from a rank-aware parameterization. Each module can then update in its own tangent space before the parameters are combined into the full model.

This is more flexible than applying one weight norm to the entire network and more natural than forcing every layer into the same geometry. It does not, however, decouple the network's function. Forward computation still couples layers, and changing the scale of one module can alter the effective learning rates seen by downstream modules. The goal is to choose the correct local geometry for each module, not to turn the model into independently trained fragments.

Engineering trade-offs

  • Retraction overhead: QR or polar decomposition can require cubic work for a dense matrix. Batched GPU kernels and matrix-native Muon optimizers reduce constants, but wide matrices still require direct measurement.
  • Distributed constraints are harder: column-sharded matrices do not naturally represent one global Stiefel constraint. Global QR needs cross-shard communication or extra reductions, which can erase part of the numerical benefit.
  • Momentum must live in a compatible space: If momentum accumulates in the ambient space while updates are applied in the tangent space, stale normal components can contaminate the direction. Tangent-space momentum or explicit reprojection may be necessary.
  • Hyperparameter semantics change: The learning rate now approximates a tangent displacement, but metric scale and momentum still alter the effective update. AdamW or Muon learning rates should not be transferred without rescanning.
  • The constraint removes degrees of freedom: Stiefel geometry eliminates free singular values. Layers that need uneven spectral structure may not benefit from a unit-condition-number prior.
  • Low-precision drift accumulates: Orthogonality errors under BF16 or FP16 can accumulate over many steps. Implementations should monitor orthogonality residuals and decide where FP32 reorthogonalization is justified.

What remains unproven

The supplied material does not report unified benchmarks, model sizes, training-token counts, absolute losses, convergence speed, throughput, memory use, or downstream results. It therefore does not establish that Manifold Muon outperforms AdamW, standard Muon, or simple weight normalization.

A credible comparison should hold the model, data order, batch size, token budget, and random seeds constant while scanning learning rate and weight decay. It should measure final loss and downstream quality, steps and wall-clock time to a target loss, tokens/s, peak memory, MFU, multi-GPU scaling, gradient signal-to-noise ratio, update norms, and condition numbers. Variance across seeds and worst-task behavior are as important as the mean.

Ablations must separate tangent updates, manifold retraction, and metric choice. Otherwise, any improvement could be attributed to extra computation, changed effective learning rates, or the constraint itself rather than to the proposed co-design.

A practical implementation path

  1. Implement canonical-metric tangent updates and QR retraction for one linear layer. Compare against AdamW, standard Muon, and projected Muon.
  2. Log both tangent update norms and post-retraction displacement so learning rates remain comparable across implementations.
  3. Sweep module-level learning rates, momentum coefficients, and metric scaling rather than inheriting Euclidean defaults.
  4. Compare the Euclidean metric with ℓ₁-aligned or function-weighted metrics to test whether functional metric matching actually helps.
  5. Add sharded QR, cross-rank orthogonalization, and low-precision drift control only after single-device stability is established.
  6. Combine module-specific manifolds last, then check whether local optimization gains survive the coupling introduced by the full network.

The important contribution of Modular Manifolds is not another clipping trick. It makes the optimizer's geometry explicit and recognizes that the parameter space can change the meaning of a gradient. If Manifold Muon can control matrix scale without giving up throughput, it may open a new route for co-designing constraints and optimizers in large-scale training. If the retraction cost remains too high, the approach may be most valuable in models with strong structural constraints or robustness requirements.


Source: Thinking Machines Lab Blog (2026-11-29)

— END —

Tags: #Manifold Optimization #Manifold Muon #Stiefel Manifold #Riemannian Optimization #Large-Model Training

Editorial & Fact-Checking Note: This article is compiled from primary research, official release documentation, and source papers by the ZICQ Newsroom pipeline with automated entity verification and human editorial review. If you notice any technical inaccuracy, please submit a correction via our corrections policy or email our editorial desk directly.

What's your take on this story?
Explore & Submit Works

Community Comments

Loading live comments and annotations…