SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2410.08198 · 2024

Adam Exploits $\ell_\infty$-geometry of Loss Landscape via Coordinate-wise Adaptivity

arXiv · PDF · Open in the Atlas

Code that ran

7 of 10 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; 7 failures of our instrument; 3 no recorded run), measured 2026-11-23; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; 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/2410.08198.json · badge: /api/ran/2410.08198.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
mohamad-amin/adam-coordinate-adaptivity canonical (classifier label)
classifier basis: census
7 ran · 3 no recorded run
FunctionStatusWhere it lives
UID Ran
ran; our contract draft was wrong, not the code
mohamad-amin/adam-coordinate-adaptivity/src/util/util.py
code served (permissive licence) · get_code("fbf63052382288a7")
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 hashlib
import json

# The function UID takes a config parameter and creates an MD5 hash of its JSON representation
# The config must be JSON-serializable (dict, list, str, int, float, bool, None)

# Construct a valid config dictionary with various data types to test the function
config = {
    "model_name": "test_model",
    "learning_rate": 0.001,
    "batch_size": 32,
    "epochs": 10,
    "use_dropout": True,
    "layers": [64, 128, 256],
    "seed": 42,
    "optimizer": "adam",
    "nested": {
        "activation": "relu",
        "hidden_dim": 512
    }
}

ARGS = {
    "config": config
}
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
get_or_make Ran
ran; our contract draft was wrong, not the code
mohamad-amin/adam-coordinate-adaptivity/src/util/jax_utils.py
code served (permissive licence) · get_code("5b4861bd8def8524")
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

torch.manual_seed(0)

# The function get_or_make takes two parameters:
# 1. d: a dictionary
# 2. key: a key to look up or insert in the dictionary
# 
# The function either returns an existing value from the dict,
# or creates a new empty dict at that key and returns it.
# 
# We need to provide a dict and a key.

d = {"existing_key": {"nested": "value"}}
key = "new_key"

ARGS = {
    "d": d,
    "key": key,
}
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
load_log Ran
ran; our contract draft was wrong, not the code
mohamad-amin/adam-coordinate-adaptivity/src/util/util.py
code served (permissive licence) · get_code("c376a3d8fa47fdfc")
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 Logger. 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 logging
from colorlog import ColoredFormatter

# The function load_log takes one parameter: name (a string)
# It creates and configures a logger, so we just need to provide a valid string name

ARGS = {
    "name": "test_logger"
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
colorlog — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Logger — a Logger output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Logger 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
map_torch_name_to_flax_key Ran
ran; our contract draft was wrong, not the code
mohamad-amin/adam-coordinate-adaptivity/src/util/torch_to_flax.py
code served (permissive licence) · get_code("e60ddbbb9cc51133")
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
import torch.nn as nn

torch.manual_seed(0)

# Analyzing the function: map_torch_name_to_flax_key
# Parameters: name (str)
# The function:
# - Splits the name by '.'
# - Checks for patterns like '_w_u', '.ln_', '.attn.', '.mlp.', '.wte.', '.wpe.'
# - Returns a tuple of (path_list_or_None, bool)
# 
# We need to provide test cases for the 'name' parameter that exercise different branches

ARGS = {
    "name": "transformer.h.0.ln_1.weight"
}
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
new_gelu Ran
ran; our contract draft was wrong, not the code
mohamad-amin/adam-coordinate-adaptivity/src/model/model.py
code served (permissive licence) · get_code("92101b06ecbf1f1e")
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) and returned Tensor, ndim 2, dtype family float, shape (2, 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 math

torch.manual_seed(0)

# The function new_gelu takes a single parameter 'x' which should be a tensor
# It performs mathematical operations on x: addition, multiplication, power, tanh
# So x needs to be a torch.Tensor that supports these operations

x = torch.randn(2, 4)

ARGS = {
    "x": x
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
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 (2, 4) — shape (2, 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
tree_load Ran
ran; our contract draft was wrong, not the code
mohamad-amin/adam-coordinate-adaptivity/src/util/util.py
code served (permissive licence) · get_code("22ac4a608be0570c")
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 pickle
from pathlib import Path
import tempfile

# Create a temporary directory and file for testing
temp_dir = tempfile.mkdtemp()
temp_path = Path(temp_dir) / "test_data.pytree"

# Create sample data to pickle
sample_data = {
    "key1": [1, 2, 3],
    "key2": {"nested": "value"},
    "key3": 42.5
}

# Write the sample data to a .pytree file
with open(temp_path, 'wb') as f:
    pickle.dump(sample_data, f)

# Define ARGS with the path parameter
ARGS = {
    "path": temp_path
}
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 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
tree_path_to_name Ran
ran; our contract draft was wrong, not the code
mohamad-amin/adam-coordinate-adaptivity/src/util/jax_utils.py
code served (permissive licence) · get_code("2593bc3ed5a143b0")
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 torch

class PathElement:
    def __init__(self, key):
        self.key = key

path = [
    PathElement("layer"),
    PathElement("weight"),
    PathElement("param")
]

ARGS = {
    "path": path
}
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 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
create_diagonal_matrix Not yet run
unverified (harvested, no recorded run)
mohamad-amin/adam-coordinate-adaptivity/src/engine/hessian/jax_hessian_eval_engine.py
code served (permissive licence) · get_code("7c991ceb6053723f")
How it ran

no invocation recorded.

random_split_like_tree Not yet run
unverified (harvested, no recorded run)
mohamad-amin/adam-coordinate-adaptivity/src/util/jax_utils.py
code served (permissive licence) · get_code("206f6bb7e0e53762")
How it ran

no invocation recorded.

transfer_state_dict_to_params Not yet run
unverified (harvested, no recorded run)
mohamad-amin/adam-coordinate-adaptivity/src/util/torch_to_flax.py
code served (permissive licence) · get_code("03707f1467bf6fb3")
How it ran

no invocation recorded.

Also present in other papers' code

Of 10 samples lifted from this paper's linked repositories, 10 carry a function identity and 0 do not. Of the 10 distinct functions with an identity, 1 are also present in other papers whose code we hold (1 with at least one paper dated earlier, 1 the same month, 1 later) and 9 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
new_gelu 9 other papers
6 dated earlier, 1 the same month, 2 later
2210.13319 (2022-10)
MARS: Meta-Learning as Score Matching in the Function Space
2307.03381 (2023-07)
Teaching Arithmetic to Small Transformers
2309.07207 (2023-09)
EarthPT: a time series foundation model for Earth Observation
and 6 more not named here

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

Adam outperforms SGD when training language models. Yet this advantage is not well-understood theoretically -- previous convergence analysis for Adam and SGD mainly focuses on the number of steps $T$ and is already minimax-optimal in non-convex cases, which are both $\widetilde{O}(T^{-1/4})$. In this work, we argue that the exploitation of nice $\ell_\infty$-geometry is the key advantage of Adam over SGD. More specifically, we give a new convergence analysis for Adam under novel assumptions that loss is smooth under $\ell_\infty$-geometry rather than the more common $\ell_2$-geometry, which yields a much better empirical smoothness constant for GPT-2 and ResNet models. Our experiments confirm that Adam performs much worse when the favorable $\ell_\infty$-geometry is changed while SGD provably remains unaffected. We also extend the convergence analysis to blockwise Adam under novel blockwise smoothness assumptions.

For agents

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

get_harvested_code_for_paper("2410.08198")
get_code_for_paper("2410.08198")
have("2410.08198")

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

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

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

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

Connect an agent — have() is free.