SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2605.17109 · 2026

DynMuon: A Dynamic Spectral Shaping View of Muon

Richard Zhang, Mit, -Madison, Sandeep Silwal, Rikhav Shah, Fangzhou Wu

arXiv · PDF · Open in the Atlas

Code that ran

5 of 13 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 5 failures of our instrument; 8 no recorded run), measured 2026-11-23; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2605.17109.json · badge: /api/ran/2605.17109.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
fzwark/DynMuon canonical (classifier label)
classifier basis: census
5 ran · 8 no recorded run
FunctionStatusWhere it lives
adjust_lr_rms_norm Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
fzwark/DynMuon/dynmuon/muon.py
code served (permissive licence) · get_code("108dabd52e56fd7a")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned float, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import math

# Define ARGS with all parameters for adjust_lr_rms_norm
ARGS = {
    "lr": 0.001,
    "param_shape": (8, 4, 3),
    "flatten": True
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
make_work_view Ran
ran; our contract draft was wrong, not the code
fzwark/DynMuon/dynmuon/dion2.py
code served (permissive licence) · get_code("c3fd994cb3f31ec3")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# The function make_work_view takes a tensor M and returns a tuple of (Tensor, bool)
# It checks if the last two dimensions satisfy I < J (height < width)
# If so, it transposes and returns True, otherwise returns the original tensor and False

# Create a test tensor with distinct dimensions to probe shapes
# Using shape (2, 4, 3) where last two dims are I=4, J=3
M = torch.randn(2, 4, 3)

ARGS = {
    "M": M,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple — a tuple output has no array shape of its own; none is stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
muon_update_newton_schulz Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
fzwark/DynMuon/dynmuon/dynmuon.py
code served (permissive licence) · get_code("55f3b260f2d8ad92")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 4, dtype family float, shape (2, 4, 3, 3) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn

torch.manual_seed(0)

# Create a simple Newton-Schulz function that takes X and epsilon as arguments
def newton_schulz_func(X, epsilon):
    """
    A mock Newton-Schulz iteration function.
    Takes a tensor X and epsilon, returns a tensor of the same shape.
    """
    # Simple mock implementation: just normalize or scale by epsilon
    return X / (1.0 + epsilon)

# Create input tensor with shape (2, 4, 3, 3) - batch=2, channels=4, height=3, width=3
X = torch.randn(2, 4, 3, 3)

# Create epsilon tensor - a small scalar tensor
epsilon = torch.tensor(1e-6)

# Set up the arguments dictionary
ARGS = {
    "X": X,
    "newton_schulz_func": newton_schulz_func,
    "flatten": True,
    "epsilon": epsilon,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 4, dtype family float, shape (2, 4, 3, 3) — shape (2, 4, 3, 3) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
pad_batch Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
fzwark/DynMuon/dynmuon/opt_utils.py
code served (permissive licence) · get_code("c87588f218c6b548")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned list, ndim 3, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
from torch import Tensor
from typing import List

torch.manual_seed(0)

# Create a small batch of tensors
# Each tensor has shape (2, 4) for distinctness
tensor1 = torch.randn(2, 4)
tensor2 = torch.randn(2, 4)

batch = [tensor1, tensor2]
batch_size = 5

ARGS = {
    "batch": batch,
    "batch_size": batch_size,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 3, dtype family float — a list output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
tensor_list_to_batch Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
fzwark/DynMuon/dynmuon/dion.py
code served (permissive licence) · get_code("d4a192aee47e233b")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# Create small tensor lists for M and Q
# M is a list of 2D tensors, Q is a list of 2D tensors
M = [
    torch.randn(4, 3),
    torch.randn(4, 3)
]

Q = [
    torch.randn(4, 5),
    torch.randn(4, 5)
]

ARGS = {
    "M": M,
    "Q": Q,
    "is_transposed": False
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple — a tuple output has no array shape of its own; none is stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
apply_rotary_emb Not yet run
unverified (harvested, no recorded run)
fzwark/DynMuon/models/gpt_model.py
code served (permissive licence) · get_code("0f4f2333e89a6c8c")
How it ran

no invocation recorded.

dynmuon_spectral_transform Not yet run
unverified (harvested, no recorded run)
fzwark/DynMuon/dynmuon/dynmuon.py
code served (permissive licence) · get_code("236cf49c684e8b2b")
How it ran

no invocation recorded.

fractional_orthonormalize_update Not yet run
unverified (harvested, no recorded run)
fzwark/DynMuon/dynmuon/dion2.py
code served (permissive licence) · get_code("7389be48732fd21c")
How it ran

no invocation recorded.

muon_update_pre_orthogonalize Not yet run
unverified (harvested, no recorded run)
fzwark/DynMuon/dynmuon/dynmuon.py
code served (permissive licence) · get_code("dd589cd9a5cfb32c")
How it ran

no invocation recorded.

normuon_normalization Not yet run
unverified (harvested, no recorded run)
fzwark/DynMuon/dynmuon/normuon.py
code served (permissive licence) · get_code("a3f2d02d0570518a")
How it ran

no invocation recorded.

topk_and_orthonormalize Not yet run
unverified (harvested, no recorded run)
fzwark/DynMuon/dynmuon/dion2.py
code served (permissive licence) · get_code("c519983769c2088e")
How it ran

no invocation recorded.

zeropower_via_newtonschulz5 Not yet run
unverified (harvested, no recorded run)
fzwark/DynMuon/dynmuon/muon_reference.py
code served (permissive licence) · get_code("2c92c3e5770228d4")
How it ran

no invocation recorded.

zeropower_via_newtonschulz5 Not yet run
unverified (harvested, no recorded run)
fzwark/DynMuon/dynmuon/newton_schulz_triton.py
code served (permissive licence) · get_code("fbcadf5bf33cd8bd")
How it ran

no invocation recorded.

Also present in other papers' code

Of 13 samples lifted from this paper's linked repositories, 13 carry a function identity and 0 do not. Of the 13 distinct functions with an identity, 2 are also present in other papers whose code we hold (2 with at least one paper dated earlier, 0 the same month, 0 later) and 11 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
apply_rotary_emb 2 other papers
2 dated earlier
2501.06425 (2025-01)
Tensor Product Attention Is All You Need
2604.01472 (2026-04)
The Newton-Muon Optimizer
pad_batch 1 other paper
1 dated earlier
2411.16085 (2024-11)
Cautious Optimizers: Improving Training with One Line of Code

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

In recent years, Muon has emerged as the dominant method for training large language models, and transformers more broadly. The essential difference, when compared to standard gradient descent methods, is to replace the usual update matrix M = U ΣV ⊤ with its polar factor U V ⊤ . In this work, we consider a class of Muon-like updates, where we replace the update M with U Σ p V ⊤ for some parameter p. We call this a "spectral-shaping" operation, and develop a theory of how to pick p which depends on (a) local curvature of the loss function, (b) noise stemming from stochastic gradients and label noise, and (c) training stage. Our theory and experimentation reveal a previously overlooked behavior: positive p helps early by emphasizing high-curvature directions and accelerating signal contraction, while mildly negative p helps later by reallocating update strength toward low-curvature directions that still contain useful training signals. Building on the insight, we propose DynMuon, an efficient dynamic spectral shaping method that schedules p from positive to mildly negative over training. Extensive experiments across model sizes, architectures, and training settings show that DynMuon consistently achieves lower validation loss than Muon, while requiring 10.6-26.5% fewer steps to reach the same target loss. Our code is available at https://github.com/fzwark/DynMuon. Our Results To answer this question, we generalize Muon as one point in a power-law family of what we call spectral-shaping operations, where p is the spectral exponent: † The remaining authors are listed alphabetically.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2605.17109")
get_code_for_paper("2605.17109")
have("2605.17109")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2605.17109.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2605.17109.svg)](https://syntology.ai/paper/2605.17109)

Connect an agent — have() is free.