# Poster 29718

- Kind: Poster
- Talk page and recording: https://iclr.cc/virtual/2025/poster/29718

> Transcript of the talk's recording (session_asr), made by speech recognition or taken from the host's captions. It may contain errors. The words are the speakers'; listen to the recording on the talk's page before quoting it.

Hi, everyone, and welcome. My name is Lukas, and I'm going to present our recent work on debiasing mini-batch quadratics for applications in deep learning. Let me start with this question. Why are mini-batch quadratics important? So in order to explain this, I have to introduce a little bit of notation so we consider the standard deep learning problem where the objective function is given by the regularized loss.
So we have the sum of the empirical risk for the network f with parameters theta and the regularization term R. And the full batch quadratic around some location theta zero is simply given by the second order Taylor expansion of that function. So we have the Hessian H, gradient G and a constant shift C, all of which are evaluated on the entire training set D.
Now this is typically infeasible if you have a larger model or a large data set. So what we do instead is we approximate this object on a mini-batch of data, so a small subset of data. So we basically do a further approximation of the full-batch quadratic with the mini-batch version.
Now, what are these quadratic approximations used for? In the paper, we consider two applications. The first one is second-order optimizers. Here, the idea is to try to find a step into the minimum of that quadratic approximation, so the Newton step. And the second application is uncertainty quantification with data plus approximation. So here we train a model until convergence.
And then we can interpret this quadratic approximation as a Gaussian over the parameters theta. Now the question you might have is, is this mini-batch quadratic actually a good proxy, a good approximation for the full batch quadratic? And what actually changes when we move from the entire training set to a small mini-batch? So let's take a look at a visual example.
So here you can see five mini batch quadratics in orange shown in the 2D subspace that exhibits the largest curvature. And we show the full batch version of the quadratic in the same subspace in green. And you can clearly see that in most cases they are very different. Now in the paper we provide more empirical evidence and also make a theoretical argument that this is a general principle.
Quadratic approximations to the training loss computed on minibatches of the training data provide a distorted representation of the true underlying loss landscape. And this is of course highly relevant for applications that operate on the minibatch quadratic. So for example, second order optimizers might make detrimental updates of the parameters because clearly the Newton step for the orange function is very different from the Newton step for the green function.
And also if you imagine turning these quadratics into Gaussians, you can also see that the Gaussians are of course quite different. So we might get unreliable uncertainty estimates if we use the mini-batch quadratic. Now how can we actually fix this?
So the approach we presented in the paper is based on the following idea. We split the mini-batch in two and use one half for directions like CG directions or eigenvectors and the other half for directional quantities like eigenvalues or CG in step sizes. And it turns out that we can eliminate the bias at almost no computational overhead by this approach.
And one empirical result I want to show is for CG. So here we compare the standard single batch approach in orange with our debiased version and they have the same computational cost roughly and you can clearly see that our debiased version is much more stable.
Also for the Laplace approximation it turns out that we can mimic the full batch Laplace approximation very well using our debiased approach in contrast to the single batch approach. In summary we make the following contributions. We show that the bias presented here introduces a systematic error. We provide a theoretical explanation. We explain the relevance of this bias for second order optimization and uncertainty quantification with the Laplace approximation.
and we develop the biasing strategies and demonstrate their effectiveness. You can find the paper at the following link and with this I'm at the end and I want to thank you for your attention.
