Error Analysis of Spherically Constrained Least Squares Reformulation in Solving the Stackelberg Prediction Game

Xiyuan Li, Weiwei LiuNeurIPS 2024

Introduction

In many real-world machine learning applications—such as spam filtering, malware detection, and fraud prevention—the environment is actively adversarial. These scenarios can be modeled as a Stackelberg Prediction Game (SPG), where a "leader" (the learner) deploys a model, and a "follower" (an attacker) manipulates the data to degrade the learner's accuracy.

While solving SPGs is generally NP-hard, a specific variant utilizing the least-squares loss (SPG-LS) has emerged as a prominent research focus. In 2022, a breakthrough approach known as the Spherically Constrained Least Squares (SCLS) method was introduced. SCLS efficiently transforms the complex bi-level optimization of SPG-LS into a much faster, spherically constrained problem. However, despite its algorithmic ingenuity and practical speed, SCLS lacked a crucial theoretical guarantee: it was unknown whether the model it produced would reliably converge to the true underlying signal as the dataset grew. This paper addresses that critical gap, providing the first rigorous theoretical error analysis for the SCLS method.

Bridging the Theoretical Gap

The core contribution of this work is proving that the SCLS estimator is statistically consistent. In other words, it successfully recovers the "true" model parameters as the amount of training data increases. To achieve this, the authors employ a sophisticated framework grounded in high-dimensional probability to analyze the estimation error—the difference between the learned weights ($w^*$) and the true weights ($w_0$).

The analytical methodology unfolds in several key steps:

  1. Primary Optimization (PO): The estimation error is initially framed as a complex min-max optimization problem.
  2. Convex Gaussian Min-Max Theorem (CGMT): Serving as the core technical mechanism, CGMT allows the researchers to translate the difficult PO problem—which involves a high-dimensional random data matrix—into a significantly simpler Auxiliary Optimization (AO) problem involving only scalar variables.
  3. Linearization: The Fenchel-Moreau Theorem is utilized to linearize the objective function, ensuring compatibility with the CGMT framework.
  4. Consistency Proof: By analyzing the simplified AO problem, the authors demonstrate that as the number of samples ($n$) approaches infinity, the estimation error collapses to zero in probability.

Experimental Validation

To validate their mathematical theorems, the researchers conducted numerical simulations using synthetic datasets, allowing for precise control over variables. Input features and attacker targets were drawn from independent and identically distributed (i.i.d.) Gaussian distributions, with Gaussian noise added to simulate realistic training conditions. The model was tested against various "true" weight vectors with sparsity levels ranging from dense (1) to highly sparse (0.001).

The experimental results, executed in MATLAB, perfectly aligned with the theoretical predictions. The error curves across different sparsity levels and regularization strengths consistently trended toward zero, confirming the reliability of the SCLS estimator.

Key Insights and Results

  • Consistency Guaranteed: The paper's primary result, formalized in Theorem 4.3, mathematically guarantees that the estimation error converges to zero in probability as $n \to \infty$.
  • High-Dimensional Stability: The proof remains robust in the "high-dimensional regime," where both the number of features ($d$) and samples ($n$) grow to infinity, provided the ratio $d/n$ remains less than 1.
  • Statistical Integrity: The analysis proves that the nonlinear change of variables utilized in the SCLS algorithm does not merely simplify the computation; it fundamentally preserves the statistical integrity of the learner.
  • Validating an Award-Winner: SCLS previously won an "Outstanding Paper Award" at ICML 2022 for its computational efficiency. This research completes the narrative by supplying the missing error analysis, fully justifying its deployment in large-scale, adversarial applications.

Limitations and Future Directions

While this work establishes a vital theoretical foundation, it operates under certain constraints. Like many analyses leveraging CGMT, the proof assumes that the input data follows a Gaussian distribution. Because real-world data is frequently heavy-tailed or non-Gaussian, this represents a notable limitation. Additionally, the current analysis is restricted to linear models using Least Squares.

Future research directions include extending this error analysis to non-Gaussian settings and exploring more complex loss functions, such as logistic regression, within the Stackelberg framework to determine if the same consistency guarantees hold.

Summary updated

Abstract

The Stackelberg prediction game (SPG) is a popular model for characterizing strategic interactions between a learner and an adversarial data provider. Although optimization problems in SPGs are often NP-hard, a notable special case involving the least squares loss (SPG-LS) has gained significant research attention recently, (Bishop et al. 2020; Wang et al. 2021; Wang et al. 2022). The latest state-of-the-art method for solving the SPG-LS problem is the spherically constrained least squares reformulation (SCLS) method proposed in the work of Wang et al. (2022). However, the lack of theoretical analysis on the error of the SCLS method limits its large-scale applications. In this paper, we investigate the estimation error between the learner obtained by the SCLS method and the actual learner. Specifically, we reframe the estimation error of the SCLS method as a Primary Optimization ($\textbf{PO}$) problem and utilize the Convex Gaussian min-max theorem (CGMT) to transform the $\textbf{PO}$ problem into an Auxiliary Optimization ($\textbf{AO}$) problem. Subsequently, we provide a theoretical error analysis for the SCLS method based on this simplified $\textbf{AO}$ problem. This analysis not only strengthens the theoretical framework of the SCLS method but also confirms the reliability of the learner produced by it. We further conduct experiments to validate our theorems, and the results are in excellent agreement with our theoretical predictions.
BibTeX
@inproceedings{li2024error,
  author = {Xiyuan Li and Weiwei Liu},
  title = {{Error Analysis of Spherically Constrained Least Squares Reformulation in Solving the Stackelberg Prediction Game}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=7L2tCirpwB},
}
Figure