arXiv(opens in a new tab)cs.LGSep 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2609.40070

Inference Auctions

Keegan Harris, Siddharth Prasad, Asher Trockman, Nika Haghtalab, Michael I. Jordan

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

When inference demand exceeds available compute capacity, model providers must decide which requests should be served first. Users have different tolerances for delay from an LLM API, but current priority pricing schemes compress these differences into coarse fixed-price service tiers. We design an inference auction that allows users to bid for faster service. Our auction allocates priority in an economically efficient way without sacrificing latency, and we develop fast algorithms for implementing prices that incentivize truthful bidding. We also design an autobidding agent for our inference auction, where users specify an inference budget and the autobidder dynamically adjusts its bids over time to maximize user utility subject to the budget constraint. Experiments validate the practicality of our auction: it increases system welfare while maintaining the cache utilization and latency advantages of SGLang, a state-of-the-art inference serving framework.

1 Introduction

Large-scale LLM inference requires allocation of shared compute resources across different users' requests. During periods of heavy traffic, model providers need to determine which requests to serve first, and how much to charge for faster service. Users can differ substantially in their willingness to pay for earlier service. For example, an interactive request may be sensitive to delays that are inconsequential for a background job. Today, most major model providers allocate priority through a small number of fixed-price service tiers (typically two or three), with higher-paying requests receiving priority over lower-paying ones during times of high traffic [e.g., 3, 6, 23, 38, 49]. These coarse tiers give users limited scope to express their latency preferences, and as a result, priority is allocated in an economically inefficient way.

The design of a more expressive and efficient market for inference priority raises new challenges that are absent from conventional queuing systems and transaction-fee markets. Modern inference engines process prompts with the same prefix by reusing the key-value (KV) cache across their shared prefix, so the time it takes to serve a request depends on which requests have already been served [e.g., 34, 41, 52]. For example, interrupting a batch of requests that all share a long common prefix to serve unrelated requests may cause the common prefix to be evicted from the KV cache, disrupting cache reuse and harming request throughput. Serving that same batch of common-prefix requests contiguously instead will generally yield improved throughput due to better cache utilization. This form of prefix-aware scheduling and KV cache management is implemented in

∗,†^{*},\dagger: Denotes equal contribution.

state-of-the-art inference serving frameworks such as SGLang [52], leading to significant latency and throughput gains. A good market design should not sacrifice these performance gains.

We design an inference auction that allows users to bid for priority. Our key observation is that preserving the cache-reuse benefits of prefix-aware serving systems still leaves freedom to decide which groups of requests receive priority, enabling significant gains in social welfare while retaining the cache optimality of practical serving systems. Our key contributions, in more detail, are as follows:

Inference Auction Design (Section 2 and Section 3). We develop the first inference auction, a way for LLM providers to prioritize requests by letting users bid for faster service. Each bid represents the user's reported value for moving a request from the back of the scheduling queue to the front, with value increasing linearly as the request moves earlier in the schedule. Our goal is to maximize social welfare—the total value users derive from their assigned priorities—while retaining cache optimality. A key aspect of our inference auction design is to constrain the resulting schedule of requests to be a depth-first-search (DFS) schedule, that is, it must correspond to a DFS traversal of the radix tree of requests (a tree in which requests that share a prompt prefix share a path from the root). Inference auctions corresponding to such DFS schedules maximize KV cache hit rate due to optimal prefix sharing. We show that the welfare-maximizing DFS schedule corresponds to the DFS traversal that orders a node's children by average bid across requests in their subtrees, and can therefore be computed very efficiently. We pair our scheduling rule with Vickrey–Clarke–Groves (VCG) payments that incentivize truthful bidding. Computing VCG payments naively requires recomputing an optimal schedule for each user, causing a quadratic worst-case dependence on the number of requests. We develop an algorithm that computes all payments in quasilinear run-time by decomposing each user's welfare externality into local changes along the radix tree.

Autobidding Agents for Inference Auctions (Section 4). Inference users typically submit many requests over time and must manage their inference budget. Even when truthful reporting is optimal in each auction in isolation, users still need to choose how aggressively to bid across requests so that their inference budget is spent where it is most valuable. To address this, we design an autobidding agent that adjusts a user's bids over time to maximize their cumulative utility, subject to a budget constraint. Our autobidding algorithm scales each request's value by a multiplier and adjusts this multiplier over time using gradient descent. We show that this strategy achieves O(T)O(\sqrt{T}) regret relative to the optimal-in-hindsight bidding policy on a sequence of T inference auctions. We also characterize the welfare loss when users have different pacing multipliers: we show that welfare only decreases when these differences reverse the ordering of requests in the DFS schedule, and we bound the resulting inefficiency by the variation in pacing multipliers across the radix subtrees.

Experiments (Section 5). We implement our inference auction as a scheduling layer in front of an unmodified SGLang server and evaluate it across several workloads with various shared prefix structures. Compared to a bid-blind, cache-optimal request ordering, our mechanism improves overall welfare by 12–18.6% under i.i.d. request valuations and up to 100% when valuations are non-i.i.d., all while leaving cache hit rate and average time-to-first-token virtually unchanged. Simultaneously, we find that our mechanism enjoys ~80% of the welfare of the unconstrained schedule ordered by decreasing bids. In contrast, this unconstrained schedule sharply reduces cache hit rates, which results in an increase in average latency by as much as 12×.

References (81)