SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2606.14259 · 2026

Beyond a Single Explanation of the Adam-SGD Gap

Aurelien Lucchi, Rustem Islamov, Antonio Orvieto, Enea Compagnoni, Jun Pang, Chenxiang Zhang

arXiv · PDF · Open in the Atlas

Code that ran

22 of 25 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, 1 violated it and 0 have no contract verdict; 17 failures of our instrument; 3 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/2606.14259.json · badge: /api/ran/2606.14259.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
orientino/gap canonical (classifier label)
classifier basis: census
16 ran · 0 no recorded run
LiamMa/GRIT canonical (classifier label)
classifier basis: census
6 ran · 3 no recorded run
FunctionStatusWhere it lives
accuracy_SBM Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
LiamMa/GRIT/grit/logger.py
code served (permissive licence) · get_code("ecf14287d3465c48")
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 float64, ndim 0, 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 numpy as np
import torch

torch.manual_seed(0)

# Create mock targets as a torch tensor
# The function expects targets to have .cpu().detach().numpy() method
targets = torch.tensor([0, 1, 0, 1, 2, 2], dtype=torch.long)

# Create mock predictions as integers (class indices)
# Should match targets shape
pred_int = np.array([0, 1, 0, 1, 2, 1], dtype=np.int64)

ARGS = {
    "targets": targets,
    "pred_int": pred_int
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, sklearn, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float64, ndim 0, dtype family float — no output shape is stated: observe_signature.py recorded float ndim 0, which disagrees with the fixture run
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
add_aggregate_loss Ran
ran; our contract draft was wrong, not the code
orientino/gap/_plot_utils.py
code served (permissive licence) · get_code("9ca8f33fe86bb265")
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 DataFrame. 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 numpy as np
import pandas as pd

# Create a sample dataframe with training loss histories
# The function expects 'tr_loss_history' column with string representations of lists
data = {
    'tr_loss_history': [
        str([0.5, 0.4, 0.35, 0.32, 0.31, 0.30, 0.29, 0.28, 0.27, 0.26]),
        str([0.6, 0.5, 0.45, 0.40, 0.38, 0.37, 0.36, 0.35, 0.34, 0.33]),
    ],
    'other_col': [1, 2]
}

df = pd.DataFrame(data)

ARGS = {
    'df': df,
    'window': 0.01,
    'ema_alpha': 0.05
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, pandas — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type DataFrame — a DataFrame output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a DataFrame output the recorded ndim 2 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 Ran
ran; our contract draft was wrong, not the code
orientino/gap/language/model.py
code served (permissive licence) · get_code("c400816c9ec79f9f")
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, 3, 4, 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

torch.manual_seed(0)

# x: shape (B, n_heads, T, d_head)
# Let's use B=2, n_heads=3, T=4, d_head=4
x = torch.randn(2, 3, 4, 4)

# freqs_cis: shape (T, d_head//2, 2)
# The function indexes it as freqs_cis[:, :, 0] and freqs_cis[:, :, 1]
# So it needs shape (T, d_head//2, 2) where T=4, d_head//2=2
freqs_cis = torch.randn(4, 2, 2)

ARGS = {
    "x": x,
    "freqs_cis": freqs_cis
}
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, 3, 4, 4) — shape (2, 3, 4, 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
compute_axial_cis Ran
ran, violated the contract we drafted
orientino/gap/vision/model.py
code served (permissive licence) · get_code("85a782a793e8ffe1")
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 (12, 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

torch.manual_seed(0)

ARGS = {
    "dim": 8,
    "end_x": 4,
    "end_y": 3,
    "theta": 100,
}
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 (12, 4) — shape (12, 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
convnext_tiny Ran
ran; our contract draft was wrong, not the code
orientino/gap/vision/model_convnext.py
code served (permissive licence) · get_code("2d81ed4b2a99020d")
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 ConvNeXt. 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 timm

torch.manual_seed(0)

ARGS = {
    'n_classes': 10
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
timm, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ConvNeXt — a ConvNeXt output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a ConvNeXt 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
eval_spearmanr Ran
ran; our contract draft was wrong, not the code
LiamMa/GRIT/grit/logger.py
code served (permissive licence) · get_code("9dc78001d467fc9d")
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 numpy as np
from scipy.stats import stats

# Test case 1: 1D arrays (single task)
y_true_1d = np.array([1.0, 2.0, 3.0, 4.0, 5.0])
y_pred_1d = np.array([1.1, 2.2, 2.9, 4.1, 4.8])

# Test case 2: 2D arrays (multiple tasks) with some NaN values
y_true_2d = np.array([
    [1.0, 2.0, 3.0],
    [2.0, np.nan, 4.0],
    [3.0, 3.0, np.nan],
    [4.0, 4.0, 5.0],
    [5.0, 5.0, 6.0]
], dtype=float)

y_pred_2d = np.array([
    [1.1, 2.1, 3.1],
    [2.1, 1.9, 4.1],
    [3.1, 3.1, 5.1],
    [4.1, 3.9, 5.1],
    [5.1, 5.1, 6.1]
], dtype=float)

# Use 1D case for ARGS
ARGS = {
    'y_true': y_true_1d,
    'y_pred': y_pred_1d
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, scipy — 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
gcnn_small Ran
ran; our contract draft was wrong, not the code
orientino/gap/language/model_gcnn.py
code served (permissive licence) · get_code("ca1f47b2a6e190ce")
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 GCNN. 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 numpy as np
import math

torch.manual_seed(0)

ARGS = {
    'seq_len': 128,
    'n_layers': 2,
    'd_embed': 64,
    'kernel_size': 4,
}
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 GCNN — a GCNN output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a GCNN 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_dataloaders Ran
ran; our contract draft was wrong, not the code
orientino/gap/genomics/data.py
code served (permissive licence) · get_code("4740a336be8375d0")
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, 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 numpy as np
import torch
from torch.utils.data import DataLoader, Dataset

torch.manual_seed(0)

# Create temporary directory for test data
temp_dir = tempfile.mkdtemp()

# Create minimal binary data files for hg38_char dataset
hg38_char_dir = os.path.join(temp_dir, 'hg38_char')
os.makedirs(hg38_char_dir, exist_ok=True)

# Create small train.bin and val.bin files with uint8 dtype
train_tokens = np.random.randint(0, 256, size=2048, dtype=np.uint8)
val_tokens = np.random.randint(0, 256, size=1024, dtype=np.uint8)

train_path = os.path.join(hg38_char_dir, 'train.bin')
val_path = os.path.join(hg38_char_dir, 'val.bin')

train_tokens.tofile(train_path)
val_tokens.tofile(val_path)

# Create minimal binary data files for hg38_kmer dataset
hg38_kmer_dir = os.path.join(temp_dir, 'hg38_kmer5_s2')
os.makedirs(hg38_kmer_dir, exist_ok=True)

kmer_train_tokens = np.random.randint(0, 1024, size=2048, dtype=np.uint16)
kmer_val_tokens = np.random.randint(0, 1024, size=1024, dtype=np.uint16)

kmer_train_path = os.path.join(hg38_kmer_dir, 'train.bin')
kmer_val_path = os.path.join(hg38_kmer_dir, 'val.bin')

kmer_train_tokens.tofile(kmer_train_path)
kmer_val_tokens.tofile(kmer_val_path)

ARGS = {
    'dataset': 'hg38_char',
    'k': 5,
    'stride': 2,
    'dir_data': temp_dir,
    'seq_len': 64,
    'batch_size': 2,
    'n_workers': 0,
}
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 tuple, ndim 1, dtype family float — a tuple 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
get_final_pretrained_ckpt Ran
ran; our contract draft was wrong, not the code
LiamMa/GRIT/grit/finetuning.py
code served (permissive licence) · get_code("1bb331bf70a78136")
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 os
import tempfile
import shutil

# Create a temporary directory with checkpoint files
temp_dir = tempfile.mkdtemp()

# Create some checkpoint files with epoch numbers
checkpoint_files = ['1.ckpt', '2.ckpt', '5.ckpt', '3.ckpt']
for ckpt_file in checkpoint_files:
    filepath = os.path.join(temp_dir, ckpt_file)
    with open(filepath, 'w') as f:
        f.write('dummy checkpoint data')

# Define arguments for the function
ARGS = {
    'ckpt_dir': temp_dir
}
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_hg38_char_dataloaders Ran
ran; our contract draft was wrong, not the code
orientino/gap/genomics/data.py
code served (permissive licence) · get_code("2e17c467e6e1c07f")
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, 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 numpy as np
import torch
from torch.utils.data import DataLoader, Dataset

torch.manual_seed(0)
np.random.seed(0)

# Create temporary directory with binary files
temp_dir = tempfile.mkdtemp()
hg38_char_dir = os.path.join(temp_dir, 'hg38_char')
os.makedirs(hg38_char_dir, exist_ok=True)

# Create small binary files for train and val
train_tokens = np.random.randint(0, 256, size=2048, dtype=np.uint8)
val_tokens = np.random.randint(0, 256, size=1024, dtype=np.uint8)

train_path = os.path.join(hg38_char_dir, 'train.bin')
val_path = os.path.join(hg38_char_dir, 'val.bin')

train_tokens.tofile(train_path)
val_tokens.tofile(val_path)

ARGS = {
    'dir_data': temp_dir,
    'seq_len': 256,
    'batch_size': 4,
    'n_workers': 0,
}
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 tuple, ndim 1, dtype family float — a tuple 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
get_hg38_kmer_dataloaders Ran
ran; our contract draft was wrong, not the code
orientino/gap/genomics/data.py
code served (permissive licence) · get_code("cb48934d64099708")
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, 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 numpy as np
import torch
from torch.utils.data import DataLoader, Dataset

torch.manual_seed(0)

# Create temporary directory with minimal binary data files
tmpdir = tempfile.mkdtemp()
subdir = os.path.join(tmpdir, 'hg38_kmer3_s1')
os.makedirs(subdir, exist_ok=True)

# Create minimal train.bin and val.bin files
# Using uint16 as specified in the function signature
train_data = np.arange(2048, dtype=np.uint16)
val_data = np.arange(1024, dtype=np.uint16)

train_file = os.path.join(subdir, 'train.bin')
val_file = os.path.join(subdir, 'val.bin')

train_data.tofile(train_file)
val_data.tofile(val_file)

ARGS = {
    'dir_data': tmpdir,
    'k': 3,
    'stride': 1,
    'seq_len': 1024,
    'batch_size': 64,
    'n_workers': 0,
}
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 tuple, ndim 1, dtype family float — a tuple 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
get_log_deg Ran
ran, honoured the contract we drafted
LiamMa/GRIT/grit/layer/grit_layer.py
code served (permissive licence) · get_code("b5c9e7acf599a98a")
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, 1) 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_geometric as pyg

torch.manual_seed(0)

# Create a minimal batch object that mimics torch_geometric Data
class MinimalBatch:
    def __init__(self, num_nodes, edge_index):
        self.num_nodes = num_nodes
        self.edge_index = edge_index
    
    def __contains__(self, key):
        return hasattr(self, key)
    
    def __getitem__(self, key):
        return getattr(self, key)

# Create test data
num_nodes = 5
# Edge index: shape [2, num_edges]
edge_index = torch.tensor([
    [0, 1, 2, 3, 1],
    [1, 2, 3, 4, 0]
], dtype=torch.long)

batch = MinimalBatch(num_nodes=num_nodes, edge_index=edge_index)

ARGS = {
    'batch': batch
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch, torch_geometric — 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, 1) — shape (5, 1) 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
gpt_small Ran
ran; our contract draft was wrong, not the code
orientino/gap/language/model.py
code served (permissive licence) · get_code("3896a13d569e632c")
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 GPT. 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 math

torch.manual_seed(0)

ARGS = {
    "seq_len": 128,
    "n_layers": 2,
    "n_heads": 2,
    "d_embed": 64,
}
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 GPT — a GPT output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a GPT 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
init_model_from_pretrained Ran
ran; our contract draft was wrong, not the code
LiamMa/GRIT/grit/finetuning.py
code served (permissive licence) · get_code("9e4db46ba20af98e")
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 SimpleModel. 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 os
import os.path as osp
import tempfile
from torch_geometric.graphgym.checkpoint import MODEL_STATE

torch.manual_seed(0)

# Create a temporary directory structure for pretrained checkpoints
temp_dir = tempfile.mkdtemp()
ckpt_dir = osp.join(temp_dir, '0', 'ckpt')
os.makedirs(ckpt_dir, exist_ok=True)

# Create a simple model class
class SimpleModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.main_layer = nn.Linear(4, 3)
        self.post_mp = nn.Linear(3, 2)
    
    def forward(self, x):
        x = self.main_layer(x)
        x = self.post_mp(x)
        return x

# Create a pretrained model and save its state
pretrained_model = SimpleModel()
pretrained_state = pretrained_model.state_dict()

# Save checkpoint with epoch number in filename
ckpt_data = {MODEL_STATE: pretrained_state}
ckpt_path = osp.join(ckpt_dir, '5.ckpt')
torch.save(ckpt_data, ckpt_path)

# Create a fresh model to load into
model = SimpleModel()

# Define the arguments
ARGS = {
    'model': model,
    'pretrained_dir': temp_dir,
    'freeze_main': False,
    'reset_prediction_head': True,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch, torch_geometric — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type SimpleModel — a SimpleModel output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a SimpleModel 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
init_t_xy Ran
ran, honoured the contract we drafted
orientino/gap/vision/model.py
code served (permissive licence) · get_code("27d774f9c3ee1a49")
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, ndim 2, 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

torch.manual_seed(0)

# Analyze the function:
# - end_x: used in modulo operation (% end_x) and torch.div
# - end_y: used in multiplication with end_x (end_x * end_y)
# - Both should be positive integers representing grid dimensions

ARGS = {
    "end_x": 4,
    "end_y": 3,
}
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, ndim 2, dtype family float — a tuple 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
posemb_sincos_1d Ran
ran, honoured the contract we drafted
orientino/gap/language/model_gcnn.py
code served (permissive licence) · get_code("0ab15fea2bec5aaf")
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 2, dtype family float, shape (5, 8) 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 numpy as np

# Analyze the function:
# - seq_len: integer, sequence length
# - width: integer, must be even (asserted in function)
# - temperature: float, optional parameter with default 10000.0

# The function uses:
# - np.arange(seq_len) to create position indices
# - width // 2 to split the embedding dimension
# - np.einsum for outer product of positions and omega
# - np.sin and np.cos for sinusoidal embeddings
# - np.concatenate to combine sin and cos

# Build small valid arguments
seq_len = 5  # small sequence length
width = 8    # even number as required by assertion
temperature = 10000.0

ARGS = {
    'seq_len': seq_len,
    'width': width,
    'temperature': temperature
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 2, dtype family float, shape (5, 8) — shape (5, 8) 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
precompute_freqs_cis Ran
ran, honoured the contract we drafted
orientino/gap/language/model.py
code served (permissive licence) · get_code("07d78260ee121828")
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 (16, 4, 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": 8,
    "end": 16,
    "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 (16, 4, 2) — shape (16, 4, 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
reshape_for_broadcast Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
orientino/gap/vision/model.py
code served (permissive licence) · get_code("2a42dbf54fd0d1fe")
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 (1, 1, 3, 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

torch.manual_seed(0)

# Case 1: freqs_cis has shape (seq_len, head_dim) matching x's last 2 dims
# x has shape (batch, num_heads, seq_len, head_dim)
freqs_cis_2d = torch.randn(3, 4)  # (seq_len=3, head_dim=4)
x_4d = torch.randn(2, 5, 3, 4)    # (batch=2, num_heads=5, seq_len=3, head_dim=4)

# Test with the 2D case
ARGS = {
    "freqs_cis": freqs_cis_2d,
    "x": x_4d
}
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 (1, 1, 3, 4) — shape (1, 1, 3, 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
resnet18 Ran
ran; our contract draft was wrong, not the code
orientino/gap/vision/model_resnet.py
code served (permissive licence) · get_code("8d60dd66630e993f")
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 ResNet. 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 timm

torch.manual_seed(0)

ARGS = {
    'n_classes': 10
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
timm, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ResNet — a ResNet output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a ResNet 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
resnet50 Ran
ran; our contract draft was wrong, not the code
orientino/gap/vision/model_resnet.py
code served (permissive licence) · get_code("b592361a494969d3")
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 ResNet. 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 timm

torch.manual_seed(0)

ARGS = {
    'n_classes': 10
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
timm, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ResNet — a ResNet output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a ResNet 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
resnet_transition Ran
ran; our contract draft was wrong, not the code
orientino/gap/vision/model_transition.py
code served (permissive licence) · get_code("f4248ba076d7cd2b")
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 ResNetTransition. 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)

ARGS = {
    "n_classes": 10,
    "depthwise": False,
    "patchify_stem": False,
    "layernorm": False,
    "gelu": 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 ResNetTransition — a ResNetTransition output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a ResNetTransition 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
subtoken_cross_entropy Ran
ran; our contract draft was wrong, not the code
LiamMa/GRIT/grit/loss/subtoken_prediction_loss.py
code served (permissive licence) · get_code("47e492109e6d308f")
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
from torch_geometric.graphgym.config import cfg

torch.manual_seed(0)

# Configure the global config object for subtoken_prediction task
cfg.dataset.task_type = 'subtoken_prediction'
cfg.model.loss_fun = 'cross_entropy'

# Create pred_list: a list of tensors with logits for each subtoken position
# Each tensor should have shape (batch_size, num_classes)
batch_size = 2
num_classes = 4
num_subtokens = 3

pred_list = [
    torch.randn(batch_size, num_classes),
    torch.randn(batch_size, num_classes),
    torch.randn(batch_size, num_classes)
]

# Create true: a dict with 'y_arr' containing target token indices for each position
# Shape should be (batch_size, num_subtokens)
true = {
    'y_arr': torch.randint(0, num_classes, (batch_size, num_subtokens))
}

ARGS = {
    'pred_list': pred_list,
    'true': true
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch, torch_geometric — 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
adj_l1_losses Not yet run
unverified (harvested, no recorded run)
LiamMa/GRIT/grit/loss/adj.py
code served (permissive licence) · get_code("dc82c18c9d42c1c1")
How it ran

no invocation recorded.

l1_losses Not yet run
unverified (harvested, no recorded run)
LiamMa/GRIT/grit/loss/l1.py
code served (permissive licence) · get_code("d59c374db2cf64ae")
How it ran

no invocation recorded.

multilabel_cross_entropy Not yet run
unverified (harvested, no recorded run)
LiamMa/GRIT/grit/loss/multilabel_classification_loss.py
code served (permissive licence) · get_code("f1cbbbc857d8b871")
How it ran

no invocation recorded.

Also present in other papers' code

Of 25 samples lifted from this paper's linked repositories, 25 carry a function identity and 0 do not. Of the 25 distinct functions with an identity, 9 are also present in other papers whose code we hold (9 with at least one paper dated earlier, 0 the same month, 0 later) and 16 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
get_final_pretrained_ckpt 27 other papers
27 dated earlier
2302.04181 (2023-02)
Attending to Graph Transformers
2302.08647 (2023-02)
Multiresolution Graph Transformers and Wavelet Positional Encoding for Learning Hierarchical Structures
2305.08018 (2023-05)
DRew: Dynamically Rewired Message Passing with Delay
and 24 more not named here
eval_spearmanr 6 other papers
6 dated earlier
2305.17589 (2023-05)
Graph Inductive Biases in Transformers without Message Passing
2404.13604 (2024-04)
CKGConv: General Graph Convolution with Continuous Kernels
2405.13806 (2024-05)
A General Graph Spectral Wavelet Convolution via Chebyshev Order Decomposition
and 3 more not named here
init_model_from_pretrained 6 other papers
6 dated earlier
2305.12322 (2023-05)
Learning Large Graph Property Prediction via Graph Segment Training
2305.17589 (2023-05)
Graph Inductive Biases in Transformers without Message Passing
2306.07812 (2023-06)
Automated 3D Pre-Training for Molecular Property Prediction
and 3 more not named here
accuracy_SBM 5 other papers
5 dated earlier
2305.17589 (2023-05)
Graph Inductive Biases in Transformers without Message Passing
2404.13604 (2024-04)
CKGConv: General Graph Convolution with Continuous Kernels
2405.13806 (2024-05)
A General Graph Spectral Wavelet Convolution via Chebyshev Order Decomposition
and 2 more not named here
get_log_deg 5 other papers
5 dated earlier
2305.17589 (2023-05)
Graph Inductive Biases in Transformers without Message Passing
2310.19285 (2023-10)
Facilitating Graph Neural Networks with Random Walk on Simplicial Complexes
2404.03380 (2024-04)
On the Theoretical Expressive Power and the Design Space of Higher-Order Graph Transformers
and 2 more not named here
l1_losses 5 other papers
5 dated earlier
2305.17589 (2023-05)
Graph Inductive Biases in Transformers without Message Passing
2404.13604 (2024-04)
CKGConv: General Graph Convolution with Continuous Kernels
2405.13806 (2024-05)
A General Graph Spectral Wavelet Convolution via Chebyshev Order Decomposition
and 2 more not named here
multilabel_cross_entropy 5 other papers
5 dated earlier
2305.17589 (2023-05)
Graph Inductive Biases in Transformers without Message Passing
2404.13604 (2024-04)
CKGConv: General Graph Convolution with Continuous Kernels
2405.13806 (2024-05)
A General Graph Spectral Wavelet Convolution via Chebyshev Order Decomposition
and 2 more not named here
subtoken_cross_entropy 3 other papers
3 dated earlier
2305.17589 (2023-05)
Graph Inductive Biases in Transformers without Message Passing
2404.13604 (2024-04)
CKGConv: General Graph Convolution with Continuous Kernels
2502.09263 (2025-02)
Can Classic GNNs Be Strong Baselines for Graph-level Tasks? Simple Architectures Meet Excellence
adj_l1_losses 2 other papers
2 dated earlier
2305.17589 (2023-05)
Graph Inductive Biases in Transformers without Message Passing
2404.13604 (2024-04)
CKGConv: General Graph Convolution with Continuous Kernels

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

Prior work has identified several factors that can contribute to the performance gap between Adam and SGD, spanning data aspects, architecture design, and optimization properties. Yet these explanations are often studied in isolation, leaving their relative importance unclear. In this work, we revisit these hypotheses through a controlled empirical study across vision, language, genomics, and graph tasks, spanning modern and classical architectures, and carefully designed training setups. Our results suggest that no single factor consistently explains the Adam-SGD gap. For instance, the Adam advantage can (1) persist under a uniform vocabulary distribution yet nearly disappear under a heavy-tailed one; (2) reverse in favor of SGD in softmax-attention models; and (3) become larger under soft architectural modifications, e.g., when ReLU is replaced by a GeLU nonlinearity. This suggests that the gap arises from nontrivial data and architecture interactions, rather than from a single common factor. Yet, we observe a pattern across our settings: a crossover batch size at which the relative advantage shifts from SGD to Adam as the batch size scales. These empirical results are captured by our theoretical gap model, which predicts this batch-size-dependent crossover. Our perspective helps reconcile several existing hypotheses while offering practical insights across domains. https://github.com/orientino/gap

For agents

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

get_harvested_code_for_paper("2606.14259")
get_code_for_paper("2606.14259")
have("2606.14259")

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

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

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

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

Connect an agent — have() is free.