Pricing Online LLM Services with Data-Calibrated Stackelberg Routing Game
Zhendong Guo, Wenchao Bai, Jiahui Jin
TL;DR
PriLLM tackles real-time, data-driven pricing for LLM routing by modeling the market as a Stackelberg routing game with providers as leaders and users as followers, incorporating both objective QoS metrics and subjective user preferences. It overcomes computational intractability through a differentiable, data-calibrated game abstraction that preserves the user NE, and a deep aggregation network that reduces rival complexity while maintaining equilibrium behavior. The approach includes a principled initialization of subjective biases, learnable parameterization of user preferences, and a loss that aligns profits between the original and abstracted games, enabling end-to-end training. Empirical results on OpenRouter data show PriLLM achieves near-optimal profits (over 95%) with substantial speedups (under 5% of brute-force solver time) and strong predictive fit (e.g., $R^2=0.8982$), indicating strong practical potential for scalable, interpretable dynamic pricing in LLM service markets.
Abstract
The proliferation of Large Language Models (LLMs) has established LLM routing as a standard service delivery mechanism, where users select models based on cost, Quality of Service (QoS), among other things. However, optimal pricing in LLM routing platforms requires precise modeling for dynamic service markets, and solving this problem in real time at scale is computationally intractable. In this paper, we propose \PriLLM, a novel practical and scalable solution for real-time dynamic pricing in competitive LLM routing. \PriLLM models the service market as a Stackelberg game, where providers set prices and users select services based on multiple criteria. To capture real-world market dynamics, we incorporate both objective factors (\eg~cost, QoS) and subjective user preferences into the model. For scalability, we employ a deep aggregation network to learn provider abstraction that preserve user-side equilibrium behavior across pricing strategies. Moreover, \PriLLM offers interpretability by explaining its pricing decisions. Empirical evaluation on real-world data shows that \PriLLM achieves over 95\% of the optimal profit while only requiring less than 5\% of the optimal solution's computation time.
