← Latest papers
🔢 mathematics

SGD for Variational Inference: Tackling Unbounded Variance via Preconditioning and Dynamic Batching

This paper bridges the gap between stochastic optimization theory and Black-Box Variational Inference by proving the existence of ELBO solutions and establishing convergence guarantees for Minibatch Projected SGD with dynamic batching and preconditioning under the Blum-Gladyshev condition, which accounts for the unbounded variance inherent in BBVI gradients.

Original authors: Hippolyte Labarrière, Cesare Molinari, Silvia Villa, Lorenzo Rosasco

Published 2026-05-11
📖 5 min read🧠 Deep dive

Original authors: Hippolyte Labarrière, Cesare Molinari, Silvia Villa, Lorenzo Rosasco

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you are trying to find the lowest point in a vast, foggy valley (this is the goal of Variational Inference: finding the best approximation of a complex probability distribution). You can't see the whole valley at once, so you have to take steps based on the ground beneath your feet.

In the world of machine learning, this is done using an algorithm called Stochastic Gradient Descent (SGD). Think of SGD as a hiker taking small steps downhill. Usually, we assume the ground is somewhat predictable: if you take a step, the slope doesn't change wildly.

However, in Black-Box Variational Inference (BBVI), the ground is treacherous. The "slope" (the gradient) you measure is incredibly noisy. In fact, the paper argues that the noise isn't just random; it gets wildly louder the further you are from the target. Standard hiking rules (mathematical assumptions) say the noise should stay within a certain limit, but here, the noise grows quadratically with your distance from the goal. It's like trying to walk down a hill where the wind gets exponentially stronger the further you are from the bottom.

The Paper's Solution: A Smarter Hiking Strategy

The authors, Hippolyte Labarrière and colleagues, propose two main tools to help the hiker survive this noisy terrain and actually reach the bottom:

1. The "Dynamic Batching" Backpack

Usually, a hiker looks at one patch of ground to decide where to step. In machine learning, this is called a "batch size of 1."

  • The Problem: If the ground is super noisy, looking at just one spot gives you a terrible idea of the slope.
  • The Fix: The paper suggests looking at more ground (increasing the batch size) as you get closer to the bottom or as you progress.
  • The Analogy: Imagine you are in a foggy forest. When you are far away, you might just peek through the trees. But as you get closer to the destination, you stop and scan a wider area to make sure you aren't walking off a cliff. By taking more samples (looking at more ground) over time, you smooth out the noise.

2. The "Preconditioning" Compass

Sometimes, the valley isn't just steep; it's shaped weirdly. Maybe it's a long, narrow canyon. If you take steps of the same size in every direction, you might bounce back and forth against the canyon walls instead of moving forward.

  • The Problem: The noise in the "location" (where you are) and the "scale" (how wide the distribution is) behaves differently. One might be very noisy, while the other is calm.
  • The Fix: The authors use a preconditioning matrix. Think of this as a smart compass that tells you, "Hey, the ground is slippery on the left, so take tiny steps there. The ground is solid on the right, so you can take big steps."
  • The Result: This balances the noise. It prevents the hiker from being thrown off course by the loudest part of the noise.

What Did They Prove?

The paper makes two major claims, backed by rigorous math:

  1. The Destination Exists: Before you can find the bottom of the valley, you have to be sure a bottom actually exists. In many previous papers, researchers just assumed the solution existed. These authors proved that for a broad class of distributions (elliptic location-scale families, which include Gaussians and Laplace distributions), a solution definitely exists, provided the target function grows fast enough.
  2. The Hiker Will Arrive: They proved that if you use their specific combination of Dynamic Batching (looking at more ground as you go) and Preconditioning (adjusting your step size based on the terrain), the algorithm is guaranteed to converge to the solution.
    • They showed this works for both "finite time" (how fast you get there in a set number of steps) and "asymptotic" (what happens if you walk forever).
    • Crucially, they showed that even though the noise is unbounded (it can get huge), these two techniques tame it effectively.

The "Real World" Test

To prove their theory works, they ran a simulation with a high-dimensional problem (200 dimensions, which is like a valley with 200 different directions to move).

  • The Result: The standard hiking method (plain SGD) was slow and shaky.
  • The New Method: The method using their smart compass (preconditioning) and dynamic backpack (batching) reached the bottom much faster and more smoothly.
  • Key Insight: The paper highlights that simply taking more steps isn't enough; you have to take smarter steps by adjusting how much data you look at and how you scale your movement.

Summary

In simple terms, this paper says: "We know the standard way of solving these complex probability problems is mathematically shaky because the noise gets too loud. We proved that a solution exists, and we showed that by using a 'smart compass' to balance the steps and a 'dynamic backpack' to gather more data as you go, you can reliably find the answer even in the noisiest, most chaotic environments."

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →