English

Equilibria and Learning in Modular Marketplaces

Computer Science and Game Theory 2025-02-28 v1

Abstract

We envision a marketplace where diverse entities offer specialized "modules" through APIs, allowing users to compose the outputs of these modules for complex tasks within a given budget. This paper studies the market design problem in such an ecosystem, where module owners strategically set prices for their APIs (to maximize their profit) and a central platform orchestrates the aggregation of module outputs at query-time. One can also think about this as a first-price procurement auction with budgets. The first observation is that if the platform's algorithm is to find the optimal set of modules then this could result in a poor outcome, in the sense that there are price equilibria which provide arbitrarily low value for the user. We show that under a suitable version of the "bang-per-buck" algorithm for the knapsack problem, an ε\varepsilon-approximate equilibrium always exists, for any arbitrary ε>0\varepsilon > 0. Further, our first main result shows that with this algorithm any such equilibrium provides a constant approximation to the optimal value that the buyer could get under various constraints including (i) a budget constraint and (ii) a budget and a matroid constraint. Finally, we demonstrate that these efficient equilibria can be learned through decentralized price adjustments by module owners using no-regret learning algorithms.

Keywords

Cite

@article{arxiv.2502.20346,
  title  = {Equilibria and Learning in Modular Marketplaces},
  author = {Kshipra Bhawalkar and Jeff Dean and Christopher Liaw and Aranyak Mehta and Neel Patel},
  journal= {arXiv preprint arXiv:2502.20346},
  year   = {2025}
}
R2 v1 2026-06-28T22:00:35.846Z