Papers › Adam: A Method for Stochastic Optimization

Adam: A Method for Stochastic Optimization

22 Dec 2014arXiv:1412.6980archive 2025-07-28

Diederik P. Kingma, Jimmy Ba

We introduce Adam, an algorithm for first-order gradient-based optimization of stochastic objective functions, based on adaptive estimates of lower-order moments. The method is straightforward to implement, is computationally efficient, has little memory requirements, is invariant to diagonal rescaling of the gradients, and is well suited for problems that are large in terms of data and/or parameters. The method is also appropriate for non-stationary objectives and problems with very noisy and/or sparse gradients. The hyper-parameters have intuitive interpretations and typically require little tuning. Some connections to related algorithms, on which Adam was inspired, are discussed. We also analyze the theoretical convergence properties of the algorithm and provide a regret bound on the convergence rate that is comparable to the best known results under the online convex optimization framework. Empirical results demonstrate that Adam works well in practice and compares favorably to other stochastic optimization methods. Finally, we discuss AdaMax, a variant of Adam based on the infinity norm.

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="1412.6980")

Code

Syntology Ran 18 of 37 code samples harvested from 14 repositories linked to this paper; 19 have no recorded run. Of those that ran: 3 ran · honoured contract; 2 ran · violated contract; 2 ran · our draft was wrong; 1 ran · fixture could not drive it; 10 ran with no contract checked.

By repository: community (archive-listed): 37 samples from 14 repositories, 18 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

87 repositories listed; official and paper-mentioned ones first.

201419/Optimizer-PyTorch mentioned on GitHubpytorchApache-2.0 report
AlbertUW807/DLNN-Algo mentioned on GitHub report
DylanMuir/fmin_adam mentioned on GitHub report
GLambard/AdamW_Keras mentioned on GitHubtf report
JiaYunSong/Gan-for-Gem-Generation mentioned on GitHubpaddle report
KhalilJDamouni/RMSGD_Pretest mentioned on GitHubpytorchMIT report
MichaelKonobeev/adashift mentioned on GitHubtfMIT report
SamuelMarks/doctrans mentioned on GitHubtfApache-2.0 report
Songlielie/DKT-Plus mentioned on GitHubtf report
Taichi-Yoshikawa/NeuralNetwork mentioned on GitHubMIT report
TimRoith/BregmanLearning mentioned on GitHubpytorchMIT report
VAZaytsev/QITE mentioned on GitHub report
Xinyi6/CIFAR10-CNN-by-Keras mentioned on GitHubpytorch report
ZMpursue/Anime_avatar_generation mentioned on GitHubpaddle report
alpaficia/MOSEAC_Limo mentioned on GitHubpytorchMIT report
arampacha/clip-rsicd mentioned on GitHubjaxApache-2.0 report
bsvineethiitg/adams mentioned on GitHubpytorchMIT report
chuiyunjun/projectCSC413 mentioned on GitHub report
crowsonkb/esgd mentioned on GitHubpytorchMIT report
data-llectual/ml-dna mentioned on GitHubtf report
hoanghuy89/CNN-from-first-principle mentioned on GitHubpytorch report
hsvgbkhgbv/TACTHMC mentioned on GitHubpytorch report
huybik/CNN-from-first-principle mentioned on GitHubpytorch report
hydrogo/rainnet mentioned on GitHub report
ilguyi/optimizers.numpy mentioned on GitHubtfApache-2.0 report
jangsoopark/IDN-TensorFlow mentioned on GitHubtf report
jliphard/DeepEvolve mentioned on GitHubNOASSERTION report
joseluis1061/neuralnilm mentioned on GitHubtfApache-2.0 report
jpjuvo/64-3D-RaSGAN mentioned on GitHubtf report
ken-power/CVND-FacialKeypointDetection mentioned on GitHubpytorch report
kkrajczar/DSGeneric mentioned on GitHub report
mahdihosseini/AdaS mentioned on GitHubpytorchMIT report
navdeepkumar12/Tic mentioned on GitHub report
nnaisense/pgpelib mentioned on GitHubpytorch report
offscale/cdd-python mentioned on GitHubtfApache-2.0 report
rahulsonone1234/Traffic-Sign-Recognition mentioned on GitHubtfGPL-3.0 report
rahulsonone1234/traffic-sign- mentioned on GitHubtfGPL-3.0 report
rokkian/adam_implementation mentioned on GitHub report
sayred1/CNN mentioned on GitHubtf report
sbieringer/adammcmc mentioned on GitHubpytorchnot reachable when probed 2026-09-18 — repositories for recent papers often appear after camera-ready report
sbieringer/csmala mentioned on GitHubpytorch report
sdyy6211/plant-segmentation mentioned on GitHubpytorch report
shinyingl/SelfDrivingCar-P3 mentioned on GitHub report
shmanubhav/LunarLander-ApproxQLearning mentioned on GitHubGPL-3.0 report
siddarth-c/FedGMA mentioned on GitHubpytorch report
skanda99/Simple-Neural-Networks mentioned on GitHubtf report
suzyi/optimization mentioned on GitHub report
tomkimpson/ml4l mentioned on GitHubtfMIT report
vanyle/vlearn mentioned on GitHubtf report
vedpatel49/Neural-Style-Transfer mentioned on GitHubpytorch report
xhlulu/arxiv-assistant mentioned on GitHub report
ylytkin/backpropagation mentioned on GitHub report
zhenxun-zhuang/SGD-Exponential-Stepsize mentioned on GitHubpytorch report
zhuchen03/maxva mentioned on GitHubpytorch report
zhuchen03/mva mentioned on GitHubpytorch 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

