Papers › On the different regimes of Stochastic Gradient Descent

On the different regimes of Stochastic Gradient Descent

19 Sep 2023arXiv:2309.10688archive 2025-07-28

Antonio Sclocchi, Matthieu Wyart

Modern deep networks are trained with stochastic gradient descent (SGD) whose key hyperparameters are the number of data considered at each step or batch size B, and the step size or learning rate η. For small B and large η, SGD corresponds to a stochastic evolution of the parameters, whose noise amplitude is governed by the ''temperature'' T≡η/B. Yet this description is observed to break down for sufficiently large batches B≥B^*, or simplifies to gradient descent (GD) when the temperature is sufficiently small. Understanding where these cross-overs take place remains a central challenge. Here, we resolve these questions for a teacher-student perceptron classification model and show empirically that our key predictions still apply to deep networks. Specifically, we obtain a phase diagram in the B-η plane that separates three dynamical phases: (i) a noise-dominated SGD governed by temperature, (ii) a large-first-step-dominated SGD and (iii) GD. These different phases also correspond to different regimes of generalization error. Remarkably, our analysis reveals that the batch size B^* separating regimes (i) and (ii) scale with the size P of the training set, with an exponent that characterizes the hardness of the classification problem.

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

Code

Syntology Ran 9 of 17 code samples harvested from 1 repository linked to this paper; 8 have no recorded run. Of those that ran: 9 ran with no contract checked.

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

pcsl-epfl/regimes_of_sgd officialmentioned in paperjaxMIT 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

17 samples harvested; 9 ran; 0 honoured the contract we drafted; 8 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.

9ran
8unverified

Licence: 0 of the 17 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 pcsl-epfl/regimes_of_sgd. “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.

delta_pred pcsl-epfl/regimes_of_sgd/edm/observable.py official repository ran MIT (permissive) · 88bd1cb3c963e9df · report
gf_loss_one_step pcsl-epfl/regimes_of_sgd/edm/gradientflow_loss.py official repository ran MIT (permissive) · 8585004ddd8de55d · report
grad_loss_regularizer pcsl-epfl/regimes_of_sgd/edm/regularizer.py official repository ran MIT (permissive) · 963a5725bf13c0b9 · report
l1_regularizer pcsl-epfl/regimes_of_sgd/edm/regularizer.py official repository ran MIT (permissive) · 8bc03676a5d679be · report
l2_regularizer pcsl-epfl/regimes_of_sgd/edm/regularizer.py official repository ran MIT (permissive) · af63c615093a49fc · report
mean_var_grad pcsl-epfl/regimes_of_sgd/edm/observable.py official repository ran MIT (permissive) · bb1e4623eb71eaef · report
sphere pcsl-epfl/regimes_of_sgd/edm/dataset.py official repository ran MIT (permissive) · c1341f8b593e7298 · report
sphere_unif pcsl-epfl/regimes_of_sgd/edm/dataset.py official repository ran MIT (permissive) · 3d77fe4000cdd4a4 · report
stripe pcsl-epfl/regimes_of_sgd/edm/dataset.py official repository ran MIT (permissive) · d783a4cf61a97f0a · report
diagonal_linear pcsl-epfl/regimes_of_sgd/edm/architecture.py official repository unverified MIT (permissive) · c9868a3c1b382e06 · report
drifts pcsl-epfl/regimes_of_sgd/edm/observable.py official repository unverified MIT (permissive) · b54e994734dc0188 · report
flatten_grad pcsl-epfl/regimes_of_sgd/edm/dynamics.py official repository unverified MIT (permissive) · fda850b77f9618fe · report
gf_loss_forward_by_time pcsl-epfl/regimes_of_sgd/edm/gradientflow_loss.py official repository unverified MIT (permissive) · fa8f1eb0d1784725 · report
linear_model pcsl-epfl/regimes_of_sgd/edm/architecture.py official repository unverified MIT (permissive) · 15318ef620a9ae26 · report
sgd pcsl-epfl/regimes_of_sgd/edm/dynamics.py official repository unverified MIT (permissive) · 7289153cfc38fe92 · report
sgd_until pcsl-epfl/regimes_of_sgd/edm/dynamics.py official repository unverified MIT (permissive) · f424cd7f31c567a5 · report
simple_diagonal_linear pcsl-epfl/regimes_of_sgd/edm/architecture.py official repository unverified MIT (permissive) · 004745b5cf21e7a0 · report

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

SGD

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