Solving hidden monotone variational inequalities with surrogate losses

Ryan D'Orazio, Danilo Vucetic, Zichu Liu, Junhyung Lyle Kim, Ioannis Mitliagkas, Gauthier Gidel

TL;DR

Deep learning optimizers like Adam excel at minimizing standard scalar losses but often fail on Variational Inequalities (VIs)—the mathematical structure underlying min-max games (like GANs) and reinforcement learning (RL). This paper introduces a surrogate loss framework that translates these tricky VI problems into a sequence of standard loss minimization tasks. By simply reducing these surrogate losses by a specific threshold (the "$\alpha$-descent condition"), the method guarantees convergence and yields highly efficient, novel algorithms for deep RL.

What Problem Does This Paper Address?

In standard supervised learning, training a model is straightforward: you define a single scalar loss function and use gradient descent to find the bottom of the hill. However, many advanced machine learning problems cannot be framed this way. For example, in min-max optimization (where two networks compete) or in Reinforcement Learning (where an agent minimizes the projected Bellman error), the dynamics are adversarial or recursive.

Mathematically, these are formulated as Variational Inequalities (VIs). If you naively apply standard gradient descent to VIs, the training dynamics often cycle endlessly or diverge entirely due to rotational forces. While researchers have previously used "surrogate losses" to stabilize standard scalar minimization, extending this trick to VIs has been an open challenge. The authors tackle this gap, aiming to build a bridge between the complex math of VIs and the plug-and-play convenience of deep learning optimizers.

Methods

The authors propose a double-loop algorithm that leverages the "hidden monotone structure" of these problems. Even if the problem is highly non-convex with respect to the neural network's parameters, it often behaves nicely (monotonically) with respect to the network's predictions.

Here is how their approach works:

  1. Surrogate Loss Construction: Instead of trying to solve the VI directly, the algorithm constructs a sequence of standard, scalar "surrogate" losses. Minimizing this surrogate loss perfectly would be equivalent to taking an exact, mathematically ideal step in the prediction space.
  2. The $\alpha$-Descent Condition: Fully minimizing a neural network loss at every step is computationally ruinous. The authors introduce a relaxed rule: the inner optimizer (which can be standard Adam or Gradient Descent) only needs to reduce the surrogate loss by a specific fraction ($\alpha^2$).
  3. Double-Loop Optimization: The outer loop updates the VI target, while the inner loop takes a few gradient steps on the surrogate loss until the $\alpha$-descent condition is met.

For RL specifically, they translate this framework into a novel variant of the classic Temporal Difference (TD) learning algorithm, creating batch-based and double-sampling surrogate TD methods.

Datasets

The authors evaluate their methods across two domains:

  • Min-Max Optimization: Two continuous game environments introduced in prior literature: Hidden Matching Pennies and Hidden Rock-Paper-Scissors.
  • Reinforcement Learning (Policy Evaluation):
    • A slow-mixing 100-state Markov chain (for linear function approximation).
  • MuJoCo Environments (Ant and HalfCheetah): Standard continuous control physics simulations used to test the algorithms with non-linear deep neural networks.

Key Insights and Ideas

  • VIs are strictly harder than standard minimization: In standard scalar optimization, any surrogate reduction ($\alpha < 1$) guarantees you are moving in the right direction. The authors mathematically prove that for VIs, this is false. Because of rotational dynamics, a weak reduction ($\alpha$ close to 1) can actually cause the model to diverge. You must reduce the surrogate loss by a sufficiently small $\alpha$ to guarantee convergence.
  • Unifying past algorithms: The authors show that several existing, complex pre-conditioning methods (like Preconditioned Hidden Gradient Descent, or PHGD) are actually just special cases of their framework. Specifically, PHGD is equivalent to taking exactly one Gauss-Newton optimization step on their proposed surrogate loss.
  • "Good enough" is mathematically sound: You don't need infinite compute to solve VIs. The $\alpha$-descent condition proves that taking just a few inner gradient steps (e.g., 10 to 50) is enough to guarantee global convergence, making the method highly practical for deep learning.

Key Results

  • Stabilized Min-Max Games: In the hidden matching pennies and rock-paper-scissors games, standard Gradient Descent-Ascent (GDA) was highly unstable. The surrogate method with 10 inner steps converged linearly and outperformed existing pre-conditioned methods.
Comparison of optimization trajectories and convergence rates for various algorithms, highlighting the stability of the surrogate method.
Player strategy trajectories and convergence metrics in a min-max game setting.
  • Crushing TD(0) in Deep RL: In the MuJoCo Ant and HalfCheetah environments, the proposed surrogate methods significantly outperformed standard TD(0) for policy evaluation. They required far fewer environment interactions (data efficiency) and less wall-clock time to reach a low value prediction error.
  • Lower Error Floors: Interestingly, the surrogate methods didn't just learn faster; they converged to a strictly lower final prediction error than TD(0), proving the stabilizing power of the inner-loop surrogate minimization.

Limitations and Future Work

  • Convexity Assumption: The theoretical convergence guarantees rely on the assumption that the set of all possible model predictions is convex. While this holds true for linear models and highly overparameterized neural networks (which can interpolate any dataset), it may not hold for smaller, constrained architectures. The authors note relaxing this assumption as a direction for future work.
  • Global Minima of Surrogates: The theory assumes the inner loop avoids getting stuck in bad local minima of the non-convex surrogate loss. While overparameterized networks usually avoid this in practice, it remains a theoretical limitation.

Summary updated

BibTeX
@inproceedings{dorazio2025solving,
  author = {Ryan D'Orazio and Danilo Vucetic and Zichu Liu and Junhyung Lyle Kim and Ioannis Mitliagkas and Gauthier Gidel},
  title = {{Solving hidden monotone variational inequalities with surrogate losses}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=4ZX2a3OKEV},
}
Figure