Citation and evidence

Weight Initialization

21 min full readUpdated 34 references

This article's verification

Report a problem with this article

Edit article
More

Use this article

Raw MarkdownExplore connections

Improve this page

Revision historyDiscuss this article

Topics

Deep LearningNeural NetworksTraining & Optimization

Cite this article

Weight initialization is the choice of starting values for the trainable parameters of a neural network before training begins. Because gradient descent only makes small changes to the parameters it is given, the starting point decides whether signals and gradients pass through a deep network at a usable scale, how quickly training gets going, and in some cases whether a network trains at all[1][2]. Weights are almost always drawn at random from a Gaussian or uniform distribution[4], and most common schemes set the variance of each weight matrix from the number of inputs or outputs of its layer. The best known are LeCun initialization (1998), Xavier or Glorot initialization (2010) and He or Kaiming initialization (2015)[3][1][2]. Other families include orthogonal initialization[5], data-dependent procedures such as layer-sequential unit-variance (LSUV) initialization[6], depth-aware schemes for residual networks and transformers[9][11][13], and width-aware parametrizations such as muP that scale the initialization together with the learning rate[14].

Why initialization matters

Breaking symmetry

The one property every initialization needs is that it breaks symmetry between units. If two hidden units with the same activation function receive the same inputs and start with identical parameters, a deterministic learning algorithm will update them identically forever, and the second unit adds nothing[4]. Goodfellow, Bengio and Courville's textbook Deep Learning describes this as perhaps the only property of the initial point "known with complete certainty," and notes that random draws from a high-entropy distribution are a cheap way to make it very unlikely that any two units compute the same function[4]. For the same reason, setting all weights of a layer to zero (or to any shared constant) leaves the hidden units of that layer indistinguishable. The book adds that whether the random values come from a Gaussian or a uniform distribution "does not seem to matter much," while the scale of the distribution has a large effect on both optimization and generalization[4].

Keeping signals at a usable scale

In a deep network, each layer multiplies its input by a weight matrix, so any systematic gain or loss per layer compounds with depth. He and colleagues put it this way: if the forward or backward signal is scaled by a factor $\beta$ in each layer, it is scaled by $\beta^L$ after $L$ layers, which for large $L$ either blows up ($\beta > 1$) or dies away ($\beta < 1$)[2]. These are the exploding gradient and vanishing gradient problems seen from the point of view of initialization. Weights that are too large can also push saturating activations such as the sigmoid and tanh into their flat regions, where gradients are close to zero[3][4]. Most classical schemes therefore pick the weight variance so that the variance of activations, of back-propagated gradients, or of both, stays roughly constant from layer to layer[1][2].

"Weight Initialization in a Deep Network (C2W1L11)", video from DeepLearningAI, published August 25, 2017. Watch on YouTube.

Early practice

LeCun's fan-in rule

In "Efficient BackProp" (1998), Yann LeCun, Léon Bottou, Genevieve Orr and Klaus-Robert Müller recommended drawing weights from a zero-mean distribution with standard deviation $\sigma_w = m^{-1/2}$, where $m$ is the fan-in, the number of connections feeding into the unit[3]. The rule assumes that the training inputs have been normalized and that the network uses their recommended scaled hyperbolic tangent, $f(x) = 1.7159 \tanh(\tfrac{2}{3}x)$. Under those assumptions the weighted sum entering each unit has a standard deviation close to 1, so the sigmoid operates mainly in its linear region, where gradients are large enough for learning to proceed[3]. Keras still ships this rule as LecunNormal, a truncated normal with standard deviation $\sqrt{1/\text{fan_in}}$[32].

The pre-training era

