Modular Manifolds: Co-Designing Optimizers with Weight Constraints
- Source
- thinkingmachines.ai
- Publisher
- Thinking Machines
- Author
- Thinking Machines
- Date

Context
Large neural networks train more predictably when the numbers inside them stay at a known size. Activations are routinely normalized, and the post reads the Muon optimizer as normalizing each update, but the weight matrices themselves are less commonly held to any fixed size. In Modular Manifolds, published by Thinking Machines in September 2025, Jeremy Bernstein argues for constraining weights to a chosen curved surface, a manifold, and then deriving the optimizer from that rather than adding a correction afterward.
The obvious approach is to take an ordinary step and project the weights back onto the surface. The post instead steps within the tangent space, the flat approximation of the surface at the current point, and then applies a small correction called a retraction. Its stated reason is bookkeeping: when the step stays on the surface, the learning rate almost equals the actual length of the step, a property that does not hold when steps point well off the surface and are pulled back. Under this recipe an optimizer is defined by two choices, the surface and the way step length is measured. The post's table shows familiar methods falling out of particular pairings, including plain gradient descent from unconstrained space with ordinary Euclidean distance, and Muon from unconstrained matrices measured with the spectral norm, which is the largest factor by which a matrix can stretch an input.
Manifold Muon is the new pairing. For a weight matrix that multiplies an input vector, the post chooses the Stiefel manifold, the set of matrices whose singular values are all exactly one, so the matrix neither shrinks nor inflates the inputs it acts on. It keeps the spectral norm so that a single update has a bounded effect on outputs. Finding the best step under both conditions is harder than in the simple case. The post treats it as a convex problem and solves it by dual ascent, a standard iterative method that adjusts Lagrange multipliers, building on work by Jianlin Su and Franz Louis Cesista. Each step ends by resetting all singular values to one with the matrix sign , which the post says can be computed efficiently on GPUs with Newton-Schulz iteration or the recent Polar Express algorithm.
The modular part concerns whole networks. The per-layer optimizer stays the same, and each layer's learning rate is scaled according to where the layer sits, through a combined norm whose weighting coefficients budget learning rates across layers. This builds on an earlier modular norm paper co-authored by Bernstein. The experimental support is deliberately small: a sanity-check experiment whose runs each finish in under a minute, released as a minimal implementation. The post presents itself as an introduction to a research area, and its open questions include whether hard manifold constraints are the right way to constrain weight matrices at all and what algorithmic advances efficient use at scale on GPUs would require.
- Constraint — A requirement a setup must meet regardless of how well it performs otherwise, such as where documents may be sent or a date by which the work must be done.
- Function — A named block of instructions that takes inputs, called arguments, and hands back a result, called its return value.
- Training — The process that adjusts a model using examples and a measure of how well it performs.
- postInkling 2 Mini gets day-0 local inference across Mac and DGX Spark
articleInkling 2 Small is free on OpenCode: 1M context, agentic-coding tuned
articleWhy temperature 0 still isn't deterministic, and how to fix it
articleTinker goes GA with Kimi K2 Thinking, vision input, OpenAI-compatible sampling

