Single-Loop Stochastic Algorithms for Difference of Max-Structured Weakly Convex Functions

Quanqi Hu, Qi Qi, Zhaosong Lu, Tianbao Yang

Introduction

Optimization serves as the foundational engine for modern machine learning. However, as model architectures grow in complexity, the optimization landscapes become increasingly difficult to navigate. A significant challenge arises in non-smooth, non-convex optimization, particularly when dealing with objectives that involve the difference of complex functions. This paper, presented at NeurIPS 2024 by researchers from Texas A&M, the University of Iowa, and the University of Minnesota, introduces a streamlined approach to a challenging class of problems known as Difference of Max-Structured Weakly Convex (DMax) optimization.

The DMax Problem Framework

The researchers target the DMax optimization problem, which is characterized by the minimization of the difference between two max-structured functions:

$$\min_x [\max_{y \in Y} \phi(x, y) - \max_{z \in Z} \psi(x, z)]$$

This mathematical structure is highly significant because it unifies two previously distinct areas of optimization research:

  1. Difference-of-Weakly-Convex (DWC) optimization: Frequently applied in Positive-Unlabeled (PU) learning scenarios.
  2. Weakly-Convex-Strongly-Concave (WCSC) min-max optimization: Essential for adversarial learning and ensuring fairness in AI systems.

Traditionally, these problems are difficult to solve because the "max" terms prevent the calculation of unbiased gradient estimates. Existing state-of-the-art solutions typically rely on "double-loop" algorithms. These require an outer loop for the primary variable and a resource-intensive inner loop to solve sub-problems with high precision. Such nested structures are notoriously difficult to implement and tune due to the sensitivity of inner-loop hyperparameters.

The SMAG Algorithm

To address these inefficiencies, the authors propose the Stochastic Moreau envelope Approximate Gradient (SMAG) method. SMAG is the first single-loop stochastic algorithm designed for DMax problems. Its efficiency stems from two core innovations:

1. Moreau Envelope Smoothing

Instead of attempting to optimize the non-smooth objective directly, SMAG utilizes the Moreau envelope to smooth the component functions. This technique transforms the non-smooth problem into a smooth approximation, providing a more stable gradient landscape for the algorithm to navigate.

2. Single-Loop Design

Unlike traditional methods, SMAG eliminates the need for an inner loop. At each iteration, the algorithm performs only a single step of stochastic gradient update for the primal variable ($x$) and the dual variables ($y$ and $z$). By carefully managing step sizes, the authors demonstrate that these "lazy" updates are sufficient to accurately track the true gradient of the Moreau envelope over time.

Theoretical and Empirical Results

Despite its simplified structure, SMAG maintains a state-of-the-art non-asymptotic convergence rate of $O(\epsilon^{-4})$. This matches the speed of far more complex double-loop algorithms while significantly reducing the hyperparameter tuning burden for practitioners.

Experimental Validation

The researchers evaluated SMAG across two primary domains:

  • Positive-Unlabeled (PU) Learning: Using datasets such as Fashion-MNIST, MNIST, CIFAR10, and FER2013, the authors simulated data scarcity by treating specific classes as positive and others as unlabeled. SMAG consistently outperformed five strong baselines, including SGD and the double-loop SBCD method, achieving lower training loss across all datasets.
  • Fairness-Aware pAUC Optimization: Using the CelebA dataset (200,000 images), the team optimized for partial AUC (pAUC) while applying adversarial fairness regularizers. SMAG achieved the highest pAUC scores while maintaining the lowest disparity metrics (e.g., Demographic Disparity), effectively balancing model performance with social fairness.

Conclusion and Future Directions

SMAG represents a significant step forward in simplifying non-smooth optimization. By unifying DWC and WCSC problems under the DMax framework and providing a robust single-loop solution, the authors offer a practical tool for complex AI applications.

A current limitation of the algorithm is the requirement for strong concavity in the component functions relative to their dual variables. Future research may focus on relaxing these assumptions to extend the SMAG framework to even more general weakly-concave settings in non-convex AI architectures.

Summary updated

BibTeX
@inproceedings{hu2024single,
  author = {Quanqi Hu and Qi Qi and Zhaosong Lu and Tianbao Yang},
  title = {{Single-Loop Stochastic Algorithms for Difference of Max-Structured Weakly Convex Functions}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=NhtBXSNXKA},
}
Figure