Papers › On Large-Batch Training for Deep Learning: Generalization Gap and Sharp Minima

On Large-Batch Training for Deep Learning: Generalization Gap and Sharp Minima

15 Sep 2016arXiv:1609.04836archive 2025-07-28

Nitish Shirish Keskar, Dheevatsa Mudigere, Jorge Nocedal, Mikhail Smelyanskiy, Ping Tak Peter Tang

The stochastic gradient descent (SGD) method and its variants are algorithms of choice for many Deep Learning tasks. These methods operate in a small-batch regime wherein a fraction of the training data, say $32$-$512$ data points, is sampled to compute an approximation to the gradient. It has been observed in practice that when using a larger batch there is a degradation in the quality of the model, as measured by its ability to generalize. We investigate the cause for this generalization drop in the large-batch regime and present numerical evidence that supports the view that large-batch methods tend to converge to sharp minimizers of the training and testing functions - and as is well known, sharp minima lead to poorer generalization. In contrast, small-batch methods consistently converge to flat minimizers, and our experiments support a commonly held view that this is due to the inherent noise in the gradient estimation. We discuss several strategies to attempt to help large-batch methods eliminate this generalization gap.

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

Code

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

By repository: official repository: 3 samples from 1 repository, 1 ran; community (archive-listed): 13 samples from 1 repository, 5 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

keskarnitish/large-batch-training officialmentioned in papermentioned on GitHubpytorchMIT report
ChloeL19/CNN-pset mentioned on GitHub report
anonwhymoos/connectivity mentioned on GitHubjax report
bedssys/Bedssys mentioned on GitHubtfApache-2.0 report
framartin/lgv-geometric-transferability mentioned on GitHubpytorch report
wenwei202/smoothout mentioned on GitHubpytorchMIT 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

16 samples harvested; 6 ran; 0 honoured the contract we drafted; 10 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
4ran · fixture could not drive it
1ran
10unverified

Licence: 0 of the 16 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; 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.

make_layers keskarnitish/large-batch-training/PyTorch/vgg.py official repository ran MIT (permissive) · ac62432dc5134b0d · report
vgg11 keskarnitish/large-batch-training/PyTorch/vgg.py official repository unverified MIT (permissive) · 42754302076e329d · report
vgg13 keskarnitish/large-batch-training/PyTorch/vgg.py official repository unverified MIT (permissive) · 2ad86edffbcbccba · report
IOU bedssys/Bedssys/darknet/gen_anchors.py community (archive-listed) ran · fixture could not drive it Apache-2.0 (permissive) · ff92ad8f00e93bbc · report
avg_IOU bedssys/Bedssys/darknet/gen_anchors.py community (archive-listed) ran · fixture could not drive it Apache-2.0 (permissive) · 1a3fa3dda9a8b100 · report
c_array bedssys/Bedssys/darknet/darknet.py community (archive-listed) ran · our draft was wrong Apache-2.0 (permissive) · 78d482d2a7373f3c · report
sample bedssys/Bedssys/darknet/darknet.py community (archive-listed) ran · fixture could not drive it fingerprinted Apache-2.0 (permissive) · 9bca95aee23d1241 · report
voc_ap bedssys/Bedssys/darknet/voc_eval_py3.py community (archive-listed) ran · fixture could not drive it fingerprinted Apache-2.0 (permissive) · 95c31c78be42f723 · report
convertBack bedssys/Bedssys/darknet/darknet_video.py community (archive-listed) unverified Apache-2.0 (permissive) · 410aa729a6034293 · report
cvDrawBoxes bedssys/Bedssys/darknet/darknet_video.py community (archive-listed) unverified Apache-2.0 (permissive) · 0c143d1141be03d4 · report
get_voc_results_file_template bedssys/Bedssys/darknet/reval_voc_py3.py community (archive-listed) unverified Apache-2.0 (permissive) · 79910d76d3273883 · report
network_width bedssys/Bedssys/darknet/darknet.py community (archive-listed) unverified Apache-2.0 (permissive) · b78a5e60fc79a562 · report
parse_rec bedssys/Bedssys/darknet/voc_eval_py3.py community (archive-listed) unverified Apache-2.0 (permissive) · f58e7859fdb905b4 · report
round_int bedssys/Bedssys/image_pose.py community (archive-listed) unverified Apache-2.0 (permissive) · feedb4ca621a0244 · report
voc_eval bedssys/Bedssys/darknet/voc_eval_py3.py community (archive-listed) unverified Apache-2.0 (permissive) · 5516237bb80c2b46 · report
write_coco_json bedssys/Bedssys/image_pose.py community (archive-listed) unverified Apache-2.0 (permissive) · 9535d0a6fc7fd153 · report

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

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