hn.today

Exploding variance of means of exponentials: least-squares to the rescue

francisbach.com62 points0 comments
Screenshot of Exploding variance of means of exponentials: least-squares to the rescue

Estimating log-sum-exp quantities like log ∫ e^{v(x)} dq(x) by sampling is common but statistically fragile: exponentiating amplifies variance so severely that sample averages of e^{z} (for Gaussian z) have relative error scaling (e^{σ^2}-1)/n, and taking the logarithm does not cure the explosion. The proposed remedy is to exploit the stability of least-squares by rewriting the Kullback-Leibler f(t)=t log t - t +1 (and other f-divergences) as integrals of “quadratic-over-affine” functions. That identity turns the original convex variational problem with log-sum-exp terms into a supremum over quadratic objectives, which correspond to weighted least-squares prediction problems with controlled variance.

Technically, for each mixing parameter ρ∈(0,1) the weighted chi-square fρ(t)=½ (t−1)^2/(ρ t+1−ρ) admits a quadratic variational form whose optimizer u(ρ,x) is explicit. Integrating these representations against a nonnegative measure over ρ recovers general f and produces two potentials v(x), w(x) as integrals of simple quadratic expressions in u(ρ,x). This yields a least-squares-based framework for relative density and KL estimation that preserves the benefits of log-sum-exp models (smoothness, normalization) while avoiding unstable empirical exponential averages, and it extends naturally to related quantities like mutual information.

Read on francisbach.com0 comments on Hacker News

Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.

More in Science

Bologna Bottle

Bologna Bottle

A Bologna bottle is a type of glass container with high external strength but fragile interior, created through rapid cooling on the outside and slow cooling inside during manufacturing. It is used mainly in magic tricks and demonstrations due to its unique stress properties, making it both durable externally and easily shattered internally. (en.wikipedia.org)

The daily digest

Today's best Hacker News stories, summarized and screenshotted, one email a day.