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:
- Krylov Subspace Method (LTRSR): This iterative solver constructs an approximate solution within a lower-dimensional subspace, requiring only matrix-vector products.
- 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.
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.
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