Abstract
Solving Stackelberg games with multiple followers is a significant challenge due to the complex interactions between followers that result in Nash equilibria. Traditional methods often rely on restrictive assumptions—such as assuming followers will always choose the most optimistic or pessimistic equilibrium—or face prohibitive computational costs. We present a novel end-to-end gradient descent method that differentiates directly through the followers' equilibrium. By introducing the concept of "equilibrium flow," we provide a robust theoretical framework to handle multiple and stochastic equilibria. Our approach ensures unbiased gradient estimates and demonstrates superior performance and efficiency across various security and economic benchmarks.
Introduction
In a multi-follower Stackelberg game, a "leader" moves first, and "followers" respond by playing a simultaneous-move game among themselves. The followers' collective response reaches a Nash equilibrium (NE), which then determines the leader's final payoff and constraint satisfaction.
Traditional approaches typically reformulate the followers' equilibrium conditions into constraints for the leader's optimization problem. However, this often leads to massive, non-convex mixed-integer programs that are computationally intractable. Furthermore, these methods usually assume a unique equilibrium or a fixed selection rule (optimistic/pessimistic), which fails to capture the stochastic reality of real-world interactions.
Methodology
End-to-End Gradient Descent
The core innovation of this work is an end-to-end gradient descent algorithm that "looks through" the followers' game to understand how the leader's strategy $\pi$ affects the resulting equilibrium $x^*$.
For cases with a unique equilibrium, we calculate the gradient by differentiating the Karush–Kuhn–Tucker (KKT) conditions of the followers' optimization problems using the implicit function theorem. This allows the leader to update their strategy based on how the equilibrium shifts.
Equilibrium Flow and Stochasticity
A major hurdle in multi-follower games is the existence of multiple equilibria. If followers choose between these equilibria stochastically, a leader who ignores this variability can end up with a payoff that is arbitrarily worse than the true optimum.
To address this, we introduce "equilibrium flow," a framework based on partial differential equations (PDEs). This framework proves that a gradient computed from a sampled Nash equilibrium is an unbiased estimate of the true gradient, even as the distribution of equilibria changes in response to the leader's actions. To handle leader constraints (e.g., budget limits) that depend on follower behavior, we employ an augmented Lagrangian method, allowing for smooth optimization via gradient descent.
Experimental Evaluation
We evaluated our approach on three synthetic benchmarks:
- Normal-Form Games (NFG): A general setting where a leader provides subsidies to encourage socially beneficial behavior.
- Stackelberg Security Games (SSG): A coordinator provides reimbursements to independent defenders to protect targets from attack.
- Cyber Insurance Games: An insurer designs plans for networked agents to incentivize security investments.
In all domains, the gradient-based method achieved significantly higher utility for the leader compared to state-of-the-art reformulation methods (using the Knitro solver) and black-box optimization baselines. The method also maintained low constraint violations and showed polynomial complexity in the backward pass, making it scalable for larger games.
Conclusion
By treating the followers' response as a differentiable layer, we decouple the leader's optimization from the internal complexity of the followers' game. This approach provides a flexible and efficient path for solving complex Stackelberg games without relying on rigid equilibrium assumptions. Future work will explore reducing the dependency on equilibrium-finding oracles and addressing local optima in non-convex spaces.
Summary updated