By 2010 a widely used default was the heuristic $W_{ij} \sim U[-1/\sqrt{n}, 1/\sqrt{n}]$, with $n$ the size of the previous layer and biases set to zero; Glorot and Bengio called it a "commonly used heuristic" and showed that it gives $n \operatorname{Var}[W] = 1/3$[1]. Deep networks trained by gradient descent from such random starting points often did poorly. Glorot and Bengio noted that the successes with deep networks since 2006 had come from new initialization or training procedures, and that unsupervised pre-training is itself "a particular form of initialization" with a drastic effect on results[1]. In 2013 Ilya Sutskever, James Martens, George Dahl and Geoffrey Hinton showed that stochastic gradient descent with momentum could train deep and recurrent networks to levels previously reached only with Hessian-free optimization, provided it used "a well-designed random initialization" and a slowly increasing momentum schedule. They concluded that earlier failures to train such networks from random starts were likely due to poor initialization schemes[7].

Variance-preserving initialization

Xavier (Glorot) initialization

Xavier Glorot and Yoshua Bengio studied why plain gradient descent from random initialization struggled with deep feedforward networks in "Understanding the difficulty of training deep feedforward neural networks," presented at AISTATS 2010[1]. They found that the logistic sigmoid was poorly suited to randomly initialized deep networks because its non-zero mean drove the top hidden layer into saturation, and that with the standard heuristic the variance of back-propagated gradients shrank as it moved down the network[1].

Assuming a network that is approximately linear at initialization, they derived two conditions. Keeping the variance of activations constant in the forward pass requires $n_i \operatorname{Var}[W^i] = 1$, and keeping the variance of gradients constant in the backward pass requires $n_{i+1} \operatorname{Var}[W^i] = 1$, where $n_i$ is the width of layer $i$. As a compromise between the two they proposed

Var⁡[W]=2nin+nout,\operatorname{Var}[W] = \frac{2}{n_{\text{in}} + n_{\text{out}}},

implemented as the uniform distribution they called the "normalized initialization"[1]:

W∼U[−6nin+nout,6nin+nout].W \sim U\left[-\frac{\sqrt{6}}{\sqrt{n_{\text{in}} + n_{\text{out}}}}, \frac{\sqrt{6}}{\sqrt{n_{\text{in}} + n_{\text{out}}}}\right].

In their tanh networks, the average singular value of each layer's Jacobian was about 0.8 with the normalized initialization and dropped to about 0.5 with the standard one, and the back-propagated gradients no longer shrank toward the lower layers[1]. He and colleagues noted in 2015 that the Caffe framework calls the scheme "Xavier" initialization[2]. A Gaussian version with the same variance is also widely used, for example as PyTorch's xavier_normal_[30].

He (Kaiming) initialization

The Glorot derivation assumes the network is linear around zero, which does not hold for the rectified linear unit (ReLU). In "Delving Deep into Rectifiers" (2015), Kaiming He, Xiangyu Zhang, Shaoqing Ren and Jian Sun of Microsoft Research redid the analysis for ReLU and parametric ReLU (PReLU) networks[2]. Because a ReLU zeroes roughly half of its inputs, the variance condition picks up a factor of one half, $\tfrac{1}{2} n_l \operatorname{Var}[w_l] = 1$, which leads to a zero-mean Gaussian with standard deviation

σ=2nl,\sigma = \sqrt{\frac{2}{n_l}},

with biases initialized to zero[2]. Here $n_l$ is the fan-in for the forward-pass version; a backward-pass version uses the fan-out instead, and the authors showed that using either one alone is enough for the models in the paper. For PReLU with negative slope $a$ the condition becomes $\tfrac{1}{2}(1 + a^2) n_l \operatorname{Var}[w_l] = 1$[2].

The paper motivated the scheme with practical failures. Convolutional networks initialized with a fixed standard deviation such as 0.01 had trouble converging beyond about eight convolutional layers, a problem the VGG team had worked around by pre-training a shallower model[2]. In the authors' experiments, a 22-layer model converged with both Xavier and He initialization, though the He version started reducing error earlier, and the two gave nearly the same accuracy on a 14-layer model (33.90/13.44 versus 33.82/13.34 top-1/top-5 error). On a 30-layer model, He initialization converged while Xavier initialization "completely stalls" with diminishing gradients[2]. The paper appeared at the IEEE International Conference on Computer Vision (ICCV) in 2015[2].

