Bregman divergence

From testwiki
Jump to navigation Jump to search

Template:Short description Template:Use dmy dates In mathematics, specifically statistics and information geometry, a Bregman divergence or Bregman distance is a measure of difference between two points, defined in terms of a strictly convex function; they form an important class of divergences. When the points are interpreted as probability distributions – notably as either values of the parameter of a parametric model or as a data set of observed values – the resulting distance is a statistical distance. The most basic Bregman divergence is the squared Euclidean distance.

Bregman divergences are similar to metrics, but satisfy neither the triangle inequality (ever) nor symmetry (in general). However, they satisfy a generalization of the Pythagorean theorem, and in information geometry the corresponding statistical manifold is interpreted as a (dually) flat manifold. This allows many techniques of optimization theory to be generalized to Bregman divergences, geometrically as generalizations of least squares.

Bregman divergences are named after Russian mathematician Lev M. Bregman, who introduced the concept in 1967.

Definition

Let F:Ω be a continuously-differentiable, strictly convex function defined on a convex set Ω.

The Bregman distance associated with F for points p,qΩ is the difference between the value of F at point p and the value of the first-order Taylor expansion of F around point q evaluated at point p:

DF(p,q)=F(p)F(q)F(q),pq.

Properties

  • Non-negativity: DF(p,q)0 for all p, q. This is a consequence of the convexity of F.
  • Positivity: When F is strictly convex, DF(p,q)=0 iff p=q.
  • Uniqueness up to affine difference: DF=DG iff FG is an affine function.
  • Convexity: DF(p,q) is convex in its first argument, but not necessarily in the second argument. If F is strictly convex, then DF(p,q) is strictly convex in its first argument.
    • For example, Take f(x) = |x|, smooth it at 0, then take y=1,x1=0.1,x2=0.9,x3=0.9x1+0.1x2, then Df(y,x3)1>0.9Df(y,x1)+0.1Df(y,x2)0.2.
  • Linearity: If we think of the Bregman distance as an operator on the function F, then it is linear with respect to non-negative coefficients. In other words, for F1,F2 strictly convex and differentiable, and λ0,
DF1+λF2(p,q)=DF1(p,q)+λDF2(p,q)
  • Duality: If F is strictly convex, then the function F has a convex conjugate F* which is also strictly convex and continuously differentiable on some convex set Ω*. The Bregman distance defined with respect to F* is dual to DF(p,q) as
DF*(p*,q*)=DF(q,p)
Here, p*=F(p) and q*=F(q) are the dual points corresponding to p and q.
Moreover, using the same notations :
DF(p,q)=F(p)+F*(q*)p,q*
  • Integral form: by the integral remainder form of Taylor's Theorem, a Bregman divergence can be written as the integral of the Hessian of F along the line segment between the Bregman divergence's arguments.
  • Mean as minimizer: A key result about Bregman divergences is that, given a random vector, the mean vector minimizes the expected Bregman divergence from the random vector. This result generalizes the textbook result that the mean of a set minimizes total squared error to elements in the set. This result was proved for the vector case by (Banerjee et al. 2005), and extended to the case of functions/distributions by (Frigyik et al. 2008). This result is important because it further justifies using a mean as a representative of a random set, particularly in Bayesian estimation.
  • Bregman balls are bounded, and compact if X is closed: Define Bregman ball centered at x with radius r by Bf(x,r):={yX:Df(y,x)r}. When Xn is finite dimensional, xX, if x is in the relative interior of X, or if X is locally closed at x (that is, there exists a closed ball B(x,r) centered at x, such that B(x,r)X is closed), then Bf(x,r) is bounded for all r . If X is closed, then Bf(x,r) is compact for all r.
  • Law of cosines:[1]

For any p,q,z

DF(p,q)=DF(p,z)+DF(z,q)(pz)T(F(q)F(z))
BF(θ1:θ)+BF(θ2:θ)=BF(θ1:θ1+θ22)+BF(θ2:θ1+θ22)+2BF(θ1+θ22:θ)
Generalized Pythagorean theorem for Bregman divergence .[2]
  • Bregman projection: For any WΩ, define the "Bregman projection" of q onto W:

PW(q)=argminωWDF(ω,q). Then

    • if W is convex, then the projection is unique if it exists;
    • if W is nonempty, closed, and convex and Ωn is finite dimensional, then the projection exists and is unique.[3]
  • Generalized Pythagorean Theorem:[1]

For any vΩ,aW,

DF(a,v)DF(a,PW(v))+DF(PW(v),v).

This is an equality if PW(v) is in the relative interior of W.

In particular, this always happens when W is an affine set.

  • Lack of triangle inequality: Since the Bregman divergence is essentially a generalization of squared Euclidean distance, there is no triangle inequality. Indeed, DF(z,x)DF(z,y)DF(y,x)=f(y)f(x),zy, which may be positive or negative.

Proofs

  • Non-negativity and positivity: use Jensen's inequality.
  • Uniqueness up to affine difference: Fix some xΩ, then for any other yΩ, we have by definitionF(y)G(y)=F(x)G(x)+F(x)G(x),yx.
  • Convexity in the first argument: by definition, and use convexity of F. Same for strict convexity.
  • Linearity in F, law of cosines, parallelogram law: by definition.
  • Duality: See figure 1 of.[4]
  • Bregman balls are bounded, and compact if X is closed:

Fix xX . Take affine transform on f , so that f(x)=0.

Take some ϵ>0, such that B(x,ϵ)X. Then consider the "radial-directional" derivative of f on the Euclidean sphere B(x,ϵ).

f(y),(yx) for all yB(x,ϵ).

