SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2605.06615 · 2026

When and Why SignSGD Outperforms SGD: A Theoretical Study Based on ℓ 1 -norm Lower Bounds

Lijun Zhang, Dingzhi Yu, Hongyi Tao

arXiv · PDF · Open in the Atlas

Code that ran

8 of 12 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; 2 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 6 failures of our instrument; 4 no recorded run), measured 2026-11-24; 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.06615.json · badge: /api/ran/2605.06615.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
epfml/llm-optimizer-benchmark canonical (classifier label)
classifier basis: census
6 ran · 2 no recorded run
Dingzhen230/SignSGD_Outperforms_SGD canonical (classifier label)
classifier basis: census
2 ran · 2 no recorded run
FunctionStatusWhere it lives
entropy_reg Ran
ran; our contract draft was wrong, not the code
epfml/llm-optimizer-benchmark/src/models/moe.py
code served (permissive licence) · get_code("1f1b81b26e97e55b")
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 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.functional as F

torch.manual_seed(0)

# Create a small logits tensor with batch size 2 and 4 logit values
# Shape: (batch_size=2, num_classes=4)
logits = torch.randn(2, 4)

# Define ARGS dict with all parameters for entropy_reg
ARGS = {
    "logits": logits,
    "mean_over_batch": True,
}
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 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_balancing_loss_ Ran
ran; our contract draft was wrong, not the code
epfml/llm-optimizer-benchmark/src/models/moe.py
code served (permissive licence) · get_code("a69212d334eb9bc7")
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 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.functional as F

torch.manual_seed(0)

# Set up dimensions
batch_size_times_seq_length = 2
num_experts = 4
num_selected_experts = 2

# Create router_probs: shape [batch_size * sequence_length, num_experts]
# This represents probability assigned to each expert per token
router_probs = torch.rand(batch_size_times_seq_length, num_experts, dtype=torch.float32)

# Create expert_indices: shape [batch_size * sequence_length, num_selected_experts]
# These are indices identifying the top num_selected_experts for a given token
# Each value should be in range [0, num_experts)
expert_indices = torch.randint(0, num_experts, (batch_size_times_seq_length, num_selected_experts), dtype=torch.long)

ARGS = {
    'router_probs': router_probs,
    'expert_indices': expert_indices,
}
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 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
log_mean Ran
ran; our contract draft was wrong, not the code
epfml/llm-optimizer-benchmark/src/models/moe.py
code served (permissive licence) · get_code("2f520af81f2675ca")
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 (2,) 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)

# Create a small tensor with shape (2, 4) - batch size 2, dimension 4
x = torch.randn(2, 4)

# dim parameter specifies which dimension to reduce over
dim = 1

ARGS = {
    "x": x,
    "dim": dim
}
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 (2,) — shape (2,) 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
move_to_cpu Ran
ran; our contract draft was wrong, not the code
epfml/llm-optimizer-benchmark/src/logger/logger.py
code served (permissive licence) · get_code("1bd86a911c3f78a3")
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 copy
import torch

torch.manual_seed(0)

# Create test data structures with tensors on CPU
tensor_on_cpu = torch.randn(2, 4)
nested_dict = {
    'a': torch.randn(2, 3),
    'b': {
        'c': torch.randn(2, 4, 5),
        'd': 42
    }
}
nested_list = [
    torch.randn(2, 4),
    [torch.randn(3, 4), 'string'],
    {'key': torch.randn(2, 2)}
]
nested_tuple = (
    torch.randn(2, 4),
    (torch.randn(3, 2), 100),
    {'nested': torch.randn(2, 3)}
)
mixed_structure = {
    'tensors': [torch.randn(2, 4), torch.randn(3, 4)],
    'scalars': [1, 2.5, 'test'],
    'nested': (torch.randn(2, 2), {'inner': torch.randn(4, 3)})
}

