Papers › Beyond a Single Explanation of the Adam--SGD Gap

Beyond a Single Explanation of the Adam--SGD Gap

12 Jun 2026arXiv:2606.14259added by Syntology

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

Title, abstract, authors and date from arXiv's metadata (CC0); this paper is not in the Papers with Code archive (frozen 2025-07-28).

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.

PaperPDFCode Syntology ran

In Syntology View this paper on Syntology, its page in Syntology's graph. That page adds which of its functions are also present in other papers' code Syntology holds, with dates, and its dated run record as JSON and a README badge. It also lists the repositories linked to the paper, the abstract and the calls for agents.

Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, on Syntology's MCP service (how to connect):

Code

Syntology 25 code samples harvested from 2 repositories linked to this paper: 22 ran (of which 0 constructed an object rather than computing a result; 12 with no instrument failure: 4 honoured, 0 violated, 8 with no contract checked; 10 where Syntology's instrument failed) · 3 unverified. Where Syntology's instrument failed: 8 where our contract draft was wrong; 2 where the contract check could not run; failures of Syntology's instrument, not of the code.

By repository: found in paper text by Syntology: 25 samples from 2 repositories, 22 ran (12 with no instrument failure; 10 where Syntology's instrument failed). The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

No sample is linked to this paper from 1 of its repositories that Syntology harvested for other papers:

Levels written on 2026-09-24 (UTC): the dates Syntology's graph wrote each sample's verification level, not when the code executed.

lucidrains/vit-pytorch found in paper text by SyntologySyntology: no sample linked to this paper (harvested for another paper). Syntology's graph links these samples to An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale (arXiv:2010.11929; that paper's own run record: 307 ran (of which 165 constructed an object rather than computing a result; 286 with no instrument failure: 8 honoured, 2 violated, 276 with no contract checked; 21 where Syntology's instrument failed) · 112 unverified), Parameter Prediction for Unseen Deep Architectures (arXiv:2110.13100; that paper's own run record: 6 ran (of which 1 constructed an object rather than computing a result; 1 with no instrument failure: 0 honoured, 0 violated, 1 with no contract checked; 5 where Syntology's instrument failed) · 1 unverified), SepViT: Separable Vision Transformer (arXiv:2203.15380; that paper's own run record: 2 ran (of which 0 constructed an object rather than computing a result; 2 with no instrument failure: 1 honoured, 1 violated, 0 with no contract checked; 0 where Syntology's instrument failed) · 0 unverified) and 2 more (every one in this page's JSON twin); nothing checks that they implement this paper's method. report
LiamMa/GRIT found in paper text by SyntologyMITSyntology: 9 samples, 6 ran (4 instrument-failed) · 3 unverified report
orientino/gap found in paper text by SyntologySyntology: 16 samples, 16 ran (6 instrument-failed) · 0 unverified report

Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

A paper named beside a repository with no sample linked to this paper is shown with that paper's own run record, not this paper's: “ran” means executed on a synthesized input, not that the code is correct, and “where Syntology's instrument failed” counts failures of Syntology's instrument, not of the code. Papers are listed in arXiv-id order, at most three per repository.

Code Syntology ran Syntology

25 samples harvested: 22 ran (of which 0 constructed an object rather than computing a result; 12 with no instrument failure: 4 honoured, 0 violated, 8 with no contract checked; 10 where Syntology's instrument failed) · 3 unverified. “Where Syntology's instrument failed” counts failures of Syntology's instrument, not of the code. Syntology's record for this page last changed ; when this build read Syntology's graph is in the build record. That date is not when the samples ran.

4ran · honoured contract
8ran · our draft was wrong
2ran; the contract check could not run
8ran
3unverified

Licence: 0 of the 25 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from 2 repositories linked to this paper, official or community; the list below is grouped by repository, each group headed by its name and what it is to the paper. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. A line beginning “fixture:” under a sample that ran gives the arguments Syntology's fixture called the sample with, each as name:type/rank/element kind (? where none was recorded), and the type of what the fixture's run returned, exactly as the harness recorded them; the arguments and the returned type were recorded by two separate runs of the same fixture. No output value is shown, and a returned type says nothing about whether the output was right. “Level recorded” gives the UTC date when Syntology's graph wrote the sample's verification level, not when the code executed; where the level was written before Syntology's graph kept that date, the row says “level recorded, date not recorded”. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself. “Our draft was wrong” and “the contract check could not run” are failures of Syntology's instrument, not of the code: the sample ran on Syntology's synthesized input, and then the drafted contract did not describe it, or the check itself raised an error (RAISES), lacked a dependency (DEP_MISSING) or ran out of time (TIMEOUT); hover the label for which. A metamorphic tier, where shown, is evidence of the output's shape, not that the sample implements the method.

Each sample ends with its code_sha256. A sample's code_sha256 is Syntology's identity for that exact code. It is printed in full (16 hexadecimal characters for every sample in this build), and get_code(code_sha256="…") takes it exactly as printed. An agent calls it on Syntology's MCP service (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples are grouped by repository: a repository marked official first, then by how directly the repository is tied to the paper, then in the archive's order; never by how many ran. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of six reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar); this paper's copy was not located, so its licence is not recorded; or this paper's copy is cleared, but the stored copy of the same code that Syntology serves is not. Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

A function or class name links to its page when the name occurs in the harvested code of at least 5 papers; the name is a string, not an identity. A census tag appears when Syntology's census ran implementations with that name on one shared input per bucket: it gives how many were compared, from how many papers, and how many distinct outputs they produced, and names this sample's bucket when this sample was one of them.

LiamMa/GRIT found in paper text by Syntology 9 samples, 6 ran (4 instrument-failed) · 3 unverified
accuracy_SBM in 8 papers grit/logger.py ran; the contract check could not run (RAISES) MIT (permissive) · ecf14287d3465c48 · report fixture: signature targets:Tensor/1/int, pred_int:ndarray/1/int · returned float64 · level recorded 2026-09-24
eval_spearmanr in 7 papers grit/logger.py ran · our draft was wrong fingerprinted MIT (permissive) · 9dc78001d467fc9d · report fixture: signature y_true:ndarray/1/float, y_pred:ndarray/1/float · returned dict · level recorded 2026-09-24
get_final_pretrained_ckpt in 28 papers grit/finetuning.py ran · our draft was wrong MIT (permissive) · 1bb331bf70a78136 · report fixture: signature ckpt_dir:str/0/str · returned str · level recorded 2026-09-24
get_log_deg in 7 papers grit/layer/grit_layer.py ran · honoured contract MIT (permissive) · b5c9e7acf599a98a · report fixture: signature batch:MinimalBatch/0/? · returned Tensor · level recorded 2026-09-24
init_model_from_pretrained in 28 papers grit/finetuning.py ran MIT (permissive) · 9e4db46ba20af98e · report fixture: signature model:callable/0/?, pretrained_dir:str/0/str, freeze_main:bool/0/bool, reset_prediction_head:bool/0/bool · returned SimpleModel · level recorded 2026-09-24
subtoken_cross_entropy grit/loss/subtoken_prediction_loss.py ran · our draft was wrong MIT (permissive) · 47e492109e6d308f · report fixture: signature pred_list:list/1/Tensor, true:dict/0/? · returned tuple · level recorded 2026-09-24
adj_l1_losses grit/loss/adj.py unverified MIT (permissive) · dc82c18c9d42c1c1 · report
l1_losses in 7 papers grit/loss/l1.py unverified MIT (permissive) · d59c374db2cf64ae · report
multilabel_cross_entropy in 8 papers grit/loss/multilabel_classification_loss.py unverified MIT (permissive) · f1cbbbc857d8b871 · report
orientino/gap found in paper text by Syntology 16 samples, 16 ran (6 instrument-failed) · 0 unverified
add_aggregate_loss _plot_utils.py ran · our draft was wrong Apache-2.0 (permissive) · 9ca8f33fe86bb265 · report fixture: signature df:DataFrame/0/?, window:float/0/float, ema_alpha:float/0/float · returned DataFrame · level recorded 2026-09-24
apply_rotary_emb in 121 papers language/model.py ran · our draft was wrong Apache-2.0 (permissive) · c400816c9ec79f9f · report fixture: signature x:Tensor/4/float, freqs_cis:Tensor/3/float · returned Tensor · level recorded 2026-09-24
compute_axial_cis in 17 papers vision/model.py ran Apache-2.0 (permissive) · 85a782a793e8ffe1 · report fixture: signature dim:int/0/int, end_x:int/0/int, end_y:int/0/int, theta:int/0/int · returned Tensor · level recorded 2026-09-24
convnext_tiny vision/model_convnext.py ran · our draft was wrong Apache-2.0 (permissive) · 2d81ed4b2a99020d · report fixture: signature n_classes:int/0/int · returned ConvNeXt · level recorded 2026-09-24
gcnn_small language/model_gcnn.py ran Apache-2.0 (permissive) · ca1f47b2a6e190ce · report fixture: signature seq_len:int/0/int, n_layers:int/0/int, d_embed:int/0/int, kernel_size:int/0/int · returned GCNN · level recorded 2026-09-24
get_dataloaders in 22 papers genomics/data.py ran Apache-2.0 (permissive) · 4740a336be8375d0 · report fixture: signature dataset:str/0/str, k:int/0/int, stride:int/0/int, dir_data:str/0/str, seq_len:int/0/int, batch_size:int/0/int, n_workers:int/0/int · returned tuple · level recorded 2026-09-24
get_hg38_char_dataloaders genomics/data.py ran Apache-2.0 (permissive) · 2e17c467e6e1c07f · report fixture: signature dir_data:str/0/str, seq_len:int/0/int, batch_size:int/0/int, n_workers:int/0/int · returned tuple · level recorded 2026-09-24
get_hg38_kmer_dataloaders genomics/data.py ran Apache-2.0 (permissive) · cb48934d64099708 · report fixture: signature dir_data:str/0/str, k:int/0/int, stride:int/0/int, seq_len:int/0/int, batch_size:int/0/int, n_workers:int/0/int · returned tuple · level recorded 2026-09-24
gpt_small language/model.py ran Apache-2.0 (permissive) · 3896a13d569e632c · report fixture: signature seq_len:int/0/int, n_layers:int/0/int, n_heads:int/0/int, d_embed:int/0/int · returned GPT · level recorded 2026-09-24
init_t_xy in 15 papers vision/model.py ran · honoured contract fingerprinted Apache-2.0 (permissive) · 27d774f9c3ee1a49 · report fixture: signature end_x:int/0/int, end_y:int/0/int · returned tuple · level recorded 2026-09-24
posemb_sincos_1d language/model_gcnn.py ran · honoured contract Apache-2.0 (permissive) · 0ab15fea2bec5aaf · report fixture: signature seq_len:int/0/int, width:int/0/int, temperature:float/0/float · returned ndarray · level recorded 2026-09-24
precompute_freqs_cis in 112 papers language/model.py ran · honoured contract Apache-2.0 (permissive) · 07d78260ee121828 · report fixture: signature dim:int/0/int, end:int/0/int, theta:float/0/float · returned Tensor · level recorded 2026-09-24
reshape_for_broadcast in 90 papers
census: 6 implementations from 10 papers, 1 distinct output on one shared input
vision/model.py ran; the contract check could not run (RAISES) fingerprinted Apache-2.0 (permissive) · 2a42dbf54fd0d1fe · report fixture: signature freqs_cis:Tensor/2/float, x:Tensor/4/float · returned Tensor · level recorded 2026-09-24
resnet18 in 432 papers vision/model_resnet.py ran · our draft was wrong Apache-2.0 (permissive) · 8d60dd66630e993f · report fixture: signature n_classes:int/0/int · returned ResNet · level recorded 2026-09-24
resnet50 in 121 papers vision/model_resnet.py ran · our draft was wrong Apache-2.0 (permissive) · b592361a494969d3 · report fixture: signature n_classes:int/0/int · returned ResNet · level recorded 2026-09-24
resnet_transition vision/model_transition.py ran Apache-2.0 (permissive) · f4248ba076d7cd2b · report fixture: signature n_classes:int/0/int, depthwise:bool/0/bool, patchify_stem:bool/0/bool, layernorm:bool/0/bool, gelu:bool/0/bool · returned ResNetTransition · level recorded 2026-09-24

Results from the paper

The Papers with Code archive ends with its 2025-07-28 snapshot. This paper's arXiv identifier, 2606.14259, was issued in June 2026, after that date, so the archive has no leaderboard rows for it.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections