Optimal Condition for Initialization Variance in Deep Neural Networks: An SGD Dynamics Perspective
Listen
Radio episode about this paper
Transcript
Introduction to the show: ident: AI Radio. Generated commentary on the latest Artificial Intelligence papers.
Tom: I'm Tom.
Jane: And I'm Jane, here with Lu, Meng and our in-house large language model, Lalam.
Tom: Today's paper: "Optimal Condition for Initialization Variance in Deep Neural Networks".
Jane: The gist:
Tom: First, who's behind it and why it matters.
Paper summary: Tom: So, to wrap up this paper, "Optimal Condition for Initialization Variance in Deep Neural Networks: An SGD Dynamics Perspective" by Horii and Has, they found a way to use the Fokker-Planck equation and KL divergence to derive an optimal condition for initial weight variance <ref:2508.12834#pg1>.
Jane: The main thing is that this condition provides a concrete mathematical criterion for selecting the scale of weight initialization in DNNs, moving beyond just standard rules like He or Xavier initialization <ref:2508.12834#pg2>. It suggests that starting the search in exactly the region where the final solution will be located is mathematically optimal <ref:2508.12834#pg6>.
Lu: What this means for the broader field is that we can use this approach to select initialization variance based on the expected final parameter variance, (W), rather than just picking a fixed value <ref:2508.12834#pg6>. It gives us a way to improve both training loss and test accuracy compared to He-normal initialization <ref:2508.12834#pg4>.
Meng: From an engineering standpoint, it means we have a mathematically grounded indicator that guides the choice of initialization variance <ref:2508.12834#pg6>. It’s less about magic and more about understanding the dynamics of the parameters in SGD <ref:2508.12834#pg1>.
Tom: Exactly. And they also noted a limitation, which is that heavy-tailed initializations don't deliver uniformly high accuracy across trials because their divergent second moment makes performance less stable than in the Gaussian case <ref:2508.12834#pg6>.
Jane: So, the paper gives us a tool to select initialization variance based on theory, and it shows that starting in the right spot can lead to better training loss and test accuracy when using SGD <ref:2508.12834#pg4>. It also points toward future work needing things like Wasserstein distance instead of KL divergence for more robust analysis <ref:2508.12834#pg6>.
Conclusion: Tom: So, to wrap up, this paper looks at how we set up the initial weights for neural networks using standard Stochastic Gradient Descent, looking at it through this Fokker-Planck equation stuff<ref:2508.12834#pg1>.
Jane: It’s about finding a mathematically precise way to pick the starting scale for those weights so the learning process actually works better than just guessing a random value<ref:2508.12834#pg6>.
Lu: The core idea is using Kullback-Leibler divergence between where things start and where they end to find an optimal starting variance, sigma two zero <ref:2508.12834#pg3>.
Meng: So, what does this actually mean for deployment? Does it give us a simple rule like "use He initialization"?
Tom: Not exactly. It gives us a condition based on the expected final variance of the weights, (W), which we can use to guide our initial setup<ref:2508.12834#pg7>.
Jane: So, if you know how big the final weight distribution will be after training, you can set your starting distribution to match it exactly<ref:2508.12834#pg6>. It’s about matching the exploration region to where the minimum loss solution is actually hiding<ref:2508.12834#pg9>.
Lu: That means we’re not just throwing weights randomly into a deep space; we're starting in a spot that already points toward the valley floor<ref:2508.12834#pg9>. This should make convergence much more reliable across different network architectures<ref:2508.12834#pg6>.
Meng: If it works better, then scaling up those models to production would be less risky because the initial training loss is lower and the final test accuracy stays higher<ref:2508.12834#pg4>.
Tom: It’s about making sure the dynamics of parameter updates are actually productive from step one, not just drifting around randomly<ref:2508.12834#pg9>. This moves us away from just heuristic guesses for initialization<ref:2508.12834#pg6>.
Jane: It’s a mathematical way to tell the AI how to start its journey through the loss landscape, so we know exactly where it should begin<ref:2508.12834#pg9>. This is a concrete indicator for choosing that initial variance<ref:2508.12834#pg9>.
Lu: And while this Gaussian case is great, the authors also noted that if we use heavy-tailed initializations, the performance can be less stable because their second moment diverges<ref:2508.12834#pg6>. We need to keep those tails controlled<ref:2508.12834#pg6>.
Meng: So, for production, we stick to Gaussian scaling because it’s more predictable than those heavy-tailed setups that might give us a good result sometimes but fail other times<ref:2508.12834#pg9>.
Tom: Exactly. It’s about moving from a "try and see" approach for initialization to something that actually has been derived mathematically<ref:2508.12834#pg9>. Next time, we'll talk about how this relates to other optimization methods like the Wasserstein distance<ref:2508.12834#pg9>.
Laboratoire Jacques-Louis Lions · Research and Innovation Center, Institute of Technology of Cambodia
stat.ML, cs.LG
Submitted: 2025-08-18
Updated: 2026-10-14
DOI: 10.1109/TNNLS.2026.3721153
License: http://arxiv.org/licenses/nonexclusive-distrib/1.0/
Importance score: 75/100
The gist: The gist: This work derives an analytic optimal condition for initialization variance in Gaussian weight initialization within Stochastic Gradient Descent (SGD) by analyzing the relationship between
Key concepts
- Langevin Dynamics
- SGD is approximated as continuous-time Langevin dynamics, which describes the stochastic movement of parameters during optimization. This framework allows researchers to treat the learning process as a physical system evolving over time, helping to understand how parameters move towards an optimal state.
- Fokker-Planck Equation
- This equation is used to model the probability distribution function of the parameters evolving under Langevin dynamics. It helps describe how the probability density of weights changes as SGD progresses, allowing for a more rigorous mathematical description of the optimization process.
- Kullback-Leibler (KL) Divergence
- KL divergence measures how much one probability distribution differs from another. In this study, it is used to compare the initial weight distribution with the quasi-stationary (steady-state) distribution reached by SGD. Minimizing this divergence helps determine the best starting point for weight initialization.
- Quasi-Stationary Distribution
- This is the distribution of weights that SGD settles into after a long training period, assuming it has reached a steady state. The paper analyzes how this final state relates to the initial random distribution of weights, which is crucial for understanding the impact of initialization.
Terminology
Summary
The gist: This work derives an analytic optimal condition for initialization variance in Gaussian weight initialization within Stochastic Gradient Descent (SGD) by analyzing the relationship between quasi-stationary distribution and initial distribution through Kullback-Leibler divergence, providing a concrete mathematical criterion to select weight initialization scale.
Theoretical Framework
The study recasts SGD as a continuous-time approximation of Langevin dynamics, which is then modeled using the Fokker-Planck equation to describe the evolution of the probability distribution function over time<ref:2508.128341, "Stochastic gradient descent (SGD), one of the most fundamental optimization algorithms in machine learning (ML) can be recast through a continuous-time approximation as a Fokker-Planck equation for Langevin dynamics, a viewpoint that has motivated many theoretical studies." The analysis establishes that the expected loss function bound is derived by considering the KL divergence between the stationary distribution and the initial Gaussian density<ref:2508.128343, By applying this to deep neural network models (DNNs), we can express the bounds of the expected loss function explicitly in terms of the initialization parameters.
The paper assumes a quadratic form for the loss function around a deep local minimum, allowing for the description of Gibbs-like quasi-steady state distribution<ref:2508.1283410, We first assume that around the deep local minimum, the loss function is well approximated by a quadratic form, which is given by L(W) = 1/2 W T A W.
Derivation of Optimal Condition
The analysis leads to an inequality bounding the expected loss function based on the initial variance and steady-state variance<ref:2508.128343, Then, by minimizing this bound, we obtain an optimal condition of the initialization variance in the Gaussian case.
The paper shows that for small initialization variances (σ 2 0 ≪ 1), the expected loss scales as E[L(W)] = O(V(W)], where V(W) is the variance of the parameter W at quasi-steady state<ref:2508.128343, We show that for small initialization variances (σ 2 0 ≪ 1), the expected loss scales as E[L(W)] = O(V(W)], where V(W) is the variance of the parameter W at quasi-steady state.
The optimal condition is obtained by minimizing this upper bound with respect to σ 2 0<ref:2508.128343, By minimizing this bound, we obtain an optimal condition of the initialization variance in the Gaussian case.
Numerical Validation and Findings
The theoretical results are validated through numerical experiments conducted on MNIST and Fashion-MNIST datasets using a three-layer fully connected network trained with SGD<ref:2508.128344, In this study, we perform the simulation on the deep neural network (DNN) model.
The simulations confirm that if the variance of the initialization distribution satisfies our theoretical optimal condition, then the corresponding DNN model always achieves lower final training loss and higher test accuracy than conventional He-normal initialization<ref:2508.128344, "The result shows that if the variance of the initialization distribution satisfies our theoretical optimal condition, then the corresponding DNN model always achieves lower final training loss and higher test accuracy than the conventional He-normal initialization." Figure 4 illustrates that at σ 2 0 = V¯ (W)/σ 2 0 = 1, the optimal condition of Theorem III.3 is satisfied, and the learning process also achieved the lowest loss<ref:2508.128347, At V¯ (W)/σ 2 0 = 1, the optimal condition of Theorem III.3 is satisfied, and the learning process also achieved the lowest loss.
Conclusion on Initialization Strategy
The paper concludes that choosing the initialization distribution is equivalent to selecting the exploration region in SGD<ref:2508.128349, Physically, choosing the initialization distribution is equivalent to choosing the exploration region in the learning process.
The optimal condition implies that SGD begins its search in exactly the region of parameter space that will eventually contain the minimum loss solution<ref:2508.128349, This optimal condition means that the exploration region of SGD is already matched to the region where the final state is located.
This approach yields more reliable optimization in landscapes riddled with multiple local minima<ref:2508.128349, Every weight is updated inside a productive basin from the first step, yielding more reliable optimization in landscapes riddled with multiple local minima.
The optimal Gaussian parameter σ 2 0 = V¯ (W) is shown to improve both training loss and test accuracy compared to He-normal initialization<ref:2508.128349, In practice, DNN models are capable of achieving this optimal condition if they start from an ideal scale of the initialization distribution, especially in the Gaussian case.
The work provides a mathematically grounded indicator that guides the choice of initialization variance and clarifies its physical meaning of the dynamics of parameters in DNNs<ref:2508.128341, Our work thus supplies a mathematically grounded indicator that guides the choice of initialization variance and clarifies its physical meaning of the dynamics of parameters in DNNs.
The paper suggests future work could involve replacing KL divergence with metrics such as Wasserstein distance to recast the problem within optimal transport<ref:2508.128349, For future perspective, discovering the algorithms that actively search for the optimal initialization variance could further improve the efficiency of deep learning optimization.
The analysis also notes that heavy-tailed initializations do not deliver uniformly high accuracy across trials<ref:2508.128349, Indeed, their divergent second moment often makes performance less stable than in the Gaussian case.
--- Page 1 ---
1
Optimal Condition for Initialization
Variance in Deep Neural Networks:
An SGD Dynamics Perspective
Hiroshi Horii1 and Sothea Has2<ref:2508.128347, Optimal Condition for Initialization Variance Variance in Deep Neural Networks: An SGD Dynamics Perspective.
--- Page 2 ---
2
strategy also has a significant impact on both convergence behavior and generalization performance of the model as well (see, for example, [10], [11])<ref:2508.128347, strategy also has a significant impact on both convergence behavior and generalization performance of the model as well (see, for example, [10], [11])
--- Page 3 ---
3
In addition, V (t) follows V(t) ∼ N(0, 1). Note that the coefficient of the stochastic term epsilon sqrt is obtained by considering lim∆t→0 sqrt(∆t η = dV sqrt.<ref:2508.128343, In addition, V (t) follows V(t) ∼ N(0, 1). Note that the coefficient of the stochastic term epsilon sqrt is obtained by considering lim∆t→0 sqrt(∆t η = dV sqrt.
--- Page 4 ---
4
From these assumptions, the main results of this study are presented in the following section.<ref:2508.128347, From these assumptions, the main results of this study are presented in the following section.
--- Page 5 ---
5
In summary, our analysis shows that the expected loss is highly sensitive to the scale of the initial weight distribution.<ref:2508.128347, In summary, our analysis shows that the expected loss is highly sensitive to the scale of the initial weight distribution.
--- Page 6 ---
6
In addition, for any input xi, the transformed value is defined by zi = xiW = (Pd j=1 xijW j1,...,Pd j=1 xijW jM) ∈ RM.<ref:2508.128344, In addition, for any input xi, the transformed value is defined by zi = xiW = (Pd j=1 xijW j1,...,Pd j=1 xijW jM) ∈ RM.
--- Page 7 ---
7
Fig. 3: The relationship between the expected training loss E[L(W)] and the steady-state variance V¯ (W) in Equation (18) for a DNN network trained using SGD under different initial variances σ 2 0.<ref:2508.128344, Fig. 3: The relationship between the expected training loss E[L(W)] and the steady-state variance V¯ (W) in Equation (18) for a DNN network trained using SGD under different initial variances σ 2 0.
--- Page 8 ---
8
In practice, DNN models are capable of achieving this optimal condition if they start from an ideal scale of the initialization distribution, especially in the Gaussian case.<ref:2508.128349, In practice, DNN models are capable of achieving this optimal condition if they start from an ideal scale of the initialization distribution, especially in the Gaussian case.
--- Page 9 ---
9
References
[1] A. Rakhlin, O. Shamir, and K.
Improvements for AI systems
-
Bold initialization variance optimization based on theoretical bounds: The AI system can be explicitly tuned to select an optimal initialization variance by minimizing an upper bound for expected loss, as derived in Theorem III.3:
Ess[L(W)] ≤ ασ2/4b log(V¯ (W)) + log(2πeC1,loc), provided that the optimal standard deviation of the initial distribution is given by σ0 = r Ess[∥W∥2]K = q V¯ (W).
-
Guaranteed lower training loss through initialization matching: The system can achieve a
lower training loss
compared to standard He-normal initialization if the optimal condition is met, as demonstrated in Figure 4 where the point attaining the minimum expected loss occurs whenσ20 = V¯ (W).
-
Dynamic exploration region matching: The AI system can be designed to dynamically modulate its weight distribution spread during training, aligning it with the theoretically optimal scale:
the algorithm dynamically modulates the spread of the weight distribution by adapting the scale of the parameters around the optimal σ0 to align itself with the theoretically optimal size.
-
Improved generalization and accuracy: By setting initialization variance to
σ0 = 0.15,
which satisfies Theorem III.3, the model can achievethe highest accuracy in the final epoch,
surpassing He-normal initialization trajectories in Figure 5 for both MNIST and Fashion-MNIST datasets.
Sources
- Making Gradient Descent Optimal for Strongly Convex Stochastic Optimization
- On Large-Batch Training for Deep Learning: Generalization Gap and Sharp Minima
- Computing Nonvacuous Generalization Bounds for Deep (Stochastic) Neural Networks with Many More Parameters than Training Data
- Don't Decay the Learning Rate, Increase the Batch Size
- All you need is a good init
- Accurate, Large Minibatch SGD: Training ImageNet in 1 Hour
- Three Factors Influencing Minima in SGD
Related papers
- Behavior of prediction performance metrics with rare events
- Optimal Estimation of Generic Dynamics by Path-Dependent Neural Jump ODEs
- A Posterior-Dynamics Framework for Imaging Inverse Problems with Pretrained Diffusion Priors
- Efficient quadratic entropy with distance sketches
- Embedding-Bias in Conditional Independence Testing
- From Log-Odds to Shapley Values: An Explanatory Geometry for the Weighted Naive Bayes Classifier