Comparison of variance-scaling rules

SchemeYearWeight varianceDesigned for
LeCun1998$1/\text{fan_in}$Normalized inputs, scaled tanh[3]
Common uniform heuristicIn use by 2010$1/(3,\text{fan_in})$Uniform $U[-1/\sqrt{n}, 1/\sqrt{n}]$[1]
Xavier / Glorot2010$2/(\text{fan_in} + \text{fan_out})$Roughly linear, symmetric activations such as tanh[1]
He / Kaiming2015$2/\text{fan_in}$ReLU and PReLU networks[2]
SELU (self-normalizing networks)2017$1/\text{fan_in}$Scaled exponential linear units[23]

Expanded article table

Klambauer and colleagues' self-normalizing networks of 2017 draw weights from a Gaussian with zero mean and variance $1/n$, the same moments as the LeCun rule, so that activations converge toward zero mean and unit variance[23].

Orthogonal initialization and dynamical isometry

Andrew Saxe, James McClelland and Surya Ganguli analyzed the learning dynamics of deep linear networks in a 2013 paper[5]. They found that weights drawn as random orthogonal matrices (satisfying $W^T W = I$) gave depth-independent learning times, matching greedy layer-wise pre-training, whereas scaled Gaussian matrices did not. Their explanation rests on the spectra of products of matrices. Every singular value of an orthogonal matrix is exactly 1, so a product of orthogonal layers is itself orthogonal. In a product of random Gaussian layers, most singular values become vanishingly small with depth and a long tail of very large ones remains, even though both choices preserve the norm of a typical vector on average[5]. The Deep Learning textbook summarizes the recommendation as random orthogonal matrices with a gain factor chosen for the nonlinearity, and notes that David Sussillo (2014) trained networks as deep as 1,000 layers by setting the gain correctly without orthogonal matrices[4].

Later work used tools from statistical physics and random matrix theory. Schoenholz and colleagues (2016) used mean field theory to identify depth scales that limit how far information can propagate through a randomly initialized network, and argued that arbitrarily deep networks can be trained only when initialized close to the "edge of chaos," the boundary between an ordered phase with vanishing gradients and a chaotic phase with exploding ones[19]. Pennington, Schoenholz and Ganguli (NIPS 2017) asked when all singular values of the input-output Jacobian concentrate near 1, a property called dynamical isometry. They found that ReLU networks cannot achieve it, while sigmoidal networks can, but only with orthogonal weights, and that networks with dynamical isometry learned orders of magnitude faster[17]. Xiao and colleagues (ICML 2018) extended the conditions to convolutional networks, gave an algorithm for random orthogonal convolution kernels, and trained plain convolutional networks with 10,000 or more layers without residual connections or batch normalization[18].

For recurrent neural networks, Quoc Le, Navdeep Jaitly and Geoffrey Hinton (2015) proposed initializing the recurrent weight matrix of a ReLU network to the identity matrix or a scaled version of it, and reported results comparable to an LSTM on four benchmarks[21].

Data-dependent initialization

Some methods pass real data through the network to set the scale of each layer. Layer-sequential unit-variance (LSUV) initialization, proposed by Dmytro Mishkin and Jiří Matas at ICLR 2016, works in two steps[6]. It first fills every convolutional and fully connected layer with an orthonormal matrix, following Saxe and colleagues. Then, from the first layer to the last, it runs a forward pass on a mini-batch, measures the variance of the layer's output, and divides the weights by its square root, repeating until the variance is within a tolerance of 1[6]. The authors describe it as orthonormal initialization combined with batch normalization performed only on the first mini-batch. The desired variance was reached in one to five iterations, and the procedure took 3.5 minutes in the slowest case they timed (CaffeNet)[6]. Results were mixed on ImageNet: an LSUV-initialized GoogLeNet trained faster and finished at 0.680 accuracy against 0.672 for the original, while CaffeNet started faster but was overtaken and ended 1.3% lower[6].

