Solving Stackelberg Prediction Game with Least Squares Loss via Spherically Constrained Least Squares Reformulation

Jiali Wang, Wen Huang, Rujun Jiang, Xudong Li, Alex L. Wang · DOI

Abstract

The Stackelberg prediction game (SPG) is a framework for modeling strategic interactions between a learner and an attacker. While the SPG with least squares loss (SPG-LS) is tractable via semidefinite programming (SDP) or second-order cone programming (SOCP), these methods struggle with large-scale datasets. This paper introduces a novel reformulation of SPG-LS as a spherically constrained least squares (SCLS) problem. By employing factorization-free methods like the Krylov subspace method (LTRSR) and the Riemannian trust region method (RTRNewton), we achieve an $\epsilon$-optimal solution in $\tilde{O}(N/\sqrt{\epsilon})$ operations. Numerical results demonstrate that this approach is orders of magnitude faster than existing state-of-the-art solvers.

Introduction

In many machine learning applications, data is not static but strategic. For instance, in credit scoring or spam detection, agents may manipulate their features to obtain a more favorable outcome from a predictive model. The Stackelberg Prediction Game (SPG) provides a robust mathematical framework for this scenario, where a "leader" (the learner) anticipates the optimal response of a "follower" (the strategic agent).

The specific case of SPG with least squares loss (SPG-LS) is particularly important due to its widespread use. However, traditional bi-level optimization approaches are computationally expensive. While SDP and SOCP reformulations exist, they require matrix factorizations or inversions that do not scale well to high-dimensional or large-scale datasets.

The Spherically Constrained Least Squares Reformulation

The core contribution of this work is a nonlinear change of variables that transforms the bi-level SPG-LS problem into a single-level Spherically Constrained Least Squares (SCLS) problem.

The original SPG-LS objective involves a complex fractional structure. By mapping the decision variables onto a unit sphere ($||x||^2 = 1$), the problem becomes a variation of the well-known trust-region subproblem. This geometric insight allows the use of optimization techniques that avoid the heavy computational burden of full matrix decompositions.

Factorization-Free Algorithms

To solve the SCLS reformulation efficiently, we utilize two classes of algorithms:

  1. Krylov Subspace Method (LTRSR): This iterative solver constructs an approximate solution within a lower-dimensional subspace, requiring only matrix-vector products.
  2. Riemannian Trust Region Method (RTRNewton): This method treats the spherical constraint as a manifold, performing optimization directly on the surface of the sphere.

Both methods are "factorization-free," meaning they scale linearly with the number of non-zero entries in the data matrix, making them ideal for sparse, large-scale problems.

Experimental Results

The proposed methods were evaluated against standard SDP and SOCP solvers on both synthetic and real-world datasets. The results consistently show that the SCLS-based approach provides significant speedups.

Running time comparison on synthetic data

As shown in the figures, the Krylov-based LTRSR method is often the fastest, achieving solutions up to four orders of magnitude quicker than SOCP. This efficiency is maintained as the number of samples ($m$) or features ($n$) increases.

Scalability of running time with respect to samples (m)

On a synthetic dataset with 30,000 features, LTRSR solved the problem in under 0.04 seconds, whereas traditional SOCP methods required nearly 1,000 seconds. Furthermore, the SCLS approach naturally exploits data sparsity, leading to even greater performance gains on sparse real-world datasets like BlogFeedback.

Conclusion

By reformulating the Stackelberg Prediction Game with least squares loss as a spherically constrained problem, we unlock the ability to solve these strategic games at a massive scale. The use of factorization-free solvers ensures that the computational cost scales linearly with data size, providing a practical tool for robust machine learning in adversarial environments.

Summary updated

Abstract

The Stackelberg prediction game (SPG) is popular in characterizing strategic interactions between a learner and an attacker. As an important special case, the SPG with least squares loss (SPG-LS) has recently received much research attention. Although initially formulated as a difficult bi-level optimization problem, SPG-LS admits tractable reformulations which can be polynomially globally solved by semidefinite programming or second order cone programming. However, all the available approaches are not well-suited for handling large-scale datasets, especially those with huge numbers of features. In this paper, we explore an alternative reformulation of the SPG-LS. By a novel nonlinear change of variables, we rewrite the SPG-LS as a spherically constrained least squares (SCLS) problem. Theoretically, we show that an $ε$ optimal solution to the SCLS (and the SPG-LS) can be achieved in $\tilde{O}(N/\sqrtε)$ floating-point operations, where $N$ is the number of nonzero entries in the data matrix. Practically, we apply two well-known methods for solving this new reformulation, i.e., the Krylov subspace method and the Riemannian trust region method. Both algorithms are factorization free so that they are suitable for solving large scale problems. Numerical results on both synthetic and real-world datasets indicate that the SPG-LS, equipped with the SCLS reformulation, can be solved orders of magnitude faster than the state of the art.
BibTeX
@inproceedings{wang2022solving,
  author = {Jiali Wang and Wen Huang and Rujun Jiang and Xudong Li and Alex L. Wang},
  title = {{Solving Stackelberg Prediction Game with Least Squares Loss via Spherically Constrained Least Squares Reformulation}},
  booktitle = {International Conference on Machine Learning},
  year = {2022},
  url = {https://openreview.net/forum?id=vJL9h0fCyKE},
}
Figure