ARGS = {
    'data': mixed_structure,
    'clone': 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 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
precompute_freqs_cis Ran
ran, honoured the contract we drafted
epfml/llm-optimizer-benchmark/src/models/llama.py
code served (permissive licence) · get_code("a1d6f89d43fc42e1")
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 3, dtype family float, shape (2, 2, 2) 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 = {
    "dim": 4,
    "end": 2,
    "theta": 10000.0,
}
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 3, dtype family float, shape (2, 2, 2) — shape (2, 2, 2) 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_experiment Ran
ran, honoured the contract we drafted
Dingzhen230/SignSGD_Outperforms_SGD/toy_models/sto.py
pointer only (licence: NONE) · get_code("d83a5bca8e23539e")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Dingzhen230/SignSGD_Outperforms_SGD when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

run_trajectory Ran
ran; our contract draft was wrong, not the code
Dingzhen230/SignSGD_Outperforms_SGD/toy_models/deter.py
pointer only (licence: NONE) · get_code("2c4b2d77d356e906")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Dingzhen230/SignSGD_Outperforms_SGD when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

self_preserving_overwrite Ran
ran; our contract draft was wrong, not the code
epfml/llm-optimizer-benchmark/src/logger/logger.py
code served (permissive licence) · get_code("198aea734522a443")
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 functools import wraps

def self_preserving_overwrite(method):

    @wraps(method)
    def _impl(inner_self, *args, **kwargs):
        return method(*args, **kwargs)
    return _impl


# Create a simple test method
def test_method(*args, **kwargs):
    return "test_result"


# ARGS must map every parameter of self_preserving_overwrite to a value
# The only parameter is 'method', which should be a callable
ARGS = {
    "method": test_method
}
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
apply_rotary_emb Not yet run
unverified (harvested, no recorded run)
epfml/llm-optimizer-benchmark/src/models/llama.py
code served (permissive licence) · get_code("9891174b43bd9c9a")
How it ran

no invocation recorded.

get_model Not yet run
unverified (harvested, no recorded run)
epfml/llm-optimizer-benchmark/src/models/utils.py
code served (permissive licence) · get_code("d2ddaef321aaffbf")
How it ran

no invocation recorded.

none_or_str Not yet run
unverified (harvested, no recorded run)
Dingzhen230/SignSGD_Outperforms_SGD/nanoGPT_expt/src/config/base.py
pointer only (licence: NONE) · get_code("2fc6fdb85f13dc41")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Dingzhen230/SignSGD_Outperforms_SGD when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

sample_cifar_gradient Not yet run
unverified (harvested, no recorded run)
Dingzhen230/SignSGD_Outperforms_SGD/resnet_expt/gradient_utils.py
pointer only (licence: NONE) · get_code("14221e01e48f4caf")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Dingzhen230/SignSGD_Outperforms_SGD when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

Also present in other papers' code

Of 12 samples lifted from this paper's linked repositories, 12 carry a function identity and 0 do not. Of the 12 distinct functions with an identity, 9 are also present in other papers whose code we hold (9 with at least one paper dated earlier, 4 the same month, 0 later) and 3 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
none_or_str 16 other papers
15 dated earlier, 1 the same month
1810.01845 (2018-10)
Task-Oriented Hand Motion Retargeting for Dexterous Manipulation Imitation
1909.10893 (2019-09)
Recurrent Independent Mechanisms
2109.11251 (2021-09)
Trust Region Policy Optimisation in Multi-Agent Reinforcement Learning
and 13 more not named here
precompute_freqs_cis 6 other papers
5 dated earlier, 1 the same month
2405.18392 (2024-05)
Scaling Laws and Compute-Optimal Training Beyond Fixed Training Durations
2502.05003 (2025-02)
QuEST: Stable Training of LLMs with 1-Bit Weights and Activations
2507.09846 (2025-07)
Through the River: Understanding the Benefit of Schedule-Free Methods for Language Model Training
and 3 more not named here
apply_rotary_emb 5 other papers
4 dated earlier, 1 the same month
2405.18392 (2024-05)
Scaling Laws and Compute-Optimal Training Beyond Fixed Training Durations
2507.09846 (2025-07)
Through the River: Understanding the Benefit of Schedule-Free Methods for Language Model Training
2602.02016 (2026-02)
DASH: Faster Shampoo via Batched Block Preconditioning and Efficient Inverse-Root Solvers
and 2 more not named here
move_to_cpu 5 other papers
5 dated earlier
2405.18392 (2024-05)
Scaling Laws and Compute-Optimal Training Beyond Fixed Training Durations
2502.05003 (2025-02)
QuEST: Stable Training of LLMs with 1-Bit Weights and Activations
2507.09846 (2025-07)
Through the River: Understanding the Benefit of Schedule-Free Methods for Language Model Training
and 2 more not named here
self_preserving_overwrite 5 other papers
5 dated earlier
2405.18392 (2024-05)
Scaling Laws and Compute-Optimal Training Beyond Fixed Training Durations
2502.05003 (2025-02)
QuEST: Stable Training of LLMs with 1-Bit Weights and Activations
2507.09846 (2025-07)
Through the River: Understanding the Benefit of Schedule-Free Methods for Language Model Training
and 2 more not named here
entropy_reg 2 other papers
2 dated earlier
2507.09846 (2025-07)
Through the River: Understanding the Benefit of Schedule-Free Methods for Language Model Training
2602.07425 (2026-02)
Sign-Based Optimizers Are Effective Under Heavy-Tailed Noise
get_model 2 other papers
1 dated earlier, 1 the same month
2507.09846 (2025-07)
Through the River: Understanding the Benefit of Schedule-Free Methods for Language Model Training
2605.19811 (2026-05)
LionMuon: Alternating Spectral and Sign Descent for Efficient Training
load_balancing_loss_ 2 other papers
2 dated earlier
2507.09846 (2025-07)
Through the River: Understanding the Benefit of Schedule-Free Methods for Language Model Training
2602.07425 (2026-02)
Sign-Based Optimizers Are Effective Under Heavy-Tailed Noise
log_mean 2 other papers
2 dated earlier
2507.09846 (2025-07)
Through the River: Understanding the Benefit of Schedule-Free Methods for Language Model Training
2602.07425 (2026-02)
Sign-Based Optimizers Are Effective Under Heavy-Tailed Noise

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-24.

Repositories linked to this paper

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

Abstract

Sign-based optimization algorithms, such as SignSGD and Muon, have garnered significant attention for their remarkable performance in training large foundation models. Despite this empirical success, we still lack a theoretical understanding of when and why these sign-based methods outperform vanilla SGD. The core obstacle is that under standard smoothness and finite variance conditions, SGD is known to be minimax optimal for finding stationary points measured by ℓ 2 -norms, thereby fundamentally precluding any complexity gains for sign-based methods in standard settings. To overcome this barrier, we analyze sign-based optimizers leveraging ℓ 1 -norm stationarity, ℓ ∞ -smoothness, and a separable noise model, which can better capture the coordinate-wise nature of signed updates. Under this distinct problem geometry, we derive matched upper and lower bounds for SignSGD and explicitly characterize the problem class in which SignSGD provably dominates SGD. Specifically, we compare the upper bound of SignSGD with the lower bound of SGD, illustrating that SignSGD effectively reduces the complexity by a factor of d under sparse noise, where d is the problem dimension. Furthermore, we elevate this framework to the matrix domain, providing an equivalent optimal lower bound for the Muon optimizer, proving that extending the sign operator to matrices preserves this optimal scaling with dimensionality. Finally, we bridge our theoretical bounds to practice, demonstrating that the theoretical superiority of SignSGD accurately predicts its faster convergence during the pretraining of a 124M parameter GPT-2 model. Code is available at https://github.com/ Dingzhen230/SignSGD_Outperforms_SGD.

For agents

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

get_harvested_code_for_paper("2605.06615")
get_code_for_paper("2605.06615")
have("2605.06615")

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

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

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

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

Connect an agent — have() is free.