37 samples harvested; 18 ran; 3 honoured the contract we drafted; 19 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.

3ran · honoured contract
2ran · violated contract
2ran · our draft was wrong
1ran · fixture could not drive it
10ran
19unverified

Licence: 8 of the 37 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 14 repositories linked to this paper, official or community; each sample names its own and says which. “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.

Adam nnaisense/pgpelib/pgpelib/optimizers.py community (archive-listed) ran BSD-3-Clause (permissive) · 7f2c925da971c0b5 · report
Adam MaximeVandegar/Papers-in-100-Lines-of-Code/Adam_a_Method_For_Stochastic_Optimization/adam.py community (archive-listed) ran MIT (permissive) · cbb1359e9a11e474 · report
AdamState vpj/jax_transformer/transformer.py community (archive-listed) ran · metamorphic tier: invariant no licence file found · pointer only · 9dfa8e2f09245ff2 · report
Adam_cls VAZaytsev/QITE/optimizers.py community (archive-listed) ran no licence file found · pointer only · 6f648e6ff626dfd5 · report
EVBsigma2 mahdihosseini/AdaS/src/rmsgd/matrix_factorization.py community (archive-listed) ran · violated contract fingerprinted MIT (permissive) · e2f77eaf75568aa2 · report
NeuralNetwork ylytkin/backpropagation/neural_network/neural_network.py community (archive-listed) ran no licence file found · pointer only · 7ce4d43450d6e037 · report
Optimizer nnaisense/pgpelib/pgpelib/optimizers.py community (archive-listed) ran BSD-3-Clause (permissive) · 2601595a91035c3b · report
VBMF KhalilJDamouni/RMSGD_Pretest/src/adas/VBMF.py community (archive-listed) ran · our draft was wrong fingerprinted MIT (permissive) · 0f7078f4c86b344a · report
VBsigma2 KhalilJDamouni/RMSGD_Pretest/src/adas/VBMF.py community (archive-listed) ran fingerprinted MIT (permissive) · 9e8ce2d162e22cdd · report
adam navdeepkumar12/Tic/nn.py community (archive-listed) ran fingerprinted no licence file found · pointer only · d617942446009de2 · report
adam rokkian/adam_implementation/adam_implementation.py community (archive-listed) ran · our draft was wrong Apache-2.0 (permissive) · da1304a720259f4d · report
derivative rokkian/adam_implementation/adam_implementation.py community (archive-listed) ran · honoured contract fingerprinted Apache-2.0 (permissive) · 4618e61672a36671 · report
objective rokkian/adam_implementation/adam_implementation.py community (archive-listed) ran fingerprinted Apache-2.0 (permissive) · f6c61d4de559ffe9 · report
optimizer navdeepkumar12/Tic/nn.py community (archive-listed) ran no licence file found · pointer only · 77da68eb2be45988 · report
phi0 mahdihosseini/AdaS/src/rmsgd/matrix_factorization.py community (archive-listed) ran · violated contract fingerprinted MIT (permissive) · 2760d409b48cf23f · report
positive_float nnaisense/pgpelib/pgpelib/optimizers.py community (archive-listed) ran · honoured contract fingerprinted BSD-3-Clause (permissive) · 2425339890ade98d · report
positive_int nnaisense/pgpelib/pgpelib/optimizers.py community (archive-listed) ran · honoured contract fingerprinted BSD-3-Clause (permissive) · 3c047cbc5f859f9b · report
st_ops nyatadecocoa/Machine_Learning_Midterm_Assignment_2019/Problem7/adam.py community (archive-listed) ran · fixture could not drive it fingerprinted no licence file found · pointer only · 62c36ccd5072fcd8 · report
Adam vpj/jax_transformer/transformer.py community (archive-listed) unverified no licence file found · pointer only · c48006199ed3e050 · report
Adam labmlai/annotated_deep_learning_paper_implementations/labml_nn/optimizers/adam.py community (archive-listed) unverified MIT (permissive) · 10c32bb6eaf9662a · report
EVBMF KhalilJDamouni/RMSGD_Pretest/src/adas/VBMF.py community (archive-listed) unverified MIT (permissive) · 8afdc607e63b281b · report
EVBMF mahdihosseini/AdaS/src/rmsgd/matrix_factorization.py community (archive-listed) unverified MIT (permissive) · 35275a9e3c1edf4f · report
VBMF KhalilJDamouni/RMSGD_Pretest/src/adas/matrix_factorization.py community (archive-listed) unverified MIT (permissive) · 8f58597b290faee4 · report
alexnet KhalilJDamouni/RMSGD_Pretest/src/adas/models/alexnet.py community (archive-listed) unverified MIT (permissive) · cd7d9260519b0c88 · report
clear_annotation SamuelMarks/doctrans/cdd/compound/doctrans_utils.py community (archive-listed) unverified Apache-2.0 (permissive) · d05c0d4ad3893add · report
get_data KhalilJDamouni/RMSGD_Pretest/src/adas/data.py community (archive-listed) unverified MIT (permissive) · ab7b976a4eb5340d · report
has_type_annotations SamuelMarks/doctrans/cdd/compound/doctrans_utils.py community (archive-listed) unverified Apache-2.0 (permissive) · b8d84bad5cfe2f9c · report
load_meta_file KhalilJDamouni/RMSGD_Pretest/src/adas/datasets.py community (archive-listed) unverified MIT (permissive) · 5e1f354096a8c5bc · report
moving_average Sj-Amani/Practical_Behavioral_Cloning/left_right_driving_data_preprocessing.py community (archive-listed) unverified MIT (permissive) · 755b233b6180c3d0 · report
optimize nyatadecocoa/Machine_Learning_Midterm_Assignment_2019/Problem7/adam.py community (archive-listed) unverified no licence file found · pointer only · c5c5da8da7132910 · report
parse_devkit_archive KhalilJDamouni/RMSGD_Pretest/src/adas/datasets.py community (archive-listed) unverified MIT (permissive) · 6257f483693ebe01 · report
process_MODIS_file tomkimpson/ml4l/legacy/legacy_scripts/join_MODIS_with_ERA_V2.py community (archive-listed) unverified MIT (permissive) · 1a88d05a828e9b9c · report
pstats_to_dict KhalilJDamouni/RMSGD_Pretest/src/adas/utils.py community (archive-listed) unverified MIT (permissive) · fd7ae3f51b2d34cd · report
safe_float_cast KhalilJDamouni/RMSGD_Pretest/src/adas/utils.py community (archive-listed) unverified MIT (permissive) · 9a5925e41635d417 · report
select_correct_MODIS_file tomkimpson/ml4l/legacy/legacy_scripts/join_MODIS_with_ERA_V2.py community (archive-listed) unverified MIT (permissive) · a3a5ccc0ea8274ee · report
smart_string_to_float KhalilJDamouni/RMSGD_Pretest/src/adas/utils.py community (archive-listed) unverified MIT (permissive) · 0a32bb4b38232251 · report
train_NN tomkimpson/ml4l/legacy/legacy_scripts/feature_importance.py community (archive-listed) unverified MIT (permissive) · 540ea376e18a8af6 · report

Tasks

Stochastic Optimization

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

AdaMaxAdam

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