Papers › GradInit: Learning to Initialize Neural Networks for Stable and Efficient Training

GradInit: Learning to Initialize Neural Networks for Stable and Efficient Training

16 Feb 2021NeurIPS 2021 12arXiv:2102.08098archive 2025-07-28

Chen Zhu, Renkun Ni, Zheng Xu, Kezhi Kong, W. Ronny Huang, Tom Goldstein

Innovations in neural architectures have fostered significant breakthroughs in language modeling and computer vision. Unfortunately, novel architectures often result in challenging hyper-parameter choices and training instability if the network parameters are not properly initialized. A number of architecture-specific initialization schemes have been proposed, but these schemes are not always portable to new architectures. This paper presents GradInit, an automated and architecture agnostic method for initializing neural networks. GradInit is based on a simple heuristic; the norm of each network layer is adjusted so that a single step of SGD or Adam with prescribed hyperparameters results in the smallest possible loss value. This adjustment is done by introducing a scalar multiplier variable in front of each parameter block, and then optimizing these variables using a simple numerical scheme. GradInit accelerates the convergence and test performance of many convolutional architectures, both with or without skip connections, and even without normalization layers. It also improves the stability of the original Transformer architecture for machine translation, enabling training it without learning rate warmup using either Adam or SGD under a wide range of learning rates and momentum coefficients. Code is available at https://github.com/zhuchen03/gradinit.

PaperPDFConference PDFCodeCode 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="2102.08098")

Code

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

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

zhuchen03/gradinit officialmentioned in papermentioned on GitHubpytorch report
johngull/gradinit 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

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

Licence: 12 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 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.

Bias zhuchen03/gradinit/gradinit_utils.py official repository ran · metamorphic tier: deterministic fingerprinted no licence file found · pointer only · c0730d167396ae10 · report
RescaleAdam zhuchen03/gradinit/gradinit_utils.py official repository ran no licence file found · pointer only · e8c35deac250371a · report
Scale zhuchen03/gradinit/gradinit_utils.py official repository ran · metamorphic tier: deterministic fingerprinted no licence file found · pointer only · 176e910936966ec2 · report
get_batch zhuchen03/gradinit/gradinit_utils.py official repository ran · fixture could not drive it no licence file found · pointer only · c1e69f1ba76b4145 · report
get_ordered_params zhuchen03/gradinit/gradinit_utils.py official repository ran · our draft was wrong no licence file found · pointer only · c938a8421f145ce5 · report
get_scale_stats zhuchen03/gradinit/gradinit_utils.py official repository ran · our draft was wrong no licence file found · pointer only · c9c2bb7c9e67090d · report
gradinit zhuchen03/gradinit/gradinit_utils.py official repository unverified no licence file found · pointer only · 3e982e35fd420830 · report
recover_bn_modes zhuchen03/gradinit/gradinit_utils.py official repository unverified no licence file found · pointer only · 452c257d158a624d · report
recover_params zhuchen03/gradinit/gradinit_utils.py official repository unverified no licence file found · pointer only · 956cdc46d424dcb1 · report
set_bn_modes zhuchen03/gradinit/gradinit_utils.py official repository unverified no licence file found · pointer only · 11ed5bf89e48f109 · report
set_param zhuchen03/gradinit/gradinit_utils.py official repository unverified no licence file found · pointer only · 1d8faa5c21301dd7 · report
take_opt_step zhuchen03/gradinit/gradinit_utils.py official repository unverified no licence file found · pointer only · 9f608feffea5f5be · report
GradInitWrapper johngull/gradinit/gradinit/gradinit.py community (archive-listed) ran MIT (permissive) · 9a7196571771cb7a · report

Tasks

Image ClassificationLanguage ModelingLanguage ModellingMachine TranslationTranslation

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
Image Classification CIFAR-10 VGG-19 with GradInit Percentage correct 94.71 #150 of 265 Archive leaderboard report

Ranks are positions in the archive's leaderboards as they stood at the 2025-07-28 snapshot. Results published since then are not among these rows, so a rank here is not a current standing.

Methods

Absolute Position EncodingsAdamAttentionBPEDense ConnectionsDropoutLabel SmoothingLayer NormalizationLinear LayerMulti-Head AttentionPosition-Wise Feed-Forward LayerResidual ConnectionSGDSoftmaxTransformer

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