Since B(x,ϵ)n is compact, it achieves minimal value δ at some y0B(x,ϵ).

Since f is strictly convex, δ>0. Then Bf(x,r)B(x,r/δ)X.

Since Df(y,x) is C1 in y, Df is continuous in y, thus Bf(x,r) is closed if X is.

  • Projection PW is well-defined when W is closed and convex.

Fix vX. Take some wW , then let r:=Df(w,v). Then draw the Bregman ball Bf(v,r)W. It is closed and bounded, thus compact. Since Df(,v) is continuous and strictly convex on it, and bounded below by 0, it achieves a unique minimum on it.

  • Pythagorean inequality.

By cosine law, Df(w,v)Df(w,PW(v))Df(PW(v),v)=yDf(y,v)|y=PW(v),wPW(v), which must be 0, since PW(v) minimizes Df(,v) in W, and W is convex.

  • Pythagorean equality when PW(v) is in the relative interior of X.

If yDf(y,v)|y=PW(v),wPW(v)>0, then since w is in the relative interior, we can move from PW(v) in the direction opposite of w, to decrease Df(y,v) , contradiction.

Thus yDf(y,v)|y=PW(v),wPW(v)=0.

Classification theorems

Template:Math proof

The following two characterizations are for divergences on Γn, the set of all probability measures on {1,2,...,n}, with n2.

Define a divergence on Γn as any function of type D:Γn×Γn[0,], such that D(x,x)=0 for all xΓn, then:

Given a Bregman divergence DF, its "opposite", defined by DF*(v,w)=DF(w,v), is generally not a Bregman divergence. For example, the Kullback-Leiber divergence is both a Bregman divergence and an f-divergence. Its reverse is also an f-divergence, but by the above characterization, the reverse KL divergence cannot be a Bregman divergence.

Examples

  • The squared Mahalanobis distance DF(x,y)=12(xy)TQ(xy) is generated by the convex quadratic form F(x)=12xTQx.
  • The canonical example of a Bregman distance is the squared Euclidean distance DF(x,y)=xy2. It results as the special case of the above, when Q is the identity, i.e. for F(x)=x2. As noted, affine differences, i.e. the lower orders added in F, are irrelevant to DF.
  • The generalized Kullback–Leibler divergence
DF(p,q)=ip(i)logp(i)q(i)p(i)+q(i)
is generated by the negative entropy function
F(p)=ip(i)logp(i)
When restricted to the simplex, the last two terms cancel, giving the usual Kullback–Leibler divergence for distributions.
DF(p,q)=i(p(i)q(i)logp(i)q(i)1)
is generated by the convex function
F(p)=ilogp(i)

Generalizing projective duality

A key tool in computational geometry is the idea of projective duality, which maps points to hyperplanes and vice versa, while preserving incidence and above-below relationships. There are numerous analytical forms of the projective dual: one common form maps the point p=(p1,pd) to the hyperplane xd+1=1d2pixi. This mapping can be interpreted (identifying the hyperplane with its normal) as the convex conjugate mapping that takes the point p to its dual point p*=F(p), where F defines the d-dimensional paraboloid xd+1=xi2.

If we now replace the paraboloid by an arbitrary convex function, we obtain a different dual mapping that retains the incidence and above-below properties of the standard projective dual. This implies that natural dual concepts in computational geometry like Voronoi diagrams and Delaunay triangulations retain their meaning in distance spaces defined by an arbitrary Bregman divergence. Thus, algorithms from "normal" geometry extend directly to these spaces (Boissonnat, Nielsen and Nock, 2010)

Generalization of Bregman divergences

Bregman divergences can be interpreted as limit cases of skewed Jensen divergences (see Nielsen and Boltz, 2011). Jensen divergences can be generalized using comparative convexity, and limit cases of these skewed Jensen divergences generalizations yields generalized Bregman divergence (see Nielsen and Nock, 2017). The Bregman chord divergence[7] is obtained by taking a chord instead of a tangent line.

Bregman divergence on other objects

Bregman divergences can also be defined between matrices, between functions, and between measures (distributions). Bregman divergences between matrices include the Stein's loss and von Neumann entropy. Bregman divergences between functions include total squared error, relative entropy, and squared bias; see the references by Frigyik et al. below for definitions and properties. Similarly Bregman divergences have also been defined over sets, through a submodular set function which is known as the discrete analog of a convex function. The submodular Bregman divergences subsume a number of discrete distance measures, like the Hamming distance, precision and recall, mutual information and some other set based distance measures (see Iyer & Bilmes, 2012 for more details and properties of the submodular Bregman.)

For a list of common matrix Bregman divergences, see Table 15.1 in.[8]

Applications

In machine learning, Bregman divergences are used to calculate the bi-tempered logistic loss, performing better than the softmax function with noisy datasets.[9]

Bregman divergence is used in the formulation of mirror descent, which includes optimization algorithms used in machine learning such as gradient descent and the hedge algorithm.

References

Template:Reflist Template:Refbegin

Template:Refend

  1. 1.0 1.1 Template:Cite web
  2. Template:Cite journal
  3. Template:Cite journal
  4. Template:Cite journal
  5. Template:Cite journal
  6. 6.0 6.1 Template:Cite journal
  7. Template:Cite book
  8. "Matrix Information Geometry", R. Nock, B. Magdalou, E. Briys and F. Nielsen, pdf, from this book
  9. Ehsan Amid, Manfred K. Warmuth, Rohan Anil, Tomer Koren (2019). "Robust Bi-Tempered Logistic Loss Based on Bregman Divergences". Conference on Neural Information Processing Systems. pp. 14987-14996. pdf