Papers › Understanding the robustness difference between stochastic gradient descent and...

Understanding the robustness difference between stochastic gradient descent and adaptive gradient methods

13 Aug 2023arXiv:2308.06703archive 2025-07-28

Avery Ma, Yangchen Pan, Amir-Massoud Farahmand

Stochastic gradient descent (SGD) and adaptive gradient methods, such as Adam and RMSProp, have been widely used in training deep neural networks. We empirically show that while the difference between the standard generalization performance of models trained using these methods is small, those trained using SGD exhibit far greater robustness under input perturbations. Notably, our investigation demonstrates the presence of irrelevant frequencies in natural datasets, where alterations do not affect models' generalization performance. However, models trained with adaptive methods show sensitivity to these changes, suggesting that their use of irrelevant frequencies can lead to solutions sensitive to perturbations. To better understand this difference, we study the learning dynamics of gradient descent (GD) and sign gradient descent (signGD) on a synthetic dataset that mirrors natural signals. With a three-dimensional input space, the models optimized with GD and signGD have standard risks close to zero but vary in their adversarial risks. Our result shows that linear models' robustness to ℓ₂-norm bounded changes is inversely proportional to the model parameters' weight norm: a smaller weight norm implies better robustness. In the context of deep learning, our experiments show that SGD-trained neural networks have smaller Lipschitz constants, explaining the better robustness to input perturbations than those trained with adaptive gradient methods.

PaperPDFCodeCode Syntology ran

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

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2308.06703")

Code

Syntology Ran 11 of 13 code samples harvested from 1 repository linked to this paper; 2 have no recorded run. Of those that ran: 1 ran · our draft was wrong; 1 ran · fixture could not drive it; 9 ran with no contract checked.

By repository: official repository: 13 samples from 1 repository, 11 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

averyma/opt-robust officialmentioned in paperpytorch report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. 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.

Code Syntology ran Syntology

13 samples harvested; 11 ran; 0 honoured the contract we drafted; 2 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

1ran · our draft was wrong
1ran · fixture could not drive it
9ran
2unverified

Licence: 13 of the 13 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 averyma/opt-robust. “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. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (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 from a repository marked official are listed first. 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 four 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; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). 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.

L1_projection averyma/opt-robust/autoattack/autopgd_base.py official repository ran · our draft was wrong fingerprinted no licence file found · pointer only · 7325c49fd8c6a7d2 · report
PreActResNet18 averyma/opt-robust/models/preact_resnet.py official repository ran no licence file found · pointer only · 6bc11692e189a289 · report
accuracy averyma/opt-robust/src/evaluation.py official repository ran · fixture could not drive it no licence file found · pointer only · 18badd533b52adb3 · report
check_range_output averyma/opt-robust/autoattack/checks.py official repository ran no licence file found · pointer only · 5d7ff050610414d0 · report
dct averyma/opt-robust/src/utils_freq.py official repository ran fingerprinted no licence file found · pointer only · f0531ec5d46051d8 · report
getDCTmatrix averyma/opt-robust/src/utils_freq.py official repository ran fingerprinted no licence file found · pointer only · 495939172299431d · report
get_default averyma/opt-robust/src/args.py official repository ran no licence file found · pointer only · dfbe996ba309751d · report
get_optim averyma/opt-robust/src/utils_general.py official repository ran no licence file found · pointer only · 634dbd17789eb3c5 · report
load_dataset averyma/opt-robust/src/utils_dataset.py official repository ran no licence file found · pointer only · 62c890936a7eb164 · report
rgb2gray averyma/opt-robust/src/utils_freq.py official repository ran fingerprinted no licence file found · pointer only · b05531e1744cf65d · report
test_gaussian averyma/opt-robust/src/evaluation.py official repository ran no licence file found · pointer only · a74d4e0d09a51e6b · report
returnTestLoss averyma/opt-robust/src/linear_analysis.py official repository unverified no licence file found · pointer only · 15661e7286adc915 · report
test_clean averyma/opt-robust/src/evaluation.py official repository unverified no licence file found · pointer only · 2ba84c242554901e · report

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

AdamRMSPropSGD

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