본문 펼치기
## Convergence of variational Monte Carlo simulation and scale-invariant pre-training
Nilin Abrahamsen <sup>a,</sup> <sup>_∗_</sup>, Zhiyan Ding <sup>b</sup>, Gil Goldshlager <sup>b</sup>, Lin Lin <sup>b,c</sup>
_a_ _The_ _Simons_ _Institute_ _for_ _the_ _Theory_ _of_ _Computing,_ _Berkeley,_ _CA_ _94720_ _USA_
_b_ _Department_ _of_ _Mathematics,_ _University_ _of_ _California,_ _Berkeley,_ _CA_ _94720_ _USA_
_c_ _Applied_ _Mathematics_ _and_ _Computational_ _Research_ _Division,_ _Lawrence_ _Berkeley_ _National_
_Laboratory,_ _Berkeley,_ _CA_ _94720,_ _USA_
Abstract
We provide theoretical convergence bounds for the variational Monte Carlo
(VMC) method as applied to optimize neural network wave functions for the
electronic structure problem. We study both the energy minimization phase
and the supervised pre-training phase that is commonly used prior to energy
minimization. For the energy minimization phase, the standard algorithm is
scale-invariant by design, and we provide a proof of convergence for this algorithm
without modifications. The pre-training stage typically does not feature such
scale-invariance. We propose using a scale-invariant loss for the pretraining
phase and demonstrate empirically that it leads to faster pre-training.
1. Introduction
A central goal of computational physics and chemistry is to find a _ground_
_state_ which minimizes the energy of a system. Electronic structure theory studies
the behavior of electrons that govern the chemical properties of molecules and
materials. The energy in the electronic structure is a functional defined on the
set of quantum wave functions _ψ_, which are normalized _L_ <sup>2</sup> -integrable functions
determined up to an arbitrary scalar multiplication factor, known as a _phase_ .
Equivalently, the wave function can be viewed as an element of the projective
space rather than a normalized function.
The _variational_ _Monte_ _Carlo_ (VMC) algorithm [1, 2, 3] is a powerful method
for optimizing the energy of a parameterized wave function through stochastic
gradient estimates. The method relies on Monte Carlo samples from the probability distribution defined by the Born rule, which views the normalized squared
wave function as a probability density function.
_∗_ Corresponding author
_Email_ _addresses:_ `nilin@berkeley.edu` (Nilin Abrahamsen), `zding.m@math.berkeley.edu`
(Zhiyan Ding), `ggoldshlager@gmail.com` (Gil Goldshlager), `linlin@math.berkeley.edu` (Lin
Lin)
_Preprint_ _submitted_ _to_ _Elsevier_ _July_ _8,_ _2024_
Historically, the number of parameters used in VMC simulations was relatively
small, and methods such as stochastic reconfiguration [4, 5] and the linear method
[6, 7] were preferred for parameter optimization. Recently, neural networks have
been used to parameterize the wave function in an approach known as _neural_
_quantum_ _states_ [8]. Subsequent work has shown that VMC with neural quantum
states can match or exceed state-of-the-art high-accuracy quantum simulation
methods for a variety of electronic structure problems, including molecules in
both first quantization [9, 10, 11, 12] and second quantization [13, 14], electron
gas [15, 16, 17], and solids [18].
Due to the complexity of quantum wave functions parameterized by neural
networks, it is in general not possible to explicitly normalize the parameterized
wave function. One of the essential properties of the VMC procedure is thus its
ability to use an unnormalized function _ψθ_ to represent the corresponding element
in the projective space. This is achieved by pulling back the energy functional
to be minimized from the projective space to a _scale-invariant_ functional on
the space of unnormalized wave functions. This scale-invariant functional is the
same as the Rayleigh quotient _⟨ψ| H |ψ⟩_ _/ ⟨ψ|ψ⟩_ where the Hermitian operator
_H_ is known as the Hamiltonian. The scale-invariance of the energy functional
is reflected in the VMC algorithm where a scale-invariant _local_ _energy_ function
corresponding to the wave function is evaluated at MCMC-sampled electron
configurations. For the ground state problem considered here it suffices to restrict
to real-valued wave functions, so we will take all scalars to be real.
The wave function in the VMC algorithm is often initialized using a supervised
pre-training stage [11] where it is fitted to a less expressive approximation to the
ground state, for example given as a Slater determinant. In contrast to the main
VMC algorithm which is trained with an inherently scale-invariant objective, this
supervised pre-training typically does not encode the scale-invariant property
[11, 19]. We propose using a scale-invariant loss function for this supervised stage
and demonstrate numerically that this modification leads to faster convergence
towards the target in the supervised pre-training setting. We further give
a theoretical convergence bound for the proposed scale-invariant supervised
optimization algorithm. As an important ingredient in this analysis, we introduce
the concept of a _directionally_ _unbiased_ stochastic estimator for the gradient.
_1.1._ _Related_ _works_
Using scale-invariance in the parameter vector to stabilize SGD training is a
well-studied technique. Many structures and methods have been proposed along
these lines, such as normalized NN [20, 21, 22], _G_ -SGD [23], SGD+WD [24, 25,
26, 27], and projected/normalized (S)GD [28, 29]. In these works, the parameter
v is stored explicitly and the loss function _L_ is scale-invariant in the parameter
v, which means _L_ ( _λ_ v ) = v for any _λ >_ 0.
The setting of neural wave functions differs from typical scale-invariant loss
functions in that the scale-invariant functional _L_ is applied after a nonlinear
parameterization _θ_ _�→_ _ψθ_, and the function _ψθ_ can be queried but not accessed
as an explicit vector. The composed loss function _L_ ( _θ_ ) = _L_ ( _ψθ_ ) is not scaleinvariant in its parameters. We can obtain a relation between the two settings
2
by applying the chain rule involving a functional derivative, but the resulting
expression involves factors that we need to estimate by sampling, in contrast
with the typical setting of scale-invariance in the parameter space.
_1.1.1._ _SGD_ _on_ _Riemannian_ _manifolds_
The training of a scale-invariant objective can be seen as a training process
on projective space, which is a special case of learning on Riemannian manifolds.
The convergence of SGD on Riemannian manifolds is well-studied; for example
[30] shows the asymptotic convergence of SGD on Riemannian manifolds. Further
variations of the SGD algorithm on Riemannian manifolds have been proposed
and studied, such as SVRG on Riemannian manifolds [31], [32] and ASGD on
Riemannian manifolds [33]. To the best of our knowledge, all previous works
ensure the parameter stays on the manifold by either taking stochastic gradient
steps on the manifold or projecting them back onto it. This is in contrast to our
setting where no projection onto a submanifold is needed.
_1.1.2._ _Concurrent_ _theoretical_ _analysis_
The concurrent work of [34] proves a similar convergence result for VMC
and also takes into account the effect of Markov chain Monte Carlo sampling.
However, this work does not consider the setting of supervised pre-training.
2. Variational Monte Carlo
A quantum wave function is a square-integrable function _ψ_ on a space of
configurations Ω. A typical configuration is Ω= R <sup>3</sup> <sup>_N_</sup> for a system of _N_ electrons <sup>1</sup> .
The term “square-integrable function” refers to a function _ψ_ with a finite _L_ <sup>2</sup>
��
norm _∥ψ∥_ = Ω <sup>_|ψ|_</sup> <sup>2d</sup> <sup>_x < ∞_</sup> <sup>with</sup> <sup>respect</sup> <sup>to</sup> <sup>the</sup> <sup>Lebesgue</sup> <sup>measure.</sup> <sup>For</sup> <sup>any</sup>
_̸_
��
��
norm _∥ψ∥_ = Ω <sup>_|ψ|_</sup> <sup>2d</sup> <sup>_x < ∞_</sup> <sup>with</sup> <sup>respect</sup> <sup>to</sup> <sup>the</sup> <sup>Lebesgue</sup> <sup>measure.</sup> <sup>For</sup> <sup>any</sup>
scalar _λ_ _∈_ R and _λ̸_ = 0, _λψ_ represents the same physical state as _ψ_ . In the
variational Monte Carlo algorithm, _ψθ_ is an Ansatz parameterized by _θ_, and the
objective is to find the parameter vector _θ_ such that _ψθ_ minimizes the energy
_._
_L_ ( _ψ_ ) = <sup>_<u>⟨ψ| H |ψ⟩</u>_</sup>
_⟨ψ|ψ⟩_
The _Born rule_ associates to a quantum wave function _ψ_ a probability distribution
on Ωwith density _pψ_ given by
(1)
_pψ_ ( _x_ ) = _|ψ_ ( _x_ ) _|_ <sup>2</sup> _/∥ψ∥_ <sup>2</sup> _._
The norm _∥ψ∥_ is unknown to the optimization algorithm, and samples _{Xi} ∼_ _pψ_
are generated using Markov chain Monte Carlo (MCMC). We will assume that
these samples are independent and sampled from the exact distribution _pψ_ . In
1The spin degrees of freedom are considered as classical and are expressed in the symmetry
type of _ψθ_ .
3
practice, the independence assumption is tested by evaluating the autocorrelation
of the MCMC samples.
The energy of _ψ_ can then be expressed as an expectation with respect to _pψ_ :
_L_ ( _ψ_ ) = E _X∼pψ_ _Eψ_ ( _X_ ) _,_ where
(2)
_Eψ_ ( _x_ ) = <sup><u>(</u></sup> <sup>_<u>Hψ</u>_</sup> _ψ_ ( _x_ <sup><u>)(</u></sup> ) <sup>_<u>x</u>_</sup> <sup><u>)</u></sup>
is called the _local_ _energy_ . We note that the local energy is not well-defined in
the case where _ψ_ ( _x_ ) = 0, but this is not a practical issue since _pψ_ ( _x_ ) = 0 by
definition at such points and thus the expectation value is still well-defined.
We use _L_ ( _θ_ ) = _L_ ( _ψθ_ ) to denote the loss as a function of the parameters.
Problem 2.1 (VMC) . _Minimize_
_L_ ( _θ_ ) = E _X∼pθ_ _Eθ_ ( _X_ ) _,_ (3)
_over_ _parameter_ _vectors_ _θ_ _∈_ R <sup>_d_</sup> _,_ _where_ _Eθ_ ( _x_ ) = _Hψθ_ ( _x_ ) _/ψθ_ ( _x_ ) _and_ _pθ_ ( _x_ ) =
_|ψθ_ ( _x_ ) _|_ <sup>2</sup> _/∥ψθ∥_ <sup>2</sup> _._ _We_ _assume_ _access_ _to_ _samples_ _from_ _{Xi} ∼_ _pθ_ _and_ _query_ _access_
_to_ _ψθ,_ _∇θψθ,_ _and_ _Eθ_ _which_ _are_ _assumed_ _to_ _be_ _C_ <sup>_∞_</sup> _with_ _respect_ _to_ _θ_ _for_ _any_
_x ∈_ Ω _._
When _∥ψθ∥_ _< ∞_, the gradient of the VMC energy functional takes the form
(see e.g., equation (9) of [11])
_∇θL_ ( _θ_ ) = 2E _X∼pθ_
- ( _Eθ_ ( _X_ ) _−_ _L_ ( _θ_ )) _∇θ_ log _|ψθ_ ( _X_ ) _|_ _._ (4)
Notably, the change in local energy does not contribute to this formula, that
is, E _X∼pθ_ [ _∇θEθ_ ( _X_ )]=0. Instead, the gradient of _L_ is entirely due to the the
perturbation of the sampling distribution as _θ_ varies. For completeness, we
include the derivation of Equation (4) in Appendix A. The condition that _ψθ_ is
_C_ <sup>_∞_</sup> with respect to _θ_ is typically satisfied by using the logistic sigmoid activation
function.
3. Supervised Pre-training
In order to stabilize the VMC training, the neural quantum state _ψθ_ in
FermiNet [11] and subsequent works [35, 36, 37] is initialized by fitting the
Ansatz to an initial guess _ψ_ at an approximate ground state [11, 19]. This
target initial state can be taken to be a Slater determinant optimized using
the self-consistent field (SCF) method [38]. We therefore consider the problem
of minimizing the distance from the line _{λψ|λ_ _∈_ R _}_ to a target function
_φ ∈_ _L_ <sup>2</sup> (Ω).
That is,
That is,
_<u>L</u>_ ( _ψ_ ) = min _λ∈_ R
_ρ_ <sup>_,_</sup> (5)
_λ∈_ R <sup>_∥λψ −_</sup> <sup>_φ∥_</sup> _ρ_ <sup>2</sup>
��
where _∥ϕ∥ρ_ = Ω <sup>_|ϕ_</sup> <sup>(</sup> <sup>_x_</sup> <sup>)</sup> <sup>_|_</sup> <sup>2d</sup> <sup>_ρ_</sup> <sup>(</sup> <sup>_x_</sup> <sup>)</sup> <sup>is</sup> <sup>the</sup> <sup>norm</sup> <sup>in</sup> <sup>_L_</sup> <sup>2-sense</sup> <sup>on</sup> <sup>a</sup> <sup>probability</sup>
space (Ω _, ρ_ ) with probability measure _ρ_ . In practice the pre-training may fit
where _∥ϕ∥ρ_ =
��
4
intermediate vector-valued features such as orbitals [19] instead of the scalarvalued wave function. As we note in Section 5.1, this is formally equivalent to
fitting a scalar wave function. Moreover, as we show in Section 5.1, exploiting
scale-invariance when fitting the orbitals can improve the convergence of the
wave function itself as measured by Equation (5).
Here, _ρ_ is typically the Lebesgue measure, but in Section 5.1 we will also
consider a case where it is defined by the target function. This loss function is
scale-invariant by construction and has a closed-form expression
_L_ ( _ψ_ ) = _∥φ∥_ <sup>2</sup> _ρ_ <sup>_−_</sup>
- _|⟨φ, ψ⟩ρ|/∥ψ∥ρ_
�2 _._ (6)
Note that for normalized target _φ_, the second term of Equation (6) is the
squared sine of the angle between the vectors, _L_ ( _ψ_ ) = sin <sup>2</sup> ∠( _φ, ψ_ ). Minimizing
_L_ ( _ψ_ ) is equivalent to minimizing _L_ ( _ψ_ ) = _−⟨φ, ψ⟩ρ/∥ψ∥ρ_ . Again we write the
loss as _L_ ( _θ_ ) = _L_ ( _ψθ_ ) as a function of the variational parameters:
Problem 3.1 (Supervised learning pre-training) . _Given_ _a_ _target_ _function_ _φ ∈_
_L_ <sup>2</sup> (Ω _, ρ_ ) _,_ _access_ _to_ _samples_ _{Xi}_ _∼_ _ρ_ _and_ _query_ _access_ _to_ _φ,_ _ψθ,_ _and_ _∇θψθ,_
_minimize_
_L_ ( _θ_ ) = _−_ <sup>_<u>⟨φ, ψθ⟩ρ</u>_</sup>
_∥ψθ∥ρ_
_∥ψθ∥ρ_
(7)
_over_ _parameter_ _vectors_ _θ_ _∈_ R <sup>_d_</sup> _._
_3.1._ _Directionally_ _unbiased_ _gradient_ _estimator_
By applying the chain rule we can write the gradient of _L_ ( _θ_ ) as
_∇θL_ ( _θ_ ) = [ _∂ψL_ ]( _ψθ_ ) _· ∇θψθ,_ (8)
where _∂ψL_ ( _ψθ_ ) is the functional derivative of the scale-invariant loss. This can
be evaluated analogously to the gradient derived in [28] for a scale-invariant loss
function. The resulting gradient expression is
_∇θL_ ( _θ_ ) = _−_
_<u>⟨φ, ∇θψθ⟩ρ</u>_
_∥ψθ∥ρ_
+
_<u>⟨φ, ψθ⟩ρ ⟨ψθ, ∇θψθ⟩ρ</u>_
_∥ψθ∥_ <sup>3</sup> _ρ_
_._ (9)
We cannot compute the infinite-dimensional _L_ <sup>2</sup> norms in the denominator of
Equation (9) and do not have access to an unbiased estimator for Equation (9).
However, in Lemma 4.5, we propose a _directionally_ _unbiased_ gradient estimator
_G_, which means that E[ _G_ ] is in the positive span of _∇θL_ . Additionally, we
will demonstrate that the directionally unbiased gradient estimator is sufficient
for achieving rapid convergence of SGD as long as the norm _∥ψθ∥ρ_ can be
approximately estimated, see detail in Corollary 4.10.
5
4. Theoretical results
_4.1._ _Convergence_ _result_ _for_ _VMC_
In the VMC setting, we assume that the MCMC subroutine is able to sample
exactly from the distribution _pθ_ ( _x_ ) = _|ψθ_ ( _x_ ) _|_ <sup>2</sup> _/∥ψθ∥_ <sup>2</sup> . This sampling oracle
makes it possible to construct a cheap and unbiased gradient estimation for the
energy functional (3). For simplicity we use exact real-valued arithmetic.
From the formula (4) for the gradient, we derive the following unbiased
gradient estimator for _∇θL_ ( _θ_ ):
_n_
Lemma 4.1. _Given_ _n ≥_ 2 _i.i.d._ _samples_ _{Xi} ∼_ _pθ,_ _let_ _L_ <sup>ˆ</sup> ( _θ_ ) = <sup><u>1</u></sup>
_and_ _define_ _the_ _gradient_ _estimate_
_n_
_and_ Lemma _define_ 4.1. _the_ _Givengradientn ≥estimate_ 2 _i.i.d._ _samples_ _{Xi} ∼_ _pθ,_ _let_ _L_ <sup>ˆ</sup> ( _θ_ ) = <sup><u>1</u></sup> _i_ =1 <sup>_Eθ_</sup> <sup>(</sup> <sup>_Xi_</sup> <sup>)</sup>
_n_
<u>2</u>
_G_ ( _θ, X_ ) =
_n −_ 1
_n_
_i_ =1
- _Eθ_ ( _Xi_ ) _−_ _L_ <sup>ˆ</sup> ( _θ_ ) _∇θ_ log _|ψθ_ ( _Xi_ ) _|._ (10)
_Then_ _G_ ( _θ, X_ ) _is_ _an_ _unbiased_ _estimator_ _of_ _the_ _gradient_ _of_ _the_ _population_ _energy._
We prove Lemma 4.1 in Appendix A.
Using the unbiased gradient estimator (10) from Lemma 4.1, the VMC
algorithm can be formulated as a variant of SGD:
<u>Algorithm</u> <u>1</u> <u>Variational</u> <u>Monte</u> <u>Carlo</u>
1: Preparation: number of iterations: _M_ ; learning rate _ηm_ ; initial parameter:
_θ_ 0; number of samples each iteration: _n_ ;
2: Running:
3: _m ←_ 0;
4: while _m ≤_ _M_ do
5: Sample _{Xi_ <sup>_m}_</sup> _i_ <sup>_n_</sup>
_i_ <sup>_n_</sup> =1 <sup>independently</sup> <u>2</u> - _n_ <sup>according</sup> <sup>to</sup> <sup>the</sup> <sup>density</sup> <sup>_pθm_</sup> <sup>_∝|ψθm_</sup> <sup>_|_</sup> <sup>2;</sup>
_i_ <sup>_m}_</sup> _i_ <sup>_n_</sup>
<u>2</u> - _n_
6:
_n−_ 1
8:7: end _θGmm_ while +1 _←←Gθ_ ( _mθ, X −_ ) = _ηmGm_ ; _i_ =1 <sup>(</sup> <sup>_Eθ_</sup> <sup>(</sup> <sup>_Xi_</sup> <sup>)</sup> <sup>_−_</sup> <sup>_L_</sup> <sup>ˆ(</sup> <sup>_θ_</sup> <sup>))</sup> <sup>_∇θ_</sup> <sup>log</sup> <sup>_|ψθ_</sup> <sup>(</sup> <sup>_Xi_</sup> <sup>)</sup> <sup>_|_</sup> <sup>;</sup>
<u>2</u>
6:
_n−_ 1
7: _Gm_ _←_ _G_ ( _θ, X_ ) =
8: end while
9: Output: _θm_ ;
Given any _θ_, we define _∥· ∥q,pθ_ as the _q_ -th norm under the measure _pθ_ ( _x_ ) _dx_ .
The convergence bound for the VMC algorithm assumes a uniform bound on
the following quantities:
Condition 4.2. There exists a constant _Cψ_ such that for any _θ_ _∈_ R <sup>_d_</sup>,
- (Value bound):
_∥Hψθ/ψθ∥_ 4 _,pθ_ _≤_ _Cψ ._ (11)
- (Gradient bound):
_∥∇θHψθ/ψθ∥_ 2 _,pθ_ _≤_ _Cψ,_ (12)
_∥∇θψθ/ψθ∥_ 4 _,pθ_ _≤_ _Cψ ._
6
- (Hessian bound):
_∥_ H _θψθ/ψθ∥_ 2 _,pθ_ _≤_ _Cψ,_ (13)
where H _θψθ_ is the hessian of _ψθ_ in _θ_ .
Condition 4.2 is scale-invariant in _ψθ_, i.e., if _ψθ_ ( _x_ ) satisfies Condition 4.2,
then _λψθ_ ( _x_ ) also satisfies the condition with the same constant _λ_ for any _λ̸_ = 0.
We establish new bounds on the Lipschitz constant of _∇L_ and the variance of
the gradient estimator (see Lemma Appendix C.1), subject to the constraints
specified in Condition 4.2. These bounds are crucial in demonstrating the
convergence of our method.
Now, we are ready to give the convergence result for Algorithm 1:
Theorem 4.3. _Under_ _Condition_ _4.2_ _there_ _exists_ _a_ _constant_ _C_ _>_ 0 _that_ _only_
_depends_ _on_ _Cψ_ _such_ _that,_ _when_ _ηm_ _<_ _C_ <sup><u>1</u></sup> <sup>_for_</sup> <sup>_any_</sup> <sup>_m ≥_</sup> <sup>0</sup> <sup>_,_</sup>
_M_
_m_ =0
_M_
_m_ =0
_<u>ηnm</u>_ <sup>2</sup> <sup>_._</sup> (14)
_ηm_ E
- _|∇θL_ ( _θm_ ) _|_ <sup>2�</sup> _≤_ 2 _L_ ( _θ_ 0) + _C_
_for_ _any_ _M_ _>_ 0 _._
The proof of the above theorem is given in Appendix C. The upper bound
(14) is important for us to determine _ηm_ so that the parameter _θm_ converges
to a first-order stationary point in the expectation sense when _m_ is moderately
large. Theorem 4.3 implies:
Corollary 4.4. _Under_ _Condition_ _4.2:_
- _Choosing_ _ηm_ = Θ - _nϵ_ <sup>2�</sup>
_._
_and_ _M_ = Θ
�1 _/_ ( _nϵ_ <sup>4</sup> )� _,_ _we_ _have_
0 _≤_ min _m≤M_ <sup>E (</sup> <sup>_|∇θL_</sup> <sup>(</sup> <sup>_θm_</sup> <sup>)</sup> <sup>_|_</sup> <sup>)</sup> <sup>_≤_</sup> <sup>_ϵ_</sup>
- _Choosing_ _ηm_ = Θ �� _mn_ +1
<u>�</u>
_,_ _we_ _have_
min ( _nM_ ) <sup>_−_</sup> <sup>1</sup> <sup>_/_</sup> <sup>4�</sup>
0 _≤m≤M_ <sup>E (</sup> <sup>_|∇θL_</sup> <sup>(</sup> <sup>_θm_</sup> <sup>)</sup> <sup>_|_</sup> <sup>) =</sup> <sup>_O_</sup>
_._
This bound shows that the convergence of Algorithm 1 is the same as the
convergence rate of SGD to first-order stationary point for nonconvex functions,
see [39, Theorem 2] or [40, Theorem 5.2.1].
_4.1.1._ _Scale-invariant_ _supervised_ _pre-training_
The following lemma shows how we can choose a directionally unbiased
- _n_
gradient estimator.� _n_ Given samples _{Xi}_, write _⟨ψ, φ⟩n_ = _n_ <sup><u>1</u></sup> _i_ =1 <sup>_ψ_</sup> <sup>(</sup> <sup>_Xi_</sup> <sup>)</sup> <sup>_φ_</sup> <sup>(</sup> <sup>_Xi_</sup> <sup>)</sup>
- _n_
gradient estimator.� _n_ Given samples _{Xi}_, write _⟨ψ, φ⟩n_ = _n_ <sup><u>1</u></sup> _i_ =1 <sup>_ψ_</sup> <sup>(</sup> <sup>_Xi_</sup> <sup>)</sup> <sup>_φ_</sup> <sup>(</sup> <sup>_Xi_</sup> <sup>)</sup>
and _∥ψ∥n_ <sup>2</sup> <sup>=</sup> _n_ <sup><u>1</u></sup> _i_ =1 <sup>_ψ_</sup> <sup>(</sup> <sup>_Xi_</sup> <sup>)2.</sup>
_n_
_n_ <sup>2</sup> <sup>=</sup> _n_ <sup><u>1</u></sup>
_n_
- _ni_ =1 <sup>_ψ_</sup> <sup>(</sup> <sup>_Xi_</sup> <sup>)2.</sup>
7
Lemma 4.5. _Given_ _n ≥_ 2 _and_ _i.i.d._ _samples_ _X_ 1 _, . . ., Xn_ _∼_ _ρ,_ _define_ _coefficients_
_aj_ = _−∥ψθ∥_ <sup>2</sup> _n_ <sup>_φ_</sup> <sup>(</sup> <sup>_Xj_</sup> <sup>) +</sup> <sup>_⟨φ, ψθ⟩n_</sup> <sup>_ψθ_</sup> <sup>(</sup> <sup>_Xj_</sup> <sup>)</sup>
_and_ _let_
<u>1</u>
_G_ =
_∥ψθ∥_ <sup>3</sup> _ρ_
<u>1</u>
_n −_ 1
_n_
_j_ =1
_aj∇θψθ_ ( _Xj_ ) _._ (15)
_Then_ E _X_ ( _G_ ) = _∇θL_ ( _θ_ ) _._
We give the derivation of Lemma 4.5 in Appendix B. Given an estimator _Z_ <sup>˜</sup>
for _∥ψθ∥ρ_ which is independent of _X_ 1 _, . . ., Xn_, we then choose the following as
our directionally unbiased gradient estimator:
_G_ ( _θ, X_ ) = <sup><u>1</u></sup>
_Z_ ˜3
<u>1</u>
_n −_ 1
_n_
_j_ =1
_aj∇θψθ_ ( _Xj_ ) _,_ (16)
where _{aj}j_ <sup>_n_</sup> =1 <sup>are</sup> <sup>defined</sup> <sup>in</sup> <sup>Lemma</sup> <sup>4.5.</sup>
Remark 4.6. To obtain the independent norm estimate _Z_ <sup>˜</sup> we can take 2 _n_
samples _X_ 1 _, . . ., X_ 2 _n_ at each iteration and let _Z_ <sup>˜</sup> = ( _n_ <sup><u>1</u></sup> �2 _n_
_i_ = _n_ +1 <sup>_|ψθ_</sup> <sup>(</sup> <sup>_Xi_</sup> <sup>)</sup> <sup>_|_</sup> <sup>2)1</sup> <sup>_/_</sup> <sup>2</sup> <sup>in</sup>
samples _X_ 1 _, . . ., X_ 2 _n_ at each iteration and let _Z_ <sup>˜</sup> = ( _n_ <sup><u>1</u></sup> �2 _n_
(16). However, our numerics in Section 5.1 suggest it is sufficient _i_ = _n_ +1 <sup>_|ψθ_</sup> in <sup>(</sup> <sup>_X_</sup> practice <sup>_i_</sup> <sup>)</sup> <sup>_|_</sup> <sup>2)1</sup> <sup>_/_</sup> <sup>2</sup> to <sup>in</sup>
- _n_
_n_
estimateindependent _∥ψθ_ minibatch. _∥ρ_ as _Z_ <sup>˜</sup> = ( <sup><u>1</u></sup> _i_ =1 <sup>_|ψθ_</sup> <sup>(</sup> <sup>_Xi_</sup> <sup>)</sup> <sup>_|_</sup> <sup>2)1</sup> <sup>_/_</sup> <sup>2</sup> <sup>without</sup> <sup>sampling</sup> <sup>an</sup> <sup>additional</sup>
_n_
_n_
estimate _∥ψθ∥ρ_ as _Z_ <sup>˜</sup> = ( <sup><u>1</u></sup>
_n_
Remark 4.7. Some care must be taken when constructing a plug-in estimator
for the gradient. For example, given an estimate _Z_ <sup>˜</sup> of _∥ψθ∥ρ_ and samples
_X_ 1 _, X_ 2 _∼_ _ρ_, Equation (9) suggests a plug-in estimate of _∇θLθ_ given by
_−_ <sup>_<u>φ</u>_</sup> <sup><u>(</u></sup> <sup>_<u>X</u>_</sup> <sup><u>1)</u></sup> <sup>_<u>∇</u>_</sup> _Z_ ˜ <sup>_<u>θψ</u>_</sup> <sup><u>(</u></sup> <sup>_<u>X</u>_</sup> <sup><u>1)</u></sup>
+ <sup>_<u>φ</u>_</sup> <sup><u>(</u></sup> <sup>_<u>X</u>_</sup> <sup><u>2)</u></sup> <sup>_<u>ψ</u>_</sup> <sup><u>(</u></sup> <sup>_<u>X</u>_</sup> <sup><u>2)</u></sup> <sup>_<u>ψ</u>_</sup> <sup><u>(</u></sup> <sup>_<u>X</u>_</sup> <sup><u>1)</u></sup> <sup>_<u>∇θψ</u>_</sup> <sup><u>(</u></sup> <sup>_<u>X</u>_</sup> <sup><u>1)</u></sup> _._ (17)
_Z_ ˜3
However, this estimator is not directionally unbiased and does not achieve the
convergence shown in this paper. This is due to the fact that it is _unbalanced_ in
the sense that the exponent of _Z_ <sup>˜</sup> is different for each term. More specifically,
taking expectation on (17) gives
_−_ <sup>_<u>⟨φ, ∇</u>_</sup> _Z_ ˜ <sup>_<u>ψθ⟩</u>_</sup>
+ <sup>_<u>⟨φ, ψθ⟩⟨</u>_</sup> _Z_ ˜ <sup>_<u>ψ</u>_</sup> 3 <sup>_<u>θ, ∇ψθ⟩</u>_</sup> = _λ∇θL_ ( _θ_ ) _,_ _∀λ ∈_ R _._
The detailed algorithm is summarized in Algorithm 2.
<u>Algorithm</u> <u>2</u> <u>Stochastic</u> <u>gradient</u> <u>descent</u> <u>algorithm</u> <u>for</u> <u>supervised</u> <u>learning</u>
1: Preparation: _φn_ ; _ψθ_ ( _x_ ); number of iterations: _M_ ; learning rate _ηm_ ; initial
parameter: _θ_ 0; _n_
2: Running:
3: _m ←_ 0;
4: while _m ≤_ _M_ do
5: Sample _{Xi_ <sup>_m}_</sup> _i_ <sup>_n_</sup> =1 <sup>independently</sup> <sup>from</sup> <sup>_ρ_</sup> <sup>;</sup>
_i_ <sup>_m}_</sup> _i_ <sup>_n_</sup>
_i_ <sup>_n_</sup> =1 <sup>independently</sup> <sup>from</sup> <sup>_ρ_</sup> <sup>;</sup>
8
6:7: _Z_ - _m_ _←_ an estimation _n_ <sup>_φ_</sup> <sup>(</sup> <sup>_X_</sup> <sup>_m_</sup> of _∥ψθm_ _∥ρ_ ;
8: _ai_ _←−∥ψθm_ _∥_ <sup>2</sup> <u>1</u> _i_ <sup>) +</sup> <u>1</u> <sup>_⟨_</sup> - <sup>_φ, ψ_</sup> _n_ <sup>_θ_</sup> _m_
_i_ <sup>_m_</sup> <sup>);</sup>
<sup>_m_</sup> _i_
_i_ <sup>) +</sup> <u>1</u> <sup>_⟨_</sup> - <sup>_φ, ψ_</sup> _n_ <sup>_θ_</sup> _m_ <sup>_⟩n ψθ_</sup> _m_ <sup>(</sup> <sup>_X_</sup> <sup>_m_</sup>
_n_ <sup>2</sup> <sup>_φ_</sup> <sup>(</sup> <sup>_X_</sup> _i_ <sup>_m_</sup>
<u>1</u>
_n−_ 1
7: _n_ <sup>_φ_</sup> <sup>(</sup> <sup>_X_</sup> <sup>_m_</sup> _i_ <sup>)</sup>
8: _ai_ _←−∥ψθm_ _∥_ <sup>2</sup> <u>1</u> _i_ <sup>) +</sup> <u>1</u> <sup>_⟨_</sup> - <sup>_φ, ψ_</sup> _n_ <sup>_θ_</sup> _m_ <sup>_⟩n ψθ_</sup> _m_ <sup>(</sup> <sup>_X_</sup> <sup>_m_</sup>
_Gm_ _←_ _G_ ( _θ, X_ ) = _Z_ - _m_ <sup>3</sup> _n−_ 1 _i_ =1 <sup>_ai∇θψθ_</sup> _m_ <sup>(</sup> <sup>_X_</sup> _i_ <sup>_m_</sup>
- _ni_ =1 <sup>_ai∇θψθ_</sup> _m_ <sup>(</sup> <sup>_X_</sup> _i_ <sup>_m_</sup>
10:9: end _θm_ while +1 _←_ _θm −_ _ηmGm_ ;
11: Output: _θm_ ;
The choice of learning rate _ηm_ in the pre-training setting and the decay rate
of the loss function depends on the ratio _∥ψθm∥ρ/Z_ <sup>�</sup> . However, for our results
it suffices that this ratio is bounded above and below by fixed constants. As
mentioned above we may estimate _Z_ <sup>˜</sup> = ( _n_ <sup><u>1</u></sup> - _n_
_i_ =1 <sup>_|ψθ_</sup> <sup>(</sup> <sup>_Xi_</sup> <sup>)</sup> <sup>_|_</sup> <sup>2)1</sup> <sup>_/_</sup> <sup>2</sup> <sup>at</sup> <sup>each</sup> <sup>iteration</sup>
mentioned above we may estimate _Z_ <sup>˜</sup> = ( _n_ <sup><u>1</u></sup> - _n_
_i_ =1 <sup>_|ψθ_</sup> <sup>(</sup> <sup>_Xi_</sup> <sup>)</sup> <sup>_|_</sup> <sup>2)1</sup> <sup>_/_</sup> <sup>2</sup> <sup>at</sup> <sup>each</sup> <sup>iteration</sup>
using an independent sample _Xn_ +1 _, . . ., X_ 2 _n_ _⊥⊥_ _X_ 1 _, . . ., Xn_ . Alternatively we
may take inspiration from variance reduction techniques [41, 42, 43], to update
_n_
_Z_ ˜ using a large batch once every _K_ steps, letting _Z_ ˜ _m_ = ( _K_ <sup><u>1</u></sup>
- _Ki_ =1 <sup>_|ψθ_</sup> <sup>(</sup> <sup>_Xi_</sup> <sup>)</sup> <sup>_|_</sup> <sup>2)1</sup> <sup>_/_</sup> <sup>2</sup>
when _m/K_ _≡_ 0 (mod _K_ ) and _Z_ <sup>�</sup> _m_ = _Z_ <sup>�</sup> _m−_ 1 otherwise.
Our convergence bound for the supervised
Our convergence bound for the supervised pre-training assumes uniform
bounds similar to Condition 4.2.
Condition 4.8. There exists a constant _Cψ_ such that for any _θ_ _∈_ R <sup>_d_</sup>
- (Value bound):
�� _ψθ_ 2
��1 _ρ/_ 2 (18)
_/∥ψθ∥ρ_ _≤_ _Cψ ._
- (Gradient bound):
1 _/_ 2
(19)
��� _|∇θψθ|_ 2��� _ρ_ _/∥ψθ∥ρ_ _≤_ _Cψ ._
- (Hessian bound):
1 _/_ 2
��� _∥_ H _θψθ∥_ 22��� _ρ_ _/∥ψθ∥ρ_ _≤_ _Cψ,_ (20)
where H _θψ_ is the hessian of _ψ_ .
Under Condition 4.8, we establish the Lipschitz property of _∇θL_ and provide
bounds for the variance of the gradient estimator (see Lemma Appendix D.1).
These results play a crucial role in demonstrating the convergence of our method.
Condition 4.8 is scale-invariant in _ψθ_, meaning that the same condition holds
with the same constant for any _λψθ_, where _λ̸_ = 0.
Theorem 4.9. _Assume_ _Condition_ _4.8,_ _|φn| ≤_ _Cφ,_ _and_
<u>1</u>
_Cr_
a _._ s _._ (21)
_≤_ <sup>_<u>∥ψ</u>_</sup> _Z_ - <sup>_<u>θm</u>_</sup> _m_ <sup>_<u>∥ρ</u>_</sup> _≤_ _Cr,_
_for_ _all_ _m ∈_ N _,_ _where_ _θm_ _comes_ _from_ _Algorithm_ _2._ _Then_ _there_ _exists_ _a_ _constant_
_C_ _that_ _only_ _depends_ _on_ _Cr, Cψ, Cφ_ _such_ _that,_ _when_ _ηm_ _<_ _C_ <sup><u>1</u></sup> <sup>_for_</sup> <sup>_any_</sup> <sup>_m ≥_</sup> <sup>0</sup> <sup>_,_</sup>
_M_
_m_ =0
_≤_ 2 _Cr_ <sup>2</sup> <sup>_L_</sup> <sup>(</sup> <sup>_θ_</sup> <sup>0) +</sup> <sup>_C_</sup>
9
_M_
_m_ =0
_<u>ηnm</u>_ <sup>2</sup> <sup>_._</sup> (22)
_ηm_ E
- _|∇θL_ ( _θm_ ) _|_ <sup>2�</sup>
_for_ _all_ _M_ _>_ 0 _._
The above theorem is proved in Appendix D. In the proof, we first bound
the E _|Gm|_ <sup>2</sup> and show that _∇θL_ has a uniform Lipschitz constant. Then, the
decay rate of the loss function in each step can be lower bounded by _|∇θL|_ <sup>2</sup>,
which finally gives us an upper bound of _|∇θL|_ <sup>2</sup> as shown in (22).
Using Theorem 4.9 it is straightforward to show the following corollary:
Corollary 4.10. _Under_ _Condition_ _4.8_ _and_ (21) _,_
- _Choosing_ _ηm_ = Θ - _nϵ_ <sup>2�</sup>
_and_ _M_ = Θ
�1 _/_ ( _nϵ_ <sup>4</sup> )� _,_ _we_ _have_
0 _≤_ min _m≤M_ <sup>E (</sup> <sup>_|∇θL_</sup> <sup>(</sup> <sup>_θm_</sup> <sup>)</sup> <sup>_|_</sup> <sup>)</sup> <sup>_≤_</sup> <sup>_ϵ._</sup>
- _Choosing_ _ηm_ = Θ �� _mn_ +1
<u>�</u>
_,_ _we_ _have_
min ( _nM_ ) <sup>_−_</sup> <sup>1</sup> <sup>_/_</sup> <sup>4�</sup>
0 _≤m≤M_ <sup>E (</sup> <sup>_|∇θL_</sup> <sup>(</sup> <sup>_θm_</sup> <sup>)</sup> <sup>_|_</sup> <sup>) =</sup> <sup>_O_</sup>
_._
We note that this bound matches the standard _O_ ( _M_ <sup>_−_</sup> <sup>1</sup> <sup>_/_</sup> <sup>4</sup> ) convergence rate
of SGD to first-order stationary point for non-convex functions.
5. Numerical results
_5.1._ _Pre-training_ _with_ _scale-invariant_ _loss_
To evaluate the use of a scale-invariant loss during pre-training we modify
the training loss used in the pre-training stage of [19] to be scale-invariant with
respect to the trained Ansatz. We tested the scale-invariant loss in a version
of the FermiNet code [44] where the electron configurations were sampled from
the target state as in [19]. Specifically, the wave function is given by a sum of
determinants and the target state is a Slater determinant:
�� - _N_
_ϕj_ ( _xi_ ) _i,j_ =1
_,_
_i,j_ =1
_ψθ_ ( _x_ ) =
_d_
_k_ =1
- det( _yij_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup>
_ij_ <sup>(</sup> <sup>_k_</sup> <sup>))</sup> _i,j_ <sup>_N_</sup>
_,_ _φ_ ( _x_ ) = det
where _N_ is the number of electrons and the tensor _y_ is the output of the
parameterized permutation-equivariant neural network. In our experiment we
use the standard FermiNet Ansatz [11] for the network architecture. The pretraining of [19] uses the loss function
_d_
_k_ =1
_N_
_i,j_ =1
_|yi,j_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> <sup>_−_</sup> <sup>_ϕj_</sup> <sup>(</sup> <sup>_xi_</sup> <sup>)</sup> <sup>_|_</sup> <sup>2</sup> (23)
on the matrices. To test the use of a scale-invariant loss function during training
we replace the training loss of Equation (23) with the sum of column-wise
scale-invariant sin <sup>2</sup> distances. We note that in practice we did not find it
necessary to estimate the denominator using an independent sample as in
10
Remark 4.6. Note also that we can view the fitting of a (column) vector-valued
function Ω _∋_ _x_ _�→_ ( _yi_ ) _i_ <sup>_N_</sup> =1 <sup>as</sup> <sup>fitting</sup> <sup>a</sup> <sup>scalar-valued</sup> <sup>function</sup> <sup>_y_</sup> <sup>(</sup> <sup>_x, i_</sup> <sup>)</sup> <sup>defined</sup> <sup>on</sup>
Ω _× {_ 1 _, . . ., N_ _}_ .
_·_ <sup>(</sup> _,j_ <sup>_k_</sup> <sup>)</sup> <sup>_∥_</sup> <sup>2</sup>
_<u>|y·</u>_ <sup>(</sup> _<u>,j</u>_ <sup>_k_</sup> <sup>)</sup>
1 _−_
_∥_
_L_ ( _θ_ ) =
_d_ _N_
-
_k_ =1 _j_ =1
_<u>·</u>_ <sup>(</sup> _<u>,j</u>_ <sup>_k_</sup> <sup>)</sup> <sup>_<u>· ϕj</u>_</sup> <sup>(</sup> <sup>_<u>·</u>_</sup> <sup>)</sup> <sup>_<u>|</u>_</sup> <sup>2</sup>
_,_ (24)
where _ϕj_ ( _·_ ) = ( _ϕj_ ( _x_ 1) _, . . ., ϕj_ ( _xn_ )) <sup>_T_</sup>, that is,
_∥y·_ <sup>(</sup> _,j_ <sup>_k_</sup> <sup>)</sup>
_i,j_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> <sup>_|_</sup> <sup>2</sup>
_N_
_j_ =1
- _<u>|</u>_ <sup>�</sup> _<u>i</u>_ <sup>_N_</sup>
1 _−_ <u>�</u>
_<u>i</u>_ <sup>_N_</sup> <u>=1</u> <sup>_y_</sup> _<u>i,j</u>_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup>
_<u>i</u>_ <sup>_N_</sup> <u>=1</u> <sup>_y_</sup> _<u>i,j</u>_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> <sup>_ϕj_</sup> <sup>(</sup> <sup>_xi_</sup> <sup>)</sup> <sup>_<u>|</u>_</sup> <sup>2</sup>
<u>�</u> _Ni_ =1 <sup>_|y_</sup> _i,j_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> <sup>_|_</sup> <sup>2</sup>
_L_ ( _θ_ ) =
_d_
_k_ =1
_._ (25)
1.0
0.8
0.6
0.4
0.2
0.0
standard
scale-invariant
0 20 40 60 80 100
Figure 1: Convergence of supervised pre-training using the scale-invariant training loss (orange)
vs. the training loss of [19] (blue). For both optimizers the plotted quantity is the sine
of the angle between the target state and the trained state, where the angle is defined in
_L_ <sup>2</sup> (R <sup>3</sup> <sup>_n_</sup> _, ρ_ = _|φ|_ <sup>2</sup> ) with respect to the measure induced by the target state density.
To evaluate the performance of the modified pre-training procedure we plot
the angle between the target Slater determinant-based wave function and the
neural network wave function during each training procedure (Figure 1). The
system shown is the lithium atom (details in Appendix F).
_5.2._ _Empirical_ _convergence_ _of_ _VMC_ _algorithm_
As an example, we demonstrate the convergence of the VMC Algorithm 1 on
the Hydrogen square (H4) model depicted in Figure 2. This system involves only
four particles but is strongly correlated and known to be difficult to simulate
accurately. We define _ψθ_ using the FermiNet ansatz [11, 35] and run 200,000
11
10 <sup>2</sup>
10 <sup>1</sup>
10 <sup>0</sup>
10 <sup>_−_</sup> <sup>1</sup>
10 walkers
1000 walkers
10 <sup>0</sup> 10 <sup>1</sup> 10 <sup>2</sup> 10 <sup>3</sup> 10 <sup>4</sup> 10 <sup>5</sup>
Training step
Figure 3: Convergence of VMC run on the H4 square. The running minimum is taken to
smooth out the data and match the form of Corollary 4.4.
training steps using stochastic gradient descent with a learning rate schedule
_ηm_ = _~~√~~_ 1+0 _m/._ <u>0510000</u> <sup>.</sup>
H H
H 1 _._ 0 Bohr H
Figure 2: Atomic configuration for the square H4 model.
With this learning rate schedule, Corollary 4.4 implies that the running
minimum of E( _|∇θL_ ( _θm_ ) _|_ ) should converge as _O_ ( _M_ <sup>_−_</sup> <sup>1</sup> <sup>_/_</sup> <sup>4</sup> ) as the optimization
progresses. To verify this bound, we plot in Figure 3 the running minimum
of _|Gm|_, which is our numerical proxy for _|∇θL_ ( _θ_ ) _|_ as per Lemma 4.1. We
compare two distinct VMC runs using 10 and 1000 walkers, respectively, to
explore how the convergence varies with the accuracy of the gradient estimate.
We estimate the convergence rate by measuring the overall slope of the log-log
plot, starting from step 200 to avoid the initial pre-asymptotic period. We find
that the gradient of the loss converges roughly as _M_ <sup>_−_</sup> <sup>0</sup> <sup>_._</sup> <sup>27</sup> when using 10 walkers,
closely matching the expected bound. With 1000 walkers the convergence goes
as _M_ <sup>_−_</sup> <sup>0</sup> <sup>_._</sup> <sup>38</sup>, which is somewhat faster than the theoretical bound, as might be
expected given that the estimate of the gradient is very accurate with so many
walkers. With 1000 walkers, the convergence is _M_ <sup>_−_</sup> <sup>0</sup> <sup>_._</sup> <sup>38</sup> . This rate surpasses
the theoretical bound given in Corollary 4.4. Although a rigorous theoretical
understanding of this phenomenon is currently lacking, we hypothesize that with
this number of walkers, relatively accurate gradient estimates lead to training
dynamics similar to (non-stochastic) gradient descent, giving a faster convergence
rate than our theoretical bound in Corollary 4.4.
Since the bounding of the Lipschitz constant of the gradient of the loss
function is critical to our convergence proof, we supply in Figure 4 a numerical
12
10 <sup>3</sup>
10 <sup>2</sup>
0 50k 100k 150k 200k
Training step
Figure 4: Lipschitz constant for VMC run on the H4 square with 1000 walkers. The constant
is numerically approximated using the formula _|G_ ( _θm_ +1) _−_ _G_ ( _θm_ ) _|/|θm_ +1 _−_ _θm|_ .
estimate of this quantity during the VMC run. Here we show data only for the
case of 1000 walkers, as the Lipschitz constant estimate is extremely noisy with
10 walkers. The data suggest that the value of the Lipschitz constant is well
below 1000 for this simulation.
6. Conclusion
We consider two optimization problems that arise in neural network variational Monte Carlo simulations of electronic structure: energy minimization and
supervised pre-training. We provide theoretical convergence bounds for both
cases. For the setting of supervised pre-training, we note that the standard
algorithms do not incorporate the property of scale-invariance. We propose
using a scale-invariant loss function for the supervised pre-training and demonstrate numerically that incorporating scale-invariance accelerates the process of
pre-training.
SGD is only the simplest stochastic optimization method. Over the last
two decades, there has been increasing interest in developing more efficient and
scalable optimization methods for VMC simulations [45, 46, 47], and our analysis
may be a starting point for analyzing such methods. It may also be possible to
generalize this work from a high-dimensional sphere to a Grassmann manifold,
parameterized by a neural network up to a gauge matrix. This setting could be
applicable to VMC simulations of _excited_ _states_ of quantum systems.
Acknowledgement
This work was supported by the Simons Foundation under Award No. 825053
(N. A.), and by the Challenge Institute for Quantum Computation (CIQC) funded
by National Science Foundation (NSF) through grant number OMA-2016245
(Z. D.). This work is supported by the U.S. Department of Energy, Office
of Science, Office of Advanced Scientific Computing Research, Department of
Energy Computational Science Graduate Fellowship under Award Number DESC0023112 (G. G.). This material is also based upon work supported by the
U.S. Department of Energy, Office of Science, Office of Advanced Scientific
13
Computing Research and Office of Basic Energy Sciences, Scientific Discovery
through Advanced Computing (SciDAC) program under Award Number DESC0022364 (L.L.). L.L. is a Simons Investigator in Mathematics. This research
used the Savio computational cluster resource provided by the Berkeley Research
Computing program at the University of California, Berkeley (supported by the
UC Berkeley Chancellor, Vice Chancellor for Research, and Chief Information
Officer).
Disclaimer
This report was prepared as an account of work sponsored by an agency
of the United States Government. Neither the United States Government nor
any agency thereof, nor any of their employees, makes any warranty, express
or implied, or assumes any legal liability or responsibility for the accuracy,
completeness, or usefulness of any information, apparatus, product, or process
disclosed, or represents that its use would not infringe privately owned rights.
Reference herein to any specific commercial product, process, or service by trade
name, trademark, manufacturer, or otherwise does not necessarily constitute
or imply its endorsement, recommendation, or favoring by the United States
Government or any agency thereof. The views and opinions of authors expressed
herein do not necessarily state or reflect those of the United States Government
or any agency thereof.
References
[1] W. M. C. Foulkes, L. Mitas, R. J. Needs, G. Rajagopal, Quantum monte
carlo simulations of solids, Rev. Mod. Phys. 73 (2001) 33–83. `[doi:10.1103/](https://doi.org/10.1103/RevModPhys.73.33)`
`[RevModPhys.73.33](https://doi.org/10.1103/RevModPhys.73.33)` .
[2] J. Toulouse, R. Assaraf, C. J. Umrigar, Chapter [fifteen](https://www.sciencedirect.com/science/article/pii/S0065327615000386) - introduction
to the variational and [diffusion](https://www.sciencedirect.com/science/article/pii/S0065327615000386) monte carlo methods, in: P. E. Hoggan,
T. Ozdogan (Eds.), Electron Correlation in Molecules - ab initio Beyond
Gaussian Quantum Chemistry, Vol. 73 of Advances in Quantum Chemistry,
Academic Press, 2016, pp. 285–314. `[doi:10.1016/bs.aiq.2015.07.003](https://doi.org/10.1016/bs.aiq.2015.07.003)` .
URL `[https://www.sciencedirect.com/science/article/pii/](https://www.sciencedirect.com/science/article/pii/S0065327615000386)`
```
S0065327615000386
```
[3] F. Becca, S. Sorella, Quantum Monte Carlo Approaches for Correlated
Systems, Cambridge University Press, 2017. `[doi:10.1017/9781316417041](https://doi.org/10.1017/9781316417041)` .
[4] S. Sorella, Green function monte carlo [with](https://link.aps.org/doi/10.1103/PhysRevLett.80.4558) stochastic reconfiguration, Phys.
Rev. Lett. 80 (1998) 4558–4561. `[doi:10.1103/PhysRevLett.80.4558](https://doi.org/10.1103/PhysRevLett.80.4558)` .
URL `[https://link.aps.org/doi/10.1103/PhysRevLett.80.4558](https://link.aps.org/doi/10.1103/PhysRevLett.80.4558)`
[5] S. Sorella, Generalized lanczos algorithm for variational quantum monte
[carlo,](https://link.aps.org/doi/10.1103/PhysRevB.64.024512) Phys. Rev. B 64 (2001) 024512. `[doi:10.1103/PhysRevB.64.024512](https://doi.org/10.1103/PhysRevB.64.024512)` .
URL `[https://link.aps.org/doi/10.1103/PhysRevB.64.024512](https://link.aps.org/doi/10.1103/PhysRevB.64.024512)`
14
[6] [M. P. Nightingale, V. Melik-Alaverdian, Optimization of ground- and excited-](https://link.aps.org/doi/10.1103/PhysRevLett.87.043401)
state wave functions [and](https://link.aps.org/doi/10.1103/PhysRevLett.87.043401) van der waals clusters, Phys. Rev. Lett. 87 (2001)
043401. `[doi:10.1103/PhysRevLett.87.043401](https://doi.org/10.1103/PhysRevLett.87.043401)` .
URL `[https://link.aps.org/doi/10.1103/PhysRevLett.87.043401](https://link.aps.org/doi/10.1103/PhysRevLett.87.043401)`
[7] J. Toulouse, C. J. Umrigar, Optimization of quantum monte carlo wave
functions by energy minimization, The Journal of chemical physics 126 (8)
(2007) 084102.
[8] G. Carleo, M. Troyer, Solving the quantum many-body problem with
artificial neural networks, Science 355 (6325) (2017) 602–606. `[doi:10.](https://doi.org/10.1126/science.aag2302)`
`[1126/science.aag2302](https://doi.org/10.1126/science.aag2302)` .
[9] J. Han, L. Zhang, W. E, Solving many-electron schr¨odinger equation using
deep neural networks, Journal of Computational Physics 399 (2019) 108929.
`[doi:10.1016/j.jcp.2019.108929](https://doi.org/10.1016/j.jcp.2019.108929)` .
[10] J. Hermann, Z. Sch¨atzle, F. No´e, Deep-neural-network solution of the
electronic schr¨odinger equation, Nature Chemistry 12 (10) (2020) 891–897.
`[doi:10.1038/s41557-020-0544-y](https://doi.org/10.1038/s41557-020-0544-y)` .
[11] D. Pfau, J. S. Spencer, A. G. Matthews, W. M. C. Foulkes, Ab initio solu
tion of the many-electron schr¨odinger equation with deep neural networks,
Physical Review Research 2 (3) (2020) 033429.
[12] J. Hermann, J. Spencer, K. Choo, A. Mezzacapo, W. M. C. Foulkes, D. Pfau,
G. Carleo, F. No´e, Ab-initio quantum [chemistry](https://arxiv.org/abs/2208.12590) with neural-network wave[functions](https://arxiv.org/abs/2208.12590) (2022). `[doi:10.48550/ARXIV.2208.12590](https://doi.org/10.48550/ARXIV.2208.12590)` .
URL `[https://arxiv.org/abs/2208.12590](https://arxiv.org/abs/2208.12590)`
[13] K. Choo, A. Mezzacapo, G. Carleo, Fermionic neural-network states for
ab-initio electronic structure, Nature Communications 11 (1) (2020) 2368.
`[doi:10.1038/s41467-020-15724-9](https://doi.org/10.1038/s41467-020-15724-9)` .
[14] T. D. Barrett, A. Malyshev, A. Lvovsky, Autoregressive neural-network
wavefunctions for ab initio quantum chemistry, Nature Machine Intelligence
4 (4) (2022) 351–358.
[15] G. Cassella, H. Sutterud, S. Azadi, N. D. Drummond, D. Pfau, J. S. Spencer,
W. M. C. Foulkes, Discovering quantum [phase](https://arxiv.org/abs/2202.05183) transitions with fermionic
neural [networks](https://arxiv.org/abs/2202.05183) (2022). `[doi:10.48550/ARXIV.2202.05183](https://doi.org/10.48550/ARXIV.2202.05183)` .
URL `[https://arxiv.org/abs/2202.05183](https://arxiv.org/abs/2202.05183)`
[16] G. Pescia, J. Nys, J. Kim, A. Lovato, G. Carleo, Message-passing neural
quantum states for the homogeneous electron gas (2023). `[arXiv:2305.](http://arxiv.org/abs/2305.07240)`
`[07240](http://arxiv.org/abs/2305.07240)` .
[17] M. Wilson, S. Moroni, M. Holzmann, N. Gao, F. Wudarski, T. Vegge,
A. Bhowmik, Neural network ansatz for periodic wave functions and the
homogeneous electron gas, Physical Review B 107 (23) (2023) 235139.
15
[18] X. Li, Z. Li, J. Chen, Ab initio calculation of real solids via neural network
ansatz, Nature Communications 13 (1) (2022) 7895.
[19] I. von Glehn, J. S. Spencer, D. Pfau, A self-attention ansatz for ab-initio
quantum chemistry (2023). `[arXiv:2211.13672](http://arxiv.org/abs/2211.13672)` .
[20] S. Ioffe, C. Szegedy, Batch normalization: Accelerating deep network train
ing by reducing internal covariate shift, in: Proceedings of the 32nd International Conference on Machine Learning - Volume 37, 2015.
[21] Y. Wu, K. He, Group normalization, in: In Proceedings of the European
conference on computer vision (ECCV), 2018.
[22] J. L. Ba, J. R. Kiros, G. E. Hinton, Layer normalization, arXiv/1607.06450
(2016).
[23] Q. Meng, S. Zheng, H. Zhang, W. Chen, Z.-M. Ma, T.-Y. Liu, G-SGD:
Optimizing reLU neural networks in its positively scale-invariant space, in:
International Conference on Learning Representations, 2019.
[24] T. van Laarhoven, L2 regularization versus batch and weight normalization,
arXiv/1706.05350 (2017).
[25] S. Arora, Z. Li, K. Lyu, Theoretical analysis of auto rate-tuning by batch
normalization, in: International Conference on Learning Representations,
2019.
[26] Z. Li, S. Bhojanapalli, M. Zaheer, S. Reddi, S. Kumar, Robust Training of
Neural Networks Using Scale Invariant Architectures, in: Proceedings of
the 39th International Conference on Machine Learning, PMLR, 2022.
[27] R. Wan, Z. Zhu, X. Zhang, J. Sun, Spherical motion dynamics: Learning
dynamics of normalized neural network using sgd and weight decay, in:
Advances in Neural Information Processing Systems, Vol. 34, 2021, pp.
6380–6391.
[28] T. Salimans, D. P. Kingma, Weight normalization: A simple reparameteri
zation to accelerate training of deep neural networks, in: Proceedings of the
30th International Conference on Neural Information Processing Systems,
2016.
[29] M. Kodryan, E. Lobacheva, M. Nakhodnov, D. P. Vetrov, Training scale
invariant neural networks on the sphere can happen in three regimes, in:
Advances in Neural Information Processing Systems, 2022.
[30] S. Bonnabel, Stochastic Gradient Descent on Riemannian Manifolds, IEEE
Transactions on Automatic Control 58 (9) (2013) 2217–2229, conference
Name: IEEE Transactions on Automatic Control. `[doi:10.1109/TAC.2013.](https://doi.org/10.1109/TAC.2013.2254619)`
`[2254619](https://doi.org/10.1109/TAC.2013.2254619)` .
16
[31] H. Zhang, S. J. Reddi, S. Sra, Riemannian svrg: Fast stochastic optimiza
tion on riemannian manifolds, in: Proceedings of the 30th International
Conference on Neural Information Processing Systems, 2016, p. 4599–4607.
[32] H. Sato, H. Kasai, B. Mishra, Riemannian stochastic variance reduced
gradient algorithm with retraction and vector transport, SIAM Journal on
Optimization 29 (2) (2019) 1444–1472.
[33] [N. Tripuraneni, N. Flammarion, F. Bach, M. I. Jordan, Averaging Stochastic](https://proceedings.mlr.press/v75/tripuraneni18a.html)
Gradient Descent on [Riemannian](https://proceedings.mlr.press/v75/tripuraneni18a.html) Manifolds, in: Proceedings of the 31st
Conference On Learning Theory, PMLR, 2018, pp. 650–687, iSSN: 26403498.
URL `[https://proceedings.mlr.press/v75/tripuraneni18a.html](https://proceedings.mlr.press/v75/tripuraneni18a.html)`
[34] T. Li, F. Chen, H. Chen,, Z. Wen, Provable convergence of variational
monte carlo methods, arxiv/2303.10599 (2023).
[35] J. S. Spencer, D. Pfau, A. Botev, W. M. C. Foulkes, Better, [faster](https://arxiv.org/abs/2011.07125) fermionic
neural [networks](https://arxiv.org/abs/2011.07125) (2020). `[doi:10.48550/ARXIV.2011.07125](https://doi.org/10.48550/ARXIV.2011.07125)` .
URL `[https://arxiv.org/abs/2011.07125](https://arxiv.org/abs/2011.07125)`
[36] L. Gerard, M. Scherbela, P. Marquetand, P. Grohs, [Gold-standard](https://arxiv.org/abs/2205.09438) solutions
to the schr¨odinger equation using [deep](https://arxiv.org/abs/2205.09438) learning: How much physics do we
[need?](https://arxiv.org/abs/2205.09438) (2022). `[doi:10.48550/ARXIV.2205.09438](https://doi.org/10.48550/ARXIV.2205.09438)` .
URL `[https://arxiv.org/abs/2205.09438](https://arxiv.org/abs/2205.09438)`
[37] I. von Glehn, J. S. Spencer, D. Pfau, A self-attention [ansatz](https://arxiv.org/abs/2211.13672) for ab-initio
quantum [chemistry](https://arxiv.org/abs/2211.13672) (2022). `[doi:10.48550/ARXIV.2211.13672](https://doi.org/10.48550/ARXIV.2211.13672)` .
URL `[https://arxiv.org/abs/2211.13672](https://arxiv.org/abs/2211.13672)`
[38] A. Szabo, N. Ostlund, Modern Quantum [Chemistry:](https://books.google.com/books?id=6mV9gYzEkgIC) Introduction to Ad
vanced Electronic Structure Theory, Dover Books on Chemistry, Dover
Publications, 1996.
URL `[https://books.google.com/books?id=6mV9gYzEkgIC](https://books.google.com/books?id=6mV9gYzEkgIC)`
[39] A. Khaled, P. Richt´arik, Better theory for sgd in the nonconvex world,
arXiv/2002.03329 (2020).
[40] G. Garrigos, R. M. Gower, Handbook of convergence theorems for (stochas
tic) gradient methods, arXiv/2301.11235 (2024).
[41] M. Schmidt, N. Roux, F. Bach, Minimizing finite sums with the stochastic
average gradient, Mathematical Programming 162 (09 2013). `[doi:10.1007/](https://doi.org/10.1007/s10107-016-1030-6)`
`[s10107-016-1030-6](https://doi.org/10.1007/s10107-016-1030-6)` .
[42] A. Defazio, F. Bach, S. Lacoste-Julien, SAGA: A fast incremental gradi
ent method with support for non-strongly convex composite objectives,
Advances in Neural Information Processing Systems 2 (07 2014).
17
[43] R. Johnson, T. Zhang, Accelerating stochastic gradient descent using predic
tive variance reduction, in: Proceedings of the 26th International Conference
on Neural Information Processing Systems, 2013, p. 315–323.
[44] D. P. James S. Spencer, F. Contributors, FermiNet [(forked](http://github.com/deepmind/ferminet) from commit
[fdaca31)](http://github.com/deepmind/ferminet) (2023).
URL `[http://github.com/deepmind/ferminet](http://github.com/deepmind/ferminet)`
[45] [A. W. Sandvik, G. Vidal, Variational quantum monte carlo simulations with](https://link.aps.org/doi/10.1103/PhysRevLett.99.220602)
[tensor-network](https://link.aps.org/doi/10.1103/PhysRevLett.99.220602) states, Phys. Rev. Lett. 99 (2007) 220602. `[doi:10.1103/](https://doi.org/10.1103/PhysRevLett.99.220602)`
`[PhysRevLett.99.220602](https://doi.org/10.1103/PhysRevLett.99.220602)` .
URL `[https://link.aps.org/doi/10.1103/PhysRevLett.99.220602](https://link.aps.org/doi/10.1103/PhysRevLett.99.220602)`
[46] [E. Neuscamman, C. J. Umrigar, G. K.-L. Chan, Optimizing large parameter](https://link.aps.org/doi/10.1103/PhysRevB.85.045103)
sets in variational [quantum](https://link.aps.org/doi/10.1103/PhysRevB.85.045103) monte carlo, Phys. Rev. B 85 (2012) 045103.
`[doi:10.1103/PhysRevB.85.045103](https://doi.org/10.1103/PhysRevB.85.045103)` .
URL `[https://link.aps.org/doi/10.1103/PhysRevB.85.045103](https://link.aps.org/doi/10.1103/PhysRevB.85.045103)`
[47] L. Otis, E. Neuscamman, Complementary first [and](http://dx.doi.org/10.1039/C9CP02269D) second derivative meth
ods for ansatz [optimization](http://dx.doi.org/10.1039/C9CP02269D) in variational monte carlo, Phys. Chem. Chem.
Phys. 21 (2019) 14491–14510. `[doi:10.1039/C9CP02269D](https://doi.org/10.1039/C9CP02269D)` .
URL `[http://dx.doi.org/10.1039/C9CP02269D](http://dx.doi.org/10.1039/C9CP02269D)`
[48] D. P. James S. Spencer, F. Contributors, fork of [FermiNet](https://github.com/nilin/fork_of_ferminet/tree/sample_orbitals) (forked from
commit [fdaca31)](https://github.com/nilin/fork_of_ferminet/tree/sample_orbitals) (2023).
URL `[https://github.com/nilin/fork_of_ferminet/tree/sample_](https://github.com/nilin/fork_of_ferminet/tree/sample_orbitals)`
```
orbitals
```
[49] P. Yin, J. Lyu, S. Zhang, S. Osher, Y. Qi, J. Xin, Understanding straight
through estimator in training activation quantized neural nets (2019). `[arXiv:](http://arxiv.org/abs/1903.05662)`
`[1903.05662](http://arxiv.org/abs/1903.05662)` .
18
Appendix A. Proofs of gradient estimators
_Proof_ _of_ (4) _._ Let _qθ_ ( _x_ ) = _|ψθ_ ( _x_ ) _|_ <sup>2</sup>, and _Qθ_ = _∥ψθ∥_ <sup>2</sup> .
We write (3) as
_L_ ( _θ_ ) = _⟨qθ, Eθ⟩/Qθ ._
Then by the product formula,
_∇θL_ ( _θ_ ) = <sup>_<u>∇θ⟨</u>_</sup> _Q_ <sup>_<u>qθ</u>_</sup> _θ_ <sup>_<u>, Eθ⟩</u>_</sup>
Continuing, we have
_−_ <sup>_<u>⟨qθ, E</u>_</sup> _Q_ <sup>_<u>θ⟩∇</u>_</sup> <sup>2</sup> _θ_ <sup>_<u>θQθ</u>_</sup>
=: _A −_ _B._ (A.1)
_Q_ <sup>2</sup> _θ_
_θ_
_A_ = _⟨Eθ,_ _<u>∇θqθ⟩/Qθ</u>_ + _⟨qθ,_ _∇θEθ⟩/Qθ_
= _⟨Eθ,_ <sup>_<u>∇</u>_</sup> _q_ <sup>_<u>θ</u>_</sup> _θ_ <sup>_<u>qθ</u>_</sup>
_<u>qθ</u>_
_Qθ_
_⟩_ + _⟨_ _Q_ <sup>_<u>qθ</u>_</sup> _θ_
_Qθ_
_qθ_
_, ∇θEθ⟩_
= E _pθ_ [ _Eθ∇θ_ log _qθ_ ] + E _pθ_ [ _∇θEθ_ ] _._
(A.2)
(A.3)
and
_B_ = _⟨_ _Q_ <sup>_<u>qθ</u>_</sup> _θ_
_, Eθ⟩_ <sup>_<u>∇</u>_</sup> _Q_ <sup>_<u>θQ</u>_</sup> _θ_ <sup>_<u>θ</u>_</sup>
= _L_ ( _θ_ ) _⟨_ _Q_ <sup>_<u>qθ</u>_</sup> _θ_
= _L_ ( _θ_ ) _⟨_ _Q_ <sup>_<u>qθ</u>_</sup> _θ_
_,_ <sup>_<u>∇</u>_</sup> _q_ <sup>_<u>θ</u>_</sup> _θ_ <sup>_<u>qθ</u>_</sup>
_⟩_ = _L_ ( _θ_ )E _pθ_ [ _∇θ_ log _qθ_ ] _._
Substitute (A.2), (A.3) into (A.1) to obtain
_∇θL_ ( _θ_ ) = E _X∼pθ_ [( _Eθ_ ( _X_ ) _−_ _L_ ( _θ_ )) _∇θ_ log _qθ_ ( _X_ ) + _∇θEθ_ ( _X_ )]
- (A.4)
_._
- _Eθ_ ( _X_ ) _−_ _L_ ( _θ_ )) _∇θ_ log _|ψθ_ ( _X_ ) _|_ + _∇θEθ_ ( _X_ )
= 2E _X∼pθ_ [
It remains to show that E _X∼pθ_ [ _∂iEθ_ ( _X_ )] = 0 where _∂i_ is differentiation with
respect to _θi_ . Write
= <sup>_<u>∂iHψθ · ψθ −</u>_</sup> <sup>_<u>Hψθ · ∂iψθ</u>_</sup>
_ψ_ <sup>2</sup>
_θ_
_∂iEθ_ = _∂i_
_<u>Hψθ</u>_
_ψθ_
_ψθ_ <sup>2</sup>
_._ (A.5)
So, because _H_ is symmetric:
= 0 _,_
E _X∼pθ_ [ _∂iEθ_ ] = <sup>_<u>⟨H∂iψθ, ψθ⟩−⟨Hψθ, ∂iψθ⟩</u>_</sup>
_∥ψθ∥_ <sup>2</sup>
19
_Proof_ _of_ _Lemma_ _4.1._
_n_
_G_ ( _θ, X_ ) = <u>2</u>
_i_ =1
_n −_ 1
_Eθ_ ( _Xi_ ) _∇θ_ log _|ψθ_ ( _Xi_ ) _|_
_n_
- _Eθ_ ( _Xj_ ) _∇θ_ log _|ψθ_ ( _Xi_ ) _|_
_i_ =1
<u>2</u>
_−_
_n_ ( _n −_ 1)
_n_
_j_ =1
= <sup><u>2</u></sup>
_n_
_n_
- _Eθ_ ( _Xi_ ) _∇θ_ log _|ψθ_ ( _Xi_ ) _|_
_i_ =1
<u>2</u>
_−_
_n_ <sup>2</sup> _−_ _n_
_i̸_ = _j_
_Eθ_ ( _Xi_ ) _∇θ_ log _|ψθ_ ( _Xj_ ) _|._
Here, the terms _i_ = _j_ in the expansion of the rightmost term cancel with the
first sum. But now each sum is the average of terms with the correct expectation
(2E _X∼pθ_ [ _Eθ_ ( _X_ ) _∇θ_ log _|ψθ_ ( _X_ ) _|_ ] and 2 _Lθ_ E _X∼pθ_ _∇θ_ log _|ψθ_ ( _X_ ) _|_ respectively ).
Appendix B. The directionally unbiased gradient estimator for su-
pervised learning
Given _n_ _≥_ 2 i.i.d. samples _{Xi}_ _∼_ _ρ_ . We write _ψi_ = _ψθ_ ( _Xi_ ), _φi_ = _φ_ ( _Xi_ ),
and _∇ψi_ = _∇θψθ_ ( _Xi_ ).
_⟨ψ, φ⟩n_ = _n_ <sup><u>1</u></sup>
_n_
_i_ =1
_ψiφi,_ _n_
_∥ψ∥_ <sup>2</sup>
_n_ <sup>=</sup> <sup><u>1</u></sup>
<sup>2</sup> _n_
_n_
_n_
_i_ =1
_ψi_ <sup>2</sup> <sup>_._</sup> (B.1)
Lemma Appendix B.1. _Given_ _samples_ _X_ 1 _, . . ., Xn_ _from_ _ρ,_ _let_
_n_
_Gn_ = <u>1</u>
_j_ =1
_n −_ 1
_aj∇ψj,_ (B.2)
_aj_ = _−∥ψ∥n_ <sup>2</sup> <sup>_φj_</sup> <sup>+</sup> <sup>_⟨φ, ψ⟩n_</sup> <sup>_ψj._</sup> (B.3)
_Then_ _Gn_ _is_ _an_ _unbiased_ _estimator_ _for_ _G_ = _∥ψθ∥_ <sup>3</sup> _ρ_ <sup>_∇θL_</sup> <sup>(</sup> <sup>_θ_</sup> <sup>)</sup> <sup>_._</sup>
_Proof_ _of_ _Lemma_ _Appendix_ _B.1._ We notice
_G_ = _−∥ψθ∥_ <sup>2</sup> _ρ_ <sup>_⟨φ, ∇ψθ⟩_</sup> <sup>+</sup> <sup>_⟨φ, ψθ⟩⟨ψθ, ∇ψθ⟩._</sup>
For each _i̸_ = _j_ we have an unbiased estimator for _G_ given by
_−|ψi|_ <sup>2</sup> _φj∇ψj_ + _φiψiψj∇ψj._
Taking the average over all pairs _i̸_ = _j_ gives another unbiased estimator for _G_ :
_̸_
<u>1</u>
_−_
_n_ ( _n −_ 1)
( _ψi_ <sup>2</sup>
_i̸_ = _j_
_i_ <sup>2</sup> <sup>_φj∇ψj_</sup> <sup>_−_</sup> <sup>_φiψiψj∇ψj_</sup> <sup>)</sup> <sup>_._</sup>
We may add the terms _i_ = _j_ without changing the value because all such terms
evaluate to 0.
20
Appendix C. Proof of Theorem 4.3
To prove Theorem 4.3, we first show the following lemma:
Lemma Appendix C.1. _Under_ _Condition_ _4.2_ _there_ _exists_ _a_ _uniform_ _constant_
_C_ <sup>_′_</sup> _such_ _that_ _for_ _any_ _θ,_ _θ_ <sup>�</sup> _∈_ R <sup>_d_</sup> _,_
_|∇θL_ ( _θ_ ) _| ≤_ 4 _Cψ_ <sup>2</sup> <sup>_,_</sup> (C.1)
_θ_ - (C.2)
��� _∇θL_ ( _θ_ ) _−∇θL_ ���� _≤_ _C_ _′_ ( _Cψ_ 4 <sup>+ 1)</sup> <sup>_|θ −_</sup> <sup>_θ_</sup> <sup>�</sup> <sup>_|,_</sup>
_and_
_C_ <sup>_′_</sup> ( _Cψ_ <sup>4</sup> <sup>+ 1)</sup>
_,_ (C.3)
_≤|∇θL_ ( _θ_ ) _|_ <sup>2</sup> + _n_
E _{Xi}_ <sup>_n_</sup> _i_ =1
E _{Xi}_ <sup>_n_</sup> _i_
- _|G_ ( _θ, X_ ) _|_ <sup>2�</sup>
_where_ _G_ ( _θ, X_ ) _is_ _defined_ _in_ (10) _._
The above lemma is important for the proof of Theorem 4.3. First, inequality
(C.3) gives an upper bound for the gradient estimator. Using this upper bound,
we can show that each iteration of Algorithm 1 is close to the classical gradient
descent when the learning rate _η_ is small enough. Second, (C.2) means that the
hessian of _L_ is bounded. This ensures that the classical gradient descent has a
faster convergence rate to the first-order stationary point, which further implies
the fast convergence of Algorithm 1.
_Proof_ _of_ _Lemma_ _Appendix_ _C.1._ Define
_Zθ_ =
~~�~~ <u>�</u>
Ω
_|ψθ_ ( _x_ ) _|_ <sup>2</sup> _dx ._
First, to prove (C.1), using (4), we have
_|∇θL_ ( _θ_ ) _|_ = 2E _X∼pθ_
����( _Eθ_ ( _X_ ) _−_ _L_ ( _θ_ )) _<u>∇ψθψθ</u>_ ( _<u>θX</u>_ <u>(</u> _<u>X</u>_ ) <u>)</u>
����
����
2 <sup>�1</sup> <sup>_/_</sup> <sup>2</sup>
_≤_ 4 _Cψ_ <sup>2</sup> <sup>_,_</sup>
_≤_ 2
E _X∼pθ_
E _X∼pθ |Eθ_ ( _X_ ) _−_ _L_ ( _θ_ ) _|_ <sup>2�1</sup> <sup>_/_</sup> <sup>2</sup>
���� _<u>∇ψθψθ</u>_ ( _<u>θX</u>_ <u>(</u> _<u>X</u>_ ) <u>)</u>
where we use H¨older’s inequality in the first inequality, (11) and the second
inequality of (12) in the last inequality.
Next, to prove (C.2). Using the formula of _E_ ( _θ_ ) (equation (2)), we write
_∥_ H _θL_ ( _θ_ ) _∥_ = <sup><u>2</u></sup> <sup>_<u>|∇</u>_</sup> _Z_ <sup>_<u>θ</u>_</sup> _θ_ <sup>3</sup> <sup>_<u>Zθ|</u>_</sup>
Ω
<sup><u>2</u></sup> <sup>_<u>|∇</u>_</sup> _Z_ <sup>_<u>θ</u>_</sup> _θ_ <sup>3</sup> <sup>_<u>Zθ|</u>_</sup> Ω _<u>|Hψθ</u>_ ( _x_ ) _<u>∇θψθ</u>_ ( _x_ ) _<u>| dx</u>_
- <u>��</u> <u>�</u>
(I)
+ <sup><u>1</u></sup>
<sup><u>1</u></sup>
_Zθ_ <sup>2</sup> Ω _<u>∥∇θHψθ</u>_ ( _x_ ) _<u>∇θψθ</u>_ ( _x_ ) _<u>∥</u>_ _dx_
- <u>��</u> <u>�</u>
(II)
_Zθ_ <sup>3</sup>
_Zθ_ <sup>2</sup>
_θ_
_θ_
Ω
- <u>1</u>
_Zθ_ <sup>2</sup>
Ω
+ <sup><u>1</u></sup>
_L_ ( _θ_ ) _ψθ_ ( _x_ ) _∇θψθ_ ( _x_ ) _dx_ ����� _._
<sup><u>1</u></sup>
_Zθ_ <sup>2</sup> Ω _<u>|Hψθ</u>_ ( _x_ ) _| ∥_ H _θψθ_ ( _x_ ) _<u>∥</u>_ _dx_
- <u>��</u> <u>�</u>
(III)
���� _∇θ_
_Zθ_ <sup>2</sup>
+
_θ_
Ω
We first deal with Terms (I), (II), (III) separately:
21
- For Term (I), we notice
- _<u>∇θψθ</u>_ <u>(</u> _x_ <u>)</u> _ψθ_ <u>(</u> _x_ <u>)</u> _dx_
<u>��</u>
_|ψθ_ ( _x_ ) _|_ <sup>2</sup> _dx_
��
_≤_ _|∇θψθ_ ( _x_ ) _|_ <sup>2</sup> _dx,_
������
_|∇θZθ|_ =
������
where we use H¨older’s inequality to bound the numerator in the inequality.
This implies
_<u>|Hψθ</u>_ <u>(</u> _<u>x</u>_ <u>)</u> _<u>∇θψθ</u>_ <u>(</u> _<u>x</u>_ <u>)</u> _<u>|</u>_
_θ_
Term (I) _≤_
��
2 _<u>|∇θψθ</u>_ ( _x_ ) _<u>|</u>_ <sup>2</sup> _dx_
<u>��</u>
_|ψθ_ ( _x_ ) _|_ <sup>2</sup> _dx_
Ω
_Zθ_ <sup>2</sup>
_dx_
~~�~~ <u>�</u>
����� _<u>∇ψθψθ</u>_ ( _<u>θX</u>_ <u>(</u> _<u>X</u>_ ) <u>)</u>
����� _<u>∇ψθψθ</u>_ ( _<u>θX</u>_ <u>(</u> _<u>X</u>_ ) <u>)</u>
����� _<u>∇ψθψθ</u>_ ( _<u>θX</u>_ <u>(</u> _<u>X</u>_ ) <u>)</u>
����� _<u>∇ψθψθ</u>_ ( _<u>θX</u>_ <u>(</u> _<u>X</u>_ ) <u>)</u>
E _X∼pθ_
_θ_
2 <sup>��1</sup> <sup>_/_</sup> <sup>2</sup> <sup>~~�~~</sup> <sup><u>�</u></sup>
2 <sup>��1</sup> <sup>_/_</sup> <sup>2 �</sup>
Ω <sup>_<u>|Hψθ</u>_</sup> <sup>(</sup> <sup>_x_</sup> <sup>)</sup> <sup>_<u>|</u>_</sup> <sup>2</sup> <sup>_dx_</sup>
_≤_ 2
=2
E _X∼pθ_
E _X∼pθ_
_Zθ_ <sup>2</sup>
Ω <sup>_<u>|∇θψθ</u>_</sup> <sup>(</sup> <sup>_x_</sup> <sup>)</sup> <sup>_<u>|</u>_</sup> <sup>2</sup> <sup>_dx_</sup>
����� _<u>∇ψθψθ</u>_ ( _<u>θX</u>_ <u>(</u> _<u>X</u>_ ) <u>)</u>
����
����
����
2 <sup>��1</sup> <sup>_/_</sup> <sup>2 �</sup>
E _X∼pθ_
����
2 <sup>��1</sup> <sup>_/_</sup> <sup>2</sup>
_<u>Hψθ</u>_ <u>(</u> _<u>X</u>_ <u>)</u>
����� _ψθ_ ( _X_ )
_≤_ 2 _Cψ_ <sup>3</sup> <sup>_._</sup>
Here, we use the H¨older’s inequality in the second inequality, and (11)-(13)
in the last inequality.
- For Term (II),
<u>1</u>
_Zθ_ <sup>2</sup>
Ω _∥∇θHψθ_ ( _x_ ) _∇θψθ_ ( _x_ ) _∥_ _dx ≤_ E _X∼pθ_
- _<u>|∇θHψθ</u>_ <u>(</u> _<u>X</u>_ <u>)</u> _<u>| |∇θψθ</u>_ <u>(</u> _<u>X</u>_ <u>)</u> _<u>|</u>_
����� _<u>∇ψθψθ</u>_ ( _<u>θX</u>_ <u>(</u> _<u>X</u>_ ) <u>)</u>
_|ψθ_ ( _X_ ) _|_ <sup>2</sup>
����
����� _<u>∇θψHψθ</u>_ ( _Xθ_ <u>()</u> _<u>X</u>_ <u>)</u>
����� _<u>∇θψHψθ</u>_ ( _Xθ_ <u>()</u> _<u>X</u>_ <u>)</u>
����
2 <sup>��1</sup> <sup>_/_</sup> <sup>2 �</sup>
E _X∼pθ_
2 <sup>��1</sup> <sup>_/_</sup> <sup>2</sup>
_ψ_
_≤_ _C_ <sup>2</sup>
_≤_
E _X∼pθ_
where we use H¨older’s inequality, (11)-(13) in the last two inequalities.
- For Term (III),
<u>1</u>
_Zθ_ <sup>2</sup>
Ω
_∥Hψθ_ ( _x_ )H _θψθ_ ( _x_ ) _∥_ _dx ≤_ E _X∼pθ_
- _<u>|Hψθ</u>_ <u>(</u> _<u>X</u>_ <u>)</u> _<u>| ∥</u>_ <u>H</u> _<u>θψθ</u>_ <u>(</u> _<u>x</u>_ <u>)</u> _<u>∥</u>_
_|ψθ_ ( _X_ ) _|_ <sup>2</sup>
E _X∼pθ_
_≤_
_<u>Hψθ</u>_ <u>(</u> _<u>X</u>_ <u>)</u>
����� _ψθ_ ( _X_ )
2 <sup>��1</sup> <sup>_/_</sup> <sup>2 �</sup>
E _X∼pθ_
����
2 <sup>��1</sup> <sup>_/_</sup> <sup>2</sup>
����
<u>H</u> _<u>θψθ</u>_ <u>(</u> _<u>x</u>_ <u>)</u>
����� _ψθ_ ( _X_ )
<u>H</u> _<u>θψθ</u>_ <u>(</u> _<u>x</u>_ <u>)</u>
����� _ψθ_ ( _X_ )
_ψ_
_≤_ _C_ <sup>2</sup>
where we use H¨older’s inequality, (11)-(13) in the last two inequalities.
Combining the above three inequalities, we have
Term (I)+Term (II)+Term (III) _≤_ 2 _Cψ_ <sup>2</sup> <sup>(</sup> <sup>_Cψ_</sup> <sup>+ 1)</sup> <sup>_._</sup>
22
Using a similar calculation, we can also show
���� _∇θ_
- <u>1</u>
_Zθ_ <sup>2</sup>
- <u>1</u>
_Zθ_ <sup>2</sup>
Ω
_L_ ( _θ_ ) _ψθ_ ( _x_ ) _∇θψθ_ ( _x_ ) _dx_ ����� _≤_ _C_ ( _Cψ_ 4 <sup>+ 1)</sup> <sup>_,_</sup>
where _C_ is a uniform constant. Thus, we have the hessian of _L_ can be bounded,
meaning
_∥_ H _θL_ ( _θ_ ) _∥≤_ _C_ ( _Cψ_ <sup>4</sup> <sup>+ 1)</sup> <sup>_,_</sup>
which proves (C.2) by the mean-value theorem.
Finally, to prove (C.3), noticing
<u>2</u>
_Eθ_ ( _Xi_ ) _∇θ_ log _|ψθ_ ( _Xi_ ) _| −_
_n_ <sup>2</sup> _−_ _n_
- _Eθ_ ( _Xi_ ) _∇θ_ log _|ψθ_ ( _Xj_ ) _|,_
_i̸_ = _j_
_G_ ( _θ, X_ ) = <sup><u>2</u></sup>
_n_
and
we have
_n_
_i_ =1
E _{Xi}_ <sup>_n_</sup>
_i_ =1 <sup>(</sup> <sup>_G_</sup> <sup>(</sup> <sup>_θ, X_</sup> <sup>)) =</sup> <sup>_∇θL_</sup> <sup>(</sup> <sup>_θ_</sup> <sup>)</sup> <sup>_,_</sup>
E _{Xi}_ <sup>_n_</sup> _i_ =1
- _|G_ ( _θ, X_ ) _|_ <sup>2�</sup>
_≤|∇θL_ ( _θ_ ) _|_ <sup>2</sup> + _n_ <sup><u>82</u></sup>
_n_
_i_ =1
E _Xi∼pθ_
- _|Eθ_ ( _Xi_ ) _∇θ_ log _|ψθ_ ( _Xi_ ) _| −_ E _X∼pθ_ [ _Eθ_ ( _X_ ) _∇θ_ log _|ψθ_ ( _X_ ) _|_ ] _|_ <sup>2�</sup>
_,_
2
_Eθ_ ( _Xi_ 1) _∇θ_ log _|ψθ_ ( _Xj_ 1) _| −Lθ_ E _X∼pθ_ _∇θ_ log _|ψθ_ ( _X_ ) _|_
<u>8</u>
+ ( _n_ <sup>2</sup> _−_ _n_ ) <sup>2</sup> <sup>E</sup>
<sup>�</sup>
_i̸_ = _j_
_≤|∇θL_ ( _θ_ ) _|_ <sup>2</sup> + _n_ <sup><u>8</u></sup>
_n_ <sup><u>8</u></sup> <sup>E</sup> <sup>_X∼pθ |Eθ_</sup> <sup>(</sup> <sup>_X_</sup> <sup>)</sup> <sup>_∇θ_</sup> <sup>log</sup> <sup>_|ψθ_</sup> <sup>(</sup> <sup>_X_</sup> <sup>)</sup> <sup>_| −_</sup> <sup>E</sup> <sup>_X∼pθ_</sup> <sup>[</sup> <sup>_Eθ_</sup> <sup>(</sup> <sup>_X_</sup> <sup>)</sup> <sup>_∇θ_</sup> <sup>log</sup> <sup>_|ψθ_</sup> <sup>(</sup> <sup>_X_</sup> <sup>)</sup> <sup>_|_</sup> <sup>]</sup> <sup>_|_</sup> <sup>2</sup>
<u>8</u>
+
( _n_ <sup>2</sup> _−_ _n_ ) <sup>2</sup>
_i_ 1= _i_ 2 or _j_ 1= _j_ 2
1
E( _X_ 1 _,X_ 2) _∼p⊗θ_ 2
_|Eθ_ ( _X_ 1) _∇θ_ log _|ψθ_ ( _X_ 2) _| −Lθ_ E _X∼pθ_ _∇θ_ log _|ψθ_ ( _X_ ) _||_ <sup>2</sup>
_≤|∇θL_ ( _θ_ ) _|_ <sup>2</sup> + _n_ <sup><u>8</u></sup>
_n_ <sup><u>8</u></sup> <sup>E</sup> <sup>_X∼pθ |Eθ_</sup> <sup>(</sup> <sup>_X_</sup> <sup>)</sup> <sup>_∇θ_</sup> <sup>log</sup> <sup>_|ψθ_</sup> <sup>(</sup> <sup>_X_</sup> <sup>)</sup> <sup>_||_</sup> <sup>2 +</sup> <sup>_<u>C</u>_</sup> _n_
_θ_ <sup>_⊗_</sup> <sup>2</sup> _|Eθ_ ( _X_ 1) _∇θ_ log _|ψθ_ ( _X_ 2) _||_ <sup>2</sup>
_n_ <sup>E(</sup> <sup>_X_</sup> <sup>1</sup> <sup>_,X_</sup> <sup>2)</sup> <sup>_∼p_</sup> _θ_ <sup>_⊗_</sup> <sup>2</sup>
where we use _Xi_ and _Xj_ are independent in the first two inequalities. Using (11)
and the second inequality of (12), it is straightforward to show:
����� _<u>∇ψθψθ</u>_ ( _<u>θX</u>_ <u>(</u> _<u>X</u>_ ) <u>)</u>
����� _<u>∇ψθψθ</u>_ ( _<u>θX</u>_ <u>(</u> _<u>X</u>_ ) <u>)</u>
����
4 <sup>��1</sup> <sup>_/_</sup> <sup>2</sup>
_<u>Hψθ</u>_ <u>(</u> _<u>X</u>_ <u>)</u>
����� _ψθ_ ( _X_ )
_<u>Hψθ</u>_ <u>(</u> _<u>X</u>_ <u>)</u>
����� _ψθ_ ( _X_ )
����
4 <sup>��1</sup> <sup>_/_</sup> <sup>2 �</sup>
E _X∼pθ_
_≤_ _Cψ_ <sup>4</sup> <sup>_,_</sup>
E _X∼pθ |Eθ_ ( _X_ ) _∇θ_ log _|ψθ_ ( _X_ ) _||_ <sup>2</sup> _≤_
and
E _X∼pθ_
2 <sup>�</sup>
2 <sup>�</sup>
_≤_ _Cψ_ <sup>4</sup> <sup>_._</sup>
E( _X_ 1 _,X_ 2) _∼p⊗θ_ 2
_|Eθ_ ( _X_ 1) _∇θ_ log _|ψθ_ ( _X_ 2) _||_ <sup>2</sup> _≤_ E _X∼pθ_
This concludes the proof of (C.3).
23
_<u>Hψθ</u>_ <u>(</u> _<u>X</u>_ <u>)</u>
����� _ψθ_ ( _X_ )
����
E _X∼pθ_
����� _<u>∇ψθψθ</u>_ ( _<u>θX</u>_ <u>(</u> _<u>X</u>_ ) <u>)</u>
����� _<u>∇ψθψθ</u>_ ( _<u>θX</u>_ <u>(</u> _<u>X</u>_ ) <u>)</u>
����
Now, we are ready to prove Theorem 4.3:
_Proof_ _of_ _Theorem_ _4.3._ Denote the probability filtration
_Fm_ = _σ_ ( _Xi_ <sup>_j,_</sup> <sup>1</sup> <sup>_≤_</sup> <sup>_i ≤_</sup> <sup>_n,_</sup> <sup>1</sup> <sup>_≤_</sup> <sup>_j_</sup> <sup>_≤_</sup> <sup>_m_</sup> <sup>)</sup> <sup>_._</sup>
According to the algorithm, we have
_θm_ +1 = _θm −_ _ηmGm ._
Plugging _θm_ +1 into _L_ ( _θ_ ), we have
_<u>m</u>_
_L_ ( _θm_ +1) _≤_ _L_ ( _θm_ ) _−_ _ηm∇θL_ ( _θm_ ) _· Gm_ + <sup>_<u>Cη</u>_</sup> 2 <sup>2</sup> _|Gm|_ <sup>2</sup>
where we use (C.2) and _C_ is a constant that only depends on _Cψ_ . This implies
_<u>m</u>_
E ( _L_ ( _θm_ +1) _|Fm−_ 1) _≤L_ ( _θm_ ) _−_ _ηm |∇θL_ ( _θm_ ) _|_ <sup>2</sup> + <sup>_<u>Cη</u>_</sup> 2 <sup>2</sup> E( _|Gm|_ <sup>2</sup> _|Fm−_ 1)
where we use E _{Xi}_ <sup>_n_</sup> _i_ =1 <sup>(</sup> <sup>_G_</sup> <sup>(</sup> <sup>_θ, X_</sup> <sup>))</sup> <sup>=</sup> <sup>_∇θL_</sup> <sup>(</sup> <sup>_θ_</sup> <sup>).</sup> Furthermore, using (C.3) and
_ηm_ _<_ _C_ <sup><u>1</u></sup> <sup>,</sup> <sup>we</sup> <sup>have</sup>
where we use E _{Xi}_ <sup>_n_</sup> _i_
_C_ <sup><u>1</u></sup> <sup>,</sup> <sup>we</sup> <sup>have</sup>
- _<u>m</u>_
_|∇θL_ ( _θm_ ) _|_ <sup>2</sup> + <sup>_<u>Cη</u>_</sup> 2 _n_ <sup>2</sup>
E ( _L_ ( _θm_ +1) _|Fm−_ 1) _≤L_ ( _θm_ ) _−_
- _ηm −_ _Cηm_ <sup>2</sup>
_m_ <sup>2</sup> <sup>_/_</sup> <sup>2</sup>
_<u>m</u>_
2 _n_ <sup>2</sup>
_<u>m</u>_
2 <sup>_<u>m</u>_</sup> <sup>_|∇θL_</sup> <sup>(</sup> <sup>_θm_</sup> <sup>)</sup> <sup>_|_</sup> <sup>2 +</sup> <sup>_<u>Cη</u>_</sup> 2 _n_ <sup>2</sup>
_≤L_ ( _θm_ ) _−_ <sup>_<u>η</u>_</sup> 2 <sup>_<u>m</u>_</sup>
Taking the average in _m_ = 1 _,_ 2 _,_ 3 _, · · ·_ _, M_ _−_ 1, we prove (14).
Appendix D. Proof of Theorem 4.9
In this section, we prove Theorem 4.9. We first show the following lemma:
Lemma Appendix D.1. _Under_ _Condition_ _4.8_ _there_ _exists_ _a_ _constant_ _C_ <sup>_′_</sup> _that_
_only_ _depends_ _on_ _Cψ, Cr, Cϕ_ _such_ _that_ _for_ _any_ _θ,_ _θ_ <sup>�</sup> _∈_ R <sup>_d_</sup> _,_
_θ_ - (D.1)
��� _∇θL_ ( _θ_ ) _−∇θL_ ���� _≤_ _C_ _′|θ −_ _θ_ - _| ._
_and_
_|∇θL_ ( _θ_ ) _|_ <sup>2</sup> + <sup>_<u>C</u>_</sup> _n_ <sup>_′_</sup>
_<u>θ</u>_
_≤_ _Z_ <sup>_<u>Z</u>_</sup> <sup>66</sup>
_,_ (D.2)
E _{Xi}_ <sup>_n_</sup> _i_ =1
- _|G_ ( _θ, X_ ) _|_ <sup>2�</sup>
_where_ _G_ ( _θ, X_ ) _is_ _defined_ _in_ (16) _._
_Proof_ _of_ _Lemma_ _Appendix_ _D.1._ The proof is very similar to the proof of Lemma
Appendix C.1 after setting _Hψθ_ ( _x_ ) = _g_ ( _x_ ) ( _⟨g_ ( _x_ ) _, ψθ_ ( _x_ ) _⟩_ ).
Now, we are ready to prove Theorem 4.9.
24
_Proof_ _of_ _Theorem_ _4.9._ According to the algorithm, we have
_θm_ +1 = _θm −_ _ηmGm ._
Plugging _θm_ +1 into _L_ ( _θ_ ), we have
_<u>m</u>_
_L_ ( _θm_ +1) _≤_ _L_ ( _θm_ ) _−_ _ηm∇θL_ ( _θm_ ) _· Gm_ + <sup>_<u>Cη</u>_</sup> 2 <sup>2</sup> _|Gm|_ <sup>2</sup>
where we use (D.1). Here _C_ is a constant that only depends on _Cψ_ . Because
_<u>m</u>_
1 <sup>_m,···,X_</sup> _n_ <sup>_m_</sup> <sup>(</sup> <sup>_Gm_</sup> <sup>) =</sup> <sup>_<u>Z</u>_</sup> <sup>3</sup>
E _X_ 1 <sup>_m_</sup>
_<u>m</u>_ (D.3)
<sup>_<u>Z</u>_</sup> <sup>3</sup>
_Z_ - _m_ 3 _∇θL_ ( _θm_ ) _,_
we obtain
_<u>m</u>_
E ( _L_ ( _θm_ +1) _|Lm−_ 1) _≤L_ ( _θm_ ) _−_ _ηm |∇θL_ ( _θm_ ) _|_ <sup>2</sup> <sup>_<u>Z</u>_</sup> _Z_ - _m_ <sup>3</sup> 3
(D.4)
_<u>m</u>_
+ <sup>_<u>Cη</u>_</sup> <sup>2</sup>
2 E( _|Gm|_ <sup>2</sup> _|Lm−_ 1)
Using (D.2) and (21),
E( _|Gm|_ <sup>2</sup> _|Lm−_ 1) _≤_ _C_
_|∇θL_ ( _θm_ ) _|_ <sup>2</sup> + <sup>_<u>C</u>_</sup> _n_ <sup>_′_</sup>
_,_ (D.5)
where _C_ is a constant depends on _Cψ, Cr, Cϕ_ .
Plugging (D.5) into (D.4), using (21), and choosing _ηm_ small enough, we
have
_<u>m</u>_
2 <sup>_<u>η</u>_</sup> _C_ <sup>_<u>m</u>_</sup> _r_ <sup>2</sup> _|∇θL_ ( _θm_ ) _|_ <sup>2</sup> + <sup>_<u>Cη</u>_</sup> _n_ <sup>2</sup>
E ( _L_ ( _θm_ +1)) _≤_ _L_ ( _θm_ ) _−_ 2 <sup>_<u>η</u>_</sup> _C_ <sup>_<u>m</u>_</sup> _r_
_<u>m</u>_ (D.6)
_n_ <sup>2</sup>
Taking the average in _m_ = 1 _,_ 2 _,_ 3 _, · · ·_ _, M_ _−_ 1, we prove (22).
Appendix E. Lipschitz of the _Zθ_
Lemma Appendix E.1. _Assume_ _Condition_ _4.8,_ _let_ _θ,_ _θ_ <sup>�</sup> _∈_ R <sup>_d_</sup> _,_ _and_ _suppose_
���� _θ −_ _θ_ ��� _≤_ _Cr ._
_Then_ _there_ _exists_ _a_ _constant_ _C_ <sup>_′_</sup> _that_ _only_ _depends_ _on_ _Cψ, Cr, Cϕ_ _such_ _that_
_<u>∥ψθ</u>_ <u>�</u> _<u>∥ρ</u>_
_∥ψθ∥ρ_
_≤_ exp( _C_ <sup>_′_</sup> _Cr_ ) _._ (E.1)
_Proof_ _of_ _Lemma_ _Appendix_ _E.1._ Fixing _θ,_ _θ_ <sup>�</sup>, we define
_R_ ( _t_ ) =
��� _ψθ_ + _t_ ( _θ_ <u>�</u> _−θ_ )���2 _<u>ρ</u>_
_∥ψθ∥_ <sup>2</sup> _ρ_
25
_._
Then
2 _<u>⟨∇θψθ</u>_ + _t_ ( _θ_ <u>�</u> _−θ_ ) _, ψθ_ + _t_ ( _θ_ <u>�</u> _−θ_ ) _<u>⟩ρ</u>_
_∥ψθ∥_ <sup>2</sup> _ρ_
2 _<u>⟨∇θψθ</u>_ + _t_ ( _θ_ <u>�</u> _−θ_ ) _, ψθ_ + _t_ ( _θ_ <u>�</u> _−θ_ ) _<u>⟩ρ</u>_
<u>���</u> _ψθ_ + _t_ ( _θ_ - _−θ_ )���2 _ρ_
����� _|θ_ - _−_ _θ|_
�������
_|R_ <sup>_′_</sup> ( _t_ ) _| ≤_
_≤_
�����
�������
_|θ_ <sup>�</sup> _−_ _θ|_
�������
�������
��� _ψθ_ + _t_ ( _θ_ <u>�</u> _−θ_ )���2 _<u>ρ</u>_
_∥ψθ∥_ <sup>2</sup> _ρ_
_≤C|θ_ <sup>�</sup> _−_ _θ|R_ ( _t_ ) _,_
where we use (18) and (19) in the last inequality. Because _R_ (0)=1, using
Gr¨onwall’s inequality, we obtain
_<u>∥ψθ</u>_ <u>�</u> _<u>∥ρ</u>_
_∥ψθ∥ρ_
= _R_ <sup>1</sup> <sup>_/_</sup> <sup>2</sup> (1) _≤_ exp( _C|θ −_ _θ_ <sup>�</sup> _|_ ) _≤_ exp( _CCr_ ) _._
Appendix F. Additional details on scale-invariant supervised training
We created a fork [48] of the FermiNet repository [44] and implemented the
scale-invariant loss function Equation (24) in the columns of the backflow tensors.
We used the straight-through gradient estimator [49] to train the network using
either the standard loss or our modified scale-invariant loss while plotting the
angle between the wave functions in each case Figure 1.
The commands for each (using the fork [48] of FermiNet) were:
- Standard (blue)
```
ferminet --config ferminet/configs/atom.py \
--config.system.atom Li \
--config.batch_size 256 \
--config.pretrain.iterations 10
```
- Scale-invariant (orange)
```
ferminet --config ferminet/configs/atom.py \
--config.system.atom Li \
--config.batch_size 256 \
--config.pretrain.iterations 10 \
--config.pretrain.SI
```
26