Philipp Krähenbühl, Carl Doersch, Jeff Donahue and Trevor Darrell (ICLR 2016) proposed a related data-dependent procedure for convolutional networks that sets the weights so that all units train at roughly the same rate. They reported that it matched unsupervised and self-supervised pre-training methods on standard vision tasks while being about three orders of magnitude faster[22].

Residual networks and transformers

Residual networks add each block's output to an identity path, so the variance of the running signal grows with the number of blocks unless the blocks are scaled down. Hanin and Rolnick (NeurIPS 2018) proved that in deep ReLU networks the exploding or vanishing mean activation length can be avoided by drawing weights from a symmetric distribution with variance $2/\text{fan_in}$ and, for residual networks, by correctly weighting the residual modules[20]. Several practical recipes start each residual branch small or at zero:

MethodYearInitialization rule
Zero-$\gamma$ residual blocks (Goyal et al.)2017Batch-norm scale $\gamma$ set to 0 in the last batch-norm layer of each residual block, so signals initially pass through the shortcut[10]
GPT-22019Weights of residual layers scaled by $1/\sqrt{N}$, where $N$ is the number of residual layers[11]
Fixup (Zhang, Dauphin, Ma)2019Classification layer and last layer of each residual branch set to 0; other branch layers scaled by $L^{-1/(2m-2)}$[9]
ReZero (Bachlechner et al.)2020Each residual connection gated by a single parameter initialized to 0[24]
DeepNorm (Wang et al.)2022Xavier initialization with selected weights scaled by a depth-dependent $\beta < 1$[13]

Expanded article table

Goyal and colleagues at Facebook found that the zero-$\gamma$ trick improved all their models and helped most with large-minibatch training[10]. Fixup was designed to remove normalization altogether. In it, $L$ is the number of residual branches and $m$ the number of layers in each branch, and the method also adds a scalar multiplier (initialized at 1) and scalar biases (initialized at 0)[9]. Zhang, Dauphin and Ma reported that residual networks trained with Fixup were as stable as those trained with normalization, even at 10,000 layers, and that the depth-dependent rescaling was the essential part of the recipe[9]. ReZero's authors trained 120-layer transformers and reported 56% faster convergence for a 12-layer transformer on enwiki8[24]. DeepNorm scales down the feed-forward, value and output projections and pairs the smaller initialization with an up-scaled residual connection, which let its authors train transformers with 1,000 layers[13].

In large language models, a small fixed standard deviation is common. The original GPT paper (2018) used $N(0, 0.02)$ and explained that this simple choice was enough because layer normalization is used extensively throughout the model[12]. AI2's OLMo 2 (2024) initialized every parameter from a normal distribution with mean 0 and standard deviation 0.02, replacing the earlier OLMo-0424 scheme that scaled input projections by $1/\sqrt{d_{\text{model}}}$ and output projections by a factor that shrank with layer index. The OLMo team reported that the new scheme better preserved the scale of activations and gradients across layers and trained more stably[27]. The DeepSeek-V3 technical report states that all learnable parameters were initialized with a standard deviation of 0.006[28]. Nguyen and Salazar (2019) found that pre-norm residual connections together with smaller initializations allowed transformers to train without learning-rate warmup and with large learning rates[34].

Research on transformer initialization continues. Trockman and Kolter (2023) proposed "mimetic initialization," which sets the product of the query and key weights close to the identity and the product of the value and projection weights close to the negative identity, imitating patterns in pre-trained vision transformers; they reported accuracy gains of over 5% on CIFAR-10 and 4% on ImageNet[26]. Nishida, Nishida and Saito (EMNLP 2024) argued that the non-uniform parameter norms required by standard transformer initializations contribute to loss spikes in language-model pre-training. Their method, weight scaling as reparameterization (WeSaR), adds a gate parameter per weight matrix so the underlying weights can share a uniform norm, and stabilized training of decoders with 130 million to 13 billion parameters[29].

