Target-based Surrogates for Stochastic Optimization

Jonathan Wilder Lavington, Sharan Vaswani, Reza Babanezhad Harikandeh, Mark Schmidt, Nicolas Le Roux

In modern machine learning, particularly in Reinforcement Learning (RL) and Imitation Learning (IL), the computational bottleneck is often not backpropagation through the model, but the gradient oracle itself. Obtaining a single gradient might require thousands of interactions with a physics simulator (like MuJoCo) or a real-world environment. To address this, researchers have introduced Stochastic Surrogate Optimization (SSO), a framework designed to maximize the utility of expensive gradient computations. By constructing surrogate functions in a "target space" (such as model logits) rather than the raw parameter space, SSO enables multiple "cheap" parameter updates for every expensive gradient call, significantly amortizing computational costs and accelerating convergence.

The Bottleneck of Expensive Gradients

Standard first-order methods like SGD or Adam are inherently wasteful in environments with expensive oracles because they discard valuable gradient information after just a single parameter update. While majorization-minimization—building a surrogate that upper-bounds the loss and minimizing it—is a known remedy, most existing methods build these surrogates in the parameter space.

However, the parameter space of deep neural networks is notoriously high-dimensional and non-convex. In contrast, the target space (the intermediate outputs of the model) often possesses better mathematical properties, such as convexity and smoothness. Leveraging the target space allows for the construction of tighter, more effective surrogate functions that can guide the optimization process much more reliably.

Stochastic Surrogate Optimization (SSO)

The authors propose decomposing the objective function as $h(\theta) = \ell(f(\theta))$, where $f$ maps parameters to a target space and $\ell$ is a convex loss function. Instead of relying on the smoothness of the entire composition $h$, SSO utilizes the smoothness of the loss $\ell$ in the target space to construct a global upper bound.

The SSO algorithm operates in two nested loops:

  1. Outer Loop: The algorithm queries the expensive gradient oracle to compute the gradient with respect to the targets.
  2. Inner Loop: Using this gradient, it constructs a deterministic surrogate function. The model then performs $m$ steps of "cheap" gradient descent on this surrogate to update the parameters $\theta$.

This approach effectively disentangles the stochasticity of the data from the potential non-convexity of the model. The inner loop becomes a purely deterministic optimization problem. Theoretically, SSO can be viewed as inexact projected SGD in the target space. Furthermore, for linear regression, minimizing the target surrogate exactly (with infinite inner steps) recovers the Newton update, effectively modeling curvature without the massive memory overhead of an explicit Hessian matrix.

Key Insights and Empirical Performance

A major theoretical advantage of SSO appears in the "interpolation regime"—common in overparameterized deep learning where a model is expressive enough to fit the data perfectly. In this regime, the noise term in the convergence bound vanishes, making SSO particularly potent.

The framework was rigorously evaluated across Online Imitation Learning (using MuJoCo environments like Hopper-v2 and Walker2d-v2) and Supervised Learning (using LibSVM benchmarks). The results demonstrate superior sample efficiency:

  • Sample Efficiency: In MuJoCo environments, SSO drastically outperformed standard optimizers like SGD, Adam, Adagrad, and SLS, achieving lower log-loss with significantly fewer environment interactions.
  • Scalability with Updates: Performance scales with $m$; increasing the number of inner-loop steps consistently improved results, proving that the surrogate remains a reliable guide for multiple updates.
  • Wall-clock Efficiency: While SSO performs more computational work per gradient call, the authors demonstrate that when data collection is the true bottleneck (e.g., a simulator taking 1000x longer than a model update), SSO is nearly as fast as SGD in wall-clock time while being far more effective per sample.

Limitations and Future Directions

Despite its strong empirical performance, the current theoretical guarantees for SSO in stochastic settings assume the loss $\ell$ is convex and the model $f$ is an affine map. While experiments confirm its efficacy for non-linear neural networks, extending the theory to fully non-convex cases remains an open challenge. Additionally, in highly noisy stochastic settings where the model does not interpolate the data, SSO may converge to a neighborhood of the solution rather than the exact minimum.

Future work aims to extend this framework to general Reinforcement Learning—where the loss itself may be non-convex—and to explore "layer-wise" surrogates that could unlock massive parallelization in deep networks. Ultimately, SSO presents a compelling paradigm shift: by optimizing in the target space, we gain more direct control over the model's output updates, making the most out of every hard-earned gradient.

Summary updated

BibTeX
@inproceedings{lavington2023target,
  author = {Jonathan Wilder Lavington and Sharan Vaswani and Reza Babanezhad Harikandeh and Mark Schmidt and Nicolas Le Roux},
  title = {{Target-based Surrogates for Stochastic Optimization}},
  booktitle = {International Conference on Machine Learning},
  year = {2023},
  url = {https://openreview.net/forum?id=ALrbC6g1BH},
}
Figure