Introduction
Variational learning for neural networks ([17 , 14 ] ) offers many potential benefits over standard empirical risk minimization and can be used to motivate various deep-learning algorithms ([18 ] ). Some of the benefits of variational learning are improved regularization and reduced overfitting, as suggested by the minimum description length principle ([17 , 14 , 6 , 15 ] ) and PAC-Bayesian bounds ([1 ] ). Depending on the form of the variational posterior, different deep learning algorithms can be obtained, for instance, Adam-like methods [31 ] for diagonal Gaussians, algorithms for binary neural networks for Bernoulli distributions [25 ] and biologically plausible multiplicative dynamics for log-normal distributions [30 ] . The Bayesian viewpoint also offers a fruitful framework for thinking about model adaptation and model understanding, for example, federated and continual learning [27 , 3 ] , model merging [24 , 12 ] or sensitivity analysis to perturbations in both the model and data [28 ] .
The de-facto standard approach for variational learning in neural networks is to update the distribution parameters using gradient-based methods to leverage backpropagation training [14 ] . Khan and Rue [18 ] , for example, use a natural gradient method on the natural parameters of an exponential family. This method has two main difficulties. First, one needs to satisfy constraints on the parameters of the distribution, for example, positivity of the covariance matrix in the case of Gaussians [22 ] . Secondly, the objective functions involve integrals with respect to the variational distribution, and obtaining low-variance stochastic gradients is a major challenge. Reparametrization tricks provide such estimators, but it is not clear whether they are available for the variational family at hand and they have to be derived case by case [26 ] .
Recently, Kıral et al. [20 ] proposed a learning algorithm which addresses the above difficulties by parametrizing the probability distribution through Lie groups. The constraints on the parameters are naturally handled through the group’s closure and lower variance gradients are available by default as the Lie group automatically enables the reparametrization technique. Furthermore the homogeneity of the group allows transporting the gradients on the Lie group to a common tangent space thus allowing for a natural application of momentum, and such transports are compatible with the Fisher information metric which is invariant under reparametrizations.
In this work we establish the connection between the Lie group updates and existing methods on exponential families (EFs) such as the Bayesian Learning Rule (BLR) by Khan and Rue [18 ] . The Lie group update rule does not require the family to be an EF, however many useful families are EFs. EFs are especially well suited to the Bayesian framework, which relies on multiplication and division of distributions to add, remove or modify information. This corresponds to simple addition and subtraction on the natural parameters of the family, connecting the Bayesian framework to optimizing on natural parameters. EFs come with a rich structure, such as dually flat coordinate systems of natural and expectation parameters studied in information geometry [2 ] . As EFs have many desirable properties, the aim of this paper is to further study the Lie group learning rule of Kıral et al. [20 ] when specialized to EFs and to understand its relation to the Bayesian learning rule [18 ] which is derived for EFs and gives a unifying and simplifying view of many other algorithms.
Those EFs which also have a Lie group structure are families of distributions which combine the best of both worlds, and it should therefore not be surprising that most of the eponymous EFs named after a mathematician share this property. They have the above desirable properties of EFs, but the additional group structure gives easy reparametrization tricks and allows for updating without breaking constraints. Developing a recipe to construct exponential families on homogeneous spaces from real representations of Lie groups, Tojo and Yoshino [32 ] redefine the term harmonic exponential families subsuming the earlier definition coined by Cohen and Welling [10 ] for homogeneous spaces of compact Lie groups via unitary representations. These families characterize all exponential families closed under a Lie group action. Using this characterization we establish a general and concrete connection between the Lie group update and BLR. Our main contribution is to prove that the linearization of the update proposed by Kıral et al. [20 ] always recovers the Bayesian learning rule for exponential families with Lie group structure, see Theorem 8 . Altogether, our work supplies the theoretical foundations for efficient algorithms for variational learning using Lie groups and exponential families.
Background on Variational Learning
We first introduce some background on variational learning methods, with particular focus on exponential families. In the following section we introduce the Lie group method of Kıral et al. [20 ] to prepare for combining Lie groups with exponential families.
The Variational Learning Problem
Given a parametrized model (for example, a neural network) with parameter space Θ \Theta Θ , choose a base measure ν \nu ν on Θ \Theta Θ . For a standard neural network the parameter space Θ \Theta Θ is either R P \mathbb{R}^{P} R P or an open subset of R P \mathbb{R}^{P} R P , and the base measure is generally taken as the Lebesgue measure. Denote the loss function by ℓ : Θ → R ≥ 0 \ell:\Theta\to\mathbb{R}_{\ge0} ℓ : Θ → R ≥ 0 . Instead of minimizing ℓ ( θ ) \ell(\theta) ℓ ( θ ) to arrive at a θ ^ ∈ Θ \hat{\theta}\in\Theta θ ^ ∈ Θ , variational learning obtains a distribution on the parameters via the optimization,
q ^ ∈ arg min q ∈ Q E ( q ) where E ( q ) = E θ ∼ q [ ℓ ( θ ) ] − τ H ν ( q ) . (1) \hat{q} \in\underset{q\in\mathcal{Q}}{\arg\min}\,\mathcal{E}(q)
\qquad\text{where} \qquad
\mathcal{E}(q)=\mathbb{E}_{\theta\sim q}[\ell(\theta)]-\tau\mathcal{H}_{\nu}(q). \tag*{(1)} q ^ ∈ q ∈ Q arg min E ( q ) where E ( q ) = E θ ∼ q [ ℓ ( θ )] − τ H ν ( q ) . (1)
Here Q \mathcal{Q} Q is a variational family of distributions on Θ \Theta Θ and τ > 0 \tau>0 τ > 0 is a temperature parameter. Assume members of Q \mathcal{Q} Q to be of the form q d ν q\,\mathrm{d}\nu q d ν for some density q q q , and by abuse of notation we often omit d ν \mathrm{d}\nu d ν and simply refer to the distribution q q q —since the base measure will be fixed throughout, once chosen. We also assume that ℓ \ell ℓ is ν \nu ν -almost everywhere differentiable and satisfies E q [ ∣ ℓ ∣ ] < ∞ \mathbb{E}_{q}[|\ell|]<\infty E q [ ∣ ℓ ∣ ] < ∞ for every q ∈ Q q\in\mathcal{Q} q ∈ Q . The first is standard also in non-variational (point-based) learning if applying methods such as gradient descent, and the second assumption holds as long as members of Q \mathcal{Q} Q have rapid decay and ℓ \ell ℓ has moderate growth1 .
The term H ν ( q ) = − ∫ Θ q log q d ν \mathcal{H}_{\nu}(q)=-\int_{\Theta}q\log q\,\mathrm{d}\nu H ν ( q ) = − ∫ Θ q log q d ν denotes the entropy of the measure q d ν q\,\mathrm{d}\nu q d ν relative to the base measure ν \nu ν . The base measure underlies the concept of entropy, see Figure 1 for how the choice of base measure can affect the solution. Indeed, if we have two ways of writing the same measure q 1 d ν = q 2 ( h d ν ) q_{1}\mathrm{d}\nu=q_{2}(h\mathrm{d}\nu) q 1 d ν = q 2 ( h d ν ) their relative entropies are not the same and are related by the equality H ν ( q 1 ) + E q 1 d ν [ log h ] = H h ν ( q 2 ) \mathcal{H}_{\nu}(q_{1})+\mathbb{E}_{q_{1}\mathrm{d}\nu}[\log h]=\mathcal{H}_{h\nu}(q_{2}) H ν ( q 1 ) + E q 1 d ν [ log h ] = H h ν ( q 2 ) . We introduce the required notions from measure theory later when we need them in § 3.1 .
Figure 1. (Left) The distributions q 1 q_1 q 1 and q 2 q_2 q 2 are translates of each other and have the same entropy relative to the Lebesgue base measure d ν ( θ ) = d θ \mathrm{d}\nu(\theta)=\mathrm{d}\theta d ν ( θ ) = d θ . Therefore an algorithm optimizing for Eq. (1) will not take entropy into account in deciding between them while finding q ^ \hat{q} q ^ . (Right) Two distributions on R > 0 \mathbb{R}_{>0} R > 0 are related by q 4 ( θ ) = 1 2 q ~ 3 ( θ 2 ) q_4(\theta)=\frac{1}{2}\tilde{q}_3\left(\frac{\theta}{2}\right) q 4 ( θ ) = 2 1 q ~ 3 ( 2 θ ) . Relative to the Lebesgue measure, q 4 q_4 q 4 is spread out more and has a higher entropy, however both measures have the same entropy relative to the base measure d θ / θ \mathrm{d}\theta/\theta d θ / θ . In this case the densities are given by q ~ j \tilde{q}_j q ~ j with q ~ j ( θ ) = θ q j ( θ ) \tilde{q}_j(\theta)=\theta q_j(\theta) q ~ j ( θ ) = θ q j ( θ ) (j = 3 , 4 j=3,4 j = 3 , 4 ) and q ~ 4 ( θ ) = q ~ 3 ( θ 2 ) \tilde{q}_4(\theta)=\tilde{q}_3\left(\frac{\theta}{2}\right) q ~ 4 ( θ ) = q ~ 3 ( 2 θ ) . Therefore the solution to the Bayesian Learning problem in Eq. (1) depends on the base measure and it is the practitioner’s choice whether to bias the solutions q ^ \hat{q} q ^ towards q 4 q_4 q 4 (d ν ( θ ) = d θ \mathrm{d}\nu(\theta)=\mathrm{d}\theta d ν ( θ ) = d θ ) or not (d ν ( θ ) = d θ θ \mathrm{d}\nu(\theta)=\frac{\mathrm{d}\theta}{\theta} d ν ( θ ) = θ d θ ).
The notion of relative entropy is exactly the KL-divergence H ν ( q ) = − KL ( q d ν ∥ ν ) \mathcal{H}_{\nu}(q)=-\operatorname{KL}(q\mathrm{d}\nu\Vert\nu) H ν ( q ) = − KL ( q d ν ∥ ν ) if ν \nu ν is also a probability measure. The variational learning problem is sometimes (equivalently) introduced as E ( q ) = E q [ ℓ d a t a ] + τ KL ( q ∥ p p r i o r ) \mathcal{E}(q)=\mathbb{E}_{q}[\ell_{\mathrm{data}}]+\tau\operatorname{KL}(q\Vert p_{\mathrm{prior}}) E ( q ) = E q [ ℓ data ] + τ KL ( q ∥ p prior ) , where the prior is chosen as p p r i o r ∝ e − 1 τ ℓ r e g d ν p_{\mathrm{prior}}\propto e^{-\frac{1}{\tau}\ell_{\mathrm{reg}}}\mathrm{d}\nu p prior ∝ e − τ 1 ℓ reg d ν following a decomposition of the loss ℓ = ℓ d a t a + ℓ r e g \ell=\ell_{\mathrm{data}}+\ell_{\mathrm{reg}} ℓ = ℓ data + ℓ reg into the data term and regularizer.
In Eq. (1) , the expectation term E q [ ℓ ] \mathbb{E}_q[\ell] E q [ ℓ ] pushes the optimization towards q q q that are more concentrated in regions of low loss. Antagonistically the negative entropy term − H ν ( q ) -\mathcal{H}_{\nu}(q) − H ν ( q ) pushes the optimization towards q q q which are more spread out, exploring the parameter space. The objective E \mathcal{E} E can thus be seen as an implementation of the exploration–exploitation trade-off in the parameter space. The temperature τ \tau τ balances this trade-off. The entropy term is an additional regularization on top of what might already exist in ℓ \ell ℓ , selecting for models robust to larger parameter noise. These ideas have been studied from the minimum description length principle perspective [17 , 14 , 6 , 15 ] and through PAC-Bayesian bounds [1 ] .
If ℓ ( θ ) \ell(\theta) ℓ ( θ ) is the sum of negative log-likelihood and the negative log-prior, then Eq. (1) is equivalent (with τ = 1 \tau=1 τ = 1 ) to minimizing the Kullback-Leibler divergence arg min q ∈ Q KL ( q ∥ p ) \arg\min_{q\in\mathcal{Q}}\operatorname{KL}(q\mathbin{\|}p) arg min q ∈ Q KL ( q ∥ p ) from the “Gibbs” posterior p ∝ p ( D ∣ θ ) p p r i o r ( θ ) ∝ e − ℓ ( θ ) p\propto p(D\mid\theta)p_{\mathrm{prior}}(\theta)\propto e^{-\ell(\theta)} p ∝ p ( D ∣ θ ) p prior ( θ ) ∝ e − ℓ ( θ ) , leading to a Bayesian interpretation (Zellner, 1988). A general loss function ℓ \ell ℓ leads to generalized posteriors, [8 , 21 , 5 ] (Zhang 1999).
The set Q \mathcal{Q} Q over which we restrict Eq. (1) is also called the space of candidate posteriors. An important family of candidate posteriors Q \mathcal{Q} Q are exponential families, which have many desirable properties. We introduce them in the following subsection, and subsequently the BLR algorithm solving for Eq. (1) with exponential families.
Exponential Families
First construct an exponential family of distributions on Θ \Theta Θ . For this purpose, fix a pair ( ν , T ) (\nu,\mathbf{T}) ( ν , T ) where ν \nu ν is a base measure on Θ \Theta Θ and T : Θ → R d \mathbf{T}:\Theta\to\mathbb{R}^{d} T : Θ → R d is a measurable function with coordinate functions T ( θ ) = ( T 1 ( θ ) , T 2 ( θ ) , … , T d ( θ ) ) T \mathbf{T}(\theta)=(T_1(\theta),T_2(\theta),\ldots,T_d(\theta))^\mathsf{T} T ( θ ) = ( T 1 ( θ ) , T 2 ( θ ) , … , T d ( θ ) ) T . This T \mathbf{T} T is called a sufficient statistic . Given T \mathbf{T} T and ν \nu ν as above, we construct the associated (maximal) exponential family as
EF ν ( T ) = { q λ d ν : q λ ( θ ) = exp ( − λ T T ( θ ) − A ( λ ) ) : λ ∈ Ω } , (2) \operatorname{EF}_{\nu}(\mathbf{T})=\left\{q_{\lambda}d\nu:q_{\lambda}(\theta)=\exp\left(-\lambda^{\mathsf{T}}\mathbf{T}(\theta)-A(\lambda)\right):\lambda\in\Omega\right\}, \tag*{(2)} EF ν ( T ) = { q λ d ν : q λ ( θ ) = exp ( − λ T T ( θ ) − A ( λ ) ) : λ ∈ Ω } , (2)
where A = A ν , T : R d → ( − ∞ , ∞ ] A=A_{\nu,\mathbf{T}}:\mathbb{R}^{d}\to(-\infty,\infty] A = A ν , T : R d → ( − ∞ , ∞ ] is the log partition function defined as
A ( λ ) = log ∫ Θ exp ( − λ T T ( θ ) ) d ν ( θ ) (3) A(\lambda)=\log\int_{\Theta}\exp\left(-\lambda^{\mathsf{T}}\mathbf{T}(\theta)\right)d\nu(\theta) \tag*{(3)} A ( λ ) = log ∫ Θ exp ( − λ T T ( θ ) ) d ν ( θ ) (3)
and Ω ν , T = { λ ∈ R d : A ( λ ) < ∞ } \Omega_{\nu,\mathbf{T}}=\{\lambda\in\mathbb{R}^{d}:A(\lambda)<\infty\} Ω ν , T = { λ ∈ R d : A ( λ ) < ∞ } is the effective domain of A A A . The log-partition function A ( λ ) A(\lambda) A ( λ ) is convex and therefore the set Ω = Ω ν , T \Omega=\Omega_{\nu,\mathbf{T}} Ω = Ω ν , T is convex as well.
The vectors λ \lambda λ are called the natural parameters of the distribution q λ d ν q_{\lambda}d\nu q λ d ν . The coordinate-free notation is also revealing; consider T : Θ → V \mathbf{T}:\Theta\to V T : Θ → V where V V V is a finite dimensional real vector space3 ^{3} 3 and in this case λ \lambda λ is naturally an element of the dual space V ∗ V^{*} V ∗ . This coordinate-free notation lets us distinguish between the sufficient statistics and natural parameters which are otherwise both simply elements of R d \mathbb{R}^{d} R d . The linear dual space—denoted by V ∗ V^{*} V ∗ —is the set of real valued linear functionals on V V V , which itself forms a vector space. The value of the linear functional is denoted by the inner product notation λ ( v ) = ⟨ λ , v ⟩ \lambda(v)=\langle\lambda,v\rangle λ ( v ) = ⟨ λ , v ⟩ for v ∈ V v\in V v ∈ V and λ ∈ V ∗ \lambda\in V^{*} λ ∈ V ∗ . This coincides with the coordinate-laden description above; upon choosing a basis of V V V and the corresponding dual basis in V ∗ V^{*} V ∗ , both T ( θ ) \mathbf{T}(\theta) T ( θ ) and λ \lambda λ can be written as column vectors and the pairing is given by the dot product ⟨ λ , T ( θ ) ⟩ = λ T T ( θ ) \langle\lambda,\mathbf{T}(\theta)\rangle=\lambda^{\mathsf{T}}\mathbf{T}(\theta) ⟨ λ , T ( θ )⟩ = λ T T ( θ ) .
The discussion above is a constructive approach to exponential families. Alternatively, we may as in Sec. C, from [4 , 32 § 8.1; Def. 2.2] , give criteria dubbing a set P \mathcal{P} P of probability measures as an exponential family or not. Their approach does not commit to a base measure or sufficient statistics, as the same set of probability distributions may be realized as an exponential family with two (or more) realizations given by R = ( ν , T ) R=(\nu,\mathbf{T}) R = ( ν , T ) , R ′ = ( ν ′ , T ′ ) R'=(\nu',\mathbf{T}') R ′ = ( ν ′ , T ′ ) . It also allows for considering smaller families than all normalizable ones. Given a realization R R R of an exponential family P \mathcal{P} P , denote the set of natural parameters corresponding to the family as Ω R ( P ) ⊆ Ω R ⊆ V ∗ \Omega_{R}(\mathcal{P})\subseteq\Omega_{R}\subseteq V^{*} Ω R ( P ) ⊆ Ω R ⊆ V ∗ . We drop R R R from the notation if it is understood. It is worth going into some delicate technicalities about different realizations of a set of probability measures as an exponential family.
Example 1 Take P \mathcal{P} P as the one-dimensional Gaussian distributions with fixed variance 1 . This set of distributions can be realized as an exponential family in two ways.
Take d ν ( x ) = d x d\nu(x)=dx d ν ( x ) = d x , i.e. the Lebesgue measure, and T ( x ) = ( x , 1 2 x 2 ) \mathbf{T}(x)=\left(x,\frac{1}{2}x^{2}\right) T ( x ) = ( x , 2 1 x 2 ) as the sufficient statistic T : R → R 2 ≅ V \mathbf{T}:\mathbb{R}\to\mathbb{R}^{2}\cong V T : R → R 2 ≅ V . In this case the distribution p = 1 2 π exp ( − 1 2 ( x − m ) 2 ) d x ∈ P p=\frac{1}{\sqrt{2\pi}}\exp\left(-\frac{1}{2}(x-m)^{2}\right)dx\in\mathcal{P} p = 2 π 1 exp ( − 2 1 ( x − m ) 2 ) d x ∈ P can be associated with the natural parameter λ = ( − m , 1 ) ∈ R 2 ≅ V ∗ \lambda=(-m,1)\in\mathbb{R}^{2}\cong V^{*} λ = ( − m , 1 ) ∈ R 2 ≅ V ∗ . This natural parameter space Ω d x , T ( P ) \Omega_{d x,\mathbf{T}}(\mathcal{P}) Ω d x , T ( P ) lies inside the set of all feasible natural parameters Ω ν , T = { ( λ 1 , λ 2 ) ∈ R 2 : λ 2 > 0 } \Omega_{\nu,\mathbf{T}}=\{(\lambda_{1},\lambda_{2})\in\mathbb{R}^{2}:\lambda_{2}>0\} Ω ν , T = {( λ 1 , λ 2 ) ∈ R 2 : λ 2 > 0 } which constructs the space of all 1-d Gaussians.
As a second realization we can take d ν ′ ( x ) = e − x 2 2 d x d\nu'(x)=e^{-\frac{x^{2}}{2}}dx d ν ′ ( x ) = e − 2 x 2 d x as the base measure and T ′ : R → R ≅ V \mathbf{T}':\mathbb{R}\to\mathbb{R}\cong V T ′ : R → R ≅ V , with T ′ ( x ) = x \mathbf{T}'(x)=x T ′ ( x ) = x . In this case Ω ν ′ , T ′ ( P ) = R ≅ V ∗ \Omega_{\nu',\mathbf{T}'}(\mathcal{P})=\mathbb{R}\cong V^{*} Ω ν ′ , T ′ ( P ) = R ≅ V ∗ . In this second realization P \mathcal{P} P is a full exponential family (given ν ′ \nu' ν ′ and T ′ \mathbf{T}' T ′ ), and furthermore it is a minimal realization of the exponential family.
The distributions q λ d ν q_{\lambda}d\nu q λ d ν in EF ν ( T ) \operatorname{EF}_{\nu}(\mathbf{T}) EF ν ( T ) can be characterized as
arg max q H ν ( q ) subject to E q d ν [ T ] = μ , \underset{q}{\arg\max}\ \mathcal{H}_{\nu}(q)\quad\text{subject to}\quad\mathbb{E}_{q d\nu}[\mathbf{T}]=\boldsymbol{\mu}, q arg max H ν ( q ) subject to E q d ν [ T ] = μ ,
where μ ∈ V \boldsymbol{\mu}\in V μ ∈ V is called the mean or the expectation parameter4 . To be precise, given T \mathbf{T} T , ν \nu ν and μ \boldsymbol{\mu} μ , if there is a λ ∈ Ω ν , T \boldsymbol{\lambda}\in\Omega_{\nu,\mathbf{T}} λ ∈ Ω ν , T such that E q λ [ T ] = μ \mathbb{E}_{q_{\boldsymbol{\lambda}}}[\mathbf{T}]=\boldsymbol{\mu} E q λ [ T ] = μ then any other distribution satisfying the same constraint has lower entropy. The proof in Cover and Thomas [11 ] extends to the general base-measure setting. Thus expectation parameters characterize elements of P \mathcal{P} P , each μ \boldsymbol{\mu} μ giving at most one distribution in P \mathcal{P} P . This shows the conceptual centrality of exponential families, as they can be interpreted as implementing the principle of indifference (principle of maximum entropy) given the expectation information.
There are two canonical coordinatizations of P \mathcal{P} P , the natural parameters λ ∈ Ω ( P ) ⊆ V ∗ \boldsymbol{\lambda}\in\Omega(\mathcal{P})\subseteq V^{*} λ ∈ Ω ( P ) ⊆ V ∗ and the expectation parameters μ ∈ V \boldsymbol{\mu}\in V μ ∈ V . If the functions 1 , T 1 ( θ ) , … , T d ( θ ) 1,T_{1}(\theta),\ldots,T_{d}(\theta) 1 , T 1 ( θ ) , … , T d ( θ ) are not linearly independent then multiple λ \boldsymbol{\lambda} λ correspond to the same distribution. This can easily be fixed by omitting certain coordinates from T \mathbf{T} T , and let us assume that we have done that. Also not every choice of μ ∈ V \boldsymbol{\mu}\in V μ ∈ V gives a valid distribution, for example the 1-d Gaussians (with non-fixed variance), have expectation parameters μ = ( m , 1 2 ( m 2 + σ 2 ) ) = E x ∼ N ( m , σ 2 ) [ ( x , 1 2 x 2 ) ] \boldsymbol{\mu}=(m,\frac{1}{2}(m^{2}+\sigma^{2}))=\mathbb{E}_{x\sim\mathcal{N}(m,\sigma^{2})}[(x,\frac{1}{2}x^{2})] μ = ( m , 2 1 ( m 2 + σ 2 )) = E x ∼ N ( m , σ 2 ) [( x , 2 1 x 2 )] . So only those μ ∈ V \boldsymbol{\mu}\in V μ ∈ V lying in the (strict) epigraph of the parabola y = 1 2 x 2 y=\frac{1}{2}x^{2} y = 2 1 x 2 are feasible expectation parameters corresponding to a natural parameter λ \boldsymbol{\lambda} λ . If λ \boldsymbol{\lambda} λ lies in the interior of Ω ν , T \Omega_{\nu,\mathbf{T}} Ω ν , T then the gradient of the log-partition function connects the two parametrizations as μ ( λ ) = E q λ [ T ] = − ∇ A ( λ ) \boldsymbol{\mu}(\boldsymbol{\lambda})=\mathbb{E}_{q_{\boldsymbol{\lambda}}}[\mathbf{T}]=-\nabla A(\boldsymbol{\lambda}) μ ( λ ) = E q λ [ T ] = − ∇ A ( λ ) , which can be seen via direct calculation. A full exponential family P \mathcal{P} P with a minimal realization R = ( ν , T ) R=(\nu,\mathbf{T}) R = ( ν , T ) is called regular if its set of natural parameters Ω R ( P ) \Omega_{R}(\mathcal{P}) Ω R ( P ) is an open subset of V ∗ V^{*} V ∗ , in this case − ∇ λ A -\nabla_{\boldsymbol{\lambda}}A − ∇ λ A gives the change of variables formula between the two coordinates. We refer the interested reader to Amari [2 ] and Wainwright and Jordan [35 ] .
If we select the candidate posteriors Q \mathcal{Q} Q in Eq. (1) as an exponential family then updating the distribution is the same as updating the natural parameter λ \boldsymbol{\lambda} λ . In the following section we discuss a practical gradient-based algorithm updating λ \boldsymbol{\lambda} λ , the BLR.
Variational Learning in Exponential Families
The Bayesian Learning Rule (BLR) by Khan and Rue [18 ] is variational learning on an exponential family, in which E \mathcal{E} E is minimized by Natural Gradient Descent (NGD) on λ \boldsymbol{\lambda} λ . NGD means that the Fisher information metric is chosen as the Riemannian geometry on Ω ( P ) \Omega(\mathcal{P}) Ω ( P ) and the natural parameters are updated using Riemannian gradient descent.
Selecting an open exponential family as candidate posteriors, we minimize E ( λ ) : = E ( q λ ) \mathcal{E}(\boldsymbol{\lambda}):=\mathcal{E}(q_{\boldsymbol{\lambda}}) E ( λ ) := E ( q λ ) with gradient descent on λ \boldsymbol{\lambda} λ . Mention of gradients assumes a choice of metric, and if none is specified, it is implicitly the Euclidean geometry. Given a different geometry such as the Fisher information metric, the corresponding gradient is denoted by ∇ ~ λ E \widetilde{\nabla}_{\boldsymbol{\lambda}}\mathcal{E} ∇ λ E , called the natural gradient. This vector is concretely computed by preconditioning the Euclidean gradient with the Fisher information matrix F λ F_{\boldsymbol{\lambda}} F λ .
Altogether, this leads to the following update,
λ u p d a t e d = λ − α ∇ ~ λ E ( λ ) = λ − α F λ − 1 d E ∣ λ , (4) \boldsymbol{\lambda}^{\mathrm{updated}}=\boldsymbol{\lambda}-\alpha\widetilde{\nabla}_{\boldsymbol{\lambda}}\mathcal{E}(\boldsymbol{\lambda})=\boldsymbol{\lambda}-\alpha F_{\boldsymbol{\lambda}}^{-1}d\mathcal{E}|_{\boldsymbol{\lambda}}, \tag*{(4)} λ updated = λ − α ∇ λ E ( λ ) = λ − α F λ − 1 d E ∣ λ , (4)
for step size α > 0 \alpha> 0 α > 0 . Here d E ∣ λ \mathrm{d}\mathcal{E}|_{\lambda} d E ∣ λ refers to the differential of E \mathcal{E} E which naturally lives in the cotangent space T λ ∗ Ω ( P ) ≅ ( V ∗ ) ∗ ≅ V T^{*}_{\lambda}\Omega(\mathcal{P}) \cong(\mathcal{V}^{*})^{*} \cong\mathcal{V} T λ ∗ Ω ( P ) ≅ ( V ∗ ) ∗ ≅ V . In the basis { d λ i } i \{\mathrm{d}\lambda_i\}_i { d λ i } i this differential can be written as ∇ λ E ( λ ) \nabla_{\lambda}\mathcal{E}(\lambda) ∇ λ E ( λ ) , a vector with partial derivatives ∂ E ∂ λ i \frac{\partial\mathcal{E}}{\partial\lambda_i} ∂ λ i ∂ E as coordinate values, and in coordinates the natural gradient is ∇ ~ λ E ( λ ) = F λ − 1 ∇ λ E ( λ ) \widetilde{\nabla}_{\lambda}\mathcal{E}(\lambda)=\mathbf{F}_{\lambda}^{-1}\nabla_{\lambda}\mathcal{E}(\lambda) ∇ λ E ( λ ) = F λ − 1 ∇ λ E ( λ ) . Geometrically speaking, the natural gradient is a tangent vector in T λ Ω ( P ) ≅ V ∗ T_{\lambda}\Omega(\mathcal{P}) \cong\mathcal{V}^{*} T λ Ω ( P ) ≅ V ∗ , and the inverse Fisher matrix can naturally be seen as a transformation mapping the differential co-tangent vector back to the tangent space. More details on this geometric point of view can be found in Sec. C.2.
If the base measure ν \nu ν in Eq. (1) coincides with that of the exponential family’s realization d H ν ( λ ) = − F λ λ \mathrm{d}\mathcal{H}_{\nu}(\lambda)=-\mathbf{F}_{\lambda}\lambda d H ν ( λ ) = − F λ λ , then we get for τ = 1 \tau=1 τ = 1 ,
λ u p d a t e d = ( 1 − α ) λ + α F λ − 1 d E q λ [ − ℓ ( θ ) ] ∣ λ , (5) \lambda^{\mathrm{updated}}=(1-\alpha)\lambda+\alpha\mathbf{F}_{\lambda}^{-1}\mathrm{d}\mathcal{E}_{q_{\lambda}}[-\ell(\theta)]\big|_{\lambda}, \tag*{(5)} λ updated = ( 1 − α ) λ + α F λ − 1 d E q λ [ − ℓ ( θ )] λ , (5)
cf. BLR in Khan and Rue [18 ] . Implementing the update in Eq. (5) comes with two difficulties. First, if the learning rate α \alpha α is large the update may overshoot and leave the constraint set of admissible parameters λ ∈ Ω \lambda\in\Omega λ ∈ Ω . Secondly, the formalism of exponential families by itself does not provide enough structure for efficiently calculating a low-variance stochastic approximation to the gradient of the expected loss. Where such calculation is tractable, we observe that a reparametrization trick is available because a Lie group acts on the parameters and the distributions. In the following section, we introduce the Lie Group Bayesian Learning Rule (LG-BLR) of Kıral et al. [20 ] , which addresses these issues.
The Lie Group Method of Kıral et al. [20 ]
Estimating the derivative of the expected loss in Eq. (5) has garnered much interest, see Mohamed et al. [26 ] for a survey of various methods. Pathwise gradient estimators are one low-variance stochastic estimation method. This technique requires that the distributions in the variational family come from differentiable reparametrizations of a base noise , such as in the case of Gaussian distributions. Upon translations and scaling, the stochastic aspect of sampling from any Gaussian distribution can be relegated to sampling noise vectors from N ( θ ∣ 0 , I ) \mathcal{N}(\theta\mid0,I) N ( θ ∣ 0 , I ) . This generalizes to all similar cases where a Lie group of transformations acts differentiably on Θ \Theta Θ and the distributions in Q \mathcal{Q} Q are pushforwards of each other via these transformations. In many cases using the reparametrization method reduces the variance in stochastic estimation of the gradient of expectation in comparison with methods such as score function estimator, see Xu et al. (2019). This is the setting of LG-BLR (Kıral et al., [20 ] ), which is a learning algorithm for the variational problem in Eq. (1) . The purpose of this work is to show that in cases such as families of Gaussian or exponential distributions, where Q \mathcal{Q} Q is both an exponential family and the Lie group setting applies, the linearization of the LG-BLR yields the BLR. This gives insights on BLR itself, which we mention later.
Notation for the Lie Group Update
The setup of Kıral et al. (2023) involves the notions of Lie groups, group actions, homogeneous spaces, and relatively invariant measures. For details about groups in the machine learning context (Bronstein et al., [7 ] ). For an introduction to measure theory in machine learning context, see the blog post (Escudero, 2024). Below is a short summary.
A group is a set G G G with a binary operation ∗ * ∗ satisfying the properties of associativity, existence of an identity element and inverses. These mean: first, g ∗ ( h ∗ k ) = ( g ∗ h ) ∗ k g*(h*k)=(g*h)*k g ∗ ( h ∗ k ) = ( g ∗ h ) ∗ k for all g , h , k ∈ G g,h,k\in G g , h , k ∈ G ; second, there exists an identity element e ∈ G e\in G e ∈ G such that e ∗ g = g ∗ e = g e*g=g*e=g e ∗ g = g ∗ e = g for all g ∈ G g\in G g ∈ G ; finally, for any g ∈ G g\in G g ∈ G there exists an inverse element which we denote by g − 1 ∈ G g^{-1}\in G g − 1 ∈ G such that g ∗ g − 1 = g − 1 ∗ g = e g*g^{-1}=g^{-1}*g=e g ∗ g − 1 = g − 1 ∗ g = e . A Lie group is also a smooth manifold, and both its binary group-operation and inversion are smooth. For groups written with a multiplicative notation, it is common to write g h gh g h in place of g ∗ h g*h g ∗ h . A smooth manifold is locally diffeomorphic to Euclidean space, that is, there are infinitely differentiable invertible mappings between local patches of G G G and an open subset of R m \mathbb{R}^{m} R m , and m m m is called the dimension of the manifold. As an example the set of invertible matrices on n n n -dimensions is a group with respect to matrix multiplication, is a Lie group of dimension n 2 n^{2} n 2 .
The tangent space of the Lie group at the identity is called a Lie algebra, denoted as g = T e G \mathfrak{g}=T_{e}G g = T e G . It is a vector space, which also has a binary operation called the Lie bracket denoted by [ X , Y ] ∈ g [X,Y]\in\mathfrak{g} [ X , Y ] ∈ g for X , Y ∈ g X,Y\in\mathfrak{g} X , Y ∈ g . For matrix groups (i.e. subgroups of invertible n × n n\times n n × n matrices) the Lie algebra is a vector space of square matrices and the Lie bracket is concretely given as [ X , Y ] = X Y − Y X [X,Y]=XY-YX [ X , Y ] = X Y − Y X .
The differential of the left-multiplication-by-g g g map L g : x ↦ g x L_{g}:x\mapsto gx L g : x ↦ g x on G G G provides a consistent way to transfer a direction vector v ∈ g v\in\mathfrak{g} v ∈ g to a tangent vector d L g ∣ e ( v ) ∈ T g G \mathrm{d}L_{g|e}(v)\in T_{g}G d L g ∣ e ( v ) ∈ T g G . In LG-BLR we make use of this, ensuring that all the gradient vectors end up in the same vector space g \mathfrak{g} g , so that we can accumulate past gradients via momentum5 .
The right-multiplication-by-g g g map R g : x ↦ x g R_{g}:x\mapsto xg R g : x ↦ xg has the same effect, which is different from L g L_{g} L g if the group multiplication is not commutative. The difference between the left and right multiplication maps can be measured by the conjugation automorphisms, which for a given group element g ∈ G g\in G g ∈ G is the map x ↦ g x g − 1 x\mapsto gxg^{-1} x ↦ g x g − 1 . It is differentiable and e ↦ e e\mapsto e e ↦ e , so its differential at identity is a linear map Ad g : g → g \operatorname{Ad}_{g}:\mathfrak{g}\to\mathfrak{g} Ad g : g → g . It is called the adjoint map. For commutative groups G G G , this map is always the identity. For matrix groups, g ∈ G g\in G g ∈ G and X ∈ g X\in\mathfrak{g} X ∈ g are both square matrices and Ad g ( X ) = g X g − 1 ∈ g \operatorname{Ad}_{g}(X)=gXg^{-1}\in\mathfrak{g} Ad g ( X ) = g X g − 1 ∈ g .
Every Lie group comes with the structure of an exponential map , allowing us to wrap the tangent space at identity to the group manifold. The exponential exp G : g → G \exp_{G}:\mathfrak{g}\to G exp G : g → G is a map defining paths—also called one parameter subgroups—in G G G by { γ X ( t ) : = exp ( t X ) : t ∈ R } \{\gamma_{X}(t):=\exp(tX):t\in\mathbb{R}\} { γ X ( t ) := exp ( tX ) : t ∈ R } . These paths are closed under the group multiplication and the direction at t = 0 t=0 t = 0 is γ ˙ X ( 0 ) = X \dot{\gamma}_{X}(0)=X γ ˙ X ( 0 ) = X . These are geodesics6 on G G G starting at the identity e e e , with initial velocity X X X . If the group is understood we may simply write exp G ( X ) = exp ( X ) = e X \exp_{G}(X)=\exp(X)=e^{X} exp G ( X ) = exp ( X ) = e X , dropping G G G from the notation. Given two directions X , Y ∈ g X,Y\in\mathfrak{g} X , Y ∈ g such that [ X , Y ] = 0 [X,Y]=0 [ X , Y ] = 0 , the exponential map is multiplicative; e X + Y = e X e Y e^{X+Y}=e^{X}e^{Y} e X + Y = e X e Y . In particular e t X + t Y = e t X e t Y e^{tX+tY}=e^{tX}e^{tY} e tX + t Y = e tX e t Y , justifying why we call γ X \gamma_{X} γ X as one parameter subgroups . For matrix groups G G G , the Lie algebra g \mathfrak{g} g is a subspace of square matrices and the exponential map is given by exp ( X ) = ∑ n = 0 ∞ X n n ! \exp(X)=\sum_{n=0}^{\infty}\frac{X^{n}}{n!} exp ( X ) = ∑ n = 0 ∞ n ! X n .
A group action on a set A A A is a map G × A → A G\times A\to A G × A → A denoted by g ⋅ a g\cdot a g ⋅ a satisfying ( g h ) ⋅ a = g ⋅ ( h ⋅ a ) (gh)\cdot a=g\cdot(h\cdot a) ( g h ) ⋅ a = g ⋅ ( h ⋅ a ) and e ⋅ a = a e\cdot a=a e ⋅ a = a for any g , h ∈ G g,h\in G g , h ∈ G , a ∈ A a\in A a ∈ A and e e e as the identity element of G G G . The set { g ⋅ a : g ∈ G } ⊆ A \{g\cdot a:g\in G\}\subseteq A { g ⋅ a : g ∈ G } ⊆ A is called the orbit of a a a . A group action is transitive if there is some element a 0 ∈ A a_0 \in A a 0 ∈ A such that any a ∈ A a \in A a ∈ A is in the orbit of a 0 a_0 a 0 . The stabilizer of an element a 0 a_0 a 0 is the subgroup of G G G fixing a 0 a_0 a 0 , denoted by Stab G ( a 0 ) = { g ∈ G : g ⋅ a 0 = a 0 } \operatorname{Stab}_G(a_0) = \{g \in G : g \cdot a_0 = a_0\} Stab G ( a 0 ) = { g ∈ G : g ⋅ a 0 = a 0 } . If transitive, the set A A A and the quotient set G / H G/H G / H (where we call H = Stab G ( a 0 ) H = \operatorname{Stab}_G(a_0) H = Stab G ( a 0 ) ) can be identified by associating elements a ∈ A a \in A a ∈ A with the group elements g g g that take a basis point a 0 a_0 a 0 to a a a (modulo the group elements that fix a 0 a_0 a 0 ). If A A A is a manifold, with such a transitive (and continuous) G G G -action, A A A is called a homogeneous space . Furthermore if A A A is a differentiable manifold with a smooth group action, differentiating the group action at the identity gives the infinitesimal group action , which we denote with the same symbol: X ⋅ a : = d d t ( e t X ⋅ a ) ∣ t = 0 X \cdot a := \left.\frac{\mathrm{d}}{\mathrm{d}t}(e^{tX} \cdot a)\right|_{t=0} X ⋅ a := d t d ( e tX ⋅ a ) t = 0 .
A representation of a group G G G is a group homomorphism π : G → GL ( V ) \pi: G \to\operatorname{GL}(V) π : G → GL ( V ) for some vector space V V V . Given a basis of V V V this means associating matrices π ( g ) \pi(g) π ( g ) to elements of the group such that group operation corresponds to matrix multiplication: π ( g 1 g 2 ) = π ( g 1 ) π ( g 2 ) \pi(g_1g_2) = \pi(g_1)\pi(g_2) π ( g 1 g 2 ) = π ( g 1 ) π ( g 2 ) . This makes abstract groups concrete, since matrices are concrete objects. A faithful representation for example, i.e. one where π \pi π is injective, replicates the group structure of G G G inside some n × n n \times n n × n invertible matrices, where n = dim V n = \dim V n = dim V . Given a group representation π \pi π on V V V , there is a dual representation π ∗ : G → GL ( V ∗ ) \pi^* : G \to\operatorname{GL}(V^*) π ∗ : G → GL ( V ∗ ) . The action of π ∗ ( g ) \pi^*(g) π ∗ ( g ) on a linear functional λ ∈ V ∗ \lambda\in V^* λ ∈ V ∗ is defined by ⟨ π ∗ ( g ) λ , v ⟩ = ⟨ λ , π ( g − 1 ) v ⟩ \langle\pi^*(g)\lambda, v\rangle= \langle\lambda, \pi(g^{-1})v\rangle ⟨ π ∗ ( g ) λ , v ⟩ = ⟨ λ , π ( g − 1 ) v ⟩ for every v ∈ V v \in V v ∈ V . As matrices (in the dual basis of V ∗ V^* V ∗ ) π ∗ ( g ) \pi^*(g) π ∗ ( g ) is given by the inverse transpose of π ( g ) \pi(g) π ( g ) .
A measure ν \nu ν on A A A assigns a nonnegative number to members of a certain collection of subsets (called a sigma-algebra7 elements of which in this context are called measurable sets) with countable additivity and ν ( ∅ ) = 0 \nu(\varnothing) = 0 ν ( ∅ ) = 0 . For example the Lebesgue measure assigns an interval ( a , b ) (a,b) ( a , b ) its length b − a b-a b − a . Given a map ϕ : A → B \phi: A \to B ϕ : A → B there is a measure ϕ ♯ ν \phi_{\sharp}\nu ϕ ♯ ν on B B B called the pushforward measure such that ( ϕ ♯ ν ) ( E ) = ν ( ϕ − 1 ( E ) ) (\phi_{\sharp}\nu)(E) = \nu(\phi^{-1}(E)) ( ϕ ♯ ν ) ( E ) = ν ( ϕ − 1 ( E )) for all measurable sets E E E . For this ϕ \phi ϕ needs to be “measurable” which all continuous functions are if A A A also has a topology and the sigma-algebra is constructed from the open sets of A A A .
Assume the measure space A A A also has a measurable group action on it, then for each g ∈ G g \in G g ∈ G , the map a ↦ g ⋅ a a \mapsto g \cdot a a ↦ g ⋅ a , yields the pushforward measure g ♯ ν g_{\sharp}\nu g ♯ ν . Assume further that ν ( g E ) = χ ( g ) ν ( E ) \nu(gE) = \chi(g)\nu(E) ν ( g E ) = χ ( g ) ν ( E ) for some factor χ ( g ) \chi(g) χ ( g ) not depending on the measurable subset E E E , then we have g ♯ ν = 1 χ ( g ) ν g_{\sharp}\nu= \frac{1}{\chi(g)}\nu g ♯ ν = χ ( g ) 1 ν . In this case ν \nu ν is called a relatively G G G -invariant measure . Such a measure is not guaranteed to exist, but in all important cases we present, it exists and can be explicitly written down. The multiplier χ : G → R > 0 \chi: G \to\mathbb{R}_{>0} χ : G → R > 0 is necessarily a group homomorphism, i.e. it satisfies χ ( g 1 g 2 ) = χ ( g 1 ) χ ( g 2 ) \chi(g_1g_2) = \chi(g_1)\chi(g_2) χ ( g 1 g 2 ) = χ ( g 1 ) χ ( g 2 ) for all g 1 , g 2 ∈ G g_1,g_2 \in G g 1 , g 2 ∈ G . We also introduce a bit of notation which is necessary later, and define the differential of − log χ -\log\chi − log χ as ξ \xi ξ , i.e. ξ : g → R \xi: \mathfrak{g} \to\mathbb{R} ξ : g → R defined by ξ ( X ) : = − d d t log ( χ ( exp ( t X ) ) ) ∣ t = 0 \xi(X) := -\left.\frac{\mathrm{d}}{\mathrm{d}t}\log(\chi(\exp(tX)))\right|_{t=0} ξ ( X ) := − d t d log ( χ ( exp ( tX ))) t = 0 .
As an example, take A = R P A = \mathbb{R}^{P} A = R P and ν \nu ν the Lebesgue measure, and G = Aff P ( R ) G = \operatorname{Aff}_{P}(\mathbb{R}) G = Aff P ( R ) with the action given by ( A , b ) ⋅ x = A x + b (A,b) \cdot x = Ax+b ( A , b ) ⋅ x = A x + b . Then ( A , b ) ♯ ν = ∣ det ( A ) ∣ − 1 ν (A,b)_{\sharp}\nu= |\det(A)|^{-1}\nu ( A , b ) ♯ ν = ∣ det ( A ) ∣ − 1 ν where the factor χ ( ( A , b ) ) = ∣ det ( A ) ∣ \chi((A,b)) = |\det(A)| χ (( A , b )) = ∣ det ( A ) ∣ is the Jacobian determinant coming from the change of variables formula. The Lie algebra a f f P \mathfrak{aff}_{P} aff P consists of pairs ( X , x ) (X,x) ( X , x ) with all P × P P \times P P × P matrices X X X and x ∈ R P x \in\mathbb{R}^{P} x ∈ R P . In this case ξ ( ( X , x ) ) = − d d t log ( det ( e t X ) ) ∣ t = 0 = − d d t Tr ( t X ) ∣ t = 0 = − Tr ( X ) \xi((X,x)) = -\left.\frac{\mathrm{d}}{\mathrm{d}t}\log(\det(e^{tX}))\right|_{t=0} = -\left.\frac{\mathrm{d}}{\mathrm{d}t}\operatorname{Tr}(tX)\right|_{t=0} = -\operatorname{Tr}(X) ξ (( X , x )) = − d t d log ( det ( e tX )) t = 0 = − d t d Tr ( tX ) t = 0 = − Tr ( X ) .
In terms of change of variables this relative-G G G -invariance property of ν \nu ν means that for any measurable function f f f on A A A we can write
∫ A f ( a ) d ν ( a ) = ∫ A f ( g − 1 ⋅ a ) d ( g ♯ ν ) ( a ) = 1 χ ( g ) ∫ A f ( g − 1 ⋅ a ) d ν ( a ) . \int_A f(a)\,\mathrm{d}\nu(a) = \int_A f(g^{-1}\cdot a)\,\mathrm{d}(g_{\sharp}\nu)(a) = \frac{1}{\chi(g)}\int_A f(g^{-1}\cdot a)\,\mathrm{d}\nu(a). ∫ A f ( a ) d ν ( a ) = ∫ A f ( g − 1 ⋅ a ) d ( g ♯ ν ) ( a ) = χ ( g ) 1 ∫ A f ( g − 1 ⋅ a ) d ν ( a ) .
This is very useful for calculating gradients of loss expectations in our LG-BLR setting.
The Lie Group Update Rule
Assume the setting above, i.e. let G G G be a Lie group acting smoothly and transitively on the space of parameters Θ \Theta Θ of a machine learning model, and ν \nu ν is a relatively invariant measure on Θ \Theta Θ with multiplier χ \chi χ . Further assume Θ \Theta Θ is a differentiable manifold, and without loss of generality we may assume it is embedded in some ambient Euclidean space R n \mathbb{R}^{n} R n . Fix a base distribution q 0 d ν q_{0}\mathrm{d}\nu q 0 d ν . The group action map θ ↦ g ⋅ θ \theta\mapsto g \cdot\theta θ ↦ g ⋅ θ induces a pushforward on the distributions given as g ♯ ( q 0 d ν ) = q g d ν g_{\sharp}(q_{0}\mathrm{d}\nu)=q^{g}\mathrm{d}\nu g ♯ ( q 0 d ν ) = q g d ν where
q g ( θ ) = 1 χ ( g ) q 0 ( g − 1 θ ) q^{g}(\theta)=\frac{1}{\chi(g)}q_{0}(g^{-1}\theta) q g ( θ ) = χ ( g ) 1 q 0 ( g − 1 θ )
is the density of the pushforward distribution8 . Sampling θ \theta θ from q g d ν q^{g}\mathrm{d}\nu q g d ν is equivalent to sampling θ 0 ∼ q 0 d ν \theta_{0}\sim q_{0}\mathrm{d}\nu θ 0 ∼ q 0 d ν and applying the group action θ = g ⋅ θ 0 \theta=g\cdot\theta_{0} θ = g ⋅ θ 0 .
In LG-BLR of Kıral et al. [20 ] , the family of candidate posteriors is chosen as
Q = { q g d ν : g ∈ G } . (6) \mathcal{Q}=\{q^{g}\mathrm{d}\nu:g\in G\}. \tag*{(6)} Q = { q g d ν : g ∈ G } . (6)
Members of Q \mathcal{Q} Q are parametrized by Lie group elements, and optimizer steps update g ∈ G g\in G g ∈ G .
For a step size α > 0 \alpha>0 α > 0 , the update is given as
g u p d a t e d = g exp ( − α Y ^ ) (7) g^{\mathrm{updated}}=g\exp(-\alpha\hat{Y}) \tag*{(7)} g updated = g exp ( − α Y ^ ) (7)
where Y ^ ∈ g \hat{Y}\in\mathfrak{g} Y ^ ∈ g is in the direction9 of fastest ascent for the objective E ( q ) \mathcal{E}(q) E ( q ) at q = q g q=q^{g} q = q g . The notion of fastest ascent requires specifying a metric, and in accordance with the original BLR (Khan and Rue, [18 ] ) we choose the Fisher information metric. To be precise, let B B B be the pullback of the Fisher information metric on Q \mathcal{Q} Q to g \mathfrak{g} g , by φ ∘ L g \varphi\circ L_{g} φ ∘ L g , see Eq. (25) in Sec. A. Here L g : G → G L_{g}:G\to G L g : G → G is the left-multiplication-by-g g g map and φ : G → Q \varphi:G\to\mathcal{Q} φ : G → Q is the parametrization φ ( g ) = q g \varphi(g)=q^{g} φ ( g ) = q g from the group to the densities. As the update direction choose a Y ^ ∈ g \hat{Y}\in\mathfrak{g} Y ^ ∈ g satisfying
B ( Y ^ , X ) = d ( E ∘ φ ∘ L g ) ∣ g [ X ] for all X ∈ g . (8) B(\hat{Y},X)=\mathrm{d}(\mathcal{E}\circ\varphi\circ L_{g})\big|_{g}[X]\qquad\text{for all }X\in\mathfrak{g}. \tag*{(8)} B ( Y ^ , X ) = d ( E ∘ φ ∘ L g ) g [ X ] for all X ∈ g . (8)
Figure 3. Examples of Lie groups acting on Θ \Theta Θ and distributions on Θ \Theta Θ . (top-left) Θ = R \Theta= \mathbb{R} Θ = R and G = ( R , + ) G = (\mathbb{R}, +) G = ( R , + ) , with action given by g ⋅ θ = g + θ g \cdot\theta= g + \theta g ⋅ θ = g + θ . The orbit of the pushforwards are various translations of q 0 q_0 q 0 . (middle-left) Θ = R > 0 \Theta= \mathbb{R}_{>0} Θ = R > 0 and G = ( R > 0 , × ) G = (\mathbb{R}_{>0}, \times) G = ( R > 0 , × ) with group action g ⋅ θ = g θ g \cdot\theta= g\theta g ⋅ θ = g θ . Log-normal distributions with a fixed shape parameter, Rayleigh distributions, and exponential distributions can all be realized as Eq. (6) with this group action. (bottom-left) Θ = R \Theta= \mathbb{R} Θ = R and G = Aff 1 + ( R ) = { ( A , b ) : A > 0 , b ∈ R } G = \operatorname{Aff}_{1}^{+}(\mathbb{R}) = \{(A,b) : A > 0, b \in\mathbb{R}\} G = Aff 1 + ( R ) = {( A , b ) : A > 0 , b ∈ R } the affine group in one dimension, with the group action ( A , b ) ⋅ θ = A θ + b (A,b) \cdot\theta= A\theta+ b ( A , b ) ⋅ θ = A θ + b . If q 0 q_0 q 0 is the unit normal distribution then q ( A , b ) = N ( b , A 2 ) q^{(A,b)} = \mathcal{N}(b, A^2) q ( A , b ) = N ( b , A 2 ) . (right) Θ = S 2 \Theta= S^2 Θ = S 2 and the special orthogonal group G = SO ( 3 , R ) G = \operatorname{SO}(3,\mathbb{R}) G = SO ( 3 , R ) acts on the sphere by rotations. von Mises–Fisher distributions with a fixed concentration parameter can be constructed as a single orbit under the pushforward action of this group.
One can show Y ^ = s X ^ \hat{Y} = s\hat{X} Y ^ = s X ^ , where s = d ( E ∘ φ ∘ L g ) ∣ e [ X ^ ] s = \mathrm{d}(\mathcal{E} \circ\varphi\circ L_g)|_e[\hat{X}] s = d ( E ∘ φ ∘ L g ) ∣ e [ X ^ ] and where X ^ \hat{X} X ^ solves
X ^ ∈ arg max X ∈ g d ( E ∘ φ ∘ L g ) ∣ e [ X ] such that B ( X , X ) ≤ 1 \hat{X} \in\underset{X \in\mathfrak{g}}{\operatorname{arg\,max}}\ \mathrm{d}(\mathcal{E} \circ\varphi\circ L_g)|_e[X] \qquad\text{such that} \qquad B(X,X) \le1 X ^ ∈ X ∈ g arg max d ( E ∘ φ ∘ L g ) ∣ e [ X ] such that B ( X , X ) ≤ 1
So, in words, X ^ \hat{X} X ^ is the direction of fastest ascent according to B B B , and s s s is the maximal slope. This intuitive picture is valid even if our B B B has degenerate directions. The existence of Y ^ \hat{Y} Y ^ requires that the differential vanish on such directions, which it does.
The differential at a given X ∈ g X \in\mathfrak{g} X ∈ g can be explicitly calculated by perturbing g g g to g exp ( t X ) g\exp(tX) g exp ( tX ) to get the real values d ( E ∘ φ ∘ L g ) ∣ e [ X ] = d d t ( q g exp ( t X ) ) ∣ t = 0 \mathrm{d}(\mathcal{E} \circ\varphi\circ L_g)|_e[X] = \left.\frac{\mathrm{d}}{\mathrm{d}t}\left(q^{g\exp(tX)}\right)\right|_{t=0} d ( E ∘ φ ∘ L g ) ∣ e [ X ] = d t d ( q g e x p ( tX ) ) t = 0 . This is the directional derivative of the objective in Eq. (1) in the direction of X X X , (equivalently in the direction d L g ∣ e [ X ] ∈ T g G \mathrm{d}L_g|_e[X] \in T_gG d L g ∣ e [ X ] ∈ T g G at g g g ). For our variational objective, it is calculated as,
d d t E ( q g exp ( t X ) ) ∣ t = 0 = E θ ∼ q g [ ∇ ℓ ( θ ) T ( Ad g ( X ) ⋅ θ ) ] + τ ξ ( X ) . (9) \left.\frac{\mathrm{d}}{\mathrm{d}t}\mathcal{E}\left(q^{g\exp(tX)}\right)\right|_{t=0} = \mathbb{E}_{\theta\sim q^g}\left[\nabla\ell(\theta)^{\mathsf{T}}\left(\operatorname{Ad}_g(X) \cdot\theta\right)\right] + \tau\xi(X). \tag*{(9)} d t d E ( q g e x p ( tX ) ) t = 0 = E θ ∼ q g [ ∇ ℓ ( θ ) T ( Ad g ( X ) ⋅ θ ) ] + τ ξ ( X ) . (9)
We include this short calculation in Sec. A.1 for completeness, which is a straightforward application of the change of variables followed by differentiating under the integral, afforded to us by our Lie group setting. The term ξ ( X ) \xi(X) ξ ( X ) —which we introduced in the previous subsection—arises as the differential of the negative entropy term. The adjoint operator Ad g : g → g \operatorname{Ad}_g : \mathfrak{g} \to\mathfrak{g} Ad g : g → g is the infinitesimal effect of conjugation as defined above, and can be concretely identified for each choice of Lie group G G G . The significance of Eq. (9) is that it expresses the differential of the expected loss E g [ ℓ ] E_g[\ell] E g [ ℓ ] with an expectation involving ∇ ℓ \nabla\ell ∇ ℓ . Thus, a perturbation in the distribution (a perturbation in g g g ) is expressed as a perturbation in the parameters θ \theta θ .
In summary, we update the group element using the group multiplication and the exponential map, in the direction of the steepest slope. In LG-BLR the bilinear form B ( ⋅ , ⋅ ) B(\cdot,\cdot) B ( ⋅ , ⋅ ) on g \mathfrak{g} g determining this steepest slope is chosen as the pullback of the Fisher information metric on Q \mathcal{Q} Q . This pullback is well defined, and is independent of the group element g g g . As long as the Fisher metric is nonsingular Eq. (8) can be solved. It is possible that there are multiple solutions Y ^ \hat{Y} Y ^ , but we can always choose one among them. More details on obtaining the update direction are in Sec. A.2. Furthermore we should point out that, the formalism of LG-BLR allows us to also simply start with a bilinear form B B B on g \mathfrak{g} g and that determines a left invariant metric on G G G , even if it doesn’t necessarily come from the Fisher metric on Q \mathcal{Q} Q .
On Applying Gradient Accumulation
The Lie group update rule is an optimization on a manifold, nonetheless we can accumulate past gradients as mentioned in Section 3.5 of Kıral et al. [20 ] . This is thanks to the homogeneity of the Lie group, since we could formulate the updates as multiplications by “small” (i.e. near identity) group elements given by directions at e ∈ G e \in G e ∈ G . In other words, Y ^ t ∈ g = T e G \hat{Y}_t \in\mathfrak{g} = T_eG Y ^ t ∈ g = T e G for all time steps t t t , regardless of the current position g t ∈ G g_t \in G g t ∈ G . So all the update vectors lie in the same vector space g \mathfrak{g} g .
This generalizes momentum in the standard gradient descent setup on the flat parameter space R P \mathbb{R}^{P} R P . There as well, the gradient at time t t t lies in the corresponding tangent space, ( ∇ θ ℓ ) ( θ t ) ∈ T θ t R P (\nabla_\theta\ell)(\theta_t) \in T_{\theta_t}\mathbb{R}^{P} ( ∇ θ ℓ ) ( θ t ) ∈ T θ t R P , and an identification of all these tangent spaces is required for meaningfully operating with gradient vectors at multiple timepoints. The additive vector structure of R P \mathbb{R}^{P} R P (as a special case of the group structure mentioned above) canonically identifies all these vector spaces with R P \mathbb{R}^{P} R P . For a deeper discussion regarding the mathematical underpinnings of what makes momentum possible with manifold learning, see Sec. B.
Furthermore, optimizers such as RMSprop, Adam (Kingma and Ba, [19 ] ), or Lion (Chen et al., [9 ] ) not only accumulate past gradients, but also operate on the gradient vectors such as taking componentwise squares, adaptive componentwise scaling or taking signs. We are equally justified in doing such operations with LG-BLR in the Lie algebra g \mathfrak{g} g . The exponential map exp G \exp_G exp G will still be able to retract the resulting vector onto the group. In Nishida et al. [30 ] this idea was successfully applied to the multiplicative group, where a Lion-like update was applied. Roughly speaking, the update used in that paper was of the form g t + 1 ← g t exp ( − α sign ( M t ) ) g_{t+1} \leftarrow g_t \exp(-\alpha\operatorname{sign}(M_t)) g t + 1 ← g t exp ( − α sign ( M t )) where M t ∈ g M_t \in\mathfrak{g} M t ∈ g is the standard momentum accumulation. This greatly increased the stability of the multiplicative update rule.
In § 5.4 we express this Lie group momentum in terms of natural gradients in BLR, in case the candidate posteriors are also an exponential family.
An Example: Affine Groups and Gaussians
For each Lie group, LG-BLR corresponds to a different update. For example let G = Aff P + ( R ) G = \operatorname{Aff}_{P}^{+}(\mathbb{R}) G = Aff P + ( R ) acting on Θ = R P \Theta= \mathbb{R}^{P} Θ = R P . Elements of G G G are of the form g = ( A , b ) g = (A,\mathbf{b}) g = ( A , b ) where A A A is an invertible P × P P \times P P × P matrix with positive determinant and b \mathbf{b} b is a vector in R P \mathbb{R}^{P} R P . The action is given by ( A , b ) ⋅ θ = A θ + b (A,\mathbf{b}) \cdot\boldsymbol{\theta} = A\boldsymbol{\theta} + \mathbf{b} ( A , b ) ⋅ θ = A θ + b . If q 0 = N ( θ ∣ 0 , I ) q_{0} = \mathcal{N}(\boldsymbol{\theta} \mid\mathbf{0}, I) q 0 = N ( θ ∣ 0 , I ) then, the orbit of q 0 q_{0} q 0 under the affine group action is the statistical manifold of all multivariate Gaussian distributions. Explicitly, q ( A , b ) ( θ ) = N ( θ ∣ b , A A T ) q^{(A,\mathbf{b})}(\boldsymbol{\theta}) = \mathcal{N}(\boldsymbol{\theta} \mid\mathbf{b}, AA^{\mathsf{T}}) q ( A , b ) ( θ ) = N ( θ ∣ b , A A T ) . The covariance matrix is Σ = A A T \Sigma= AA^{\mathsf{T}} Σ = A A T , and the mean is m = b \mathbf{m} = \mathbf{b} m = b .
The LG-BLR updates the group elements g g g , along a tangent direction in g \mathfrak{g} g , which in turn gives an update in the Gaussian distribution q g ∈ Q q^{g} \in\mathcal{Q} q g ∈ Q . Elements of the affine Lie algebra (denoted by a f f P \mathfrak{aff}_{P} aff P ) can be written as ( X , x ) (X,\mathbf{x}) ( X , x ) where X X X is a (not necessarily invertible) P × P P \times P P × P matrix and x ∈ R P \mathbf{x} \in\mathbb{R}^{P} x ∈ R P . The bilinear form on this tangent space obtained as the pullback of the Fisher Information metric on Q \mathcal{Q} Q via d ( φ ∘ L g ) ∣ e \mathrm{d}(\varphi\circ L_{g})\big|_{e} d ( φ ∘ L g ) e is independent of g g g , and is given by
⟨ ( X , x ) , ( Y , y ) ⟩ = 2 ⟨ Sym ( X ) , Sym ( Y ) ⟩ F r o b + x T y . (10) \langle(X,\mathbf{x}),(Y,\mathbf{y})\rangle= 2\langle\operatorname{Sym}(X),\operatorname{Sym}(Y)\rangle_{\mathrm{Frob}} + \mathbf{x}^{\mathsf{T}}\mathbf{y}. \tag*{(10)} ⟨( X , x ) , ( Y , y )⟩ = 2 ⟨ Sym ( X ) , Sym ( Y ) ⟩ Frob + x T y . (10)
where Sym ( X ) = ( X + X T ) / 2 \operatorname{Sym}(X) = (X + X^{\mathsf{T}})/2 Sym ( X ) = ( X + X T ) /2 , and the Frobenius inner product ⟨ A , B ⟩ F r o b = Tr ( A T B ) \langle A, B\rangle_{\mathrm{Frob}} = \operatorname{Tr}(A^{\mathsf{T}}B) ⟨ A , B ⟩ Frob = Tr ( A T B ) . This symmetrization exists because the unit normal distribution q 0 q_{0} q 0 is invariant under rotations, and so q g Q = q g q^{gQ} = q^{g} q g Q = q g for any orthogonal matrix Q ∈ O ( P , R ) Q \in\mathrm{O}(P,\mathbb{R}) Q ∈ O ( P , R ) . Therefore the bilinear form is degenerate in the direction of antisymmetric matrices.
The group can be represented as ( P + 1 ) × ( P + 1 ) (P + 1) \times(P + 1) ( P + 1 ) × ( P + 1 ) matrices [ A b 0 T 1 ] \begin{bmatrix} A & \mathbf{b} \\ \mathbf{0}^{\mathsf{T}} & 1 \end{bmatrix} [ A 0 T b 1 ] and then the tangent matrices at identity are of the form [ X x 0 T 0 ] \begin{bmatrix} X & \mathbf{x} \\ \mathbf{0}^{\mathsf{T}} & 0 \end{bmatrix} [ X 0 T x 0 ] . The exponential map is given as
exp ( ( X , x ) ) = ∑ n = 0 ∞ 1 n ! [ X x 0 T 0 ] n = I + ∑ n = 1 ∞ 1 n ! [ X n X n − 1 x 0 T 0 ] = ( e X , e X − I X x ) . (11) \exp((X,\mathbf{x})) = \sum_{n=0}^{\infty} \frac{1}{n!}\begin{bmatrix} X & \mathbf{x} \\ \mathbf{0}^{\mathsf{T}} & 0 \end{bmatrix}^{n} = I + \sum_{n=1}^{\infty} \frac{1}{n!}\begin{bmatrix} X^{n} & X^{n-1}\mathbf{x} \\ \mathbf{0}^{\mathsf{T}} & 0 \end{bmatrix} = \left(e^{X}, \frac{e^{X}-I}{X}\mathbf{x}\right). \tag*{(11)} exp (( X , x )) = n = 0 ∑ ∞ n ! 1 [ X 0 T x 0 ] n = I + n = 1 ∑ ∞ n ! 1 [ X n 0 T X n − 1 x 0 ] = ( e X , X e X − I x ) . (11)
Now we specialize the differential of the objective functional in Eq. (9) to the case of the Affine group and Gaussians. The adjoint map for matrix groups can be calculated by conjugation
[ A b 0 T 1 ] [ X x 0 T 0 ] [ A − 1 − A − 1 b 0 T 1 ] = [ A X A − 1 A x − A X A − 1 b 0 T 0 ] . \begin{bmatrix} A & \mathbf{b} \\ \mathbf{0}^{\mathsf{T}} & 1 \end{bmatrix}
\begin{bmatrix} X & \mathbf{x} \\ \mathbf{0}^{\mathsf{T}} & 0 \end{bmatrix}
\begin{bmatrix} A^{-1} & -A^{-1}\mathbf{b} \\ \mathbf{0}^{\mathsf{T}} & 1 \end{bmatrix}
=
\begin{bmatrix} AXA^{-1} & A\mathbf{x} - AXA^{-1}\mathbf{b} \\ \mathbf{0}^{\mathsf{T}} & 0 \end{bmatrix}. [ A 0 T b 1 ] [ X 0 T x 0 ] [ A − 1 0 T − A − 1 b 1 ] = [ A X A − 1 0 T A x − A X A − 1 b 0 ] .
and thus for a θ \boldsymbol{\theta} θ sampled from q ( A , b ) q^{(A,\mathbf{b})} q ( A , b ) , or in other words for θ = A θ 0 + b \boldsymbol{\theta} = A\boldsymbol{\theta}_{0} + \mathbf{b} θ = A θ 0 + b with θ 0 ∼ q 0 \boldsymbol{\theta}_{0} \sim q_{0} θ 0 ∼ q 0 ,
Ad ( A , b ) ( X , x ) ⋅ θ = A X A − 1 ( θ − b ) + A x = A X θ 0 + A x . \operatorname{Ad}_{(A,\mathbf{b})}(X,\mathbf{x}) \cdot\boldsymbol{\theta} = AXA^{-1}(\boldsymbol{\theta} - \mathbf{b}) + A\mathbf{x} = AX\boldsymbol{\theta}_{0} + A\mathbf{x}. Ad ( A , b ) ( X , x ) ⋅ θ = A X A − 1 ( θ − b ) + A x = A X θ 0 + A x .
Therefore the differential of E \mathcal{E} E is given by
d ( E ∘ φ ∘ L g ) ∣ ( I , 0 ) [ ( X , x ) ] = ∫ Θ ( ∇ ℓ ( A θ + b ) ) T ( A X θ + A x ) q 0 ( θ ) d ν ( θ ) − τ Tr ( X ) = 2 Tr ( Sym ( Y ) T Sym ( X ) ) + y T x \begin{aligned}
\mathrm{d}(\mathcal{E} \circ\varphi\circ L_{g})\big|_{(I,\mathbf{0})}[(X,\mathbf{x})] = \int_{\Theta}(\nabla\ell(A\boldsymbol{\theta} + \mathbf{b}))^{\mathsf{T}}(AX\boldsymbol{\theta} + A\mathbf{x})q_{0}(\boldsymbol{\theta})\mathrm{d}\nu(\boldsymbol{\theta}) - \tau\operatorname{Tr}(X) \\
&= 2\operatorname{Tr}(\operatorname{Sym}(Y)^{\mathsf{T}}\operatorname{Sym}(X)) + \mathbf{y}^{\mathsf{T}}\mathbf{x}
\end{aligned} d ( E ∘ φ ∘ L g ) ( I , 0 ) [( X , x )] = ∫ Θ ( ∇ ℓ ( A θ + b ) ) T ( A X θ + A x ) q 0 ( θ ) d ν ( θ ) − τ Tr ( X ) = 2 Tr ( Sym ( Y ) T Sym ( X )) + y T x
where
y = A T E θ ∼ q 0 [ ∇ ℓ ( A θ + b ) ] , (12) \mathbf{y} = A^{\mathsf{T}}\mathbb{E}_{\boldsymbol{\theta}\sim q_{0}}[\nabla\ell(A\boldsymbol{\theta} + \mathbf{b})], \tag*{(12)} y = A T E θ ∼ q 0 [ ∇ ℓ ( A θ + b )] , (12)
and
Y = 1 2 A T E θ ∼ q 0 [ ∇ ℓ ( A θ + b ) θ T ] − τ 2 I . (13) Y = \frac{1}{2}A^{\mathsf{T}}\mathbb{E}_{\boldsymbol{\theta}\sim q_{0}}[\nabla\ell(A\boldsymbol{\theta} + \mathbf{b})\boldsymbol{\theta}^{\mathsf{T}}] - \frac{\tau}{2}I. \tag*{(13)} Y = 2 1 A T E θ ∼ q 0 [ ∇ ℓ ( A θ + b ) θ T ] − 2 τ I . (13)
Figure 4. The update vector is automatically modified so that the mean of the distribution takes larger steps in the direction of the uncertainty of the Gaussian, and smaller steps in direction of higher precision.
The inner product in Eq. (10) on aff P \operatorname{aff}P aff P induced via Eq. (25) from the Fisher information metric on Q Q Q gives this particular ( Y , y ) = ( Y ^ , y ^ ) (Y,y) = (\hat{Y},\hat{y}) ( Y , y ) = ( Y ^ , y ^ ) as the direction that solves Eq. (8) .
In practice, we estimate the expectations using a finite number of MC-samples
Y ≈ 1 2 K ∑ k = 1 K A T ∇ ℓ ( A θ k + b ) θ k T − τ 2 I , y ≈ 1 K ∑ k = 1 K A T ∇ ℓ ( A θ k + b ) , where θ k ∼ N ( 0 , I ) Y \approx\frac{1}{2K}\sum_{k=1}^{K} A^{\mathsf{T}}\nabla\ell(A\theta_k+b)\theta_k^{\mathsf{T}}-\frac{\tau}{2}I,\qquad y \approx\frac{1}{K}\sum_{k=1}^{K} A^{\mathsf{T}}\nabla\ell(A\theta_k+b),\quad\text{where }\theta_k\sim\mathcal{N}(0,I) Y ≈ 2 K 1 k = 1 ∑ K A T ∇ ℓ ( A θ k + b ) θ k T − 2 τ I , y ≈ K 1 k = 1 ∑ K A T ∇ ℓ ( A θ k + b ) , where θ k ∼ N ( 0 , I )
and update the current group element g = ( A , b ) g=(A,b) g = ( A , b ) with these approximations as
A u p d a t e d = A e − α Y , b u p d a t e d = b − A e − α Y − I − α Y α y . A^{\mathrm{updated}}=Ae^{-\alpha Y},\qquad b^{\mathrm{updated}}=b-A\frac{e^{-\alpha Y}-I}{-\alpha Y}\alpha y. A updated = A e − α Y , b updated = b − A − α Y e − α Y − I α y .
Let us try to understand these updates intuitively. Up to a first order approximation in α \alpha α the Gaussian’s mean vector b b b is updated as
b u p d a t e d ≈ b − α A y = b − α A A T E q ( A , b ) [ ∇ ℓ ] = b − α Σ E q ( A , b ) [ ∇ ℓ ] . b^{\mathrm{updated}}\approx b-\alpha Ay=b-\alpha AA^{\mathsf{T}}\mathbb{E}_{q}^{(A,b)}[\nabla\ell]=b-\alpha\Sigma\mathbb{E}_{q}^{(A,b)}[\nabla\ell]. b updated ≈ b − α A y = b − α A A T E q ( A , b ) [ ∇ ℓ ] = b − α Σ E q ( A , b ) [ ∇ ℓ ] .
So instead of the (average) gradient the update vector is modified by Σ \Sigma Σ , which has the effect of taking longer steps in directions where there is more uncertainty, and smaller steps where the Gaussian has less uncertainty. For the A A A update, using integration by parts we rewrite
Y = 1 2 A T E q ( A , b ) [ ∇ 2 ℓ ] A − τ 2 I . Y=\frac{1}{2}A^{\mathsf{T}}\mathbb{E}_{q}^{(A,b)}[\nabla^{2}\ell]A-\frac{\tau}{2}I. Y = 2 1 A T E q ( A , b ) [ ∇ 2 ℓ ] A − 2 τ I .
This is not necessarily useful practically, as the computation of the Hessian is expensive, and instead we use the form in Eq. (13) . However for conceptual analysis this form is useful. We see that the precision matrix of the Gaussian is iteratively replaced by the expected Hessian. Indeed, the precision matrix S = Σ − 1 = A − T A − 1 S=\Sigma^{-1}=A^{-\mathsf{T}}A^{-1} S = Σ − 1 = A − T A − 1 , is updated as
S u p d a t e d = A − T e α ( Y + Y T ) A − 1 = A − T e α ( A T E q g [ ∇ 2 ℓ ] A − τ I ) A − 1 . S^{\mathrm{updated}}=A^{-\mathsf{T}}e^{\alpha(Y+Y^{\mathsf{T}})}A^{-1}=A^{-\mathsf{T}}e^{\alpha(A^{\mathsf{T}}\mathbb{E}_{q}^{g}[\nabla^{2}\ell]A-\tau I)}A^{-1}. S updated = A − T e α ( Y + Y T ) A − 1 = A − T e α ( A T E q g [ ∇ 2 ℓ ] A − τ I ) A − 1 .
The linear approximation to the exponential yields
S u p d a t e d ≈ ( 1 − α τ ) S + α E q g [ ∇ 2 ℓ ] , \mathbf{S}^{\mathrm{updated}} \approx(1-\alpha\tau)\mathbf{S}+\alpha\mathbb{E}_{q_g}[\nabla^2\ell], S updated ≈ ( 1 − α τ ) S + α E q g [ ∇ 2 ℓ ] ,
which is identical with the precision update in Khan and Rue [18 ] . An advantage of the Lie group parametrization in terms of A A A and b \mathbf{b} b over the BLR is that it does not require any matrix inversions. Since S \mathbf{S} S is related to the Hessian matrix, this enables a matrix-inverse-free second-order optimization. Such algorithms may be desirable for large-scale deep learning [23 ] , and our Lie group framework allows a natural way to derive these methods and also endow them with momentum.
We also note that, at this stage we get the second order modification to BLR’s precision matrix update—developed by Lin et al. [22 ] —for free by expanding the exponential to the second order. Indeed (using the shorthand E : = E q g [ ∇ 2 ℓ ] \mathbf{E}:=\mathbb{E}_{q_g}[\nabla^2\ell] E := E q g [ ∇ 2 ℓ ] ) we see
S u p d a t e d = A − T e α ( Y + Y T ) A − 1 = A − T e α ( A T E A − τ I ) A − 1 ≈ A − T ( I + α ( A T E A − τ I ) + α 2 2 ( A T E Σ E A − 2 τ A T E A + τ 2 I ) ) A − 1 = ( 1 − α τ ) S + α E + α 2 2 ( E Σ E − 2 τ E + τ 2 S ) \begin{aligned}
\mathbf{S}^{\mathrm{updated}}=\mathbf{A}^{-\mathsf{T}}e^{\alpha(\mathbf{Y}+\mathbf{Y}^{\mathsf{T}})}\mathbf{A}^{-1}=\mathbf{A}^{-\mathsf{T}}e^{\alpha(\mathbf{A}^{\mathsf{T}}\mathbf{E}\mathbf{A}-\tau\mathbf{I})}\mathbf{A}^{-1} \\
&\approx\mathbf{A}^{-\mathsf{T}}\left(\mathbf{I}+\alpha(\mathbf{A}^{\mathsf{T}}\mathbf{E}\mathbf{A}-\tau\mathbf{I})+\frac{\alpha^2}{2}\left(\mathbf{A}^{\mathsf{T}}\mathbf{E}\mathbf{\Sigma}\mathbf{E}\mathbf{A}-2\tau\mathbf{A}^{\mathsf{T}}\mathbf{E}\mathbf{A}+\tau^2\mathbf{I}\right)\right)\mathbf{A}^{-1} \\
&=(1-\alpha\tau)\mathbf{S}+\alpha\mathbf{E}+\frac{\alpha^2}{2}\left(\mathbf{E}\mathbf{\Sigma}\mathbf{E}-2\tau\mathbf{E}+\tau^2\mathbf{S}\right)
\end{aligned} S updated = A − T e α ( Y + Y T ) A − 1 = A − T e α ( A T EA − τ I ) A − 1 ≈ A − T ( I + α ( A T EA − τ I ) + 2 α 2 ( A T EΣEA − 2 τ A T EA + τ 2 I ) ) A − 1 = ( 1 − α τ ) S + α E + 2 α 2 ( EΣE − 2 τ E + τ 2 S )
which is identical (with τ = 1 \tau=1 τ = 1 ) to the precision update S ← ( 1 − α ) S + α E + α 2 2 G ^ Σ G ^ \mathbf{S}\leftarrow(1-\alpha)\mathbf{S}+\alpha\mathbf{E}+\frac{\alpha^2}{2}\widehat{\mathbf{G}}\mathbf{\Sigma}\widehat{\mathbf{G}} S ← ( 1 − α ) S + α E + 2 α 2 G Σ G proposed in the citation above, where G ^ = S − E \widehat{\mathbf{G}}=\mathbf{S}-\mathbf{E} G = S − E . The authors proposed this modification in order to preserve the positive definiteness constraint of the precision (equivalently the covariance) matrices throughout the optimization. The positivity follows since the second order truncation of the exponential is always positive definite, ensuring that the updates remain in Ω \Omega Ω , which is not guaranteed by the linear approximation.
In the following sections, we will show that we recover the BLR in general, that is, that when we use the linear approximation for the exponential used in LG-BLR for candidate posterior families Q \mathcal{Q} Q which are also open exponential families, then we get the BLR update. Our previous work Kıral et al. [20 ] only proves this in particular cases, such as the Rayleigh and diagonal Gaussian family.
Lie Group Structure of Exponential Families
In § 3.4 above we saw that the Gaussians conform to the Lie group setup. They are also an exponential family of distributions. In general, the pushforward of a distribution q λ q_\lambda q λ from an exponential family does not always correspond to another member q λ ′ q_{\lambda'} q λ ′ for some other natural parameter λ ′ \lambda' λ ′ . In harmonic exponential families —which we define below—we can always find such a λ ′ \lambda' λ ′ explicitly. We are interested in open exponential families that have a transitive Lie group action given by pushforwards as above, that is, when the BLR and the LG-BLR settings coincide. The work of Tojo and Yoshino [32 ] allows us to characterize all such exponential families using harmonic exponential families. For the precise statement see Theorem 4. Using this concrete characterization we can express the Lie group updates in terms of updates in the natural parameters λ \lambda λ , with which we prove the connection between LG-BLR and BLR.
Harmonic Exponential Families
Setup 1 (Transitive group action on parameter manifold). Assume Θ \Theta Θ is the measurable parameter manifold with a choice of a nonzero base measure ν \nu ν . Assume a Lie group G G G acts transitively on Θ \Theta Θ , and ν \nu ν is relatively invariant with respect to this action with multiplier χ : G → R > 0 \chi:G\to\mathbb{R}_{>0} χ : G → R > 0 . Because G G G acts transitively, given any θ 0 ∈ Θ \theta_0\in\Theta θ 0 ∈ Θ we can identify Θ ≅ G / H \Theta\cong G/H Θ ≅ G / H as spaces with a G G G -action, where H = Stab G ( θ 0 ) H=\operatorname{Stab}_{G}(\theta_0) H = Stab G ( θ 0 ) .
The last sentence of the setup says that we can associate any point θ ∈ Θ \theta\in\Theta θ ∈ Θ with a group element g ∈ G g\in G g ∈ G that satisfies θ = g ⋅ θ 0 \theta=g\cdot\theta_0 θ = g ⋅ θ 0 . The associated group element can be replaced with any other coset representative g h ∈ g H ∈ G / H gh\in gH\in G/H g h ∈ g H ∈ G / H .
What allows ( q λ ) g (q_\lambda)^g ( q λ ) g to be another q λ ′ q_{\lambda'} q λ ′ is a certain intertwining property of the sufficient statistic T : Θ → V \mathbf{T}:\Theta\to V T : Θ → V with respect to the action of g g g . On the target V V V , group elements act on vector spaces by representations π : G → GL ( V ) \pi:G\to\operatorname{GL}(V) π : G → GL ( V ) . So we seek a special kind of sufficient statistic such that T ( g ⋅ θ ) \mathbf{T}(g\cdot\theta) T ( g ⋅ θ ) can be related to π ( g ) T ( θ ) \pi(g)\mathbf{T}(\theta) π ( g ) T ( θ ) .
The harmonic exponential family construction yields this kind of an intertwining map. Start with a group representation π \pi π , meaning π ( g ) \pi(g) π ( g ) are linear transformations on V V V , i.e. matrices. Let α : G → V \alpha:G\to V α : G → V be a 1-cocycle of π \pi π , meaning that
α ( g h ) = π ( g ) α ( h ) + α ( g ) (14) \alpha(gh)=\pi(g)\alpha(h)+\alpha(g) \tag*{(14)} α ( g h ) = π ( g ) α ( h ) + α ( g ) (14) for all g , h ∈ G g,h\in G g , h ∈ G . Furthermore, if we assume α ∣ H ≡ 0 \alpha|_{H}\equiv0 α ∣ H ≡ 0 then α \alpha α induces a map T : Θ → V \mathbf{T}:\Theta\to V T : Θ → V , which also satisfies T ( g ⋅ θ ) = π ( g ) T ( θ ) + const \mathbf{T}(g\cdot\theta)=\pi(g)\mathbf{T}(\theta)+\operatorname{const} T ( g ⋅ θ ) = π ( g ) T ( θ ) + const (with the constant being precisely α ( g ) \alpha(g) α ( g ) ). With such a sufficient statistic T \mathbf{T} T , elements of the exponential family q λ ∈ EF ( T ) q_\lambda\in\operatorname{EF}(\mathbf{T}) q λ ∈ EF ( T ) satisfy
q λ ( g − 1 ⋅ θ ) ∝ exp ( − ⟨ λ , T ( g − 1 ⋅ θ ) ⟩ ) ∝ exp ( − ⟨ λ , π ( g ) − 1 T ( θ ) ⟩ ) = exp ( − ⟨ π ∗ ( g ) λ , T ( θ ) ⟩ ) ∝ q π ∗ ( g ) λ ( θ ) . (15) \begin{aligned}
q_\lambda(g^{-1}\cdot\theta)&\propto\exp\left(-\langle\lambda,\mathbf{T}(g^{-1}\cdot\theta)\rangle\right)\\
&\propto\exp\left(-\langle\lambda,\pi(g)^{-1}\mathbf{T}(\theta)\rangle\right)\\
&=\exp\left(-\langle\pi^*(g)\lambda,\mathbf{T}(\theta)\rangle\right)\propto q_{\pi^*(g)\lambda}(\theta). \tag*{(15)}
\end{aligned} q λ ( g − 1 ⋅ θ ) ∝ exp ( − ⟨ λ , T ( g − 1 ⋅ θ )⟩ ) ∝ exp ( − ⟨ λ , π ( g ) − 1 T ( θ )⟩ ) = exp ( − ⟨ π ∗ ( g ) λ , T ( θ )⟩ ) ∝ q π ∗ ( g ) λ ( θ ) . (15) Here π ∗ : G → GL ( V ∗ ) \pi^*:G\to\operatorname{GL}(V^*) π ∗ : G → GL ( V ∗ ) is the dual representation defined via ⟨ π ∗ ( g ) λ , v ⟩ = ⟨ λ , π ( g ) − 1 v ⟩ \langle\pi^*(g)\lambda,v\rangle=\langle\lambda,\pi(g)^{-1}v\rangle ⟨ π ∗ ( g ) λ , v ⟩ = ⟨ λ , π ( g ) − 1 v ⟩ . This makes the exponential family closed under the pushforward action. And the new natural parameter is given explicitly by the multiplication of the matrix π ∗ ( g ) \pi^*(g) π ∗ ( g ) with the old natural parameter vector λ \lambda λ . We collect the notation in the setup below.
Setup 2 (Group representation and cocycles). Let G G G be a connected Lie group and H H H a closed subgroup, V V V a finite dimensional real vector space, and π : G → GL ( V ) \pi:G\to\operatorname{GL}(V) π : G → GL ( V ) a group representation. Let α \alpha α be a 1-cocycle of π \pi π (i.e. satisfying (14) vanishing on H H H . Using the notation from Setup 1, α : G → V \alpha:G\to V α : G → V induces a map T : Θ → V \mathbf{T}:\Theta\to V T : Θ → V using the identification of Θ ≅ G / H \Theta\cong G/H Θ ≅ G / H as above.
We denote by W 0 = W 0 ( G , H ) W_0=W_0(G,H) W 0 = W 0 ( G , H ) the continuous group homomorphisms ψ : G → R \psi:G\to\mathbb{R} ψ : G → R that vanish on H H H , that is ψ ( g 1 g 2 ) = ψ ( g 1 ) + ψ ( g 2 ) \psi(g_1g_2)=\psi(g_1)+\psi(g_2) ψ ( g 1 g 2 ) = ψ ( g 1 ) + ψ ( g 2 ) and ψ ( h ) = 0 \psi(h)=0 ψ ( h ) = 0 for all h ∈ H h\in H h ∈ H . These morphisms form a vector space. Furthermore they can be considered as real valued functions on Θ \Theta Θ , satisfying ψ ( g θ ) = ψ ( g ) + ψ ( θ ) \psi(g\theta)=\psi(g)+\psi(\theta) ψ ( g θ ) = ψ ( g ) + ψ ( θ ) .
Definition 3. Assume the setup and the notation from setups 1 and 2. A harmonic exponential family on Θ \Theta Θ is a family of distributions of the form
q η ( θ ) ∝ exp ( − ⟨ λ , T ( θ ) ⟩ − ψ ( θ ) ) (16) q_\eta(\theta)\propto\exp\left(-\langle\lambda,\mathbf{T}(\theta)\rangle-\psi(\theta)\right) \tag*{(16)} q η ( θ ) ∝ exp ( − ⟨ λ , T ( θ )⟩ − ψ ( θ ) ) (16) parametrized by η = ( λ , ψ ) ∈ V ∗ ⊕ W 0 \eta=(\lambda,\psi)\in V^*\oplus W_0 η = ( λ , ψ ) ∈ V ∗ ⊕ W 0 .
The normalizable distributions among Eq. (16) have parameters η = ( λ , ψ ) \boldsymbol{\eta}=(\lambda,\psi) η = ( λ , ψ ) satisfying λ ∈ Ω e − ψ ν , T ⊆ V ∗ \lambda\in\Omega_{e^{-\psi}\nu,T}\subseteq V^* λ ∈ Ω e − ψ ν , T ⊆ V ∗ . Under the group pushforward action ψ \psi ψ stays fixed; if q η ′ = ( q η ) g q_{\eta'}=(q_\eta)^g q η ′ = ( q η ) g then η ′ = ( π ∗ ( g ) λ , ψ ) \eta'=(\pi^*(g)\lambda,\psi) η ′ = ( π ∗ ( g ) λ , ψ ) . We will consider exponential families which are transitive under the group action (so that the LG-BLR updates can reach every member of the family). Thus, the homomorphism component of the parameter is fixed in our posterior candidates, and we simply write q λ q_\lambda q λ in place of q η q_\eta q η , dropping ψ \psi ψ from the notation. Note also that, if desired, the homomorphisms ψ : G → R \psi:G\to\mathbb{R} ψ : G → R can be subsumed in the base measure, i.e. ν ′ = e − ψ ν \nu'=e^{-\psi}\nu ν ′ = e − ψ ν . And ν ′ \nu' ν ′ is still a relatively invariant measure with respect to the action of G G G , with multiplier χ ′ = e − ψ χ \chi'=e^{-\psi}\chi χ ′ = e − ψ χ . Thus by only a change of base measure we assume from now on that ψ ≡ 0 \psi\equiv0 ψ ≡ 0 .
Some Examples of Harmonic Exponential Families
For concreteness, we note how some well known exponential families are indeed realized as harmonic exponential families. The reader may skip these examples on a first reading.
Example 2 (Gamma Distributions) Gamma distributions are of the form
f α , λ ( x ) d x ∝ x α − 1 e − λ x d x = exp ( − λ x + α log ( x ) ) d x x f_{\alpha,\lambda}(x)dx\propto x^{\alpha-1}e^{-\lambda x}dx=\exp(-\lambda x+\alpha\log(x))\frac{dx}{x} f α , λ ( x ) d x ∝ x α − 1 e − λ x d x = exp ( − λ x + α log ( x )) x d x
which is in the form of a harmonic exponential family with the invariant base measure d ν ( x ) = d x / x d\nu(x)=dx/x d ν ( x ) = d x / x , the homomorphism ψ ( x ) = − α log ( x ) \psi(x)=-\alpha\log(x) ψ ( x ) = − α log ( x ) , and sufficient statistic T ( x ) = x T(x)=x T ( x ) = x . Here the group is G = R > 0 G=\mathbb{R}_{>0} G = R > 0 under multiplication and H = { 1 } H=\{1\} H = { 1 } is the trivial subgroup. The representation is one dimensional with π ( g ) = g \pi(g)=g π ( g ) = g , and the relevant 1-cocycle we use is α ( g ) = g − 1 \alpha(g)=g-1 α ( g ) = g − 1 . It satisfies α ( g h ) = g h − 1 = g ( h − 1 ) + ( g − 1 ) = π ( g ) α ( h ) + α ( g ) \alpha(gh)=gh-1=g(h-1)+(g-1)=\pi(g)\alpha(h)+\alpha(g) α ( g h ) = g h − 1 = g ( h − 1 ) + ( g − 1 ) = π ( g ) α ( h ) + α ( g ) .
Note that the group action fixes the shape parameter α \alpha α , i.e. ( f α , λ ) g ( x ) = 1 g f α , λ ( x g ) = f α , λ / g ( x ) (f_{\alpha,\lambda})^g(x)=\frac{1}{g}f_{\alpha,\lambda}\left(\frac{x}{g}\right)=f_{\alpha,\lambda/g}(x) ( f α , λ ) g ( x ) = g 1 f α , λ ( g x ) = f α , λ / g ( x ) . This amounts to the group action fixing the ψ ∈ W 0 \psi\in W_0 ψ ∈ W 0 component of the harmonic exponential family parametrization.
Example 3 (Rayleigh Distribution) Let G = R > 0 G=\mathbb{R}_{>0} G = R > 0 , H = { 1 } H=\{1\} H = { 1 } so that Θ ≅ G / H ≅ R > 0 \Theta\cong G/H\cong\mathbb{R}_{>0} Θ ≅ G / H ≅ R > 0 as well. Consider the 1 dimensional representation π ( g ) = g 2 \pi(g)=g^2 π ( g ) = g 2 . The 1-cocycle α ( g ) = ( g 2 − 1 ) / 2 \alpha(g)=(g^2-1)/2 α ( g ) = ( g 2 − 1 ) /2 associated to π \pi π vanishes on H H H . The measure ν = x d x \nu=xdx ν = x d x is relatively invariant with multiplier χ ( g ) = g 2 \chi(g)=g^2 χ ( g ) = g 2 . (Alternatively we could have fixed the homomorphism ψ ( x ) = − log x \psi(x)=-\log x ψ ( x ) = − log x and chosen ν = d x \nu=dx ν = d x .) With these choices, the resulting harmonic exponential family is
q λ ( x ) d ν ( x ) = λ x e − λ x 2 2 d x . q_\lambda(x)d\nu(x)=\lambda x e^{-\lambda\frac{x^2}{2}}dx. q λ ( x ) d ν ( x ) = λ x e − λ 2 x 2 d x .
The normalizable set of natural parameters are Ω ν , α = { λ ∈ R : λ > 0 } \Omega_{\nu,\alpha}=\{\lambda\in\mathbb{R}:\lambda>0\} Ω ν , α = { λ ∈ R : λ > 0 } . The family is closed under the pushforward action by g g g , as
g ♯ ( q λ d ν ) = 1 χ ( g ) q λ ( g − 1 x ) d ν ( x ) = x g 2 λ e − λ x 2 / 2 g 2 d x = q λ / g 2 ( x ) d ν = q π ∗ ( g ) λ ( x ) d ν . g_{\sharp}(q_\lambda d\nu)=\frac{1}{\chi(g)}q_\lambda(g^{-1}x)d\nu(x)=\frac{x}{g^2}\lambda e^{-\lambda x^2/2g^2}dx=q_{\lambda/g^2}(x)d\nu=q_{\pi^*(g)\lambda}(x)d\nu. g ♯ ( q λ d ν ) = χ ( g ) 1 q λ ( g − 1 x ) d ν ( x ) = g 2 x λ e − λ x 2 /2 g 2 d x = q λ / g 2 ( x ) d ν = q π ∗ ( g ) λ ( x ) d ν .
Here the dual action on V ∗ ≅ R V^*\cong\mathbb{R} V ∗ ≅ R is given by the 1 × 1 1\times1 1 × 1 matrix π ∗ ( g ) = π ( g − 1 ) T = 1 / g 2 \pi^*(g)=\pi(g^{-1})^{\mathsf{T}}=1/g^2 π ∗ ( g ) = π ( g − 1 ) T = 1/ g 2 .
Example 4 (Poincaré distribution) The following family is called the family of Poincaré distributions on the upper half plane H = { z = x + i y ∣ x , y ∈ R , y > 0 } \mathbb{H}=\{z=x+iy\mid x,y\in\mathbb{R},y>0\} H = { z = x + i y ∣ x , y ∈ R , y > 0 } .
{ D e 2 D π exp ( − a ( x 2 + y 2 ) + 2 b x + c y ) d x d y y 2 } [ a b b c ] ∈ Sym + ( 2 , R ) (17) \left\{\frac{D e^{2D}}{\pi}\exp\left(-\frac{a(x^2+y^2)+2bx+c}{y}\right)\frac{dxdy}{y^2}\right\}_{\left[\begin{smallmatrix}a&b\\b&c\end{smallmatrix}\right]\in\operatorname{Sym}_+(2,\mathbb{R})} \tag*{(17)} { π D e 2 D exp ( − y a ( x 2 + y 2 ) + 2 b x + c ) y 2 d x d y } [ a b b c ] ∈ Sym + ( 2 , R ) (17)
where D = det [ a b b c ] = a c − b 2 D = \sqrt{\det\begin{bmatrix} a & b \\ b & c \end{bmatrix}} = \sqrt{ac-b^2} D = det [ a b b c ] = a c − b 2 and Sym + ( 2 , R ) \operatorname{Sym}^{+}(2,\mathbb{R}) Sym + ( 2 , R ) denotes the set of positive definite symmetric matrices of size 2. This family is a harmonic exponential family on H \mathcal{H} H . Let G = SL 2 ( R ) G = \operatorname{SL}_{2}(\mathbb{R}) G = SL 2 ( R ) and H = SO 2 ( R ) H = \operatorname{SO}_{2}(\mathbb{R}) H = SO 2 ( R ) . The Lie group G G G acts transitively on the upper half plane H : = { z = x + i y ∣ x , y ∈ R , y > 0 } \mathcal{H} := \{z = x + iy \mid x,y \in\mathbb{R}, y > 0\} H := { z = x + i y ∣ x , y ∈ R , y > 0 } by linear fractional transformation. Then we have Stab G ( i ) = H \operatorname{Stab}_{G}(i) = H Stab G ( i ) = H . Therefore we can identify SL 2 ( R ) / SO 2 ( R ) \operatorname{SL}_{2}(\mathbb{R})/\operatorname{SO}_{2}(\mathbb{R}) SL 2 ( R ) / SO 2 ( R ) with H \mathcal{H} H via the following G G G -equivariant map:
H → SL 2 ( R ) / SO 2 ( R ) , z = x + i y ↦ [ y x y 0 1 y ] \mathcal{H} \to\operatorname{SL}_{2}(\mathbb{R})/\operatorname{SO}_{2}(\mathbb{R}),
\qquad
z = x + iy \mapsto\begin{bmatrix} \sqrt{y} & \frac{x}{\sqrt{y}} \\ 0 & \frac{1}{\sqrt{y}} \end{bmatrix} H → SL 2 ( R ) / SO 2 ( R ) , z = x + i y ↦ [ y 0 y x y 1 ]
Let π : G → GL ( Sym ( 2 , R ) ) \pi: G \to\operatorname{GL}(\operatorname{Sym}(2,\mathbb{R})) π : G → GL ( Sym ( 2 , R )) (so V = Sym ( 2 , R ) V = \operatorname{Sym}(2,\mathbb{R}) V = Sym ( 2 , R ) is the three dimensional vector space of matrices) be the representation defined by π ( g ) S = g S g T \pi(g)S = gSg^{T} π ( g ) S = g S g T for S ∈ Sym ( 2 , R ) S \in\operatorname{Sym}(2,\mathbb{R}) S ∈ Sym ( 2 , R ) , and α : G → Sym ( 2 , R ) \alpha: G \to\operatorname{Sym}(2,\mathbb{R}) α : G → Sym ( 2 , R ) the 1 1 1 -cocycle given by α ( g ) : = π ( g ) I 2 − I 2 \alpha(g) := \pi(g)I_{2} - I_{2} α ( g ) := π ( g ) I 2 − I 2 , which satisfies α ∣ H = 0 \alpha|_{H} = 0 α ∣ H = 0 . We take an invariant measure d x d y y 2 \frac{dxdy}{y^{2}} y 2 d x d y with respect to the SL 2 ( R ) \operatorname{SL}_{2}(\mathbb{R}) SL 2 ( R ) -action, and ψ ≡ 0 \psi\equiv0 ψ ≡ 0 (The homomorphism from SL 2 ( R ) \operatorname{SL}_{2}(\mathbb{R}) SL 2 ( R ) to R \mathbb{R} R must be zero). In this case V ∗ V^{*} V ∗ can also be identified with V V V and normalizability gives us positive definite symmetric matrices as Sym + ( 2 , R ) = Ω ⊂ V ∗ \operatorname{Sym}^{+}(2,\mathbb{R}) = \Omega\subset V^{*} Sym + ( 2 , R ) = Ω ⊂ V ∗ .
The resulting harmonic exponential family is the family of Poincaré distributions. By the change of variable,
Sym + ( 2 , R ) ≃ R > 0 × H , \operatorname{Sym}^{+}(2,\mathbb{R}) \simeq\mathbb{R}_{>0} \times\mathcal{H}, Sym + ( 2 , R ) ≃ R > 0 × H ,
[ a b b c ] ↦ ( ρ , ξ + i η ) : = ( a c − b 2 , − b a + i a c − b 2 a ) \begin{bmatrix} a & b \\ b & c \end{bmatrix} \mapsto(\rho,\xi+i\eta) := \left(\sqrt{ac-b^{2}},-\frac{b}{a}+i\frac{\sqrt{ac-b^{2}}}{a}\right) [ a b b c ] ↦ ( ρ , ξ + i η ) := ( a c − b 2 , − a b + i a a c − b 2 )
the Poincaré distribution can be written as the following “normal-like” form
ρ π exp ( − ρ η ∣ z − w ∣ 2 ) d x d y y 2 , \frac{\rho}{\pi}\exp\left(-\frac{\rho}{\eta}|z-w|^{2}\right)\frac{dxdy}{y^{2}}, π ρ exp ( − η ρ ∣ z − w ∣ 2 ) y 2 d x d y ,
where ρ ∈ R > 0 \rho\in\mathbb{R}_{>0} ρ ∈ R > 0 , w = ξ + i η ∈ H w = \xi+ i\eta\in\mathcal{H} w = ξ + i η ∈ H . See Nielsen and Okamura [29 ] , Tojo and Yoshino [34 ] for more information.
Example 5. Multivariate Gaussian distributions form a harmonic exponential family. In this case G = Aff n + ( R ) G = \operatorname{Aff}^{+}_{n}(\mathbb{R}) G = Aff n + ( R ) , realized as square matrices of size ( n + 1 ) (n+1) ( n + 1 ) of the form g = [ A b 0 T 1 ] g = \begin{bmatrix} A & b \\ 0^{\mathsf{T}} & 1 \end{bmatrix} g = [ A 0 T b 1 ] , for A ∈ GL n ( R ) A \in\operatorname{GL}_{n}(\mathbb{R}) A ∈ GL n ( R ) with positive determinant and b ∈ R n b \in\mathbb{R}^{n} b ∈ R n . The subgroup H ≃ GL n + ( R ) H \simeq\operatorname{GL}^{+}_{n}(\mathbb{R}) H ≃ GL n + ( R ) is embedded as { [ A 0 0 T 1 ] : A ∈ GL n + ( R ) } \left\{\begin{bmatrix} A & 0 \\ 0^{\mathsf{T}} & 1 \end{bmatrix} : A \in\operatorname{GL}^{+}_{n}(\mathbb{R})\right\} { [ A 0 T 0 1 ] : A ∈ GL n + ( R ) } . The sample space is Θ : = G / H ≃ R n \Theta:= G/H \simeq\mathbb{R}^{n} Θ := G / H ≃ R n , where from the quotient we can pick representatives with A = I A = I A = I and identify any b ∈ R n b \in\mathbb{R}^{n} b ∈ R n with { [ I b 0 T 1 ] : b ∈ R n } \left\{\begin{bmatrix} I & b \\ 0^{\mathsf{T}} & 1 \end{bmatrix} : b \in\mathbb{R}^{n}\right\} { [ I 0 T b 1 ] : b ∈ R n } , and vice versa. Set ψ ≡ 0 \psi\equiv0 ψ ≡ 0 .
The action of g ∈ G g \in G g ∈ G on θ ∈ R n \theta\in\mathbb{R}^{n} θ ∈ R n is g ⋅ θ = A θ + b g \cdot\theta= A\theta+b g ⋅ θ = A θ + b , which can also be realized as the matrix multiplication by viewing θ ∈ R n \theta\in\mathbb{R}^{n} θ ∈ R n as an element of G / H G/H G / H .
Let V = Sym ( n + 1 , R ) V = \operatorname{Sym}(n+1,\mathbb{R}) V = Sym ( n + 1 , R ) , the vector space of ( n + 1 ) (n+1) ( n + 1 ) -dimensional symmetric matrices. The (standard) Frobenius inner product on V V V is ⟨ A , B ⟩ F r o b = Tr ( A T B ) = Tr ( A B ) \langle A,B\rangle_{\mathrm{Frob}} = \operatorname{Tr}(A^{\mathsf{T}}B) = \operatorname{Tr}(AB) ⟨ A , B ⟩ Frob = Tr ( A T B ) = Tr ( A B ) . This is the same as the Euclidean inner product on the coordinates of the matrices, when flattened. Under this inner product the dual space can be given by the same symmetric matrix space
V ∗ ≃ Sym ( n + 1 , R ) = { [ Λ λ λ T c ] : c ∈ R , λ ∈ R n , Λ ∈ Sym ( n , R ) } . V^{*} \simeq\operatorname{Sym}(n+1,\mathbb{R}) = \left\{\begin{bmatrix} \Lambda& \lambda\\ \lambda^{\mathsf{T}} & c \end{bmatrix} : c \in\mathbb{R},\lambda\in\mathbb{R}^{n},\Lambda\in\operatorname{Sym}(n,\mathbb{R})\right\}. V ∗ ≃ Sym ( n + 1 , R ) = { [ Λ λ T λ c ] : c ∈ R , λ ∈ R n , Λ ∈ Sym ( n , R ) } .
G G G acts on V V V by transpose conjugation, i.e. for symmetric matrices S ∈ V S \in V S ∈ V we have the representation π ( g ) S = g S g T \pi(g)S = gSg^{\mathsf{T}} π ( g ) S = g S g T of Aff + ( R ) \operatorname{Aff}_{+}(\mathbb{R}) Aff + ( R ) . The dual representation on V ∗ V^{*} V ∗ is given by π ∗ ( g ) S = g − T S g − 1 \pi^{*}(g)S = g^{-\mathsf{T}}Sg^{-1} π ∗ ( g ) S = g − T S g − 1 for S S S now viewed as an element of V ∗ V^{*} V ∗ .
A 1-cocycle for this representation is α ( g ) : = ( g e ) ( g e ) T − e e T \alpha(g) := (ge)(ge)^{\mathsf{T}} - ee^{\mathsf{T}} α ( g ) := ( g e ) ( g e ) T − e e T for e e e equal to the ( n + 1 ) (n+1) ( n + 1 ) th standard basis vector, i.e. e = e n + 1 = ( 0 1 ) e = e_{n+1} = \begin{pmatrix} 0 \\ 1 \end{pmatrix} e = e n + 1 = ( 0 1 ) . We encourage the reader to check the cocycle condition α ( g ⋅ θ ) = π ( g ) α ( θ ) + α ( g ) \alpha(g \cdot\theta) = \pi(g)\alpha(\theta) + \alpha(g) α ( g ⋅ θ ) = π ( g ) α ( θ ) + α ( g ) as well as that α \alpha α vanishes on H H H . The sufficient statistic coming from this 1-cocycle is therefore
T α ( θ ) = ( θ θ T θ θ T 0 ) = ( θ 1 ) ( θ T 1 ) − ( 0 0 0 1 ) . T_{\alpha}(\theta) =
\begin{pmatrix}
\theta\theta^{\mathsf{T}} & \theta\\
\theta^{\mathsf{T}} & 0
\end{pmatrix}
=
\begin{pmatrix}
\theta\\
1
\end{pmatrix}
(\theta^{\mathsf{T}}\ \ 1)
-
\begin{pmatrix}
0 & 0 \\
0 & 1
\end{pmatrix}. T α ( θ ) = ( θ θ T θ T θ 0 ) = ( θ 1 ) ( θ T 1 ) − ( 0 0 0 1 ) .
The distributions in the harmonic exponential family generated from this data are
q ( Λ λ λ T c ) ( θ ) ∝ exp ( − ⟨ ( Λ λ λ T c ) , ( θ θ T θ θ T 0 ) ⟩ F r o b ) = exp ( − θ T Λ θ − 2 λ T θ ) . q_{\left(\begin{smallmatrix}\Lambda& \lambda\\ \lambda^{\mathsf{T}} & c\end{smallmatrix}\right)}(\theta) \propto\exp\left(-\left\langle
\begin{pmatrix}
\Lambda& \lambda\\
\lambda^{\mathsf{T}} & c
\end{pmatrix},
\begin{pmatrix}
\theta\theta^{\mathsf{T}} & \theta\\
\theta^{\mathsf{T}} & 0
\end{pmatrix}
\right\rangle_{\mathrm{Frob}}\right)
= \exp\left(-\theta^{\mathsf{T}}\Lambda\theta- 2\lambda^{\mathsf{T}}\theta\right). q ( Λ λ T λ c ) ( θ ) ∝ exp ( − ⟨ ( Λ λ T λ c ) , ( θ θ T θ T θ 0 ) ⟩ Frob ) = exp ( − θ T Λ θ − 2 λ T θ ) .
On the second equality we used the cyclic property of trace. The right hand side is normalizable if and only if Λ \Lambda Λ is positive definite (defining Ω d θ , T \Omega_{\mathrm{d}\theta,T} Ω d θ , T ). Furthermore this is precisely the multivariate Gaussian distribution N ( θ ∣ m , Σ ) \mathcal{N}(\theta\mid m,\Sigma) N ( θ ∣ m , Σ ) with Σ = 1 2 Λ − 1 \Sigma= \frac{1}{2}\Lambda^{-1} Σ = 2 1 Λ − 1 and m = − Λ − 1 λ m = -\Lambda^{-1}\lambda m = − Λ − 1 λ .
Note that c c c does not appear on the right hand side, so we do not have a minimal representation, this can be fixed by considering the subspace of V V V with lower right corner equal to 0. This subspace is preserved by π ( g ) \pi(g) π ( g ) with g ∈ Aff + ( R ) g \in\operatorname{Aff}_{+}(\mathbb{R}) g ∈ Aff + ( R ) .
The dual representation π ∗ ( g ) \pi^{*}(g) π ∗ ( g ) can also be explicitly calculated by matrix multiplication
π ∗ ( g ) ( Λ λ λ T 0 ) = g − T ( Λ λ λ T 0 ) g − 1 = ( A − T Λ A − 1 − A − T Λ A − 1 b + A − T λ − b T A − T Λ A − 1 + λ T A − 1 ) . \pi^{*}(g)
\begin{pmatrix}
\Lambda& \lambda\\
\lambda^{\mathsf{T}} & 0
\end{pmatrix}
=
g^{-\mathsf{T}}
\begin{pmatrix}
\Lambda& \lambda\\
\lambda^{\mathsf{T}} & 0
\end{pmatrix}
g^{-1}
=
\begin{pmatrix}
A^{-\mathsf{T}}\Lambda A^{-1} &
-A^{-\mathsf{T}}\Lambda A^{-1}b + A^{-\mathsf{T}}\lambda\\
-b^{\mathsf{T}}A^{-\mathsf{T}}\Lambda A^{-1} + \lambda^{\mathsf{T}}A^{-1} &
\end{pmatrix}. π ∗ ( g ) ( Λ λ T λ 0 ) = g − T ( Λ λ T λ 0 ) g − 1 = ( A − T Λ A − 1 − b T A − T Λ A − 1 + λ T A − 1 − A − T Λ A − 1 b + A − T λ ) .
where we do not need to keep track of the lower right entry. This is the action on the natural parameters, downstream of the affine action θ ↦ A θ + b \theta\mapsto A\theta+ b θ ↦ A θ + b on the parameters. Particularly
Λ n e w = A − T Λ A − 1 and λ n e w = − Λ n e w b + A − T λ . \Lambda^{\mathrm{new}} = A^{-\mathsf{T}}\Lambda A^{-1}
\qquad\text{and}\qquad
\lambda^{\mathrm{new}} = -\Lambda^{\mathrm{new}}b + A^{-\mathsf{T}}\lambda. Λ new = A − T Λ A − 1 and λ new = − Λ new b + A − T λ .
from which we can write in the new Gaussian’s mean-covariance coordinates Σ n e w = A Σ A T \Sigma^{\mathrm{new}} = A\Sigma A^{\mathsf{T}} Σ new = A Σ A T and m n e w = A m + b m^{\mathrm{new}} = Am+b m new = A m + b . This sanity check confirms the mapping of natural parameters.
Characterizing Exponential Families Closed under a Group Action
The work of Tojo and Yoshino [32 ] characterizes the exponential families closed under the pushforward action of a Lie group as harmonic exponential families.
Theorem 4 (Tojo & Yoshino). Assume Setup 1 and its notation. Also assume that Q Q Q is an exponential family on Θ \Theta Θ which is closed under the pushforward action of G G G , and the action is transitive on Q Q Q . Then Q Q Q is a harmonic exponential family. In other words, if the harmonic exponential family is constructed from π , α \pi,\alpha π , α in the notation of Setup 2, then Q = { q λ e − ψ : λ ∈ Ω ( Q ) } Q = \{q_{\lambda}e^{-\psi} : \lambda\in\Omega(Q)\} Q = { q λ e − ψ : λ ∈ Ω ( Q )} where
Ω ( Q ) = { π ∗ ( g ) λ 0 : g ∈ G } ⊆ Ω (18) \Omega(Q) = \{\pi^{*}(g)\lambda_{0} : g \in G\} \subseteq\Omega \tag*{(18)} Ω ( Q ) = { π ∗ ( g ) λ 0 : g ∈ G } ⊆ Ω (18) for some λ 0 ∈ Ω = Ω ν e − ψ , T \lambda_{0} \in\Omega= \Omega_{\nu e^{-\psi},T} λ 0 ∈ Ω = Ω ν e − ψ , T , and ψ ∈ W 0 \psi\in W_{0} ψ ∈ W 0 . Here T T T is obtained by factoring α : G → V \alpha: G \to V α : G → V through the canonical projection G ↠ G / H ≅ Θ G \twoheadrightarrow G/H \cong\Theta G ↠ G / H ≅ Θ . The homomorphism ψ : G → R \psi: G \to\mathbb{R} ψ : G → R is fixed throughout and can be subsumed in the base measure ν \nu ν if desired.
Therefore we can concretely write the distributions in the intersection of the BLR setting of Khan and Rue [18 ] and the LG-BLR setting of Kıral et al. [20 ] .
Proof [Proof of Theorem 4] Take any q 0 ∈ Q q_0 \in\mathcal{Q} q 0 ∈ Q . By Lemma 5, there exist a relatively G G G -invariant measure ν \nu ν on Θ \Theta Θ , a finite dimensional representation π : G → G L ( V ) \pi:G \to GL(V) π : G → G L ( V ) and a 1-cocycle α \alpha α of π \pi π which vanishes on H H H (inducing T : Θ → V T:\Theta\to V T : Θ → V ) such that q 0 = q λ 0 e − ψ q_0=q_{\lambda_0}e^{-\psi} q 0 = q λ 0 e − ψ for some λ 0 ∈ Ω ν , T \lambda_0 \in\Omega_{\nu,T} λ 0 ∈ Ω ν , T and ψ ∈ W 0 \psi\in W_0 ψ ∈ W 0 . The orbit of λ 0 \lambda_0 λ 0 under π ∗ ( g ) \pi^*(g) π ∗ ( g ) forms Ω ( Q ) \Omega(\mathcal{Q}) Ω ( Q ) , and is contained in the full harmonic exponential family formed by π \pi π and α \alpha α . The action of g g g fixes ψ \psi ψ and it can be subsumed in the measure ν \nu ν .
Lemma 5 (Tojo and Yoshino [33 ] ) Assume the notation in Setup 1. Let P ⊂ R ( Θ ) \mathcal{P} \subset R(\Theta) P ⊂ R ( Θ ) be an exponential family on Θ \Theta Θ , closed under the pushforward action of G G G . Here R ( Θ ) R(\Theta) R ( Θ ) denotes the set of all Radon measures on Θ \Theta Θ .
Then P \mathcal{P} P is contained in a harmonic exponential family, with notation as in Setup 2. In particular, there exist π : G → G L ( V ) \pi:G \to GL(V) π : G → G L ( V ) and 1-cocycle α : G → V \alpha:G \to V α : G → V for π \pi π such that any q 0 ∈ P q_0 \in\mathcal{P} q 0 ∈ P is of the form in Eq. (16) .
The heuristic proof for the above theorem is as follows. Members of an exponential family are of the form q λ ∝ e − f λ q_\lambda\propto e^{-f_\lambda} q λ ∝ e − f λ where f λ ( θ ) = ⟨ λ , T ( θ ) ⟩ f_\lambda(\theta)=\langle\lambda,T(\theta)\rangle f λ ( θ ) = ⟨ λ , T ( θ )⟩ is in a finite dimensional function space F \mathcal{F} F spanned by T 1 ( θ ) , T 2 ( θ ) , … , T d ( θ ) T_1(\theta),T_2(\theta),\ldots,T_d(\theta) T 1 ( θ ) , T 2 ( θ ) , … , T d ( θ ) and the constant function 1. Therefore if an exponential family is closed under the pushforward action of g ∈ G g \in G g ∈ G , then space of functions F \mathcal{F} F is closed under the action ( π ( g ) ⋅ f ) ( θ ) : = f ( g − 1 ⋅ θ ) (\pi(g)\cdot f)(\theta):=f(g^{-1}\cdot\theta) ( π ( g ) ⋅ f ) ( θ ) := f ( g − 1 ⋅ θ ) . From this representation of G G G on F \mathcal{F} F we construct α ( g ) = π ( g ) f 0 − f 0 \alpha(g)=\pi(g)f_0-f_0 α ( g ) = π ( g ) f 0 − f 0 for some nonconstant f 0 ∈ F f_0 \in\mathcal{F} f 0 ∈ F . This is the heuristic behind why exponential families closed under the action of G G G admit such an algebraic structure.
Properties of Harmonic Exponential Families
Given T T T as above—related to a base measure ν \nu ν , a representation π \pi π and its 1-cocycle α \alpha α —start with a probability distribution q λ 0 ∈ EF ν ( T ) q_{\lambda_0} \in\operatorname{EF}_{\nu}(T) q λ 0 ∈ EF ν ( T ) for λ 0 ∈ Ω \lambda_0 \in\Omega λ 0 ∈ Ω . Given this distribution as the starting point (denoted by q 0 q_0 q 0 in § 3.2 above), form its G G G -orbit Q \mathcal{Q} Q . Let q λ ′ ( θ ) = ( q λ 0 ) g ( θ ) = 1 χ ( g ) q λ 0 ( g − 1 ⋅ θ ) q_{\lambda'}(\theta)=(q_{\lambda_0})^g(\theta)=\frac{1}{\chi(g)}q_{\lambda_0}(g^{-1}\cdot\theta) q λ ′ ( θ ) = ( q λ 0 ) g ( θ ) = χ ( g ) 1 q λ 0 ( g − 1 ⋅ θ ) , then direct computation yields,
λ ′ = π ∗ ( g ) λ 0 μ ′ = π ( g ) μ 0 + α ( g ) A ( λ ′ ) = A ( λ 0 ) + ⟨ λ 0 , α ( g − 1 ) ⟩ + log χ ( g ) \begin{aligned}
\lambda'&=\pi^*(g)\lambda_0\\
\mu'&=\pi(g)\mu_0+\alpha(g)\\
A(\lambda')&=A(\lambda_0)+\langle\lambda_0,\alpha(g^{-1})\rangle+\log\chi(g)
\end{aligned} λ ′ μ ′ A ( λ ′ ) = π ∗ ( g ) λ 0 = π ( g ) μ 0 + α ( g ) = A ( λ 0 ) + ⟨ λ 0 , α ( g − 1 )⟩ + log χ ( g )
where μ ′ , μ 0 ∈ V \mu',\mu_0 \in V μ ′ , μ 0 ∈ V are the expectation parameters of q λ ′ q_{\lambda'} q λ ′ and q λ 0 q_{\lambda_0} q λ 0 . Note that the matrix multiplying the expectation parameter is dual (inverse transpose) to the one multiplying the natural parameter, so the parameters λ \lambda λ and μ \mu μ are not only duals of one another in Fenchel sense but also in how they get transformed by a Lie group element.
The orbit Ω ( Q ) : = { π ∗ ( g ) λ 0 : g ∈ G } ⊆ Ω \Omega(\mathcal{Q}):=\{\pi^*(g)\lambda_0:g \in G\}\subseteq\Omega Ω ( Q ) := { π ∗ ( g ) λ 0 : g ∈ G } ⊆ Ω of a given λ 0 ∈ Ω \lambda_0 \in\Omega λ 0 ∈ Ω forms the candidate natural parameters to choose from. For BLR, since the update in Eq. (4) is linear in λ \lambda λ , in order to guarantee λ u p d a t e d ∈ Ω ( Q ) \lambda^{\mathrm{updated}}\in\Omega(\mathcal{Q}) λ updated ∈ Ω ( Q ) at least for some small enough step size, we need the orbit to be open (i.e. for Q \mathcal{Q} Q to be an open exponential family), or be relatively open in an affine subset of Ω \Omega Ω . For example, for normal distributions Ω = { λ = ( λ 1 , λ 2 ) ∣ λ 2 > 0 } \Omega=\{\lambda=(\lambda_1,\lambda_2)\mid\lambda_2>0\} Ω = { λ = ( λ 1 , λ 2 ) ∣ λ 2 > 0 } is open, and the latter happens for fixed variance Gaussian distributions. In the latter case, as we have shown in Example 1, we can switch to a minimal realization R min R_{\min} R m i n and get an open Ω R min ( Q ) \Omega_{R_{\min}}(\mathcal{Q}) Ω R m i n ( Q ) . For LG-BLR, the openness of the parameter space is not required, since π ∗ ( g u p d a t e d ) λ 0 \pi^{*}(g^{\mathrm{updated}})\lambda_{0} π ∗ ( g updated ) λ 0 remains on the orbit Ω ( Q ) \Omega(\mathcal{Q}) Ω ( Q ) , even for curved exponential families. We depicted one such illustrative natural parameter orbit above in Figure 5 with the orange curve.
Figure 5. The orbit Ω ( Q ) \Omega(\mathcal{Q}) Ω ( Q ) of λ 0 ∈ Ω \lambda_0 \in\Omega λ 0 ∈ Ω under the action of π ∗ \pi^* π ∗ stays in Ω \Omega Ω .
Figure 6. Composition of maps that turn the variational inference problem into an optimization problem near the group identity element. We optimize E ( π ∗ ( g ) λ 0 ) \mathcal{E}(\pi^{*}(g)\lambda_{0}) E ( π ∗ ( g ) λ 0 ) by taking a small step g ↦ g exp ( − α Y ) g \mapsto g\exp(-\alpha Y) g ↦ g exp ( − α Y ) for some Y ∈ g Y \in\mathfrak{g} Y ∈ g . We choose Y = Y ^ Y = \widehat{Y} Y = Y as the direction of fastest ascent for E ∘ ( ι ∘ N ) ∘ L g \mathcal{E} \circ(\iota\circ\mathrm{N}) \circ L_g E ∘ ( ι ∘ N ) ∘ L g at e e e computed with respect to a bilinear form on g = T e G \mathfrak{g} = T_eG g = T e G which is the pullback of the Fisher information metric.
The harmonic exponential family framework gives us a refinement of Figure 2 whereby we factor the parametrization φ : G → Q \varphi: G \to\mathcal{Q} φ : G → Q into φ = ι ∘ N \varphi= \iota\circ\mathrm{N} φ = ι ∘ N . Here (having fixed a λ 0 \lambda_0 λ 0 ) we define the map N : G → V ∗ \mathrm{N} : G \to V^{*} N : G → V ∗ as
Figure 2. The direction Y ∈ g Y\in\mathfrak{g} Y ∈ g is carried to T g G T_{g}G T g G by the differential of L g L_{g} L g and that is carried to the tangent space T q g Q T_{q^{g}}\mathcal{Q} T q g Q by d φ ∣ g \mathrm{d}\varphi|_{g} d φ ∣ g . We solve for Y = Y ^ Y=\hat{Y} Y = Y ^ so that this tangent vector on Q \mathcal{Q} Q is in the direction of fastest ascent according to the Fisher metric.
N ( g ) : = π ∗ ( g ) λ 0 . (19) \mathrm{N}(g) := \pi^{*}(g)\lambda_{0}. \tag*{(19)} N ( g ) := π ∗ ( g ) λ 0 . (19)
This gives the natural parameter associated to a group element, and
ι : Ω ν , T ⟶ E F ν ( T ) \iota: \Omega_{\nu,\mathrm{T}} \longrightarrow\mathrm{EF}_{\nu}(\mathrm{T}) ι : Ω ν , T ⟶ EF ν ( T )
λ ⟼ q λ \lambda\longmapsto q_{\lambda} λ ⟼ q λ
produces the distribution when given a natural parameter.
Lie Group Update on Harmonic Exponential Families
After establishing the explicit map between the natural parameters and the group elements, we can write the Lie group update in terms of λ \lambda λ . If we start at λ = N ( g ) \lambda= \mathrm{N}(g) λ = N ( g ) , applying N \mathrm{N} N to both sides of the group update given by Eq. (7) , we get the new natural parameters as
λ u p d a t e d = N ( g exp ( − α Y ^ ) ) , (20) \lambda^{\mathrm{updated}} = \mathrm{N}\left(g\exp\left(-\alpha\widehat{Y}\right)\right), \tag*{(20)} λ updated = N ( g exp ( − α Y ) ) , (20)
where Y ^ \widehat{Y} Y is given as above in Eq. (8) , and α > 0 \alpha> 0 α > 0 is the step size.
As the main result of this paper, we show that for an open exponential family Q \mathcal{Q} Q that is also in the LG-BLR setting, the “linearization” of the exponential map in Eq. (20) gives the BLR update in λ \lambda λ , i.e. it gives the update in Eq. (4) .
As an aside, in Sec. A.3 we see what happens in the case of linearizing Eq. (20) for curved exponential families. The LG-BLR setting does not require Q \mathcal{Q} Q to be an open exponential family, it can be curved. In such a case, it turns out that the linearization of the λ \lambda λ update is the orthogonal projection (with respect to the Fisher metric at λ ∈ Ω \lambda\in\Omega λ ∈ Ω ) of the BLR update term onto the tangent space of Ω ( Q ) \Omega(\mathcal{Q}) Ω ( Q ) embedded in Ω \Omega Ω .
In the next section we precisely write what we mean by the term linear approximation to the exponential in Eq. (20) .
BLR as a Linear Approximation of LG-BLR
The Linearization
Assume the notation in Setup 1, and that there is an open exponential family Q \mathcal{Q} Q that is closed and in fact a single orbit under the Lie group’s pushforward action. In short we are in the joint setting where both BLR and LG-BLR are applicable. By Theorem 4 this family is a subset of a harmonic exponential family. Write this harmonic exponential family using the notation of Setup 2.
We now show that the linearization of Eq. (20) gives the BLR given by Eq. (4) .
The representation π ∗ : G → GL ( V ∗ ) \pi^* : G \to\operatorname{GL}(V^*) π ∗ : G → GL ( V ∗ ) is a homomorphism of Lie groups and its differential (at identity) is a linear map d π ∗ : g → g l ( V ∗ ) \mathrm{d}\pi^* : \mathfrak{g} \to\mathfrak{gl}(V^*) d π ∗ : g → gl ( V ∗ ) . Here g l ( V ∗ ) \mathfrak{gl}(V^*) gl ( V ∗ ) is simply the space of all linear maps from V ∗ V^* V ∗ to itself, i.e. in coordinates, all dim ( V ∗ ) × dim ( V ∗ ) \dim(V^*) \times\dim(V^*) dim ( V ∗ ) × dim ( V ∗ ) matrices. The exponential maps, the group homomorphism π ∗ \pi^* π ∗ and its differential d π ∗ \mathrm{d}\pi^* d π ∗ intertwine as follows
π ∗ ( exp ( − α Y ) ) = exp ( − α ( d π ∗ [ Y ] ) ) . (21) \pi^*\left(\exp\left(-\alpha Y\right)\right) = \exp\left(-\alpha\left(\mathrm{d}\pi^*[Y]\right)\right). \tag*{(21)} π ∗ ( exp ( − α Y ) ) = exp ( − α ( d π ∗ [ Y ] ) ) . (21)
This is in fact true for all group homomorphisms, and not just π ∗ \pi^* π ∗ .
The exponential map on the right is matrix exponentiation exp : g l ( V ∗ ) → GL ( V ∗ ) \exp: \mathfrak{gl}(V^*) \to\operatorname{GL}(V^*) exp : gl ( V ∗ ) → GL ( V ∗ ) . It can be given as a Taylor series, and its linear approximation is
exp ( X ) = e X = ∑ n = 0 ∞ X n n ! ≈ I + X . (22) \exp(X) = e^X = \sum_{n=0}^{\infty} \frac{X^n}{n!} \approx I + X. \tag*{(22)} exp ( X ) = e X = n = 0 ∑ ∞ n ! X n ≈ I + X . (22)
Using this as our linearization we have
λ u p d a t e d = N ( g exp ( − α Y ) ) = π ∗ ( g exp ( − α Y ) ) λ 0 = π ∗ ( g ) π ∗ ( exp ( − α Y ) ) λ 0 = π ∗ ( g ) e − α d π ∗ [ Y ] λ 0 ≈ π ∗ ( g ) ( I − α d π ∗ [ Y ] ) λ 0 . (23) \begin{aligned}
\lambda^{\mathrm{updated}} &= \mathrm{N}\left(g\exp\left(-\alpha Y\right)\right) = \pi^*\left(g\exp\left(-\alpha Y\right)\right)\lambda_0 = \pi^*(g)\pi^*\left(\exp\left(-\alpha Y\right)\right)\lambda_0 \\
&= \pi^*(g)e^{-\alpha\mathrm{d}\pi^*[Y]}\lambda_0 \approx\pi^*(g)\left(I-\alpha\mathrm{d}\pi^*[Y]\right)\lambda_0. \tag*{(23)}
\end{aligned} λ updated = N ( g exp ( − α Y ) ) = π ∗ ( g exp ( − α Y ) ) λ 0 = π ∗ ( g ) π ∗ ( exp ( − α Y ) ) λ 0 = π ∗ ( g ) e − α d π ∗ [ Y ] λ 0 ≈ π ∗ ( g ) ( I − α d π ∗ [ Y ] ) λ 0 . (23)
The first equality is from Eq. (20) , and the second is the definition of N N N in Eq. (19) . For the third equality we use that π ∗ \pi^* π ∗ is a group homomorphism. The fourth equality is due to Eq. (21) , and the final step is the approximation Eq. (22) .
For now, we kept Y Y Y arbitrary. In the following subsections we show that if Y = Y ^ Y = \widehat{Y} Y = Y is the direction of steepest ascent with respect to the Fisher metric, we recover the BLR in Eq. (4) .
The Direction of Motion
Now let us connect Y ^ \widehat{Y} Y with d ( E ∘ ι ) ∣ λ \mathrm{d}(\mathcal{E}\circ\iota)|_{\lambda} d ( E ∘ ι ) ∣ λ . Recall that φ = ι ∘ N \varphi= \iota\circ N φ = ι ∘ N . We call d ( N ∘ L g ) ∣ e = R \mathrm{d}(N\circ L_g)|_e = R d ( N ∘ L g ) ∣ e = R for ease of notation. R : g → T λ Ω ≅ V ∗ R:\mathfrak{g}\to T_{\lambda}\Omega\cong V^* R : g → T λ Ω ≅ V ∗ is a linear map, and we have d ( E ∘ ι ∘ N ∘ L g ) = d ( E ∘ ι ) ∣ λ R \mathrm{d}(\mathcal{E}\circ\iota\circ N\circ L_g)=\mathrm{d}(\mathcal{E}\circ\iota)|_{\lambda}R d ( E ∘ ι ∘ N ∘ L g ) = d ( E ∘ ι ) ∣ λ R .
The linear map R R R also relates the bilinear form B B B on the Lie algebra g \mathfrak{g} g with the Fisher metric in the natural parameter space:
B ( X , Y ) = ω F i s h e r λ ( R X , R Y ) for all X , Y ∈ g . B(X,Y)=\omega_{\mathrm{Fisher}}^{\lambda}(RX,RY) \text{ for all } X,Y\in\mathfrak{g}. B ( X , Y ) = ω Fisher λ ( R X , R Y ) for all X , Y ∈ g .
Proposition 7 Assume that Q Q Q is an open exponential family and that the pushforward action of Lie group G G G is transitive on Q Q Q . Adopt the above notation. Then any Y ^ ∈ g = T e G \widehat{Y}\in\mathfrak{g}=T_eG Y ∈ g = T e G solving B ( Y ^ , ⋅ ) = d ( E ∘ ι ) ∣ λ R B(\widehat{Y},\cdot)=\mathrm{d}(\mathcal{E}\circ\iota)|_{\lambda}R B ( Y , ⋅ ) = d ( E ∘ ι ) ∣ λ R satisfies
R Y ^ = v ^ = F λ − 1 d ( E ∘ ι ) ∣ λ = ∇ E ( q λ ) ∣ λ . R\widehat{Y}=\widehat{v}=F_{\lambda}^{-1}\mathrm{d}(\mathcal{E}\circ\iota)|_{\lambda}=\nabla\mathcal{E}(q_{\lambda})|_{\lambda}. R Y = v = F λ − 1 d ( E ∘ ι ) ∣ λ = ∇ E ( q λ ) ∣ λ .
Proof. It is possible, in general, that R R R does not map onto all of V ∗ V^* V ∗ , but to a subspace Im ( R ) = W ⊆ V ∗ \operatorname{Im}(R)=W\subseteq V^* Im ( R ) = W ⊆ V ∗ . This is not the case here, as we assume an open exponential family. Put R Y ^ = v ^ R\widehat{Y}=\widehat{v} R Y = v , and also writing R X = v RX=v R X = v (which runs over any v ∈ V ∗ v\in V^* v ∈ V ∗ as R R R is onto), we have
ω F i s h e r λ ( v ^ , v ) = ω F i s h e r λ ( R Y ^ , R X ) = B ( Y ^ , X ) = d ( E ∘ ι ) ∣ λ [ R X ] = d ( E ∘ ι ) ∣ λ [ v ] . \omega_{\mathrm{Fisher}}^{\lambda}(\widehat{v},v)=\omega_{\mathrm{Fisher}}^{\lambda}(R\widehat{Y},RX)=B(\widehat{Y},X)=\mathrm{d}(\mathcal{E}\circ\iota)|_{\lambda}[RX]=\mathrm{d}(\mathcal{E}\circ\iota)|_{\lambda}[v]. ω Fisher λ ( v , v ) = ω Fisher λ ( R Y , R X ) = B ( Y , X ) = d ( E ∘ ι ) ∣ λ [ R X ] = d ( E ∘ ι ) ∣ λ [ v ] .
Since this should hold for every v v v and since ω F i s h e r λ ( v ^ , v ) = v ^ T F λ v \omega_{\mathrm{Fisher}}^{\lambda}(\widehat{v},v)=\widehat{v}^{\mathsf{T}}F_{\lambda}v ω Fisher λ ( v , v ) = v T F λ v , we can see that
F λ v ^ = d ( E ∘ ι ) ∣ λ F_{\lambda}\widehat{v}=\mathrm{d}(\mathcal{E}\circ\iota)|_{\lambda} F λ v = d ( E ∘ ι ) ∣ λ
and this proves the result. ■
Putting it all Together
Let us again write the map R = d ( N ∘ L g ) ∣ e R=\mathrm{d}(N\circ L_g)|_e R = d ( N ∘ L g ) ∣ e , and express R Y ^ R\widehat{Y} R Y in terms of its π ∗ \pi^* π ∗ dependence,
R Y ^ = d ( N ∘ L g ) ∣ e [ Y ^ ] = d d t ( ( N ∘ L g ) ( exp ( t Y ^ ) ) ) ∣ t = 0 = d d t π ∗ ( g exp ( t Y ^ ) ) λ 0 ∣ t = 0 = d d t π ∗ ( g ) exp ( t ( d π ∗ [ Y ^ ] ) ) λ 0 ∣ t = 0 = π ∗ ( g ) d π ∗ [ Y ^ ] λ 0 (24) \begin{aligned}
R\widehat{Y}
&=\mathrm{d}(N\circ L_g)|_e[\widehat{Y}]
=\left.\frac{\mathrm{d}}{\mathrm{d}t}\left((N\circ L_g)(\exp(t\widehat{Y}))\right)\right|_{t=0}
=\left.\frac{\mathrm{d}}{\mathrm{d}t}\pi^*(g\exp(t\widehat{Y}))\lambda_0\right|_{t=0}\\
&=\left.\frac{\mathrm{d}}{\mathrm{d}t}\pi^*(g)\exp\left(t(\mathrm{d}\pi^*[\widehat{Y}])\right)\lambda_0\right|_{t=0}
=\pi^*(g)\mathrm{d}\pi^*[\widehat{Y}]\lambda_0 \tag*{(24)}
\end{aligned} R Y = d ( N ∘ L g ) ∣ e [ Y ] = d t d ( ( N ∘ L g ) ( exp ( t Y )) ) t = 0 = d t d π ∗ ( g exp ( t Y )) λ 0 t = 0 = d t d π ∗ ( g ) exp ( t ( d π ∗ [ Y ]) ) λ 0 t = 0 = π ∗ ( g ) d π ∗ [ Y ] λ 0 (24)
Using Eqs. (20) and (23) and the calculation in Eq. (24) above we express the linearization of the Lie group update rule as
λ u p d a t e d = N ( g exp ( − α Y ^ ) ) ≈ π ∗ ( g ) ( I − α ( d π ∗ [ Y ^ ] ) ) λ 0 = π ∗ ( g ) λ 0 − α π ∗ ( g ) ( d π ∗ [ Y ^ ] ) λ 0 = λ − α R Y ^ = λ − α ∇ ~ λ E ( q λ ) . \lambda^{\mathrm{updated}} = \mathrm{N}\left(g\exp\left(-\alpha\widehat{Y}\right)\right) \approx\pi^{*}(g)\left(I-\alpha\left(\mathrm{d}\pi^{*}[\widehat{Y}]\right)\right)\lambda_{0}
\\
= \pi^{*}(g)\lambda_{0}-\alpha\pi^{*}(g)\left(\mathrm{d}\pi^{*}[\widehat{Y}]\right)\lambda_{0}
\\
= \lambda-\alpha R\widehat{Y}
\\
= \lambda-\alpha\widetilde{\nabla}_{\lambda}\mathcal{E}(q_{\lambda}). λ updated = N ( g exp ( − α Y ) ) ≈ π ∗ ( g ) ( I − α ( d π ∗ [ Y ] ) ) λ 0 = π ∗ ( g ) λ 0 − α π ∗ ( g ) ( d π ∗ [ Y ] ) λ 0 = λ − α R Y = λ − α ∇ λ E ( q λ ) .
In the final line we used Proposition 7.
This establishes the main theorem.
Theorem 8 Given a machine learning model with parameter space Θ \Theta Θ and loss function ℓ \ell ℓ , assume that a Lie group G G G acts transitively and smoothly on Θ \Theta Θ , as in Setup 1. Let Q Q Q be an open exponential family of distributions, on which G G G acts transitively by pushforwards. Therefore Q Q Q is included in a harmonic exponential family given by a group representation π \pi π and a 1-cocycle α \alpha α as in Setup 2. In this setting both BLR given by Eq. (4) and LG-BLR given by Eq. (7) (or Eq. (20) in the natural parameters) exist.
Then, the linearization of the LG-BLR update in the step size is the BLR update.
A Final Remark on Momentum
Applying momentum, or any other optimization method that accumulates past gradients, either implicitly or explicitly requires a notion of transporting tangent vectors living in a-priori different vector spaces. We discuss in Sec. B the role of flat affine connections and parallel transports in this regard at a general mathematical level.
In applying momentum in the Lie group setting, we accumulate the Lie algebra vectors Y ^ t \widehat{Y}_{t} Y t , which is different from accumulating the natural gradients when working with exponential families. Indeed from Proposition 7 we see that ∇ ~ E ( q λ ) ∣ λ t = R t Y ^ t \left.\widetilde{\nabla}\mathcal{E}(q_{\lambda})\right|_{\lambda_{t}}=R_{t}\widehat{Y}_{t} ∇ E ( q λ ) λ t = R t Y t . Even though R t R_{t} R t is linear, it depends on the current point g t g_{t} g t and therefore accumulating the natural gradients themselves will result in a different vector. The Lie group momentum keeps track of and accumulates Y ^ t = R t − 1 ∇ ~ E ( q λ ) ∣ λ t \widehat{Y}_{t}=R_{t}^{-1}\left.\widetilde{\nabla}\mathcal{E}(q_{\lambda})\right|_{\lambda_{t}} Y t = R t − 1 ∇ E ( q λ ) λ t , taking one of the preimages if R t R_{t} R t is not invertible (In the Gaussian case these Y ^ t \widehat{Y}_{t} Y t are given by the pairs ( Y t , y t ) (Y_{t},y_{t}) ( Y t , y t ) in Eqs. (12) and (13) ). Then if we do the linearization as above, the update at timestep T T T becomes for 0 < β < 1 0<\beta<1 0 < β < 1
λ T + 1 = λ T − α R T ( ∑ t = 1 T β T − t ( 1 − β ) Y ^ t ) . \lambda_{T+1}=\lambda_{T}-\alpha R_{T}\left(\sum_{t=1}^{T}\beta^{T-t}(1-\beta)\widehat{Y}_{t}\right). λ T + 1 = λ T − α R T ( t = 1 ∑ T β T − t ( 1 − β ) Y t ) .
This kind of momentum corresponds to using the flat connection on the Lie group that assigns left-invariant vector fields as parallel. This particular Lie group connection is nice because under its parallel transports the length and the angle between the tangent vectors with respect to the Fisher information metric stay unchanged.
However we note that it is not the only kind of connection, and therefore not the only kind of momentum that can be applied on this exponential family. Directly accumulating the natural gradients ∇ ~ λ \widetilde{\nabla}_{\lambda} ∇ λ corresponds to using the e e e -connection. We also note what the mixture connection corresponds to in Sec. B when learning on an exponential family. In all cases further stabilizing or adaptive operations can be applied to the accumulated momenta as well—as is done with, say, AdamW or Lion optimizers.
Discussion
In this work we have shown that LG-BLR is an extension of BLR in a very precise sense. We also introduced the notion of harmonic exponential families to the field of variational inference. These characterize the families of distributions with the desirable structure of a Lie group action, which we saw gives efficient gradient estimation and updates that always yield a valid (normalizable) distribution.
The LG-BLR is extensible, and promises many new capabilities. For example in Nishida et al. [30 ] the authors take the LG-BLR for the group of positive reals under multiplication, the family of log-normal distributions, and extend the gradient accumulation method of Lion (Chen et al., [9 ] ), adding regularizers relevant to the family and the group. The resulting optimization method performs stably under low precision floating point representations, and performs well compared to other multiplicative update algorithms. As another possible extension, the use of the Lie Group exponential is but one choice of a retraction, and can be replaced with easier to compute variants that can be obtained from the group exponential.
With this work, we hope that the reader has a better understanding of the LG-BLR both as a standalone method and in how it relates to the existing variational inference optimizer BLR.
Acknowledgments and Disclosure of Funding
This work is supported by the Bayes duality project, JST CREST Grant Number JP-MJCR2112. Eren Mehmet Kıral acknowledges the support of JSPS, KAKENHI Grant Number 26K14955 titled “Learning with Distributions and Lie Groups”. Thomas Möllenhoff acknowledges the support of JSPS KAKENHI Grant Number 26H02541 titled “Variational Learning for Training Better AI Models at Lower Cost”.
Author Contribution Statement
Authors list: Eren Mehmet Kıral (EMK), Thomas Möllenhoff (TM), Koichi Tojo (KT), Mohammad Emtiyaz Khan (MEK), Kenichi Bannai (KB).
EMK led the project and wrote most of the manuscript; EMK and TM developed the LG-BLR update; EMK, TM and KT formulated the connection with harmonic exponential families; MEK provided insights on Bayesian Learning; and EMK, TM, KT, KB discussed the mathematical content and shaped the outline of the manuscript. MEK and KB provided the funding throughout the project. The final manuscript was approved by all authors.
The Lie Group Update Rule
This appendix gives the mathematically careful solution to the constrained maximization problem in Eq. (8) , with the bilinear form
B ( X , Y ) : = ω F i s h e r q ( d ( φ ∘ L g ) ∣ e [ X ] , d ( φ ∘ L g ) ∣ e [ Y ] ) for q = q g . (25) B(X,Y) := \omega_{\mathrm{Fisher}}^{q}\left(\mathrm{d}(\varphi\circ L_g)\big|_{e}[X],\mathrm{d}(\varphi\circ L_g)\big|_{e}[Y]\right) \qquad\text{for } q=q^{g}. \tag*{(25)} B ( X , Y ) := ω Fisher q ( d ( φ ∘ L g ) e [ X ] , d ( φ ∘ L g ) e [ Y ] ) for q = q g . (25)
Because the Fisher metric is invariant under reparametrizations the right hand side is independent of the choice of g g g and therefore we are justified in not writing a g g g dependence on the left hand side. The bilinear form B B B , which is the pullback of the Fisher metric, is not necessarily nondegenerate, even though the Fisher metric is, i.e. the matrix representing B B B may be not invertible. But regardless, we will show below that the problem in Eq. (8) is solvable. In Kıral et al. (2023) this was not shown in full generality, where we provided solutions only for the groups that were presented.
The Differential of the Variational Objective
For the sake of completeness we calculate the differential of E \mathcal{E} E in Eq. (1) here. The entropy’s dependence on g g g is seen to be
− H ν ( q g ) = ∫ Θ q g ( θ ) log q g ( θ ) d ν ( θ ) = ∫ Θ 1 χ ( g ) q 0 ( g − 1 ⋅ θ ) log ( 1 χ ( g ) q 0 ( g − 1 ⋅ θ ) ) d ν ( θ ) = ∫ Θ q 0 ( θ ) log ( 1 χ ( g ) q 0 ( θ ) ) d ν ( θ ) = − log χ ( g ) − H ν ( q 0 ) . \begin{aligned}
-\mathcal{H}_{\nu}(q^{g}) = \int_{\Theta} q^{g}(\theta)\log q^{g}(\theta)\mathrm{d}\nu(\theta) = \int_{\Theta} \frac{1}{\chi(g)}q_{0}(g^{-1}\cdot\theta)\log\left(\frac{1}{\chi(g)}q_{0}(g^{-1}\cdot\theta)\right)\mathrm{d}\nu(\theta) \\
&= \int_{\Theta}q_{0}(\theta)\log\left(\frac{1}{\chi(g)}q_{0}(\theta)\right)\mathrm{d}\nu(\theta)=-\log\chi(g)-\mathcal{H}_{\nu}(q_{0}).
\end{aligned} − H ν ( q g ) = ∫ Θ q g ( θ ) log q g ( θ ) d ν ( θ ) = ∫ Θ χ ( g ) 1 q 0 ( g − 1 ⋅ θ ) log ( χ ( g ) 1 q 0 ( g − 1 ⋅ θ ) ) d ν ( θ ) = ∫ Θ q 0 ( θ ) log ( χ ( g ) 1 q 0 ( θ ) ) d ν ( θ ) = − log χ ( g ) − H ν ( q 0 ) .
Here the second line is obtained by a change of variables θ ↦ g ⋅ θ \theta\mapsto g\cdot\theta θ ↦ g ⋅ θ . Now we can compute that d d t ( − H ν ( q g exp ( t X ) ) ) ∣ t = 0 = − d d t log χ ( exp ( t X ) ) ∣ t = 0 = : ξ ( X ) \left.\frac{\mathrm{d}}{\mathrm{d}t}\left(-\mathcal{H}_{\nu}(q^{g\exp(tX)})\right)\right|_{t=0}=-\left.\frac{\mathrm{d}}{\mathrm{d}t}\log\chi(\exp(tX))\right|_{t=0}=:\xi(X) d t d ( − H ν ( q g e x p ( tX ) ) ) t = 0 = − d t d log χ ( exp ( tX )) t = 0 =: ξ ( X ) .
Assume that Θ \Theta Θ is embedded in the Euclidean space so that we can take its gradient ∇ ℓ \nabla\ell ∇ ℓ with respect to θ \theta θ . The directional derivative of the expectation term can also be computed with a change of variables. First let us compute the expectation of the loss under the perturbed distribution
E q g exp ( t X ) [ ℓ ] = ∫ Θ ℓ ( θ ) q g exp ( t X ) ( θ ) d ν ( θ ) = ∫ Θ ℓ ( θ ) 1 χ ( g exp ( t X ) ) q 0 ( ( g exp ( t X ) ) − 1 ⋅ θ ) d ν ( θ ) = ∫ Θ ℓ ( θ ) 1 χ ( exp ( t X ) ) 1 χ ( g ) q 0 ( g − 1 ( ( g exp ( t X ) g − 1 ) − 1 ⋅ θ ) ) d ν ( θ ) = ∫ Θ ℓ ( θ ) 1 χ ( exp ( t X ) ) q g ( ( g exp ( t X ) g − 1 ) − 1 ⋅ θ ) d ν ( θ ) = ∫ Θ ℓ ( ( g exp ( t X ) g − 1 ) ⋅ θ ) q g ( θ ) d ν ( θ ) . \begin{aligned}
\mathbb{E}_{q^{g\exp(tX)}}[\ell] = \int_{\Theta}\ell(\theta)q^{g\exp(tX)}(\theta)\mathrm{d}\nu(\theta) \\
&= \int_{\Theta}\ell(\theta)\frac{1}{\chi(g\exp(tX))}q_{0}((g\exp(tX))^{-1}\cdot\theta)\mathrm{d}\nu(\theta) \\
&= \int_{\Theta}\ell(\theta)\frac{1}{\chi(\exp(tX))}\frac{1}{\chi(g)}q_{0}\left(g^{-1}\left((g\exp(tX)g^{-1})^{-1}\cdot\theta\right)\right)\mathrm{d}\nu(\theta) \\
&= \int_{\Theta}\ell(\theta)\frac{1}{\chi(\exp(tX))}q^{g}\left((g\exp(tX)g^{-1})^{-1}\cdot\theta\right)\mathrm{d}\nu(\theta) \\
&= \int_{\Theta}\ell\left((g\exp(tX)g^{-1})\cdot\theta\right)q^{g}(\theta)\mathrm{d}\nu(\theta).
\end{aligned} E q g e x p ( tX ) [ ℓ ] = ∫ Θ ℓ ( θ ) q g e x p ( tX ) ( θ ) d ν ( θ ) = ∫ Θ ℓ ( θ ) χ ( g exp ( tX )) 1 q 0 (( g exp ( tX ) ) − 1 ⋅ θ ) d ν ( θ ) = ∫ Θ ℓ ( θ ) χ ( exp ( tX )) 1 χ ( g ) 1 q 0 ( g − 1 ( ( g exp ( tX ) g − 1 ) − 1 ⋅ θ ) ) d ν ( θ ) = ∫ Θ ℓ ( θ ) χ ( exp ( tX )) 1 q g ( ( g exp ( tX ) g − 1 ) − 1 ⋅ θ ) d ν ( θ ) = ∫ Θ ℓ ( ( g exp ( tX ) g − 1 ) ⋅ θ ) q g ( θ ) d ν ( θ ) .
Where in the last line we make the change of variables θ ↦ ( g exp ( t X ) g − 1 ) ⋅ θ \theta\mapsto(g\exp(tX)g^{-1})\cdot\theta θ ↦ ( g exp ( tX ) g − 1 ) ⋅ θ . The multiplier χ \chi χ exactly accounts for the Jacobian determinant in this change of variables formula. Notice that now the only t t t dependence is in the ℓ \ell ℓ function and if we take the derivative at t = 0 t=0 t = 0 ,
∫ Θ ∇ ℓ ( θ ) T ( Ad g ( X ) ⋅ θ ) q g ( θ ) d ν ( θ ) . \int_{\Theta}\nabla\ell(\theta)^{\mathsf{T}}(\operatorname{Ad}_{g}(X)\cdot\theta)q^{g}(\theta)\mathrm{d}\nu(\theta). ∫ Θ ∇ ℓ ( θ ) T ( Ad g ( X ) ⋅ θ ) q g ( θ ) d ν ( θ ) .
This is an expectation that can be approximated with stochastic sampling from q g q^{g} q g , which in turn is equivalent to sampling θ 0 ∼ q 0 \theta_{0}\sim q_{0} θ 0 ∼ q 0 and applying g ⋅ θ 0 g\cdot\theta_{0} g ⋅ θ 0 .
Here Ad g ( X ) \operatorname{Ad}_{g}(X) Ad g ( X ) is an element of the Lie algebra given by a differential, and can be calculated exactly by Ad g ( X ) : = d d t ( g exp ( t X ) g − 1 ) ∣ t = 0 \operatorname{Ad}_{g}(X):=\left.\frac{\mathrm{d}}{\mathrm{d}t}(g\exp(tX)g^{-1})\right|_{t=0} Ad g ( X ) := d t d ( g exp ( tX ) g − 1 ) t = 0 , and Ad g ( X ) ⋅ θ \operatorname{Ad}_{g}(X)\cdot\theta Ad g ( X ) ⋅ θ refers to the infinitesimal action of this Lie algebra vector on θ \theta θ , defined as a limit, i.e. for Z ∈ g Z\in\mathfrak{g} Z ∈ g the infinitesimal action is given as Z ⋅ θ : = d d t ( exp ( t Z ) ⋅ θ ) ∣ t = 0 ∈ T θ Θ Z\cdot\theta:=\left.\frac{\mathrm{d}}{\mathrm{d}t}(\exp(tZ)\cdot\theta)\right|_{t=0}\in T_{\theta}\Theta Z ⋅ θ := d t d ( exp ( tZ ) ⋅ θ ) t = 0 ∈ T θ Θ . The gradient ∇ ℓ ( θ ) \nabla\ell(\theta) ∇ ℓ ( θ ) is actually coming from the cotangent vector in T θ ∗ Θ T_{\theta}^{*}\Theta T θ ∗ Θ so these two quantities can be paired. But as we assumed without loss of generality that Θ \Theta Θ is embedded in R n \mathbb{R}^{n} R n , the pairing is simply the dot product between two vectors in R n \mathbb{R}^{n} R n .
Solving for the Gradient
Let us show that we can always compute the gradient of E ( q g ) \mathcal{E}(q^{g}) E ( q g ) with respect to the positive semidefinite metric. With a slight abuse of notation, let B B B , P = P g P=P_{g} P = P g and F F F denote matrices corresponding to the bilinear form in Eq. (25) on g \mathfrak{g} g , the map d ( φ ∘ L g ) ∣ e \mathrm{d}(\varphi\circ L_g)|_{e} d ( φ ∘ L g ) ∣ e and the Fisher metric ω F i s h e r q g \omega_{\mathrm{Fisher}}^{q_g} ω Fisher q g after a choice of bases in g \mathfrak{g} g and T q g Q T_{q_g}\mathcal{Q} T q g Q . Note that if Eq. (25) is written in coordinates, corresponds to the equality B = P T F P B = P^{\mathsf{T}}FP B = P T F P .
Writing the optimization following Eq. (8) in coordinate form, the constrained optimization problem becomes
d ( E ∘ φ ∘ L g ) ∣ e [ X ] = ζ T P X subject to X T B X ≤ 1. \left.\mathrm{d}(\mathcal{E}\circ\varphi\circ L_g)\right|_{e}[\mathbf{X}] = \zeta^{\mathsf{T}}P\mathbf{X}
\qquad\text{subject to}\qquad\mathbf{X}^{\mathsf{T}}B\mathbf{X}\leq1. d ( E ∘ φ ∘ L g ) ∣ e [ X ] = ζ T P X subject to X T B X ≤ 1.
where ζ \zeta ζ is the column-vector form of the linear functional d E ∣ q g : T q g Q → R \mathrm{d}\mathcal{E}|_{q_g}:T_{q_g}\mathcal{Q}\to\mathbb{R} d E ∣ q g : T q g Q → R consisting of partial derivatives in the given basis, and X \mathbf{X} X is a column vector representation of a Lie algebra element in g \mathfrak{g} g .
Using the method of Lagrange multipliers, we solve
arg max X ∈ g ζ T P X + β X T B X . \underset{\mathbf{X}\in\mathfrak{g}}{\arg\max}\quad\zeta^{\mathsf{T}}P\mathbf{X}+\beta\mathbf{X}^{\mathsf{T}}B\mathbf{X}. X ∈ g arg max ζ T P X + β X T B X .
The first derivative in X \mathbf{X} X yields the equality ζ T P + 2 β X T B = 0 \zeta^{\mathsf{T}}P+2\beta\mathbf{X}^{\mathsf{T}}B=0 ζ T P + 2 β X T B = 0 or in other words
2 β P T F P X = − P T ζ 2\beta P^{\mathsf{T}}FP\mathbf{X}=-P^{\mathsf{T}}\zeta 2 β P T F P X = − P T ζ
which can be solved for all X \mathbf{X} X satisfying P X = − 1 2 β F − 1 ζ P\mathbf{X}=-\frac{1}{2\beta}F^{-1}\zeta P X = − 2 β 1 F − 1 ζ . Since P P P is the matrix of the differential of φ \varphi φ which parametrizes Q \mathcal{Q} Q , it is necessarily surjective, so we can surely solve for X \mathbf{X} X , though not necessarily uniquely. This equation may have more than one solution if dim Q < dim g \dim\mathcal{Q}<\dim\mathfrak{g} dim Q < dim g , and in that case we just pick any one of the solutions.
Even though in showing that there exists at least one solution to Eq. (8) we used the invertibility of F F F , one does not need to invert the Fisher matrix to do this calculation. One can simply solve the system of equations B X = − 1 2 β P T ζ B\mathbf{X}=-\frac{1}{2\beta}P^{\mathsf{T}}\zeta B X = − 2 β 1 P T ζ , and P T ζ P^{\mathsf{T}}\zeta P T ζ is the vector corresponding to d ( E ∘ φ ∘ L g ) \mathrm{d}(\mathcal{E}\circ\varphi\circ L_g) d ( E ∘ φ ∘ L g ) after a choice of basis of g \mathfrak{g} g , and B B B needs to be calculated in a basis of g \mathfrak{g} g once and for all, it does not change throughout the optimization.
Furthermore, using the calculations in Sec. A.1 we can directly calculate the components of P T ζ P^{\mathsf{T}}\zeta P T ζ (without calculating those of ζ \zeta ζ ) via the formula
d d t E ( q g e t X ) ∣ t = 0 = E q g d ν [ ( ∇ θ ℓ ( θ ) ) T ( Ad g ( X ) ⋅ θ ) ] + τ ξ ( X ) \left.\frac{\mathrm{d}}{\mathrm{d}t}\mathcal{E}(q^{g e^{t\mathbf{X}}})\right|_{t=0}
=\mathbb{E}_{q_g}\mathrm{d}\nu\left[(\nabla_{\theta}\ell(\theta))^{\mathsf{T}}\left(\operatorname{Ad}_g(\mathbf{X})\cdot\theta\right)\right]+\tau\xi(\mathbf{X}) d t d E ( q g e t X ) t = 0 = E q g d ν [ ( ∇ θ ℓ ( θ ) ) T ( Ad g ( X ) ⋅ θ ) ] + τ ξ ( X )
by substituting X = X i \mathbf{X}=\mathbf{X}_i X = X i , given a basis { X i } i \{\mathbf{X}_i\}_i { X i } i of the Lie algebra.
Linearization of LG-BLR for Curved Exponential Families
For this subsection assume that the family Q \mathcal{Q} Q is not necessarily open. It is a curved exponential family closed under the Lie group action. But the orbit of λ 0 \lambda_0 λ 0 under π ∗ \pi^* π ∗ doesn’t form an open set in Ω ⊆ V ∗ \Omega\subseteq V^* Ω ⊆ V ∗ as depicted in Figure 5 .
Here when we linearize the LG-BLR update, it is clear that the range of motion afforded to us by the Lie group Bayesian learning rule is restricted. Rather than being able to move in any which direction in Ω ⊆ V ∗ \Omega\subseteq V^* Ω ⊆ V ∗ , we can only move along W = T λ Ω ( Q ) W=T_{\lambda}\Omega(\mathcal{Q}) W = T λ Ω ( Q ) , see Figure 7 .
Figure 7. The Lie group BLR can only move along Q Q Q , but inside the general exponential family E F ( α ) \mathrm{EF}(\alpha) EF ( α ) the natural parameters can be updated in directions that have more degrees of freedom.
Proposition 9 Assume the setting and notation of § 5.2 , let Q Q Q be an exponential family where Ω ( Q ) \Omega(Q) Ω ( Q ) is an (immersed) submanifold of Ω \Omega Ω . Let W : = T λ ( Ω ( Q ) ) ⊆ V ∗ W := T_{\lambda}(\Omega(Q)) \subseteq V^{*} W := T λ ( Ω ( Q )) ⊆ V ∗ , and let Y ^ ∈ g \hat{Y} \in\mathfrak{g} Y ^ ∈ g be the update direction, satisfying B ( Y ^ , X ) = d ( E ∘ φ ∘ L g ) ∣ e [ X ] B(\hat{Y}, X) = \left.\mathrm{d}(\mathcal{E} \circ\varphi\circ L_g)\right|_{e}[X] B ( Y ^ , X ) = d ( E ∘ φ ∘ L g ) ∣ e [ X ] for all X ∈ g X \in\mathfrak{g} X ∈ g . Then,
R Y ^ = Proj W ∇ ~ λ E ( q λ ) R\hat{Y} = \operatorname{Proj}_{W}\widetilde{\nabla}_{\lambda}\mathcal{E}(q_{\lambda}) R Y ^ = Proj W ∇ λ E ( q λ ) where the orthogonal projection is taken with respect to the inner product given by the Fisher information metric F λ F_{\lambda} F λ . In particular if Q Q Q is an open exponential family, we have T λ Ω ( Q ) = V ∗ T_{\lambda}\Omega(Q) = V^{*} T λ Ω ( Q ) = V ∗ in which case R Y ^ = ∇ ~ λ E ( q λ ) = F λ − 1 d ( E ∘ ι ) ∣ λ R\hat{Y} = \widetilde{\nabla}_{\lambda}\mathcal{E}(q_{\lambda}) = F_{\lambda}^{-1}\left.\mathrm{d}(\mathcal{E} \circ\iota)\right|_{\lambda} R Y ^ = ∇ λ E ( q λ ) = F λ − 1 d ( E ∘ ι ) ∣ λ .
Proof. First note that since N \mathbf{N} N traces out the natural parameters in Ω ( Q ) \Omega(Q) Ω ( Q ) , we have that the image of R = d ( N ∘ L g ) ∣ e R = \left.\mathrm{d}(\mathbf{N} \circ L_g)\right|_{e} R = d ( N ∘ L g ) ∣ e is W W W . From the definition of B B B as a pullback, we get
d ( E ∘ ι ) ∣ λ [ R X ] = d ( E ∘ φ ∘ L g ) ∣ e [ X ] = B ( Y ^ , X ) = ω F i s h e r λ ( R Y ^ , R X ) \left.\mathrm{d}(\mathcal{E} \circ\iota)\right|_{\lambda}[RX] = \left.\mathrm{d}(\mathcal{E} \circ\varphi\circ L_g)\right|_{e}[X] = B(\hat{Y},X) = \omega^{\lambda}_{\mathrm{Fisher}}(R\hat{Y},RX) d ( E ∘ ι ) ∣ λ [ R X ] = d ( E ∘ φ ∘ L g ) ∣ e [ X ] = B ( Y ^ , X ) = ω Fisher λ ( R Y ^ , R X )
So for all w ∈ W \mathbf{w} \in W w ∈ W , the Lie algebra vector Y ^ \hat{Y} Y ^ satisfies ω F i s h e r λ ( R Y ^ , w ) = d ( E ∘ ι ) ∣ λ [ w ] \omega^{\lambda}_{\mathrm{Fisher}}(R\hat{Y},\mathbf{w}) = \left.\mathrm{d}(\mathcal{E} \circ\iota)\right|_{\lambda}[\mathbf{w}] ω Fisher λ ( R Y ^ , w ) = d ( E ∘ ι ) ∣ λ [ w ] . Furthermore by the definition of natural gradient, for all v ∈ V ∗ \mathbf{v} \in V^{*} v ∈ V ∗ the equality
ω F i s h e r λ ( ∇ ~ λ E ( q λ ) , v ) = d ( E ∘ ι ) ∣ λ [ v ] \omega^{\lambda}_{\mathrm{Fisher}}(\widetilde{\nabla}_{\lambda}\mathcal{E}(q_{\lambda}),\mathbf{v}) = \left.\mathrm{d}(\mathcal{E} \circ\iota)\right|_{\lambda}[\mathbf{v}] ω Fisher λ ( ∇ λ E ( q λ ) , v ) = d ( E ∘ ι ) ∣ λ [ v ]
holds. This means that ω F i s h e r λ ( R Y ^ − ∇ ~ λ E ( q λ ) , w ) = 0 \omega^{\lambda}_{\mathrm{Fisher}}(R\hat{Y} - \widetilde{\nabla}_{\lambda}\mathcal{E}(q_{\lambda}),\mathbf{w}) = 0 ω Fisher λ ( R Y ^ − ∇ λ E ( q λ ) , w ) = 0 for all w ∈ W \mathbf{w} \in W w ∈ W , meaning that the difference is in W ⊥ W^{\perp} W ⊥ , proving the proposition.
Momentum and Connections
When using gradient methods on a differentiable manifold M M M (including the standard parameter space M = Θ = R P M = \Theta= \mathbb{R}^{P} M = Θ = R P ) the act of applying momentum, or other acceleration techniques for optimization, involves accumulating past gradients. These gradients are on different tangent spaces; g p a s t ∈ T p p a s t M \mathbf{g}_{\mathrm{past}} \in T_{\mathbf{p}_{\mathrm{past}}}M g past ∈ T p past M vs. g n o w ∈ T p n o w M \mathbf{g}_{\mathrm{now}} \in T_{\mathbf{p}_{\mathrm{now}}}M g now ∈ T p now M . In order for this accumulation to make sense, we require a way to connect different tangent spaces, i.e. an affine connection.
An affine connection is defined as an operator taking in two vector fields X , Y ∈ X ( M ) X,Y \in\mathcal{X}(M) X , Y ∈ X ( M ) and giving another vector field Z = ∇ X Y Z = \nabla_{X}Y Z = ∇ X Y satisfying certain conditions. Z p Z_{p} Z p —the resulting vector field’s value at a point p p p —is a measure of the change of Y Y Y along X X X , infinitesimally at p p p . For our purposes of connecting different tangent spaces, however, the equivalent notion of parallel transport is more relevant.
Given an affine connection ∇ \nabla ∇ and a smooth path γ : [ 0 , 1 ] → M \gamma: [0,1] \to M γ : [ 0 , 1 ] → M , the parallel transport along γ \gamma γ is a linear map
P γ : T γ ( 0 ) M → T γ ( 1 ) M P_{\gamma} : T_{\gamma(0)}M \to T_{\gamma(1)}M P γ : T γ ( 0 ) M → T γ ( 1 ) M
that carries the tangent vectors by solving a differential equation, ∇ γ ˙ ( t ) V ( t ) = 0 \nabla_{\dot{\gamma}(t)}V(t)=0 ∇ γ ˙ ( t ) V ( t ) = 0 to be precise. The interpretation of the differential equation is that according to the affine connection ∇ \nabla ∇ , the vectors V ( t ) V(t) V ( t ) stay constant along the path γ \gamma γ . Setting V ( 0 ) = v ∈ T γ ( 0 ) M V(0)=v \in T_{\gamma(0)}M V ( 0 ) = v ∈ T γ ( 0 ) M as the initial condition, we get a path of tangent vectors V ( t ) V(t) V ( t ) transporting v v v to V ( 1 ) ∈ T γ ( 1 ) M V(1) \in T_{\gamma(1)}M V ( 1 ) ∈ T γ ( 1 ) M , which we define to be the parallel transport P γ ( v ) P_{\gamma}(v) P γ ( v ) .
In general, parallel transports depend on the path γ \gamma γ along which vectors are transported. However if the curvature tensor10 for the given connection is identically zero—in which case we call this a flat connection —then for two paths with the same endpoints that can be deformed into each other their parallel transports are the same. This means that, unless there is a global topological obstruction such as in the handle of a coffee mug, for a flat connection we can talk about the parallel transport . See, e.g. p.36 in Heckman [16 ] .
For a Lie group G G G , we can declare left invariant vector fields to be parallel by setting ∇ X Y = 0 \nabla_XY=0 ∇ X Y = 0 for X , Y X,Y X , Y left invariant11 . This is enough to define a flat affine connection. Flatness follows directly from the definition of the curvature tensor using that the Lie bracket of two left-invariant vector fields is also left-invariant. The parallel transports along all paths (locally in contractible patches) are given by the maps d L g \mathrm{d}L_g d L g .
In the LG-BLR we expressed our updates at any point g t g_t g t by g t + 1 = g t exp ( − η Y ^ t ) g_{t+1}=g_t\exp(-\eta\hat{Y}_t) g t + 1 = g t exp ( − η Y ^ t ) for an element Y ^ t ∈ g \hat{Y}_t \in\mathfrak{g} Y ^ t ∈ g . Given the flat connection defined in the above paragraph, the identification of the gradient at g t g_t g t to the vector Y ^ t \hat{Y}_t Y ^ t in the Lie algebra g = T e G \mathfrak{g}=T_eG g = T e G corresponds to the parallel transport. As a side note, we remark that the retraction used in this update given by the exponential map is a geodesic for this connection.
The exponential families E F ν , T \mathrm{EF}_{\nu,T} EF ν , T famously have two flat connections ∇ e \nabla^e ∇ e and ∇ m \nabla^m ∇ m 12 . The parallel transport with respect to the ∇ e \nabla^e ∇ e connection corresponds to the flat vector space connection in the λ \lambda λ space. In other words for two natural parameters λ 1 , λ 2 ∈ Ω ν , T ⊆ V ∗ \lambda_1,\lambda_2 \in\Omega_{\nu,T} \subseteq V^* λ 1 , λ 2 ∈ Ω ν , T ⊆ V ∗ the parallel transport given by the e e e -connection allows us to identify the spaces where the natural gradients ∇ ~ λ E ( λ 1 ) \widetilde{\nabla}_{\lambda}\mathcal{E}(\lambda_1) ∇ λ E ( λ 1 ) and ∇ ~ λ E ( λ 2 ) \widetilde{\nabla}_{\lambda}\mathcal{E}(\lambda_2) ∇ λ E ( λ 2 ) live, which are technically in different tangent spaces T λ 1 Ω T_{\lambda_1}\Omega T λ 1 Ω and T λ 2 Ω T_{\lambda_2}\Omega T λ 2 Ω . The concrete coordinates already realize them as vectors in V ∗ V^* V ∗ , which coincides with the identification of the tangent spaces using the ∇ e \nabla^e ∇ e parallel transport. The parallel transport given by the m m m -connection, on the other hand, identifies space of the gradients in the expectation parameters μ \mu μ , which coincides with the identification given by the concrete coordinatization d ξ ∣ λ 1 , d ξ ∣ λ 2 ∈ V \mathrm{d}\xi|_{\lambda_1},\mathrm{d}\xi|_{\lambda_2} \in V d ξ ∣ λ 1 , d ξ ∣ λ 2 ∈ V . These two are related to each other by the Fisher metric F λ F_\lambda F λ .
Implementing the momentum as the Exponential Moving Average (EMA) of past gradients (parallel transported to the current point’s tangent space with respect to a chosen affine connection) we thus have three notions of such an EMA:
m t = β m t − 1 + ( 1 − β ) ∇ ~ E ( λ t ) . m_t = \beta m_{t-1} + (1-\beta)\widetilde{\nabla}^{\mathcal{E}}(\lambda_t). m t = β m t − 1 + ( 1 − β ) ∇ E ( λ t ) .
This accumulation is happening in the natural parameter space V ∗ V^* V ∗ .
n t = β n t − 1 + ( 1 − β ) d E ∣ λ t m t = F λ t − 1 n t n_t = \beta n_{t-1} + (1-\beta)\mathrm{d}\mathcal{E}\big|_{\lambda_t}
\qquad
m_t = F_{\lambda_t}^{-1}n_t n t = β n t − 1 + ( 1 − β ) d E λ t m t = F λ t − 1 n t
For a harmonic exponential family, the statistical manifold can be parametrized by the Lie group and we can apply the left-invariant connection described above. This corresponds to an EMA of the update vectors Y ^ t ∈ g \widehat{Y}_t \in\mathfrak{g} Y t ∈ g . For an exponential family, the relation of such an averaging to calculations in the λ \lambda λ coordinates is described in more detail in Sec. 5.4 of the main text.
Background on Exponential Families
Non-constructive Definition of an Exponential Family
Let R ( X ) \mathcal{R}(X) R ( X ) denote the set of all Radon measures on a manifold X X X .
Definition 10 (Exponential Family) A non-empty subset P ⊂ R ( X ) \mathcal{P} \subset\mathcal{R}(X) P ⊂ R ( X ) consisting of probability measures is an exponential family on X X X if there exists a pair ( ν , T ) (\nu,\mathbf{T}) ( ν , T ) satisfying
(i) ν ∈ R ( X ) \nu\in\mathcal{R}(X) ν ∈ R ( X ) ,
(ii) T : X → V \mathbf{T}: X \to V T : X → V is a continuous map,
(iii) where V V V is a finite dimensional real vector space,
(iv) and for any probability distribution p ∈ P p \in\mathcal{P} p ∈ P , there exists λ ∈ V ∗ \lambda\in V^* λ ∈ V ∗ such that the Radon-Nikodym derivative of p p p with respect to ν \nu ν is given by
d p d ν ( x ) = exp ( − ⟨ λ , T ( x ) ⟩ − A ( λ ) ) , (26) \frac{\mathrm{d}p}{\mathrm{d}\nu}(x) = \exp\left(-\langle\lambda,\mathbf{T}(x)\rangle- A(\lambda)\right), \tag*{(26)} d ν d p ( x ) = exp ( − ⟨ λ , T ( x )⟩ − A ( λ ) ) , (26) where
A ( λ ) : = log ∫ X exp ( − ⟨ λ , T ( x ) ⟩ ) d ν ( x ) A(\lambda) := \log\int_X \exp\left(-\langle\lambda,\mathbf{T}(x)\rangle\right)\mathrm{d}\nu(x) A ( λ ) := log ∫ X exp ( − ⟨ λ , T ( x )⟩ ) d ν ( x ) (log-partition function). {#eq:26}
Here, V ∗ V^* V ∗ denotes the dual space of V V V and ⟨ ⋅ , ⋅ ⟩ : V ∗ × V → R \langle\cdot,\cdot\rangle: V^* \times V \to\mathbb{R} ⟨ ⋅ , ⋅ ⟩ : V ∗ × V → R denotes the natural pairing. We call the pair ( ν , T ) (\nu,\mathbf{T}) ( ν , T ) a realization of P \mathcal{P} P . Moreover, if the dimension of V V V is minimal among all the realizations of P \mathcal{P} P , the realization is said to be minimal.
Given an exponential family P \mathcal{P} P , and a realization R = ( ν , T ) R = (\nu, \mathbf{T}) R = ( ν , T ) of P \mathcal{P} P denote by Ω R ( P ) ⊂ Ω R ⊆ V ∗ \Omega_R(\mathcal{P}) \subset\Omega_R \subseteq V^{*} Ω R ( P ) ⊂ Ω R ⊆ V ∗ the set of natural parameters λ \boldsymbol{\lambda} λ that give elements of P \mathcal{P} P . It is clearly possible that more than one λ \boldsymbol{\lambda} λ yields the same distribution if the components { 1 , T 1 ( θ ) , … , T d ( θ ) } \{1, T_1(\theta), \ldots, T_d(\theta)\} { 1 , T 1 ( θ ) , … , T d ( θ )} are not linearly independent functions (up to ν \nu ν -almost everywhere equivalence). In such a case, clearly R R R is not a minimal realization of P \mathcal{P} P since we can replace T \mathbf{T} T by T ′ \mathbf{T}' T ′ by omitting certain dimensions so that the coordinate functions are linearly independent. Another source of non-minimality can occur if Ω R ( P ) \Omega_R(\mathcal{P}) Ω R ( P ) lies in an affine space. Note first that the affine hull of these natural parameters of P \mathcal{P} P is then of the form λ b + W \boldsymbol{\lambda}_b + W λ b + W for some subspace W ⊆ V ∗ W \subseteq V^{*} W ⊆ V ∗ . It is possible to change the realization R ′ = ( ν e − ⟨ λ b , T ⟩ , T ′ ) R' = (\nu e^{-\langle\boldsymbol{\lambda}_b,\mathbf{T}\rangle}, \mathbf{T}') R ′ = ( ν e − ⟨ λ b , T ⟩ , T ′ ) where T ′ \mathbf{T}' T ′ is a subset of the linear combination of functions of T \mathbf{T} T . In this case we get a minimal representation of the exponential family.
The log-partition function A A A is differentiable in the interior of Ω R \Omega_R Ω R , and for λ ∈ Ω R ∘ ⊆ Ω R \boldsymbol{\lambda} \in\Omega_R^{\circ} \subseteq\Omega_R λ ∈ Ω R ∘ ⊆ Ω R in the interior, the negative gradient of the log partition function is the change of coordinates function from the natural parameters to the mean parameters
− ∇ A : Ω R ∘ ⟶ V -\nabla A : \Omega_R^{\circ} \longrightarrow V − ∇ A : Ω R ∘ ⟶ V
λ ⟼ μ : = E q λ [ T ] . \boldsymbol{\lambda} \longmapsto\boldsymbol{\mu} := \mathbb{E}_{q_{\boldsymbol{\lambda}}}[\mathbf{T}]. λ ⟼ μ := E q λ [ T ] .
Here the mean variable μ = E q λ [ T ] ∈ V \boldsymbol{\mu} = \mathbb{E}_{q_{\boldsymbol{\lambda}}}[\mathbf{T}] \in V μ = E q λ [ T ] ∈ V is another coordinatization of such distributions with λ ∈ Ω R ∘ \boldsymbol{\lambda} \in\Omega_R^{\circ} λ ∈ Ω R ∘ . For a minimal realization this map from the interior is one-to-one, it is a change of coordinates.
The Gradient vs the Differential from a Geometric Point of View
There is a meaningful distinction between the gradient and the differential of a function at a point. Let us take, for concreteness, the example of E : Ω ( P ) → R \mathcal{E} : \Omega(\mathcal{P}) \to\mathbb{R} E : Ω ( P ) → R . The differential of E \mathcal{E} E at a λ \boldsymbol{\lambda} λ is actually a linear map
d E ∣ λ : T λ Ω ( P ) ≅ V ∗ → T E ( λ ) R ≅ R . \left.d\mathcal{E}\right|_{\boldsymbol{\lambda}} : T_{\boldsymbol{\lambda}}\Omega(\mathcal{P}) \cong V^{*} \to T_{\mathcal{E}(\boldsymbol{\lambda})}\mathbb{R} \cong\mathbb{R}. d E ∣ λ : T λ Ω ( P ) ≅ V ∗ → T E ( λ ) R ≅ R .
In other words d E ∣ λ ∈ ( V ∗ ) ∗ ≅ V \left.d\mathcal{E}\right|_{\boldsymbol{\lambda}} \in(V^{*})^{*} \cong V d E ∣ λ ∈ ( V ∗ ) ∗ ≅ V . This is not the same space where λ \boldsymbol{\lambda} λ lives, it is its dual. In other words if λ \boldsymbol{\lambda} λ are represented by column vectors, then the differential d E ∣ λ \left.d\mathcal{E}\right|_{\boldsymbol{\lambda}} d E ∣ λ is a row vector, representing a linear functional on the λ \boldsymbol{\lambda} λ ’s. It is a cotangent vector, and thus cannot be treated as a tangent direction to perform gradient descent on the manifold directly.
A trivial way to convert the differential to a tangent vector in coordinates is to take the transpose of the row vector, turning it into a column vector. This corresponds to the special case of choosing a Euclidean metric in the following more general construction. A metric is a bilinear form on the tangent space. Again for concreteness consider the Fisher metric at a point λ ∈ Ω ( P ) \boldsymbol{\lambda} \in\Omega(\mathcal{P}) λ ∈ Ω ( P ) . This is a bilinear form F λ : V ∗ × V ∗ → R F_{\boldsymbol{\lambda}} : V^{*} \times V^{*} \to\mathbb{R} F λ : V ∗ × V ∗ → R which can also be seen as a linear function F λ : V ∗ → V F_\lambda: V^* \to V F λ : V ∗ → V upon fixing one of the variables (also called currying in computer science). If the metric is nondegenerate, i.e., if there are no nonzero vectors which are orthogonal to every other vector (including itself), then this map is invertible and F λ − 1 F_\lambda^{-1} F λ − 1 gives us a method to convert the differentials (which are cotangent vectors at λ \lambda λ ) to tangent vectors. In fact
arg max v ∈ T λ Ω ( P ) ≅ V ∗ d E ∣ λ [ v ] subject to ∥ v ∥ F i s h e r 2 = ω F i s h e r ( v , v ) = v T F λ v = 1. \underset{\mathbf{v}\in T_\lambda\Omega(\mathcal{P})\cong V^*}{\operatorname{arg\,max}}\ d\mathcal{E}\big|_\lambda[\mathbf{v}]
\qquad\text{subject to}\qquad
\|\mathbf{v}\|_{\mathrm{Fisher}}^2=\omega^{\mathrm{Fisher}}(\mathbf{v},\mathbf{v})=\mathbf{v}^{\mathsf{T}}F_\lambda\mathbf{v}=1. v ∈ T λ Ω ( P ) ≅ V ∗ arg max d E λ [ v ] subject to ∥ v ∥ Fisher 2 = ω Fisher ( v , v ) = v T F λ v = 1.
is solved by v / ∥ v ∥ F i s h e r \mathbf{v}/\|\mathbf{v}\|_{\mathrm{Fisher}} v /∥ v ∥ Fisher where v = F λ − 1 d E ∣ λ \mathbf{v}=F_\lambda^{-1}d\mathcal{E}\big|_\lambda v = F λ − 1 d E λ .
The Fisher metric at λ ∈ Ω ( P ) \lambda\in\Omega(\mathcal{P}) λ ∈ Ω ( P ) is a bilinear form on the tangent space T λ Ω ( P ) ≅ V ∗ T_\lambda\Omega(\mathcal{P})\cong V^* T λ Ω ( P ) ≅ V ∗ an analogue of the dot product on the tangent vectors. Concretely it is defined as
F λ : V ∗ × V ∗ ⟶ R F_\lambda:V^*\times V^*\longrightarrow\mathbb{R} F λ : V ∗ × V ∗ ⟶ R
F λ ( v , w ) = E θ ∼ q λ [ ( ∂ v log q λ ) ( ∂ w log q λ ) ] . F_\lambda(\mathbf{v},\mathbf{w})=\mathbb{E}_{\theta\sim q_\lambda}\left[(\partial_{\mathbf{v}}\log q_\lambda)(\partial_{\mathbf{w}}\log q_\lambda)\right]. F λ ( v , w ) = E θ ∼ q λ [ ( ∂ v log q λ ) ( ∂ w log q λ ) ] .
This is similar to what happens in the Lie algebra. With B B B on g \mathfrak{g} g we can rewrite Eq. (8) as finding a Y ^ ∈ g \hat{Y}\in\mathfrak{g} Y ^ ∈ g that satisfies B ( Y ^ , ⋅ ) = d ( E ∘ φ ∘ L g ) ∣ e B(\hat{Y},\cdot)=d(\mathcal{E}\circ\varphi\circ L_g)\big|_e B ( Y ^ , ⋅ ) = d ( E ∘ φ ∘ L g ) e . Here both sides are elements of g ∗ \mathfrak{g}^* g ∗ , covectors taking in X ∈ g X\in\mathfrak{g} X ∈ g and spitting out numbers. Such a Y ^ \hat{Y} Y ^ can be found if the linear functional on the right hand side vanishes on the kernel of B B B . The equivalent presentation involving an optimization constrained to the unit ball also builds the intuition explaining the phrase “the direction of fastest ascent/descent”.