Width scaling and muP

The variance rules above are usually derived for a single network size. Greg Yang and Edward Hu showed in "Feature Learning in Infinite-Width Neural Networks" (Tensor Programs IV, ICML 2021) that the standard parametrization and the neural tangent kernel parametrization have no infinite-width limit that learns features, and they proposed modifications that do[15]. The resulting Maximal Update Parametrization (muP) changes initialization and learning rates together. In the formulation in "Tensor Programs V" (NeurIPS 2021), hidden weights keep the familiar $1/\text{fan_in}$ initialization variance, but output weights are initialized with variance $1/\text{fan_in}^2$ instead of $1/\text{fan_in}$, and learning rates are scaled per layer type[14]. Under muP many optimal hyperparameters, including the learning rate and the initialization scale, stay stable as width changes, so they can be tuned on a small proxy model and transferred to a large one[14]. A footnote in the same paper observes that Glorot initialization would scale asymptotically like muP in their example network, but not once layer normalization or batch normalization is added[14]. Yang, Simon and Bernstein (2023) restated the idea as a spectral condition: weight matrices and their updates should have spectral norms that scale like $\sqrt{\text{fan_out}/\text{fan_in}}$, in contrast to heuristic scalings based on Frobenius norm and entry size[16]. The muP article covers the method in detail.

Biases and other parameters

Biases are usually easier to set than weights. The Deep Learning textbook notes that zero biases are compatible with most weight initialization schemes and lists exceptions[4]. An output layer's bias can be set so the untrained network already predicts the marginal statistics of the targets, for example by solving $\operatorname{softmax}(b) = c$ for class frequencies $c$. A ReLU hidden unit's bias may be set to a small positive value such as 0.1 to avoid saturation at the start. A gating unit's bias can be set so the gate is mostly open, as in Jozefowicz and colleagues' advice to initialize the LSTM forget-gate bias to 1[4]. Glorot and Bengio and He and colleagues both initialized biases to zero in their experiments[1][2]. Normalization layers have their own parameters. In Goyal and colleagues' ResNet setup, the batch-normalization scale $\gamma$ was initialized to 1 everywhere except the last batch-normalization layer of each residual block, where it was set to 0[10].

Relationship with normalization

Normalization layers made deep networks much less sensitive to the initial scale of the weights. Ioffe and Szegedy's 2015 batch normalization paper states that the method allows "much higher learning rates" and lets practitioners "be less careful about initialization"[8]. Goyal and colleagues added a caveat: with batch normalization, SGD with a small minibatch was insensitive to initialization, but this was not the case for very large minibatches[10]. Mishkin and Matas found that an LSUV-initialized network trained as well as a batch-normalized one on CIFAR-10, while stating that they were "not claiming that batch normalization can always be replaced by proper initialization"[6]. Zhang, Dauphin and Ma went further and argued that none of the perceived benefits of normalization is unique to it, presenting Fixup as evidence[9].

Initialization in software libraries

Deep learning frameworks ship the classical schemes as named functions and give each layer type a default.

FrameworkFunctionRule as documented
PyTorchnn.Linear defaultWeights and biases from $U(-\sqrt{k}, \sqrt{k})$ with $k = 1/\text{in_features}$[31]
PyTorchxavier_uniform_$U(-a, a)$ with $a = \text{gain} \times \sqrt{6/(\text{fan_in} + \text{fan_out})}$[30]
PyTorchkaiming_normal_$N(0, \text{std}^2)$ with $\text{std} = \text{gain}/\sqrt{\text{fan_mode}}$; defaults mode='fan_in', nonlinearity='leaky_relu', a=0[30]
PyTorchorthogonal_(Semi-)orthogonal matrix, after Saxe et al.[30]
PyTorchtrunc_normal_Normal values outside $[a, b]$ redrawn; defaults mean 0, std 1, $a = -2$, $b = 2$[30]
KerasDense defaultkernel_initializer="glorot_uniform", bias_initializer="zeros"[33]
KerasGlorotUniformUniform in $[-\text{limit}, \text{limit}]$, $\text{limit} = \sqrt{6/(\text{fan_in} + \text{fan_out})}$[32]
KerasHeNormalTruncated normal, $\text{stddev} = \sqrt{2/\text{fan_in}}$[32]
KerasOrthogonalQR decomposition of a random normal matrix[32]

