Approximation Algorithms for GPU Pricing under Finite Capacity

Yaolong Yu, Hanrui Zhang, Zeyu Zheng, Kirthevasan KandasamyNeurIPS 2026

TL;DR

Cloud providers almost universally charge for GPUs using simple linear pricing—a flat rate per GPU-hour. This paper proves that when GPU capacity is finite and customer jobs vary in size and length, linear pricing leaves massive amounts of revenue on the table, yet finding the exact optimal price menu is computationally intractable. To bridge this gap, the authors design practical, math-backed pricing algorithms that adapt to bundle sizes and job durations, provably capturing a high fraction of the theoretical maximum revenue.

What Problem Does This Paper Address?

If you rent 8 GPUs for 10 hours on AWS or CoreWeave today, you pay $8 \times 10 \times p$, where $p$ is the hourly single-GPU rate. This "linear pricing" has been standard since the birth of cloud computing. However, customers don't value compute linearly—a researcher needing 64 GPUs might have a very different willingness-to-pay curve than a hobbyist needing one.

When a cloud vendor has a finite cluster of $B$ GPUs, pricing becomes a delicate balancing act. Price too low, and small or low-value jobs clog the cluster, blocking lucrative large jobs arriving later; price too high, and expensive hardware sits idle. The vendor must post an anonymous price menu (pricing every combination of GPU count and duration) before seeing what the next arriving customer actually wants.

The authors tackle two versions of this puzzle: GPU sales (one-shot inventory depletion) and GPU rentals (jobs occupy GPUs for a set duration and then return them to the pool). Because accepted rental jobs tie up capacity across future time slots—creating complex "temporal coupling"—finding the exact optimal pricing strategy via dynamic programming blows up combinatorially and is NP-hard even in the simpler sales setting.

Methods

Because exact optimization is impossible at scale and standard linear pricing performs poorly, the authors turn to ex-ante relaxations.

Instead of forcing capacity constraints to hold on every possible random sequence of customer arrivals (which is hard), they relax the math so capacity $B$ only has to be respected in expectation (on average). Assuming standard economic "regularity" conditions on customer valuations (Myerson’s regularity, which keeps revenue curves nicely concave), this relaxation transforms an intractable problem into a polynomial-time solvable Convex Program (CP).

  1. For GPU Sales: Solving the ex-ante CP directly yields a static, nonlinear price curve mapping each bundle size to a price.
  2. For GPU Rentals (Slot-Coupled CP): They expand the CP across time, enforcing expected capacity $B$ in every individual time slot $t$. However, posting this menu directly still risks random traffic spikes causing cluster congestion ("blocking"). They introduce two fixes:
  3. Throttled CP-Menu Posted Pricing (TCMPP): On each round, the vendor flips a biased coin—posting the CP menu with probability $\gamma$, and temporarily closing shop (posting $\infty$ prices) otherwise to let congestion clear.
  4. Slackened CP: Instead of randomly turning customers away, the vendor bakes a safety buffer directly into the math—solving the CP for a reduced capacity of $(1-\eta)B$ in every slot, and posting the resulting menu deterministically.

Datasets

No real-world empirical datasets were used. Because this is primarily a theoretical work, the authors evaluate their algorithms on synthetic simulation instances (e.g., modeling customer valuations using Uniform and Gaussian distributions across varying arrival counts and bundle sizes) to test performance against linear pricing and, on tiny instances, exact Dynamic Programming (DP).

Key Insights and Ideas

  • Why linear pricing fails so badly: A single per-GPU-hour rate has only one knob (the slope). If customers' willingness-to-pay scales sublinearly with cluster size, raising the rate to extract fair value from 1-GPU jobs completely prices out 64-GPU jobs. Lowering the rate to keep 64-GPU jobs affordable gives away 1-GPU jobs for pennies.
  • Smart buffers beat random throttling for small jobs: Both TCMPP and Slackened CP create breathing room so finite clusters don't jam up. However, TCMPP skips periods blindly even when the cluster is empty. Moving that slack into the optimization constraints (Slackened CP) keeps the store open every round and yields strictly stronger guarantees whenever individual jobs request less than ~12% of total cluster capacity.

Key Results

  • Worst-case collapse of linear pricing: In the sales setting, linear pricing can earn at most a $\frac{2}{\log B}$ fraction of optimal revenue in the worst case. In rentals, per-GPU-hour pricing degrades to $\min\{\frac{2}{\lfloor \epsilon B \rfloor}, \frac{2}{\log B}\}$.
  • Provable Approximation Guarantees: When the max job request $\overline{N}$ is at most $\epsilon B$:
  • The sales ex-ante CP menu guarantees at least $\frac{1-\epsilon}{2}$ of optimal revenue (and can be adapted for a $\frac{1}{6}$ guarantee for arbitrary job sizes).
  • In rentals, TCMPP achieves a $\frac{1-\epsilon}{4}$ approximation of the optimal dynamic policy.
  • Slackened CP achieves $(1-\delta_\eta)(1-\eta)$ of the optimum (where $\delta_\eta$ bounds blocking probability), outperforming TCMPP when $\overline{N}/B \lesssim 0.12$.
  • Simulation performance: In sales simulations, CP menus consistently beat tuned linear prices (e.g., 447.19 vs. 370.57 mean revenue under Gaussian valuations). Across eight small rental instances where exact DP could be computed, stationary Slackened CP captured 98.8%–99.9% of the true optimal revenue, and tuned TCMPP captured 95.6%–99.9%.

Limitations and Future Work

The theoretical guarantees assume the vendor already knows the exact probability distributions of customer demands, valuations, and durations, and that customers arrive independently. Furthermore, all experiments rely on synthetic data rather than production cloud traces. Promising next steps include learning unknown demand distributions online from historical data, designing menus formally robust to distribution shifts, and determining whether the rental approximation ratios (like $\frac{1-\epsilon}{4}$) can be tightened further.

Summary updated

Abstract

We study revenue-optimal posted-price design for GPU markets under a finite capacity $B$. We focus on two settings: \emph{sales}, where each purchase permanently consumes a vendor's GPU inventory, and \emph{rentals}, where each job occupies GPUs for a finite duration and then releases them. In both settings, the vendor must commit to an anonymous price menu before observing customers' valuation, GPU demand, and job duration. First, in the sales setting, we show that computing the optimal anonymous static menu is NP-hard, and that the common practice of linear pricing (per-GPU price) can be highly suboptimal. We develop three methods with varying approximation guarantees, all of which outperform linear pricing. Our main method is a convex program (CP) obtained via an ex-ante relaxation of the problem, which obtains a $\tfrac{1-\epsilon}{2}$ approximation to the optimum when the maximum GPU demand $\overline{N}$ satisfies $\overline{N}\leq \epsilon B$. Building on these results, we analyze the \emph{rental} model. We again show that linear pricing (per-GPU-hour price) is highly suboptimal, and design duration-aware posted-price policies based on slot-coupled ex-ante CP. Our \emph{Throttled CP-Menu Posted Pricing} (TCMPP) policy posts the CP-induced menu randomly and achieves a $\frac{1-\epsilon}{4}$ approximation. We further introduce a slackened version of the same convex program, which reserves capacity in each time slot and achieves stronger guarantees in the small job regime. We corroborate our theoretical results with simulations.
BibTeX
@inproceedings{yu2026approximation,
  author = {Yaolong Yu and Hanrui Zhang and Zeyu Zheng and Kirthevasan Kandasamy},
  title = {{Approximation Algorithms for GPU Pricing under Finite Capacity}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=PjMPnWAPNr},
}
Figure