SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2602.11948 · 2026

Insights on Muon from Simple Quadratics

Nicolas Boumal, Antoine Gonon, Andreea-Alexandra Muşat

arXiv · PDF · Open in the Atlas

Code that ran

14 of 19 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; 4 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 10 failures of our instrument; 5 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/2602.11948.json · badge: /api/ran/2602.11948.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
agonon/muon-on-quadratics canonical (classifier label)
classifier basis: census
14 ran · 5 no recorded run
FunctionStatusWhere it lives
build_results_by_kind Ran
ran; our contract draft was wrong, not the code
agonon/muon-on-quadratics/plot_improvement_bars.py
code served (permissive licence) · get_code("6319d8bd2ed13c09")
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 dict. 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
import os
import tempfile
import glob

torch.manual_seed(0)

# Create a temporary directory structure with minimal required files
tmpdir = tempfile.mkdtemp()

# Create instance directories with problem.pt and experiments subdirs
for i in range(2):
    inst_name = f"instance_{i:03d}"
    inst_dir = os.path.join(tmpdir, inst_name)
    os.makedirs(inst_dir, exist_ok=True)
    
    # Create problem.pt with a kind field
    problem_data = {
        'kind': ['flat_max', 'gaussian'][i % 2],
        'data': torch.randn(2, 4)
    }
    torch.save(problem_data, os.path.join(inst_dir, 'problem.pt'))
    
    # Create experiments directory with exp_*.pt files
    exp_dir = os.path.join(inst_dir, 'experiments')
    os.makedirs(exp_dir, exist_ok=True)
    
    for j in range(2):
        exp_data = {
            'results': {
                'metric1': 0.5 + j * 0.1,
                'metric2': [1.0, 2.0, 3.0]
            }
        }
        torch.save(exp_data, os.path.join(exp_dir, f'exp_{j:02d}.pt'))

ARGS = {
    'outdir': tmpdir,
    'match': None,
    'max_instances': None,
    'max_experiments': None,
    'kinds_filter': None
}
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 dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not 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
compare Ran
ran; our contract draft was wrong, not the code
agonon/muon-on-quadratics/muon/runner.py
code served (permissive licence) · get_code("1af94b2c0fe0f0bf")
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 dict. 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
import torch.nn as nn
import torch.optim as optim

torch.manual_seed(0)

# Define a simple loss function that takes a list of parameters
def loss_fn(params):
    """Compute a simple quadratic loss"""
    loss = torch.tensor(0.0)
    for p in params:
        loss = loss + (p ** 2).sum()
    return loss

# Create initial parameters
params0 = [
    torch.randn(4, 3),
    torch.randn(5),
]

# Define optimizer constructors
def sgd_ctor(params):
    return optim.SGD(params, lr=0.01)

def adam_ctor(params):
    return optim.Adam(params, lr=0.01)

# Define a scheduler constructor
def scheduler_ctor(optimizer):
    return optim.lr_scheduler.StepLR(optimizer, step_size=2, gamma=0.5)

# Create the algos dict with different optimizers
algos = {
    "sgd": sgd_ctor,
    "adam": adam_ctor,
}

# Set number of steps
steps = 5

# Construct ARGS dictionary
ARGS = {
    "loss_fn": loss_fn,
    "params0": params0,
    "algos": algos,
    "steps": steps,
    "sched_ctor": scheduler_ctor,
}
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 dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not 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
extract_kind Ran
ran; our contract draft was wrong, not the code
agonon/muon-on-quadratics/muon/plotting.py
code served (permissive licence) · get_code("15b2a1a2f7e72da8")
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 str. 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 re

def extract_kind(s: str) -> str:
    """
    Extract kind from strings like:
      "kind=flat_max_n=128_din=... "
    Underscores are allowed inside kind.
    """
    m = re.search('kind=(.*?)_n=', s)
    if not m:
        raise ValueError(f'Could not parse kind from: {s}')
    return m.group(1)


# Setup code to construct valid arguments
ARGS = {
    "s": "kind=flat_max_n=128_din=64_dout=32"
}
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 str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not 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
find_instance_dirs Ran
ran; our contract draft was wrong, not the code
agonon/muon-on-quadratics/plot_A_eigs_row.py
code served (permissive licence) · get_code("4f7610c619c3e3c2")
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 1, 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 os
import tempfile
import torch

# Create a temporary directory structure for testing
temp_dir = tempfile.mkdtemp()

# Create some subdirectories, some with problem.pt files, some without
os.makedirs(os.path.join(temp_dir, "run_001"), exist_ok=True)
os.makedirs(os.path.join(temp_dir, "run_002"), exist_ok=True)
os.makedirs(os.path.join(temp_dir, "run_003"), exist_ok=True)

# Create problem.pt files in some directories
torch.save({"data": "dummy"}, os.path.join(temp_dir, "run_001", "problem.pt"))
torch.save({"data": "dummy"}, os.path.join(temp_dir, "run_003", "problem.pt"))

# Create a file (not a directory) to test filtering
with open(os.path.join(temp_dir, "not_a_dir.txt"), "w") as f:
    f.write("test")