Expanded article table

PyTorch's calculate_gain returns the recommended gain for each nonlinearity: 1 for linear, convolution and sigmoid layers, 5/3 for tanh, $\sqrt{2}$ for ReLU, $\sqrt{2/(1 + \text{negative_slope}^2)}$ for leaky ReLU, and 3/4 for SELU[30]. The documentation warns that self-normalizing networks should use nonlinearity='linear' instead, which gives the weights a variance of $1/N$[30]. The default weight rule for nn.Linear is the same uniform rule Glorot and Bengio called the "commonly used heuristic" in 2010, although PyTorch also draws the biases from it where Glorot and Bengio set them to zero[1][31]. The library also provides eye_ and dirac_ for identity-preserving linear and convolutional layers, and sparse_, which follows Martens's 2010 sparse initialization[30].

Initialization and the lottery ticket hypothesis

Initialization also matters for network pruning. Jonathan Frankle and Michael Carbin's lottery ticket hypothesis (ICLR 2019) proposes that dense, randomly initialized feed-forward networks contain sparse subnetworks, "winning tickets," that can be trained in isolation to accuracy comparable to the full network in a similar number of iterations. In their account these subnetworks have "won the initialization lottery": their connections have initial weights that make training particularly effective[25].

Continue reading

More from See also

More to read

Topics:Deep LearningNeural NetworksTraining & Optimization

