Muon Step Certificates #
This module connects a backend's orthogonalization contract to the direction, state, and parameter values produced by one executable Muon update. The generic checked-backend theorems are the public proof interface; concrete QR and Newton-Schulz backends instantiate them in their own modules.
Evidence that direction is exactly the output of an orthogonalizer on buffer and has column
Gram matrix $I$.
The certified direction is the backend output.
- exact_column_gram : HasExactColumnGram direction
The certified direction has exact column Gram $I$.
Instances For
Evidence that direction is exactly the output of an orthogonalizer on buffer and has an
entrywise column-Gram residual bounded by $\varepsilon$.
The certified direction is the backend output.
- approx_column_gram : HasApproxColumnGram eps direction
The certified direction satisfies the requested residual bound.
Instances For
Certificate for one exact Muon update: the fresh momentum buffer is orthogonalized, the new state stores that buffer, and the parameters move along the certified direction.
- direction_cert : ExactCertifiedDirection state.orthogonalizer (update state params grads).1.buf direction
Certificate for the direction computed from the fresh momentum buffer.
- state_eq : (update state params grads).1 = { lr := state.lr, momentum := state.momentum, buf := OptimizerUtils.updateMomentumBuf state.buf state.momentum grads, orthogonalizer := state.orthogonalizer }
Muon changes only the momentum buffer in its optimizer state.
- params_eq : (update state params grads).2 = Spec.Tensor.subSpec params (Spec.Tensor.scaleSpec direction state.lr)
Parameter equation for the certified update direction.
Instances For
The residual-bounded counterpart of ExactCertifiedStep.
- direction_cert : ApproxCertifiedDirection eps state.orthogonalizer (update state params grads).1.buf direction
Certificate for the direction computed from the fresh momentum buffer.
- state_eq : (update state params grads).1 = { lr := state.lr, momentum := state.momentum, buf := OptimizerUtils.updateMomentumBuf state.buf state.momentum grads, orthogonalizer := state.orthogonalizer }
Muon changes only the momentum buffer in its optimizer state.
- params_eq : (update state params grads).2 = Spec.Tensor.subSpec params (Spec.Tensor.scaleSpec direction state.lr)
Parameter equation for the certified update direction.
Instances For
A local exact backend fact for the fresh buffer produces a certified Muon step.
A local residual bound for the fresh buffer produces a certified Muon step.
A checked exact backend certifies the concrete direction and equations of one Muon update whenever its success predicate holds on the fresh momentum buffer.
A checked approximate backend certifies one Muon update whenever its success predicate establishes the requested Gram-residual bound on the fresh momentum buffer.
A checked exact backend gives $Q^\mathsf{T}Q=I$ for the direction used by an update.
A checked approximate backend gives its residual bound for the direction used by an update.
Extract exact column orthogonality from a certified step.
Extract the Gram-residual bound from an approximate certified step.