ARGS = {
    "runs_dir": temp_dir,
    "match": None,
}
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 1, 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
find_instance_dirs Ran
ran; our contract draft was wrong, not the code
agonon/muon-on-quadratics/plot_improvement_bars.py
code served (permissive licence) · get_code("1bf7cdfa82f8b8cb")
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 1, 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 os
import tempfile
import torch

# Create a temporary directory structure with the expected layout
temp_dir = tempfile.mkdtemp()

# Create a few instance directories with the required structure
for i in range(3):
    inst_name = f"instance_{i:02d}"
    inst_path = os.path.join(temp_dir, inst_name)
    os.makedirs(inst_path, exist_ok=True)
    
    # Create problem.pt file
    torch.save(torch.tensor([1, 2, 3]), os.path.join(inst_path, 'problem.pt'))
    
    # Create experiments directory
    os.makedirs(os.path.join(inst_path, 'experiments'), exist_ok=True)

# Create one directory that doesn't match the criteria (no problem.pt)
bad_inst_path = os.path.join(temp_dir, "bad_instance")
os.makedirs(bad_inst_path, exist_ok=True)

# Create one directory with problem.pt but no experiments dir
partial_inst_path = os.path.join(temp_dir, "partial_instance")
os.makedirs(partial_inst_path, exist_ok=True)
torch.save(torch.tensor([1, 2, 3]), os.path.join(partial_inst_path, 'problem.pt'))

ARGS = {
    'root': temp_dir,
    'match': None,
    'max_instances': None
}
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 1, 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
grad_fro_norm Ran
ran, honoured the contract we drafted
agonon/muon-on-quadratics/muon/runner.py
code served (permissive licence) · get_code("5960dd486e0bc04a")
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 torch
import torch.nn as nn
import math

torch.manual_seed(0)

class SimpleModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear1 = nn.Linear(4, 3)
        self.linear2 = nn.Linear(3, 2)
    
    def forward(self, x):
        x = self.linear1(x)
        x = self.linear2(x)
        return x

model = SimpleModel()

# Create a dummy input and perform a forward pass with backward
x = torch.randn(2, 4)
y = model(x)
loss = y.sum()
loss.backward()

# Extract parameters with gradients
params = list(model.parameters())

ARGS = {
    "params": params
}
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 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
load_eigs Ran
ran, honoured the contract we drafted
agonon/muon-on-quadratics/plot_A_eigs_row.py
code served (permissive licence) · get_code("552c1eb34631107b")
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 ndarray, ndim 1, dtype family float, shape (4,) 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 numpy as np

torch.manual_seed(0)

# Create a small symmetric matrix for testing
# The function expects 'A' to be a tensor and computes eigenvalues
A = torch.randn(4, 4, dtype=torch.float64)
A_sym = 0.5 * (A + A.T)

problem = {
    'A': A_sym
}