References

  1. ^1 ^2 ^3 ^4 ^5 ^6 ^7 ^8 ^9 ^10 ^11 ^12 ^13Glorot, Xavier; Bengio, Yoshua. "Understanding the difficulty of training deep feedforward neural networks". Proceedings of the Thirteenth International Conference on Artificial Intelligence and Statistics (AISTATS), PMLR 9:249-256, 2010. proceedings.mlr.press/...glorot10a
  2. ^1 ^2 ^3 ^4 ^5 ^6 ^7 ^8 ^9 ^10 ^11 ^12 ^13He, Kaiming; Zhang, Xiangyu; Ren, Shaoqing; Sun, Jian. "Delving Deep into Rectifiers: Surpassing Human-Level Performance on ImageNet Classification". 2015 IEEE International Conference on Computer Vision (ICCV), pp. 1026-1034, 2015 (arXiv:1502.01852). arxiv.org/...1502.01852
  3. ^1 ^2 ^3 ^4 ^5LeCun, Yann; Bottou, Léon; Orr, Genevieve B.; Müller, Klaus-Robert. "Efficient BackProp". In Orr, G. and Müller, K. (eds.), Neural Networks: Tricks of the Trade, Springer, 1998. yann.lecun.com/...lecun-98b.pdf
  4. ^1 ^2 ^3 ^4 ^5 ^6 ^7 ^8Goodfellow, Ian; Bengio, Yoshua; Courville, Aaron. "Optimization for Training Deep Models", section 8.4 "Parameter Initialization Strategies". Deep Learning, MIT Press, 2016. deeplearningbook.org/...optimization
  5. ^1 ^2 ^3Saxe, Andrew M.; McClelland, James L.; Ganguli, Surya. "Exact solutions to the nonlinear dynamics of learning in deep linear neural networks". arXiv:1312.6120, 2013. arxiv.org/...1312.6120
  6. ^1 ^2 ^3 ^4 ^5 ^6Mishkin, Dmytro; Matas, Jiri. "All you need is a good init". ICLR 2016 (arXiv:1511.06422). arxiv.org/...1511.06422
  7. ^Sutskever, Ilya; Martens, James; Dahl, George; Hinton, Geoffrey. "On the importance of initialization and momentum in deep learning". International Conference on Machine Learning (ICML), PMLR 28(3):1139-1147, 2013. proceedings.mlr.press/...sutskever13
  8. ^Ioffe, Sergey; Szegedy, Christian. "Batch Normalization: Accelerating Deep Network Training by Reducing Internal Covariate Shift". arXiv:1502.03167, 2015. arxiv.org/...1502.03167
  9. ^1 ^2 ^3 ^4 ^5Zhang, Hongyi; Dauphin, Yann N.; Ma, Tengyu. "Fixup Initialization: Residual Learning Without Normalization". ICLR 2019 (arXiv:1901.09321). arxiv.org/...1901.09321
  10. ^1 ^2 ^3 ^4Goyal, Priya; Dollár, Piotr; Girshick, Ross; Noordhuis, Pieter; Wesolowski, Lukasz; Kyrola, Aapo; Tulloch, Andrew; Jia, Yangqing; He, Kaiming. "Accurate, Large Minibatch SGD: Training ImageNet in 1 Hour". arXiv:1706.02677, 2017. arxiv.org/...1706.02677
  11. ^1 ^2Radford, Alec; Wu, Jeffrey; Child, Rewon; Luan, David; Amodei, Dario; Sutskever, Ilya. "Language Models are Unsupervised Multitask Learners". OpenAI, 2019. cdn.openai.com/...upervised_multitask_learners.pdf
  12. ^Radford, Alec; Narasimhan, Karthik; Salimans, Tim; Sutskever, Ilya. "Improving Language Understanding by Generative Pre-Training". OpenAI, 2018. cdn.openai.com/...language_understanding_paper.pdf
  13. ^1 ^2 ^3Wang, Hongyu; Ma, Shuming; Dong, Li; Huang, Shaohan; Zhang, Dongdong; Wei, Furu. "DeepNet: Scaling Transformers to 1,000 Layers". arXiv:2203.00555, 2022. arxiv.org/...2203.00555
  14. ^1 ^2 ^3 ^4Yang, Greg; Hu, Edward J.; Babuschkin, Igor; Sidor, Szymon; Liu, Xiaodong; Farhi, David; Ryder, Nick; Pachocki, Jakub; Chen, Weizhu; Gao, Jianfeng. "Tensor Programs V: Tuning Large Neural Networks via Zero-Shot Hyperparameter Transfer". NeurIPS 2021 (arXiv:2203.03466). arxiv.org/...2203.03466
  15. ^Yang, Greg; Hu, Edward J. "Feature Learning in Infinite-Width Neural Networks". ICML 2021 (arXiv:2011.14522). arxiv.org/...2011.14522
  16. ^Yang, Greg; Simon, James B.; Bernstein, Jeremy. "A Spectral Condition for Feature Learning". arXiv:2310.17813, 2023. arxiv.org/...2310.17813
  17. ^Pennington, Jeffrey; Schoenholz, Samuel S.; Ganguli, Surya. "Resurrecting the sigmoid in deep learning through dynamical isometry: theory and practice". NIPS 2017 (arXiv:1711.04735). arxiv.org/...1711.04735
  18. ^Xiao, Lechao; Bahri, Yasaman; Sohl-Dickstein, Jascha; Schoenholz, Samuel S.; Pennington, Jeffrey. "Dynamical Isometry and a Mean Field Theory of CNNs: How to Train 10,000-Layer Vanilla Convolutional Neural Networks". ICML 2018 (arXiv:1806.05393). arxiv.org/...1806.05393
  19. ^Schoenholz, Samuel S.; Gilmer, Justin; Ganguli, Surya; Sohl-Dickstein, Jascha. "Deep Information Propagation". arXiv:1611.01232, 2016. arxiv.org/...1611.01232
  20. ^Hanin, Boris; Rolnick, David. "How to Start Training: The Effect of Initialization and Architecture". NeurIPS 2018 (arXiv:1803.01719). arxiv.org/...1803.01719
  21. ^Le, Quoc V.; Jaitly, Navdeep; Hinton, Geoffrey E. "A Simple Way to Initialize Recurrent Networks of Rectified Linear Units". arXiv:1504.00941, 2015. arxiv.org/...1504.00941
  22. ^Krähenbühl, Philipp; Doersch, Carl; Donahue, Jeff; Darrell, Trevor. "Data-dependent Initializations of Convolutional Neural Networks". ICLR 2016 (arXiv:1511.06856). arxiv.org/...1511.06856
  23. ^1 ^2Klambauer, Günter; Unterthiner, Thomas; Mayr, Andreas; Hochreiter, Sepp. "Self-Normalizing Neural Networks". Advances in Neural Information Processing Systems 30 (NIPS 2017) (arXiv:1706.02515). arxiv.org/...1706.02515
  24. ^1 ^2Bachlechner, Thomas; Majumder, Bodhisattwa Prasad; Mao, Huanru Henry; Cottrell, Garrison W.; McAuley, Julian. "ReZero is All You Need: Fast Convergence at Large Depth". arXiv:2003.04887, 2020. arxiv.org/...2003.04887
  25. ^Frankle, Jonathan; Carbin, Michael. "The Lottery Ticket Hypothesis: Finding Sparse, Trainable Neural Networks". ICLR 2019 (arXiv:1803.03635). arxiv.org/...1803.03635
  26. ^Trockman, Asher; Kolter, J. Zico. "Mimetic Initialization of Self-Attention Layers". arXiv:2305.09828, 2023. arxiv.org/...2305.09828
  27. ^Team OLMo; Walsh, Pete; Soldaini, Luca; Groeneveld, Dirk; Lo, Kyle; et al. "2 OLMo 2 Furious". arXiv:2501.00656, 2024. arxiv.org/...2501.00656
  28. ^DeepSeek-AI. "DeepSeek-V3 Technical Report". arXiv:2412.19437, 2024. arxiv.org/...2412.19437
  29. ^Nishida, Kosuke; Nishida, Kyosuke; Saito, Kuniko. "Initialization of Large Language Models via Reparameterization to Mitigate Loss Spikes". Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing, pp. 22699-22714, November 2024. aclanthology.org/2024.emnlp-main.1264
  30. ^1 ^2 ^3 ^4 ^5 ^6 ^7 ^8PyTorch. "torch.nn.init". PyTorch 2.15 documentation, accessed November 2026. docs.pytorch.org/...nn.init
  31. ^1 ^2PyTorch. "Linear". PyTorch 2.15 documentation, accessed November 2026. docs.pytorch.org/...torch.nn.Linear
  32. ^1 ^2 ^3 ^4Keras. "Layer weight initializers". Keras 3 API documentation, accessed November 2026. keras.io/...initializers
  33. ^Keras. "Dense layer". Keras 3 API documentation, accessed November 2026. keras.io/...dense
  34. ^Nguyen, Toan Q.; Salazar, Julian. "Transformers without Tears: Improving the Normalization of Self-Attention". IWSLT 2019 (arXiv:1910.05895). arxiv.org/...1910.05895

Improve this article

Add missing citations, update stale details, or write a clearer explanation. Anyone can edit: changes go live when you publish, and every edit is checked by an editor.

2 revisions · v2 · 4,209 words · full history

Fact-checks are independent of edits: a reviewer re-verifies the article against its sources and stamps the date. How we verify

Research and drafting on this wiki are AI-assisted, under named human editorial standards. How AI is used here

Reviewer note: Independent fact-check before publication on November 18, 2026: 118 claims checked against 38 cited and independent sources; 0 material and 4 minor corrections applied before publication.

Cite this page: AI Wiki. "Weight Initialization." aiwiki.ai, updated 18 Nov 2026, fact-checked 18 Nov 2026. CC BY 4.0. https://aiwiki.ai/wiki/weight_initialization

Edit article