Papers › Normalization Layer Per-Example Gradients are Sufficient to Predict Gradient Noise...

Normalization Layer Per-Example Gradients are Sufficient to Predict Gradient Noise Scale in Transformers

1 Nov 2024arXiv:2411.00999archive 2025-07-28

Gavia Gray, Aman Tiwari, Shane Bergsma, Joel Hestness

Per-example gradient norms are a vital ingredient for estimating gradient noise scale (GNS) with minimal variance. Observing the tensor contractions required to compute them, we propose a method with minimal FLOPs in 3D or greater tensor regimes by simultaneously computing the norms while computing the parameter gradients. Using this method we are able to observe the GNS of different layers at higher accuracy than previously possible. We find that the total GNS of contemporary transformer models is predicted well by the GNS of only the normalization layers. As a result, focusing only on the normalization layer, we develop a custom kernel to compute the per-example gradient norms while performing the LayerNorm backward pass with zero throughput overhead. Tracking GNS on only those layers, we are able to guide a practical batch size schedule that reduces training time by 18% on a Chinchilla-optimal language model.

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

Code

Syntology Ran 2 of 13 code samples harvested from 1 repository linked to this paper; 11 have no recorded run. Of those that ran: 2 ran · violated contract.

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

cerebrasresearch/nanogns officialmentioned in papermentioned 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

13 samples harvested; 2 ran; 0 honoured the contract we drafted; 11 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.

2ran · violated contract
11unverified

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 cerebrasresearch/nanogns. “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.

exists cerebrasresearch/nanogns/exact/gnstracking.py official repository ran · violated contract no licence file found · pointer only · aa5486a3650902d8 · report
exists cerebrasresearch/nanogns/exact/buffered.py official repository ran · violated contract no licence file found · pointer only · 608e364a9d2376a3 · report
compute_total_norms cerebrasresearch/nanogns/exact/gns-analysis.py official repository unverified no licence file found · pointer only · 728e7021aeb6a4a8 · report
gather_hook_results cerebrasresearch/nanogns/approx/hook.py official repository unverified no licence file found · pointer only · 8365f54f88f0e6d0 · report
get_aligned_columns cerebrasresearch/nanogns/exact/gns-analysis.py official repository unverified no licence file found · pointer only · 16b8934e3d4a34cd · report
gnsify cerebrasresearch/nanogns/approx/gns_utils.py official repository unverified no licence file found · pointer only · 07e6ccda0c4be5c5 · report
is_any_nan_or_inf cerebrasresearch/nanogns/approx/hook.py official repository unverified no licence file found · pointer only · ed49d9a5a77a3e02 · report
load_csv cerebrasresearch/nanogns/exact/csv_tools.py official repository unverified no licence file found · pointer only · f3552f440f4a76f3 · report
mean_loss_scale cerebrasresearch/nanogns/approx/gns_utils.py official repository unverified no licence file found · pointer only · 1d4431cc16b9efe4 · report
safe_sqnorm cerebrasresearch/nanogns/exact/buffered.py official repository unverified no licence file found · pointer only · 60b0ae4d53a3850f · report
safe_sum cerebrasresearch/nanogns/exact/buffered.py official repository unverified no licence file found · pointer only · 7fcff3161455b67f · report
shared_weights cerebrasresearch/nanogns/exact/gnstracking.py official repository unverified no licence file found · pointer only · 32ff26508e6c106d · report
unbiased_stats cerebrasresearch/nanogns/exact/gns-analysis.py official repository unverified no licence file found · pointer only · 4b5addd9efcb391f · report

Tasks

Language ModelingLanguage Modelling

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

GNS

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