QR Muon Backend #
The real-valued QR orthogonalizer, its positive-pivot condition, and the exact certificates it supplies to Muon updates.
QR/Gram-Schmidt orthogonalizer: return the Q factor of the fresh matrix buffer.
Instances For
The success condition for TorchLean's executable QR orthogonalizer.
Instances For
Entry rule for matrix-shaped tensor addition over $\mathbb{R}$.
Entry rule for matrix-shaped tensor scaling over $\mathbb{R}$.
Entry rule for matrix-shaped tensor subtraction over $\mathbb{R}$.
Right multiplication by the identity matrix leaves a real matrix unchanged.
Three scaled copies of the same real matrix combine into one scaled copy using the sum of the coefficients.
If three scaled copies of a matrix are added and the coefficients sum to one, the result is the original matrix.
Scaling an exact-column-orthogonal real matrix by a scalar whose square is one preserves exact column Gram.
Scaling an exact-column-orthogonal real matrix gives an approximate Gram certificate whenever $|k^2-1|$ is bounded by the requested tolerance.
If $Q^\mathsf{T}Q=I$, then one column-oriented Newton-Schulz step returns $(a+b+c)Q$.
For real coefficients whose sum is one, an exact-column-orthogonal matrix is a fixed point of one column-oriented Newton-Schulz step.
If $Q^\mathsf{T}Q=I$ and $(a+b+c)^2=1$, then one column-oriented Newton-Schulz step still has exact column Gram.
If $Q^\mathsf{T}Q=I$ and $|(a+b+c)^2-1|\leq\varepsilon$, then one column-oriented Newton-Schulz step has entrywise Gram residual bounded by $\varepsilon$.
If the Newton-Schulz coefficients sum to one, exact column Gram is enough to satisfy the exact fixed-point backend's success predicate.
For real coefficients with $a+b+c=1$, exact column Gram of the fresh momentum buffer is enough to certify a Newton-Schulz Muon update exactly.
For real coefficients with $a+b+c=1$, exact column Gram of the fresh momentum buffer gives $Q^\mathsf{T}Q=I$ for the actual Newton-Schulz update direction.
Initialized version: exact column Gram of the first fresh momentum buffer and $a+b+c=1$ certify the first Newton-Schulz Muon step exactly.
The QR orthogonalizer satisfies the exact Muon direction contract whenever the executable QR pivots of the input buffer are positive.
QR packaged as a checked exact Muon backend.
Instances For
Concrete QR-backed Muon step theorem: if the fresh momentum buffer has positive QR pivots, the executable Muon update has a certified exact step.
Concrete QR-backed direction theorem: if the fresh momentum buffer has positive QR pivots, the actual direction used by the Muon update has column Gram $I$.
Initialized QR-backed Muon step theorem: if the first fresh momentum buffer has positive QR pivots, the first initialized Muon update has a certified exact step.
Initialized QR-backed direction theorem: if the first fresh momentum buffer has positive QR pivots, the first initialized Muon update direction has column Gram $I$.