ARGS = {
    'problem': problem
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 1, dtype family float, shape (4,) — shape (4,) 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_X_from_singular_values Ran
ran; our contract draft was wrong, not the code
agonon/muon-on-quadratics/muon/data.py
code served (permissive licence) · get_code("0b247f30af0fc801")
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 2, dtype family float, shape (5, 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

torch.manual_seed(0)

ARGS = {
    "n": 5,
    "d_in": 3,
    "s": torch.tensor([2.0, 1.5, 0.8], dtype=torch.float32),
    "device": torch.device("cpu"),
    "dtype": torch.float32,
}
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 2, dtype family float, shape (5, 3) — shape (5, 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
make_algo_specs Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
agonon/muon-on-quadratics/main_experiments.py
code served (permissive licence) · get_code("9ec7028f61ce34b2")
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 1, 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
import numpy as np
from dataclasses import dataclass, asdict
from typing import Dict, Any, List, Optional, Tuple

torch.manual_seed(0)

ARGS = {
    "lrs": [0.001, 0.01, 0.1],
    "include_gd": True,
    "include_muon": True,
    "include_adam": True,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 1, 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
make_s Ran
ran, honoured the contract we drafted
agonon/muon-on-quadratics/muon/data.py
code served (permissive licence) · get_code("d740fafb9af74c9c")
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 1, dtype family float, shape (10,) 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 math

torch.manual_seed(0)

ARGS = {
    'r': 10,
    'kind': 'uniform',
    's_max': 1.0,
    's_min': 0.01,
    'alpha': 1.0,
    'device': 'cpu',
}
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 1, dtype family float, shape (10,) — shape (10,) 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_scheduler_from_spec Ran
ran; our contract draft was wrong, not the code
agonon/muon-on-quadratics/main_experiments.py
code served (permissive licence) · get_code("c21ba68ea456a1ad")
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 function. 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
import torch.nn as nn
from dataclasses import dataclass

torch.manual_seed(0)

@dataclass
class SchedSpec:
    type: str = 'ConstantLR'
    factor: float = 1.0
    total_iters: int = 0

# Create a simple model and optimizer for testing
model = nn.Linear(4, 3)
optimizer = torch.optim.SGD(model.parameters(), lr=0.1)

# Create spec for ConstantLR scheduler
spec = SchedSpec(type='ConstantLR', factor=0.9, total_iters=0)

# Number of steps
steps = 100

ARGS = {
    'spec': spec,
    'steps': steps
}
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 function — a function output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a function output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not 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
newtonschulz5 Ran
ran; our contract draft was wrong, not the code
agonon/muon-on-quadratics/muon/projections.py
code served (permissive licence) · get_code("54c444464a2705ee")
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. 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)

# Construct a small 2D gradient matrix
# Using distinct dimensions (4x3) for clarity
G = torch.randn(4, 3)

ARGS = {
    "G": G,
    "steps": 5,
    "eps": 1e-07,
}
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, shape (4, 3) — shape (4, 3) as a later run recorded it
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
polar_exact Ran
ran; our contract draft was wrong, not the code
agonon/muon-on-quadratics/muon/projections.py
code served (permissive licence) · get_code("22d4698f79ef6672")
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 2, dtype family float, shape (4, 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

torch.manual_seed(0)

# G is a 2D tensor (matrix)
# The function expects a 2D tensor that can be decomposed via SVD
# Using distinct dimensions: 4 rows, 3 columns for clear shape identification
G = torch.randn(4, 3, dtype=torch.float32)

ARGS = {
    "G": G
}
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 2, dtype family float, shape (4, 3) — shape (4, 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
run Ran
ran, honoured the contract we drafted
agonon/muon-on-quadratics/muon/runner.py
code served (permissive licence) · get_code("bb3178d49685d225")
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 1, 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
import torch.nn as nn
import torch.optim as optim

torch.manual_seed(0)

# Define a simple loss function that uses the params
def loss_fn(params):
    # Simple quadratic loss: sum of squares
    loss = sum(torch.sum(p ** 2) for p in params)
    return loss

# Initialize some parameter tensors
params0 = [
    torch.randn(4, 3),
    torch.randn(5, 2),
]

# Define optimizer constructor
def opt_ctor(params):
    return optim.SGD(params, lr=0.01)

# Define scheduler constructor
def sched_ctor(opt):
    return optim.lr_scheduler.StepLR(opt, step_size=2, gamma=0.9)

# Number of optimization steps
steps = 5

ARGS = {
    "loss_fn": loss_fn,
    "params0": params0,
    "opt_ctor": opt_ctor,
    "steps": steps,
    "sched_ctor": sched_ctor,
}
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 1, 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
build_instance Not yet run
unverified (harvested, no recorded run)
agonon/muon-on-quadratics/muon/data.py
code served (permissive licence) · get_code("ec53bb5c75652e76")
How it ran

no invocation recorded.

median_ranges_best_lr Not yet run
unverified (harvested, no recorded run)
agonon/muon-on-quadratics/muon/plotting_improvement_bars.py
code served (permissive licence) · get_code("7baca9b8aced0821")
How it ran

no invocation recorded.

plot_family_drilldowns Not yet run
unverified (harvested, no recorded run)
agonon/muon-on-quadratics/muon/plotting.py
code served (permissive licence) · get_code("9910f7de9736cf8a")
How it ran

no invocation recorded.

plot_traces_side_by_side Not yet run
unverified (harvested, no recorded run)
agonon/muon-on-quadratics/muon/plotting.py
code served (permissive licence) · get_code("1b5cec9a3492ff74")
How it ran

no invocation recorded.

select_best_lr_run Not yet run
unverified (harvested, no recorded run)
agonon/muon-on-quadratics/muon/plotting_improvement_bars.py
code served (permissive licence) · get_code("f487c9785bb4e779")
How it ran

no invocation recorded.

Also present in other papers' code

Of 19 samples lifted from this paper's linked repositories, 19 carry a function identity and 0 do not. Of the 19 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 19 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.

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

Muon updates weight matrices along (approximate) polar factors of the gradients and has shown strong empirical performance in large-scale training. Existing attempts at explaining its performance largely focus on single-step comparisons (on quadratic proxies) and worst-case guarantees that treat the inexactness of the polar-factor as a nuisance "to be argued away". We show that already on simple strongly convex functions such as L(W ) = 1 2 ∥W ∥ 2 F , these perspectives are insufficient, suggesting that understanding Muon requires going beyond local proxies and pessimistic worst-case bounds. Instead, our analysis exposes two observations that already affect behavior on simple quadratics and are not well captured by prevailing abstractions: (i) approximation error in the polar step can qualitatively alter discrete-time dynamics and improve reachability and finite-time performance-an effect practitioners exploit to tune Muon, but that existing theory largely treats as a pure accuracy compromise; and (ii) structural properties of the objective affect finite-budget constants beyond the prevailing conditioning-based explanations. Thus, any general theory covering these cases must either incorporate these ingredients explicitly or explain why they are irrelevant in the regimes of interest. Code. github.com/agonon/muon-on-quadratics.

For agents

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

get_harvested_code_for_paper("2602.11948")
get_code_for_paper("2602.11948")
have("2602.11948")

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

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

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

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

Connect an agent — have() is free.