Improved Stochastic Optimization of LogSumExp
Abstract
Lay Summary
Many machine learning methods need to combine a large number of scores, losses, or costs into a single objective. A common way to do this is the LogSumExp function, which first sums many exponentials and then takes a logarithm. Such a structure makes the objective difficult to optimize with random small batches, because a small batch does not faithfully represent the full objective. We propose a new approximation that moves the problem into a form better suited for stochastic gradient methods, which are the standard tools for large-scale machine learning. The approximation preserves important mathematical properties of LogSumExp, such as smoothness and convexity, while allowing unbiased stochastic gradients for the new objective. It is based on a controlled modification of the mathematical formulation behind LogSumExp, which also prevents any single sampled term from receiving an excessively large weight. Our experiments show that this approach is effective for optimal transport and robust learning problems. In difficult regimes, it avoids numerical failures and can converge faster than existing methods designed for these applications.