Manuscript Offprint
arXiv:2611.03199Cold-Start Pricing of LLM Services under Two-Sided Learning
Zhicheng Du
Renmin University of China
Beijing, China
Pinyan Lu
Huawei Technologies Ltd
China
Shanghai University of Finance and
Economics
Shanghai, China
Keyu Wang
Renmin University of China
Beijing, China
Zihe Wang
Renmin University of China
Beijing, China
Xiang Yan
Huawei Technologies Ltd
China
Chunxue Yang
Huawei Technologies Ltd
China
Abstract
Online large language model (LLM) services face a pricing cold start: providers initially lack the historical data and user information needed for precise pricing, while users' willingness to pay evolves with repeated use. We formulate this challenge as a two-sided learning problem between a provider and a user. The user learns from private usage experience, whereas the provider incurs a serving cost and dynamically adapts prices using only purchase decisions to maximize cumulative profit. The provider's central challenge is to learn to price against an evolving willingness to pay without observing the private experiences driving that evolution.
We establish matching upper and lower bounds on the minimax regret over horizon , identifying two cost-dependent regimes. When serving costs are sufficiently low, our Calibration-and-Tracking (CAT) algorithm achieves the optimal rate . In the higher-cost regime, where the provider must learn whether continued service is profitable, Calibration-and-Tracking with Retirement (CAT-R) attains the optimal rate . This phase transition shows that serving costs affect not only profit margins but also the fundamental difficulty of learning to price LLM services. Simulations support the predicted regret scaling and show that our algorithms outperform standard online learning baselines in the evaluated settings.
CCS Concepts
• Applied computing → Economics; • Information systems → Electronic commerce; • Theory of computation → Online learning algorithms.
1 Introduction
Rapid advances in LLMs have brought LLM-based agents into work and everyday life. Online LLM services are typically offered through APIs and other pay-per-use interfaces. They measure and bill usage in tokens, with per-token prices shaping provider profits and user

Figure 1: Two-sided learning in online LLM services.
spending. In 2026, Google reported that its model APIs were processing nearly 22 billion tokens per minute. Token consumption has reached an enormous scale and continues to grow rapidly.
At this scale, even slight price differences can substantially affect user spending and provider profits. These economic stakes motivate a shift from coarse pricing to more precise, personalized prices in online LLM markets. As use becomes routine, users have stronger incentives to cautiously weigh the value of each call against its price. Their willingness to pay can also change with experience. Providers must therefore track changes in demand and willingness to pay to tailor prices and implement finer price discrimination.
Indeed, providers face a pricing cold-start problem. When launching a new model or service, they often lack relevant transaction histories and user data. They must learn from repeated market interactions and adjust prices over time. A key obstacle is that providers observe purchase decisions but not users' private evaluations of task outcomes or the value they obtain. Yet these evaluations determine users' willingness to pay and hence the provider's profit potential. Private usage experience also changes willingness to pay over time. Providers must therefore learn to price against a moving target without directly observing the driving force.
To study and address this pricing challenge, we model the interaction as a two-sided learning problem. A persistent match type, initially unknown to both sides, specifies the probability that a call
Google, “Q2 2026 earnings call: Remarks from our CEO,” https://blog.google/company-news/inside-google/message-ceo/alphabet-earnings-q2-2026/.
solves the user's task. After each call, the user privately observes a binary outcome and updates her belief about the match type. The provider incurs a serving cost and adjusts prices using only purchase decisions to learn the user's evolving willingness to pay. Each posted price is therefore both a revenue choice and a binary query about the user's private posterior. Figure 1 illustrates this repeated interaction and the information available to each side. From the provider's perspective, we ask how to design a dynamic pricing policy that maximizes long-run profit.
We compare every online policy with a dynamic full-information benchmark that knows the realized match type and observes the private outcomes. We use minimax regret over horizon to measure learning difficulty and algorithmic performance. The serving cost determines two qualitatively different markets. In both markets, we establish matching upper and lower bounds on minimax regret, revealing a phase transition in its optimal rate. The optimal regret is in the always-service market, where serving remains profitable throughout. It increases to in the selective-service market, where the provider must also learn whether to retire. We also conduct Monte Carlo simulations to evaluate finite-horizon regret and demonstrate our algorithms' advantages over standard online pricing baselines in the tested settings.
To summarize, our contributions are threefold.
(1) Modeling pricing cold starts. To our knowledge, we are the first to model and study pricing cold starts in online LLM service markets as a two-sided learning problem. The model captures the distinctive economics of LLM services.
(2) Regret phase transition. We establish matching upper and lower bounds on minimax regret, obtaining in the always-service market and in the selective-service market. Our CAT and CAT-R algorithms attain these rates by alternating calibration and tracking, with CAT-R adding a retirement test. This transition shows that serving costs affect the fundamental difficulty of learning to price.
(3) Simulation and implications. Our simulations support the predicted regret scaling and show that our algorithms outperform standard online pricing baselines in the tested settings. These findings support alternating calibration and tracking as a design principle for practical dynamic pricing.
1.1 Related Work
Our work relates to two strands of literature.
LLM Service Pricing. LLM services can be viewed as an emerging form of cloud service, typically billed by token usage but valued for task-dependent output quality [26]. Recent work studies competitive pricing across tasks [20], token allocation and fine-tuning menus [4], and data-calibrated pricing in LLM routing markets [13].
Other work examines billing transparency and repeated service delegation. Velasco et al. [26] analyze incentives to misreport token usage, while Cao et al. [9] design mechanisms against providers that substitute cheaper models or inflate token counts. These studies inform pricing and incentive design, but do not study the joint feedback structure considered here. In our model, both parties initially lack knowledge of a persistent service match. The user learns from private task outcomes, while the provider learns to
price using only purchase decisions. To our knowledge, prior work has not studied pricing cold starts under this two-sided learning structure in online LLM markets.
Online Learning/Pricing. The stochastic bandit literature provides the basic regret language for online decisions [3, 8]. Online learning is now a broad research field focused on designing sequential policies that maximize cumulative rewards under incomplete information. Related problems in online decision-making include online matching [11, 15], online linear programming [1, 19], and, most relevant here, online pricing. The seminal work of Kleinberg and Leighton [16] establishes regret bounds for learning posted prices from purchase decisions. Subsequent work studies variants of the online pricing problem [2, 5, 6].
Much of this literature treats buyers' values as fixed or models demand directly. In our model, the user's willingness to pay evolves through Bayesian updates from private call outcomes, with belief updates occurring only after purchases. The provider must track this evolving belief using purchase decisions alone. Standard UCB and Thompson-sampling adaptations [3, 25] are natural empirical baselines, but their usual analyses do not directly yield the regret rates established here (see Section 5).
Recent work also studies online learning in nonstationary environments [14, 18, 21]. The closest work to ours is that of Leme et al. [18], who study purchase-feedback pricing against evolving valuations. Their model directly specifies valuation dynamics, whereas in our model, the user's willingness to pay evolves endogenously through Bayesian updates from private call outcomes, with learning occurring only after accepted calls. In addition, our model is tailored to online LLM services and explicitly accounts for the provider's serving costs. We further show that these costs induce a phase transition in the optimal regret rate (see Section 3 and Section 4).
2 Preliminaries
In this section, we introduce the two-sided learning setup and explain how the model relates to online LLM services in practice.
2.1 The Setup
We consider a two-sided learning problem between an LLM service provider (the seller, he) and an LLM user (the buyer, she) over a horizon of periods, indexed by .
In each period, the provider posts a price for an LLM service call, and the user arrives with a task and decides whether to make the call to solve her task. Both parties learn from the information available and adjust their decisions over time.
At the beginning of the interaction, Nature draws a match type where , according to a prior . The match type is the probability that a call successfully solves the user's task and therefore measures how well the user's tasks match the LLM service. It depends on both model capabilities and the user's success criteria. Neither party knows it ex ante, and both start from the common prior . As for the prior, we assume:
²Restricting types to an interior interval ensures uniformly nondegenerate outcome uncertainty. At or 1, outcomes are deterministic, and pointwise regret can remain bounded independently of the horizon or even be zero.
Assumption 1. The prior has a density that is uniformly bounded above and bounded away from zero over .
In each period , if the user makes a call, the LLM generates a response. The user evaluates this response according to her own private criteria, yielding a binary outcome satisfying
where indicates that the response successfully solves the user's task. The value of a successful task to the user is normalized to one. The provider incurs a per-call cost associated with model inference and response generation. Set the price set . If the user makes a call at price , her realized utility is , while the provider's realized profit is . If the user does not make the call, both players receive zero payoff in that period.
Remark 1. Our per-call formulation can also accommodate linear per-token billing when realized token usage is unknown to both parties before purchase. Suppose token usage is i.i.d. with a commonly known expectation. Since both parties are risk-neutral, they base their decisions on expected payoffs. The corresponding expected per-call payment and serving cost are therefore the per-token price and cost multiplied by expected token usage.
The serving cost determines whether offering service is always profitable for the provider. We exclude the degenerate high-cost regime and focus on the following two cases:
• Always-Service Market: . Since every posterior mean is at least , serving at the highest accepted price is always profitable. This regime captures low-cost LLM services for which the provider has no incentive to retire.
- Selective-Service Market: . The provider's margin may become negative as the user's belief evolves. This regime captures costly LLM services for which the provider must learn whether to continue serving or retire.
The central information friction is that the user learns about directly from private call outcomes, while the provider learns about her evolving posterior indirectly from purchase decisions. We refer to this interaction as a two-sided learning process, consisting of the following two components.
User Learning. The user learns the unknown match type by updating her belief according to Bayes' rule. Given the user's purchase history and her privately observed outcome history , define the number of calls and the number of successful calls before period as
Her posterior belief is represented by the CDF . For each ,
Let the user's posterior mean before period be .
The user is risk-neutral and myopic, and we assume that she purchases at equality. Hence, her rational action is
Provider Learning. Before posting a price, the provider observes only the public history as defined below
After posting , the provider observes the user's purchase decision . This decision serves as a binary comparison between the posted price and the user's current posterior mean:
Let denote the class of possibly randomized, nonanticipating pricing algorithms based on public history and the known parameters. At each round , an algorithm selects a price
The provider faces a learning-profit tradeoff. An informative price helps him learn about the user's posterior but may be rejected. A lower price encourages trade but sacrifices profit and triggers a private posterior update. A dynamic pricing algorithm must therefore balance learning and earning over time.
Timing. At , Nature draws the match type from the prior . Both the provider's and the user's initial beliefs are . In each period , the interaction proceeds as follows.
(1) Based on the public history , the provider posts a price for an LLM service call.
(2) The user observes and decides whether to purchase based on her current posterior belief. Her action is denoted by , where represents a call.
(3) The user's decision determines the subsequent interaction:
3.1 If , the user privately observes the outcome and updates her belief according to Bayes' rule.
3.2 If , no call occurs and both parties receive zero payoff. The user's belief remains unchanged.
2.2 Offline Benchmark and Online Problem
We evaluate the online provider against a dynamic, full-information benchmark. The benchmark knows the realized match type before the interaction and observes every realized call outcome, thereby knowing the user's posterior state throughout.
Offline Benchmark. To define the benchmark, for any posterior state with , let denote the corresponding posterior mean. Let denote the offline expected profit with periods remaining. Set . For , the benchmark satisfies the Bellman equation
The first term corresponds to inducing no call in the current period. The second corresponds to posting the highest accepted price, , and generating a new outcome. Thus, at each state, an optimal policy either continues service at this price or retires by posting in every remaining period. The first-best value from the initial state, conditional on , is .³
Online Problem. The online provider does not know the realized type and observes only the public history . Given an online algorithm , the expected profit over periods, conditional on , is
The conditional regret relative to the offline benchmark is
We use uniform minimax regret over the type space as our performance measure.⁴ An algorithm achieves no-regret if
The corresponding optimal regret is
2.3 Connection to Online LLM Services
Our model is designed to capture key features of online LLM service markets, including the following three aspects.
Unknown Match Type. In practice, neither the user nor the provider knows ex ante how well an LLM will perform on the user's tasks. The user may know her tasks but lacks experience with the model, while the provider knows the model's capabilities but not her full task distribution, private context, or evaluation criteria. We capture this two-sided uncertainty through the latent match type , which represents the success probability of the LLM on this user's tasks. Treating as persistent over the interaction horizon reflects a fixed LLM and a stable user task profile.
Private Task Outcomes. A defining feature of real-world LLM services is that task success is user-specific and privately observed, as it depends on the user's intent, task context, and evaluation criteria, which are unavailable to the provider. The binary outcome captures this information asymmetry: the user observes whether the task is solved, while the provider must infer service quality from subsequent purchase decisions.
Two-Sided Learning. Repeated interaction naturally induces learning on both sides of an LLM service. As the user makes more calls, she gains task-level experience and gradually learns how well the LLM performs on her particular tasks, shaping her future willingness to purchase the service. Meanwhile, the provider observes the user's purchase decisions and uses this behavioral feedback to infer her current valuation of the service and adapt prices accordingly. Our model captures this asymmetric two-sided learning process in online LLM services.
3 Always-Service Market
In this section, we focus on an always-service market with . Since the user's posterior mean is always at least , serving at the highest accepted price always yields a nonnegative margin. The provider therefore need not consider retirement and can focus on adjusting prices to balance learning and profit.
Our main result characterizes the minimax regret.
Theorem 1 (Minimax regret in the always-service market). Under Assumption 1 and assuming , the minimax regret is
We prove the theorem by establishing matching upper and lower bounds in the next two subsections.
3.1 Upper Bound
We introduce the Calibration-and-Tracking (CAT) algorithm, which achieves regret. This matches the lower bound, making CAT minimax rate-optimal in the always-service market.
The provider faces a distinctive challenge in this problem. Unlike in stationary online learning settings, the user's willingness to purchase evolves over time, like a moving target. This evolution is driven by outcomes observed privately by the user. Since the provider cannot observe these outcomes directly, he must infer her changing willingness to pay from her responses to posted prices.
Motivated by this obstacle, we design CAT, whose main component alternates between calibration and tracking phases. The high-level idea of the algorithm is as follows.
Calibration Phase. Calibration identifies the user's hidden success count through price queries. Given the public call count, this privately observed count determines the user's willingness to pay and hence the provider's profit potential.
A posted price can be viewed as a binary query about this count: the user accepts the price associated with threshold exactly when her current success count is at least . CAT exploits this observation through a threshold search. Starting from a certified lower bound , it queries ; after an acceptance, it increases by one and continues. The first rejection then certifies that the current success count is exactly . Thus, calibration converts an occasional rejection into an exact public certificate of the user's hidden posterior state.
Tracking Phase. Tracking keeps prices close to the user's evolving willingness to pay between calibrations. It allows CAT to earn revenue without recovering the exact success count after every call, balancing underpricing and rejection risk against calibration costs.
Suppose a calibration phase has just ended before period , revealing the exact state . CAT freezes , estimates the match type by the empirical success rate , and predicts the success count over the next calls. To account for uncertainty from new outcomes, it follows the predicted trajectory with buffered thresholds, posting prices slightly below the predicted willingness to pay to reduce rejection risk at the expense of underpricing. If a rejection occurs, CAT recovers the current success count exactly and starts a new tracking phase. If the epoch is completed, CAT proceeds to the next calibration phase.
³See Appendix A for an exact characterization of the optimal benchmark policy using a finite-horizon break-even index. ⁴We seek guarantees across all match types, whereas Bayesian regret averages over and may mask losses on difficult types.
We next describe the algorithm in detail. Posting the price after calls is accepted if and only if the user's hidden success count is at least . As illustrated in Algorithm 1, we therefore use to query whether the hidden success count is at least .
Algorithm 1 Posterior-Mean Query
1: function QUERY(q, n, t)
2: if then
3: return (stop, n, t)
4: end if
5: Post and observe decision
6: Update the current round
7: if then
8: Update the service-call count
9: end if
10: return
11: end function
Algorithm 2 Calibration-and-Tracking (CAT)
1: Initialize 2: loop 3: Freeze the posterior state 4: Set the tracking-epoch length 5: Set the tracking buffer 6: Set the match type estimate 7: for do Tracking 8: Set the query threshold 9: 10: if then 11: return 12: else if then 13: Update the certified success count 14: break 15: end if 16: end for 17: if then 18: Set the starting point for calibration 19: repeat Calibration 20: 21: if then 22: return 23: else if then 24: Update the calibration threshold 25: end if 26: until 27: Update the certified success count 28: end if 29: end loop
Lemma 1 (Upper bound in the always-service market). Under Assumption 1 and assuming , there is a finite constant such that for every integer ,
PROOF SKETCH. Regret comes from underpricing on accepted calls and lost profit from rejections. The key to controlling both is the tracking length . Tracking produces expected count error, which posterior sensitivity converts into underpricing per call. Calibration restores exact information, while rejection costs from calibration and early restarts contribute per call. Increasing the tracking length reduces calibration frequency but increases underpricing. Balancing these costs gives
The resulting expected amortized regret is per accepted call. Summing over at most accepted calls yields .
Calibration and tracking can be viewed as exploration and exploitation: calibration identifies the user's current willingness to pay, while tracking uses this information to earn revenue. When the buyer's willingness to pay is fixed, an explore-then-commit policy can first estimate it and then use that estimate to set prices. In our problem, service itself changes the pricing target: each accepted call gives the user a new private outcome and updates her willingness to pay. Because these outcomes remain private, information from the last calibration can become outdated during tracking. Our CAT addresses this feedback by repeatedly recalibrating and then exploiting the updated information while service continues.
The always-service market reflects a common strategy among LLM providers: improving model capabilities while reducing inference and serving costs through architectural improvements, compression, batching, and hardware optimization [17, 22]. When costs are sufficiently low, continued service remains profitable.
Our CAT also offers a template for practical pricing. Tracking corresponds to routine price adjustments that follow users' evolving willingness to pay while limiting rejection risk. Calibration corresponds to occasional diagnostic offers, such as controlled price increases, that refine demand estimates through observed purchase decisions. Alternating these phases allows providers to earn revenue using current information while periodically updating that information as users learn from experience.
3.2 Lower Bound
For the matching lower bound of the minimax regret, it suffices to identify an instance on which every feasible online algorithm inevitably incurs regret of order .
A natural hard instance is the central type . The corresponding Bernoulli outcome has variance , which is maximal among all . The hidden success count therefore has particularly large fluctuations, making it difficult for the provider to track the user's belief from purchase decisions.
Lemma 2 (Lower bound in the always-service market). Under Assumption 1 and assuming , there exist finite constants such that for every integer ,
The notation means that is bounded above and below by positive constants independent of .
PROOF SKETCH. Fix and an arbitrary pricing policy . Couple the online policy and the benchmark using a common sequence of call outcomes, indexed by accepted calls: each process consumes the next outcome whenever a call is made.
Let denote the total underpricing loss on accepted calls and the number of rejected periods. Matching accepted calls cancels the serving costs and leaves benchmark calls unmatched. At , posterior concentration gives
where . It remains to show that these two losses cannot both be small simultaneously.
Policies with sufficiently many rejections satisfy the lower bound. For the remaining policies, we divide the late horizon into disjoint blocks of length . This captures fresh uncertainty from private outcomes as the user's willingness to pay evolves. Within each block, conditional on the block-start information, either a rejection occurs with probability at least , giving a constant expected loss, or all prices are accepted with probability greater than . In the latter case, binomial anti-concentration and posterior sensitivity give an expected underpricing loss of . Balancing these blockwise lower bounds gives
Each block contributes expected loss. Summing over disjoint blocks yields the desired lower bound.
4 Selective-Service Market
In this section, we focus on the selective-service market, where the serving cost satisfies . As the name suggests, service becomes selective: the provider must decide whether to continue serving or retire, as well as how to price each call.
The minimax regret exhibits a phase transition across , increasing from in the always-service market to in the selective-service market.
Theorem 2 (Minimax regret in the selective-service market). Under Assumption 1 and assuming , the minimax regret is
We establish matching upper and lower bounds, focusing on the additional challenges relative to Section 3.
Upper Bound. We adapt CAT into Calibration-and-Tracking with Retirement (CAT-R). Its main addition is a retirement trigger before each price query. After calls, the provider maintains a public upper bound on the hidden success count. Each accepted call increases by one, while an exact calibration resets it to the identified count. For , the provider retires if
Here bounds the hidden empirical success rate from above, and the bonus allows for sampling uncertainty.
CAT-R also uses a simpler tracking rule. Starting from an exact state , CAT-R prices using the certified lower success count , without predicting new successes as CAT does. This conservative rule incurs greater underpricing but guarantees acceptance during tracking. The coarser precision is sufficient because learning whether to continue service already entails a square-root minimax loss, as the lower bound below shows. See Algorithms 3 and 4.
Algorithm 3 Posterior-Mean Query with Retirement
1: function QUERYR(q, n, U, t) 2: if then 3: return (stop, n, U, t) 4: end if 5: if and then 6: Post for every Retirement 7: return (retire, n, U, t) 8: end if 9: Post and observe decision 10: Update the current round 11: if then 12: Update the service-call count 13: Update the success upper bound 14: end if 15: return 16: end function
Algorithm 4 Calibration-and-Tracking with Retirement (CAT-R)
1: Initialize 2: loop 3: Freeze the exact certificate 4: Set the tracking length 5: for do Tracking 6: 7: if then 8: return 9: end if 10: end for 11: Set the calibration threshold 12: repeat Calibration 13: 14: if then 15: return 16: else if then 17: Update the calibration threshold 18: else 19: Update the exact certificate 20: end if 21: until 22: end loop
The additional challenge is to balance excessive service when against premature retirement when . For , the public count bounds and control the loss from continued service. For , a maximal concentration bound limits the expected downward estimation error beyond the retirement bonus to . Charging this error over at most remaining periods gives an premature-retirement loss.
CAT-R keeps its pricing and calibration losses within this same square-root scale. Its fixed lower threshold permits count errors up to , giving underpricing per call, while calibration rejections contribute per call. Balancing these terms gives
The resulting per-call cost sums to . Combining all the losses above yields the upper bound.
Lower Bound. The additional difficulty is learning whether the market is worth serving. To construct hard instances, we consider two nearby types and that are hard to distinguish but favor opposite long-run service decisions: too many calls under can produce losses, while too few under mean giving up profitable calls.
Let denote the total number of calls. The KL divergence between the distributions of the provider's observations under and is at most . So distinguishing the types requires at least order calls. To construct a hard pair, we choose this information requirement to match the horizon:
A testing bound then shows that the policy cannot reliably make few calls under and serve nearly every period under . Combining this bound with the posterior-deviation estimates, and choosing a suitable constant in , gives regret of order under at least one of the two types.
Phase Transition. The phase transition reflects an additional learning task. In the always-service market, the provider need not learn whether continued service is viable. Once cost lies inside the type support, nearby match types can imply opposite long-run service decisions, and distinguishing them creates a larger unavoidable loss. Serving cost therefore affects not only profit margins but also the fundamental difficulty of learning to price. The transition concerns the asymptotic regret rate for fixed costs; it does not imply a discontinuous jump in finite-horizon profit.
Our algorithm may incur negative margins early on to encourage continued use and learn whether service can be profitable in the long run. This resembles the free trials and introductory discounts that providers offer to attract users. Such offers may support future profits, but continued subsidies may not pay off if users' long-run willingness to pay remains below the serving cost.
This risk highlights the importance of assessing long-run profitability. In the selective-service market, providers must learn which users are worth serving. Market assessment and customer segmentation based on expected profitability are therefore particularly relevant. The need to learn whether to continue service, rather than just how to price it, is the additional challenge that drives the regret phase transition.
For a fixed service and user population, reducing serving cost raises the margin on every call at a given price. If this reduction moves the market into the always-service regime, it also removes the viability-learning burden and lowers the optimal worst-case profit shortfall relative to the benchmark from order to order . This gives an additional economic rationale for improving
model capability while reducing inference and serving costs, consistent with efforts toward cost-efficient LLM service design [10].
5 Simulation Experiments
The above sections characterize regret scaling as the horizon grows to infinity. We now use simulations to investigate the following questions about finite-horizon performance in both markets.
Q1. Regret scaling. Do our algorithms, CAT and CAT-R, exhibit the theoretically predicted and regret scaling in the always-service and selective-service markets, respectively?
Q2. Algorithmic comparison. How do CAT and CAT-R compare with other online pricing policies (such as UCB and Thompson Sampling) under the same information constraints in their respective markets?
5.1 Experimental Setup
We conduct Monte Carlo (MC) simulations to evaluate regret scaling and algorithmic performance [23].
Parameters. We set the prior with and fix the match type . The cost is in the always-service market and in the selective-service market. We consider horizons . For each algorithm and horizon, we conduct 20 runs, each using a different random seed. These parameter choices serve as representative instances.
Baseline Algorithms. We compare against four standard online learning and adaptive pricing baselines. To apply the three finite-armed bandit algorithms, we uniformly discretize the continuous price space into grid prices with .
-
Price-UCB. Each grid price serves as an arm. After trying each grid price once, the policy chooses the price with the largest empirical mean profit plus an exploration bonus , where counts its previous uses.
-
Price-Thompson. The policy maintains independent Beta distributions for purchase probabilities at grid prices, initialized as Beta(1, 1). Each period, it samples for each price and selects the price maximizing . It then updates the parameters using the observed purchase decision.
-
Epsilon-Greedy. With probability 0.1, the policy explores a uniformly sampled grid price. Otherwise, it selects an untested price if one remains, or chooses the price with the highest empirical mean profit.
-
Hill-Climbing. Starting from the initial price , the policy raises the price after an acceptance and lowers it after a rejection, using step size .
Offline Benchmark. All online policies share the same offline benchmark within each market. In the always-service market, the benchmark posts the highest acceptable price, the user's posterior mean, each period. In the selective-service market, the retirement decision follows the Bellman recursion, whose state complexity makes exact computation impractical. We therefore approximate
This order gives a near-optimal grid size in standard one-dimensional Lipschitz bandit models [24, Section 4.1]. We adopt it as a theory-motivated choice.

Figure 2: Empirical regret scaling and algorithm comparison in the always-service market.
its expected profit using tight upper and lower bounds, with a guaranteed absolute error below 0.011 in total expected profit at each tested horizon.
Evaluation Metrics. In each run, cumulative regret is the offline benchmark's total profit minus the algorithm's total profit. We measure performance by the mean cumulative regret over 20 runs. To examine regret scaling, we estimate the empirical regret exponent by fitting against using least squares. If for a constant , then
Thus, the fitted slope estimates the growth exponent . To assess stability across random seeds, we show pointwise 95% Student- confidence intervals for the mean as shaded regions.
5.2 Experimental Results
Figures 2 and 3 show regret scaling and algorithmic performance in the always-service and selective-service markets, respectively. Both figures plot mean cumulative regret against the horizon on base-2 log-log axes. Each curve represents an algorithm, with CAT and CAT-R highlighted in red. Shaded regions show the corresponding confidence intervals, and gray dashed lines mark the theoretical reference rates. The fitted tail slopes are reported in Table 1.
Regret scaling. The red curves exhibit growth close to the predicted and rates for CAT and CAT-R, respectively. Over the six largest horizons, the red curves are nearly linear on the log-log axes, with least-squares slopes of 0.357 for CAT and 0.497 for CAT-R. The results provide finite-horizon evidence for the different regret scales in the two markets: CAT's fitted exponent remains slightly above 1/3, while CAT-R's is close to 1/2.

Figure 3: Empirical regret scaling and algorithm comparison in the selective-service market.
Table 1: Fitted regret exponents over .
| Algorithm | Always-service | Selective-service |
|---|---|---|
| CAT | 0.357 | — |
| CAT-R | — | 0.497 |
| Price-UCB | 0.781 | 0.729 |
| Price-Thompson | 0.903 | 0.858 |
| Epsilon-Greedy | 0.973 | 0.951 |
| Hill-Climbing | 1.000 | 0.999 |
Algorithmic performance. Our CAT and CAT-R algorithms achieve the lowest mean cumulative regret throughout the experiment. At every tested horizon, their red curves lie strictly below all four baselines in both markets. At , their mean regrets are approximately and , compared with and for Price-UCB. Table 1 also shows that the baselines have steeper fitted slopes in both markets. Price-UCB and Price-Thompson exhibit sublinear empirical growth, whereas Epsilon-Greedy and Hill-Climbing are close to linear. Among the baselines, Price-UCB has the lowest mean regret and Hill-Climbing the highest at every horizon in this tail range in both markets.
The advantage of CAT and CAT-R is consistent with their explicit treatment of two-sided learning. The three bandit baselines follow a one-sided learning formulation: they pool past observations to estimate the reward or purchase probability at each price, without explicitly modeling how the user's private learning changes her willingness to pay. Hill-Climbing reacts to acceptance and rejection, but likewise does not reconstruct the user's evolving belief. CAT and CAT-R instead alternate calibration and tracking, using public purchase decisions to update information about that belief while earning profit from the current information. This structure balances information acquisition and profit as the user learns. The observed performance suggests that pricing an LLM service can benefit from accounting for users' evolving valuations as they learn from repeated service calls.
6 Conclusion
We studied pricing cold starts in online LLM services as a two-sided learning problem, where users learn from private experience and providers observe only purchase decisions. We identify a phase transition in optimal minimax regret driven by serving costs, to our knowledge the first such characterization for LLM service pricing. In the always-service market, Calibration-and-Tracking (CAT) attains the optimal rate . In the selective-service market, learning whether continued service is profitable raises the optimal rate to , attained by Calibration-and-Tracking with Retirement (CAT-R).
These results inform the economic design of generative AI services on the Web, where providers must learn demand while managing serving costs. Alternating calibration and tracking offers a practical template: occasional diagnostic price offers update demand estimates, while routine price adjustments use those estimates to earn revenue as users learn. Combining these operations with a retirement test connects personalized pricing with assessments of continued service viability.
Several extensions remain open. Multi-valued task outcomes would capture different levels of utility and may change both the information needed for pricing and the optimal regret rates. A fixed positive probability of random purchase decisions would invalidate the exact threshold comparisons used by our algorithms. The attainable regret rates and conditions for no-regret learning under such noise remain open. Finally, forward-looking users may strategically accept or reject offers to influence future prices, calling for an analysis that combines learning with incentives.
References
[1] Shipra Agrawal, Zizhuo Wang, and Yinyu Ye. 2014. A Dynamic Near-Optimal Algorithm for Online Linear Programming. Operations Research 62, 4 (2014), 876–890. doi:10.1287/opre.2014.1289
[2] Kareem Amin, Afshin Rostamizadeh, and Umar Syed. 2013. Learning Prices for Repeated Auctions with Strategic Buyers. In Advances in Neural Information Processing Systems 26. Curran Associates, Inc., 1169–1177. https://proceedings.neurips.cc/paper/2013/hash/996a7fa078cc36c46d02f9a3bef918b-Abstract.html
[3] Peter Auer, Nicolo Cesa-Bianchi, and Paul Fischer. 2002. Finite-time Analysis of the Multiarmed Bandit Problem. Machine Learning 47, 2–3 (2002), 235–256. doi:10.1023/A:1013689704352
[4] Dirk Bergemann, Alessandro Bonatti, and Alex Smolin. 2025. The Economics of Large Language Models: Token Allocation, Fine-Tuning, and Optimal Pricing. In Proceedings of the 26th ACM Conference on Economics and Computation (EC '25). ACM, 786. doi:10.1145/3736252.3742625
[5] Dirk Bergemann and Juuso Välimäki. 2006. Dynamic Pricing of New Experience Goods. Journal of Political Economy 114, 4 (2006), 713–743. doi:10.1086/506923
[6] Omar Besbes and Assaf Zeevi. 2009. Dynamic Pricing without Knowing the Demand Function: Risk Bounds and Near-Optimal Algorithms. Operations Research 57, 6 (2009), 1407–1420. doi:10.1287/opre.1080.0640
[7] Herm Jan Brascamp and Elliott H. Lieb. 1976. On Extensions of the Brunn-Minkowski and Prékopa-Leindler Theorems, Including Inequalities for Log Concave Functions, and with an Application to the Diffusion Equation. Journal of Functional Analysis 22, 4 (1976), 366–389. doi:10.1016/0022-1236(76)90004-5
[8] Sébastien Bubeck and Nicolo Cesa-Bianchi. 2012. Regret Analysis of Stochastic and Nonstochastic Multi-armed Bandit Problems. Foundations and Trends in Machine Learning 5, 1 (2012), 1–122. doi:10.1561/2200000024
[9] Yuhan Cao, Yu Wang, Sitong Liu, Miao Li, Yixin Tao, and Tianxing He. 2026. Pay for The Second-Best Service: A Game-Theoretic Approach against Dishonest LLM Providers. In Proceedings of the ACM Web Conference 2026. ACM, 249–260. doi:10.1145/3774904.3792446
[10] Lingjiao Chen, Matei Zaharia, and James Zou. 2024. FrugalGPT: How to Use Large Language Models While Reducing Cost and Improving Performance. Transactions
on Machine Learning Research (Dec. 2024), 14 pages. https://openreview.net/forum?id=cSimKw5p6R
[11] Jon Feldman, Aranyak Mehta, Vahab Mirrokni, and S. Muthukrishnan. 2009. Online Stochastic Matching: Beating 1–1/e. In 2009 50th Annual IEEE Symposium on Foundations of Computer Science. IEEE, 117–126. doi:10.1109/FOCS.2009.72
[12] John Gittins, Kevin Glazebrook, and Richard Weber. 2011. Multi-Armed Bandit Allocation Indices (2 ed.). John Wiley & Sons. doi:10.1002/9780470980033
[13] Zhendong Guo, Wenchao Bai, and Jiahui Jin. 2026. Pricing Online LLM Services with Data-Calibrated Stackelberg Routing Game. Proceedings of the AAAI Conference on Artificial Intelligence 40, 20 (2026), 17005–17013. doi:10.1609/aaai.v40i20.38748
[14] Su Jia, Qian Xie, Nathan Kallus, and Peter I. Frazier. 2023. Smooth Non-stationary Bandits. In Proceedings of the 40th International Conference on Machine Learning (Proceedings of Machine Learning Research, Vol. 202), Andreas Krause, Emma Brunskill, Kyunghyun Cho, Barbara Engelhardt, Sivan Sabato, and Jonathan Scarlett (Eds.). PMLR, 14930–14944. https://proceedings.mlr.press/v202/jia23c.html
[15] Richard M. Karp, Umesh V. Vazirani, and Vijay V. Vazirani. 1990. An Optimal Algorithm for On-Line Bipartite Matching. In Proceedings of the Twenty-Second Annual ACM Symposium on Theory of Computing (STOC '90). ACM, 352–358. doi:10.1145/100216.100262
[16] Robert Kleinberg and Tom Leighton. 2003. The Value of Knowing a Demand Curve: Bounds on Regret for Online Posted-Price Auctions. In Proceedings of the 44th Annual IEEE Symposium on Foundations of Computer Science. IEEE Computer Society, 594–605. doi:10.1109/SFCS.2003.1238232
[17] Woosuk Kwon, Zhuohuan Li, Siyuan Zhuang, Ying Sheng, Lianmin Zheng, Cody Hao Yu, Joseph E. Gonzalez, Hao Zhang, and Ion Stoica. 2023. Efficient Memory Management for Large Language Model Serving with PagedAttention. In Proceedings of the 29th Symposium on Operating Systems Principles. ACM, 611–626. doi:10.1145/3600006.3613165
[18] Renato Paes Leme, Balasubramanian Sivan, Yifeng Teng, and Pratik Worah. 2021. Learning to Price Against a Moving Target. In Proceedings of the 38th International Conference on Machine Learning (Proceedings of Machine Learning Research, Vol. 139), Marina Meila and Tong Zhang (Eds.). PMLR, 6223–6232. https://proceedings.mlr.press/v139/leme21a.html
[19] Xiaocheng Li and Yinyu Ye. 2022. Online Linear Programming: Dual Convergence, New Algorithms, and Regret Bounds. Operations Research 70, 5 (2022), 2948–2966. doi:10.1287/opre.2021.2164
[20] Rafid Mahmood. 2024. Pricing and Competition for Generative AI. In Advances in Neural Information Processing Systems, A. Globerson, L. Mackey, D. Belgrave, A. Fan, U. Paquet, J. Tomczak, and C. Zhang (Eds.), Vol. 37. Curran Associates, Inc., 75727–75748. doi:10.52202/079017-2411
[21] Nicolas Nguyen, Solenne Gaucher, and Claire Vernade. 2025. Non-Stationary Lipschitz Bandits. In Advances in Neural Information Processing Systems, Vol. 38. Curran Associates, Inc., 15129–15180. doi:10.52202/085713-0509
[22] Pratyush Patel, Esha Choukse, Chaojie Zhang, Aashaka Shah, Inigo Goiri, Saeed Maleki, and Ricardo Bianchini. 2024. Splitwise: Efficient Generative LLM Inference Using Phase Splitting. In 2024 ACM/IEEE 51st Annual International Symposium on Computer Architecture (ISCA). IEEE, 118–132. doi:10.1109/ISCA59077.2024.00019
[23] Reuven Y. Rubinstein and Dirk P. Kroese. 2008. Simulation and the Monte Carlo method (2 ed.). John Wiley & Sons. doi:10.1002/9780470230381
[24] Aleksandrs Slivkins. 2019. Introduction to Multi-Armed Bandits. Foundations and Trends in Machine Learning 12, 1–2 (2019), 1–286. doi:10.1561/2200000068
[25] William R. Thompson. 1933. On the Likelihood that One Unknown Probability Exceeds Another in View of the Evidence of Two Samples. Biometrika 25, 3–4 (1933), 285–294. doi:10.1093/biomet/25.3-4.285
[26] Ander Artola Velasco, Stratis Tsirtsis, Nastaran Okati, and Manuel Gomez Rodriguez. 2026. Is Your LLM Overcharging You? Tokenization, Transparency, and Incentives. In Proceedings of the 43rd International Conference on Machine Learning (Proceedings of Machine Learning Research, Vol. 306), Tong Zhang, Miroslav Dudik, Martin Jaggi, Alekh Agarwal, Sharon Li, Dale Schuurmans, Jerry Zhu, Felix Berkenkamp, Hanze Dong, and Alberto Bietti (Eds.). PMLR, 123628–123652. https://proceedings.mlr.press/v306/velasco26a.html
A Offline Benchmark
In Section 2.2, we characterize the offline benchmark's optimal policy using a finite-horizon break-even index analogous to the Gittins index [12]. This characterization holds for any prior supported on without requiring the regularity condition in Assumption 1.
Fix a posterior state and a remaining horizon . To describe future calls, let be independent Bernoulli outcomes, and set the success count
After further calls, the highest accepted price is .
Since rejection provides no new information, an optimal offline policy can serve consecutively at the highest accepted price and then retire. The problem therefore reduces to finding an optimal stopping rule. Let denote the stopping times taking values in , where specifies the number of calls before retirement. Let contain the rules that require at least one call.
Proposition 1 (Optimal offline index policy). Given a posterior state , a remaining horizon , and a match type , define the finite-horizon break-even index by
An optimal offline policy posts
In the second case, it retires and posts p = 1 in all remaining periods.
PROOF OF PROPOSITION 1. We first reduce the pricing decision to two actions. At state , all accepted prices induce the same posterior transition, so maximizes profit conditional on a call. All higher prices are rejected and leave the state unchanged; ensures rejection because . Thus only these two actions need be considered. The resulting decision tree is finite, so an optimal deterministic policy exists by backward induction; randomization cannot improve its value.
We next express the benchmark value as an optimal stopping problem. Rejection generates no information and does not change the posterior state. Hence any deterministic policy using these two actions can be implemented with the same distribution of call outcomes and total profit by making its calls consecutively and placing all rejected periods after its last call. The provider simulates the skipped waiting decisions using only the outcomes already observed. The number of calls is then a stopping time in . Conversely, every such stopping time is feasible by posting the highest accepted price until stopping and p = 1 thereafter. Therefore, the optimal offline value is
where the sum is zero for .
Finally, we use this representation to derive the break-even index rule. Let be the optimal value among policies that call
immediately. The same argument restricts the stopping time to , giving
There are finitely many stopping rules on the binary outcome tree, and each satisfies . Thus is positive, zero, or negative depending on whether is below, equal to, or above . Calling immediately is optimal when , and retirement is optimal when . Applying this comparison after each call proves the stated policy by backward induction, with zero value when no periods remain.
The index is the largest expected revenue per call before retirement, analogous to the reward-to-duration ratio of a Gittins index [12]. In the always-service market, , so serving in every period is optimal. In the selective-service market, serving can remain optimal even at a negative current margin when , as future profits can offset the current loss.
This distinction determines how the benchmark enters the regret analysis. In Section B, its profit is the sum of all T posterior margins, which can be compared call by call with the online policy. In Section C, the benchmark may stop at an outcome-dependent call count. We therefore compare the policies using the same outcome sequence while allowing the benchmark to stop early.
B Omitted Proofs in Section 3
B.1 Proof of the Upper Bound
Throughout this subsection, fix an integer and a serving cost .
The proof of Lemma 1 is organized as follows. Lemma 3 first converts a one-unit difference in the hidden success count into an difference in the user's posterior mean. We next record the deterministic large-sample inequalities used throughout the analysis. Lemma 4 couples the online process with the benchmark and reduces regret to accepted-call underpricing plus rejected periods.
For the phase-by-phase analysis, Lemma 5 validates the threshold-query interpretation and every exact reset, while Lemma 6 justifies treating the unused outcomes after an adaptive reset as a fresh Bernoulli sequence. Lemma 7 bounds the losses from the initial one-query epoch and all attempts before the large-sample threshold.
After this initial range, Lemma 8 places every later adaptive attempt in the concentration region, and Lemma 9 uses the preceding ingredients to bound the completion probability and expected charge of one attempt. Lemma 10 converts the per-attempt completion probability into an bound on the number of attempts. The proof of Lemma 1 finally aggregates these bounds.
We first record a uniform bound on how much the user's posterior mean can change when one observed failure is replaced by a success. This bound will be used throughout the proof to bound the effect of errors in the hidden success count.
Lemma 3 (Posterior-mean sensitivity). Under Assumption 1, there exists a finite constant such that, for every call count and success count , the increment in the posterior mean satisfies
PROOF OF LEMMA 3. Fix integers and , and let denote the user's posterior distribution at state . Let . We first compare the posterior means at states and . Define
Since changing the success count from q to multiplies the likelihood kernel by , the posterior at is obtained by reweighting by g. Hence, the increment in the posterior mean satisfies
The covariance is strictly positive because has full support on and g is strictly increasing. Moreover, g is -Lipschitz on , and . Thus, for independent variables , the independent-copy covariance identity gives
It remains to establish a uniform bound on the posterior variance . Set and define the per-observation log-likelihood
For , we have
Let be the probability distribution on with density proportional to . We use as a reference distribution whose variance is bounded by the likelihood's curvature. Its potential therefore satisfies . Applying the one-dimensional Brascamp–Lieb inequality [7]⁸ to the identity function gives
By Assumption 1, there are constants such that for almost every . Continuity of is not needed for the following comparison. Since has density
proportional to , it is obtained by reweighting by . Therefore, for every nonnegative measurable function ,
Let . Using the variational characterization of variance and applying the preceding inequality to yields
Combining this variance bound with the earlier covariance bound and using , we obtain
The result follows by setting .
The next ingredients concern the accepted-call outcome sequence and the phase boundaries generated by CAT. They ensure that every query is feasible, that a rejection produces an exact certificate, and that the unused outcomes remain fresh after an adaptive boundary.
For the analysis, define
For every accepted count , also write
Thus the algorithm uses and at a tracking start; the maximum with one is needed only at the initial state . These are abbreviations for the quantities in Algorithm 2.
Large-sample parameter inequalities. The choice of ensures that, for every and ,
Indeed, , and the first inequality follows from . For the second inequality, use and .
For independent copies of a square-integrable random variable with also square-integrable, .
The following coupling puts the online process and the benchmark on the same potential-outcome sequence, indexed by accepted calls. This allows us to charge a rejected period and any accepted-call underpricing separately.
On a compact interval, if a density is proportional to with and , the one-dimensional Brascamp–Lieb inequality gives for absolutely continuous with finite right-hand side. No boundary condition on is required.
The variational characterization is .
Accepted-outcome coupling. For the analysis, fix an arbitrary and let be the potential outcomes of successive accepted calls, where
Write
If is the number of calls made by the online provider through calendar period , then the model's state before period is . A rejected period consumes no potential outcome.
For analysis, continue CAT indefinitely by omitting only the stopping check in QUERY. An attempt starts from an exact certificate and ends at the first rejection: it consists of tracking and, if all tracking queries are accepted, the subsequent calibration, called catch-up below. The implemented policy consists of the first periods of this process.
Lemma 4 (Couple the benchmark and the online process). For any admissible policy, let be its number of accepted calls by time , let be the calendar period of its -st accepted call, and set
Under the always-service condition ,
Moreover, pathwise.
PROOF OF LEMMA 4. The proof proceeds in two steps.
Step 1: Identify the full-information path. At state the largest price accepted by the user is . Since every posterior is supported on and , the corresponding margin is at least . On any fixed potential-outcome path, the -st accepted call is made at state and earns at most . Thus a policy making calls earns at most
This bound depends only on the number of calls, not on their calendar dates, because a period without a call consumes no outcome. Every summand is nonnegative, so the bound is maximized at and is attained by calling in every period at the highest accepted price. Thus an optimal full-information policy makes calls and earns
Taking expectations identifies this pathwise value with .
Step 2: Align accepted calls. The online provider's accepted calls consume the prefix . At an accepted call its price cannot exceed , so . Subtracting the online profit from the full-information path and adding and subtracting the first benchmark margins gives the regret identity. The tail has exactly terms, and ; hence . Finally, , so .
We next verify that the public query answers have the intended threshold interpretation. This is the invariant that makes every recorded reset exact.
Lemma 5 (Threshold queries and exact resets). At accepted count , an integer query is accepted if and only if . Every calibration, tracking, or catch-up rejection identifies the current success count exactly.
PROOF OF LEMMA 5. The proof proceeds in four steps.
Step 1: Verify the threshold interpretation. By monotonicity from Lemma 3, is strictly increasing. Therefore, the tie-breaking rule and the query price give
Because both posterior means lie in , every query price is feasible. At and the tracking threshold is , so the unique initial query is accepted by equality.
Step 2: Establish calibration. The initial one-query tracking epoch asks at and is accepted by the tie-breaking rule, so the following calibration starts at with . More generally, at any calibration start the maintained lower bound satisfies . If is accepted, then the current count is at least , and after the generated outcome the new count remains at least ; increasing by one preserves the invariant. A rejection of gives , so .
It remains to check feasibility. In the initial calibration, after acceptances the current values are and , so the query is feasible. Feasibility of subsequent calibrations is checked in Step 4.
Step 3: Verify tracking resets. Since ,
Also , so the first query cannot be rejected. If is rejected after was accepted, then
The rejection forces and , which is the recorded certificate. Moreover, .
Step 4: Verify catch-up resets. After tracking completes, the threshold was accepted before the last tracking outcome, so at the catch-up start , where . Here denotes the threshold at the start of calibration, and indexes its queries; the algorithm's updated threshold is before query . The catch-up thresholds increase by one. If the query is rejected after catch-up acceptances, then
so the recorded certificate is exact. Feasibility follows from , hence . All thresholds use only public certificates and public decisions, so every posted price is public-history measurable. □
The exact-reset invariant also identifies the relevant adaptive phase boundaries. The next lemma states that the potential outcomes after any such boundary retain their original conditional law, which is needed for the one-attempt estimates.
Lemma 6 (Independence of unused outcomes). Let be the accepted count at any exact reset in the infinite continuation of Algorithm 2, and set . Both are almost surely finite stopping times for . For either or , the unused outcomes are i.i.d. Bernoulli and independent of the history through .
PROOF OF LEMMA 6. The proof includes two steps.
Step 1: Verify the stopping-time property. Every attempt is almost surely finite. Tracking has finitely many queries. During calibration, the difference between the true success count and the maintained lower bound decreases by one after each zero outcome and remains unchanged after an outcome of one. Since , the i.i.d. sequence contains infinitely many zeros almost surely, so calibration ends after finitely many calls.
To identify each boundary, simulate all public thresholds and decisions using until a phase boundary is reached or the next outcome is requested. Rejections consume no outcome. Thus for each exact reset. Induction over phase boundaries proves the assertion for all resets. Since is -measurable, decomposing over also shows that is a stopping time. The tracking decisions are determined by the outcomes available by , so tracking completion is -measurable. On the event that tracking completes, is the catch-up start count.
Step 2: Prove stopped-tail independence. Write for the information available through outcome . For and a cylinder event involving the next outcomes, use to obtain
The second equality uses independence of future outcomes from at each fixed call count. A monotone-class argument extends the identity to the future-tail sigma-field. The same argument applies at , including on the event that catch-up is reached. □
We next analyze initialization. It includes the initial one-query tracking epoch, all short tracking phases, and their calibration queries; its expected charge is linear in the threshold.
Lemma 7 (Bound pre-threshold initialization). Let be the charge accumulated by CAT before the first exact reset whose accepted-call count is at least , or before the horizon if no such reset occurs. Then, uniformly over ,
for a finite constant independent of and , where the charge is accepted-call underpricing plus one unit for each rejected period.
PROOF OF LEMMA 7. The initial tracking epoch has one query, , and is accepted, so it consumes one period and one accepted call. Its charge is at most one. The following calibration starts at with lower bound .
For this calibration, if is the hidden success count at that point, the number of accepted calibration queries before the first rejection has conditional mean ; this is the elementary waiting-time formula for the number of Bernoulli trials needed to observe failures. The final rejection contributes at most one. Truncating at the horizon can only reduce these nonnegative charges.
It remains to bound the tracking and catch-up phases whose exact reset count is below . Every such tracking phase starts from an exact state with , and its first threshold is at most , so the first tracking query is accepted. Hence the total number of accepted tracking queries before the threshold is crossed is at most
For a completed phase, let be its tracking length and let be the success-count gap at the start of catch-up. Since and ,
The expected number of accepted catch-up queries is therefore at most . Summing over completed pre-threshold phases gives an bound because the sum of their 's is no larger than the number of accepted tracking queries just bounded.
To include rejection losses, note that there is at most one rejection per calibration or tracking phase, and the number of such phases is at most one plus the number of accepted tracking queries. Every accepted-call underpricing loss and every rejection contributes at most one to the charge. Combining these estimates proves the claim, for example with .
After the finite pre-threshold range, concentration of the accepted-outcome sequence gives accuracy guarantees for every adaptive certificate. The next lemma collects the high-probability event and the deterministic inequalities that will be used in each later tracking epoch.
Lemma 8 (Guarantee good adaptive attempt starts). Define
Uniformly over ,
On , every main-phase attempt starting at accepted count with exact certificate satisfies
In particular, lower clipping in the tracking threshold is inactive.
The monotone-class theorem extends an identity verified on cylinder events to the sigma-field generated by those events.
If independent Bernoulli trials have failure probability , the number of trials required to observe d failures has mean ; this is the negative-binomial mean.
PROOF OF LEMMA 8. For each deterministic , Hoeffding's inequality gives
A union bound proves (3). On , the first inequality in (4) holds at every adaptive reset count. The parameter inequalities in (1) give and
This proves all claims.
The next lemma bounds the tracking completion probability and the total expected charge of an attempt starting in this good region.
Lemma 9 (Bounds for one attempt). Consider a main-phase attempt starting from an exact state with , , and satisfying (4). Continue the attempt through its first rejection, even if the horizon ends earlier. Let be the event that all tracking queries are accepted, and let be the total accepted-call underpricing plus one unit for each rejection. Uniformly over the start history and ,
where depends only on .
PROOF OF LEMMA 9. Let , , and . Write and for the total accepted-call underpricing during tracking and catch-up, respectively, with when catch-up is not reached. Conditional on , define
The stopped-tail lemma gives conditionally independent Bernoulli increments. The good-start conditions make clipping in the tracking thresholds inactive. Thus, whenever the j-th tracking query is reached,
Step 1: Bound the tracking completion probability. On the event , the right-hand side of (7) is at least . Thus every tracking query is accepted. Since , Kolmogorov's maximal inequality gives
which proves (5).
Step 2: Bound tracking underpricing. For an accepted tracking query, the sensitivity lemma and (7) bound its underpricing by
. Dropping the indicators that the query is reached and accepted and using gives
By Cauchy–Schwarz , . Together with and for , this yields
where .
Step 3: Bound the terminal gap. To bound catch-up underpricing, set and . Define on and otherwise. On , the final tracking query is accepted, so . The definition of gives
For , the good-start inequalities and imply on . Therefore,
This estimate does not condition on .
Step 4: Bound catch-up and total charges. On , let be the number of accepted catch-up queries and their total success-count gap. Set both variables to zero outside . After accepted catch-up queries, define
Then . If , the next query is accepted and . If , the next query is rejected, ending the attempt. In particular, gives .
The stopped-tail lemma applies at the catch-up start because is -measurable. For , is the number of trials needed to observe zeros. Hence . At residual level , the success-count gap is , and the expected number of accepted queries at that level is . Summing over gives
Posterior sensitivity converts (9) into an underpricing bound. The tower property and (8) then give
Catch-up ends almost surely because . Whether rejection occurs during tracking or after catch-up, the attempt contains exactly one rejection. Thus almost surely. Combining the two underpricing bounds proves (6) with .
For independent random variables in [0, 1], Hoeffding's inequality gives .
The union bound states that the probability of a finite union is at most the sum of the probabilities of the individual events.
For a square-integrable martingale with orthogonal increments, Kolmogorov's maximal inequality gives .
Cauchy–Schwarz gives for every square-integrable .
We next bound the number of epochs to obtain a total-charge bound. Completed epochs increase the accepted-call count by their full tracking length, while each attempt with a good start has a uniformly positive conditional probability of completing tracking. The next lemma combines these two facts.
Lemma 10 (Number of good-start attempts). For each post-threshold attempt in the infinite continuation, let be its starting call count. Let indicate that the attempt starts by calendar time and satisfies . The number of these good-start attempts satisfies
for a numerical constant , uniformly over .
PROOF OF LEMMA 10. The proof contains two steps.
Step 1: Count completed tracking phases. Let count tracking phases that start at an accepted count at least and have all their queries accepted by calendar time . If is the starting call count of the -th such phase, then .
For , put . Concavity gives , and hence
If , telescoping over consecutive completed phases and using gives
This bound also holds when .
Step 2: Use conditional survival. The indicator is -measurable because the calendar start time and the exact certificate are determined by the outcomes available at that start. Let indicate that all tracking queries of attempt are accepted under a natural continuation, even if the horizon ends before the epoch does.
For these good starts, the one-attempt lemma gives, on , : every attempt starts with , and the remaining two good-start conditions follow from and (1). At most one such natural continuation can be truncated by the horizon, so
Together with (11), this proves (10), for example with .
We now combine the charges from initialization, good post-threshold epochs, and the exceptional event to prove the uniform upper bound.
PROOF OF LEMMA 1. Fix an integer , a cost , and . By Lemma 5, CAT is admissible. Under the accepted-outcome coupling, let . By Lemma 4, . We bound this expected charge in four steps.
Step 1: Bound the initialization charge. We first separate initialization from post-threshold attempts. Let be the charge accumulated through the first exact reset with accepted count at least , truncated at time T, as in Lemma 7. Write for the remaining charge. If no post-threshold attempt starts by time T, then .
The initialization bound gives
This bound includes any tracking or calibration phase that crosses the threshold before producing an exact reset. Thus every attempt contributing to starts from an exact state with accepted count at least .
Step 2: Aggregate the charges of good-start attempts. We next combine the bounded expected charge of one attempt with the bound on the number of good-start attempts. Use , , and from Lemma 10. For each post-threshold attempt , let be its total charge when continued through its first rejection, even if this occurs after time .
The attempts starting by time partition the main-phase periods, and only the last attempt can be unfinished at the horizon. Because every charge is nonnegative, continuing an unfinished attempt can only increase its charge. Moreover, each such attempt starts at an accepted count . Hence, on the event in (2), each such start satisfies , and therefore
To bound the right-hand side, condition on the outcomes available at each attempt's start. The indicator is determined by this information. On , its concentration condition and (1) imply all the good-start conditions in (4). By Lemma 6, the unused outcomes retain their i.i.d. Bernoulli( ) law at this adaptive start. Thus Lemma 9 applies and gives on . The tower property yields
This calculation conditions only on the start history; it does not condition on , which also restricts future outcomes.
All summands are nonnegative, so Tonelli's theorem and (10) give
Step 3: Bound the charge on the exceptional event. When fails, we bound the total charge directly, without estimating individual attempts. By Lemma 4, on every outcome sequence. Combining this with (3) gives
Thus the exceptional event contributes only once to the total bound, regardless of how many attempts occur.
The tower property allows us to first take the conditional expectation given the attempt-start history and then average over that history.
Tonelli's theorem allows expectations and countable sums of nonnegative random variables to be interchanged.
Step 4: Combine the bounds uniformly. We now combine initialization, the main-phase charge on , and the total charge on its complement. Since and both charges are nonnegative,
where the last inequality uses Lemma 7, (12), and (13).
Finally, with , and uniformly for . The initialization and exceptional-event terms can therefore be absorbed into a finite constant depending only on . Consequently,
All estimates are uniform over and . Since CAT is admissible, taking the supremum over and then using the definition of minimax regret yields
This proves Lemma 1.
B.2 Proof of the Lower Bound
We first establish the local sensitivity of the posterior mean. We then decompose regret into accepted-call underpricing and rejected periods, and translate posted prices into success-count thresholds. A concentration bound for the success counts and a blockwise tradeoff lemma complete the preparation.
To keep calendar time and accepted-call time distinct, the appendix uses for the number of accepted calls through period t and for the number of successes among the first n accepted calls. In the model's notation, before period t we have
Throughout this subsection, fix and let be independent Bernoulli potential outcomes. Set the success count for every , with .
The first lemma quantifies how the posterior mean changes with the success count. Recall that denotes the posterior mean after n calls and s successes.
Lemma 11 (Posterior sensitivity). Under Assumption 1, there exist constants , , and an integer such that
whenever , , and .
PROOF OF LEMMA 11. The proof proceeds in three steps.
Step 1: Localize the central posterior. Choose such that . Let denote the posterior distribution at state and set . Its density is proportional to , where
For in the stated central interval, is maximized at . Moreover, there is a finite constant such that, for every ,
The first inequality is Pinsker's inequality for Bernoulli distributions, which lower-bounds the relative entropy between two Bernoulli laws by twice the squared difference of their means. The second follows from Taylor's theorem because the interval is bounded away from zero and one.
Step 2: Bound the posterior variance. By Assumption 1, we have for almost every . By (14), the normalizing constant of is at most
For all sufficiently large n, the intervals
are contained in . Each interval has unnormalized posterior mass at least . Hence there is a constant , independent of in the central region, such that
If are independent draws from , then
Step 3: Bound the posterior-mean sensitivity. To convert this variance bound into a change in the posterior mean, define . The posterior at is obtained by multiplying the density of by g and renormalizing, and therefore
Since and on , the independent-copy identity for covariance gives
Combining these estimates proves the lemma with .
The next lemma decomposes regret into the two losses that any policy must limit. Let U denote the policy's random seed, independent of Y. Unless otherwise stated, probabilities and expectations below average over both Y and U.
Lemma 12 (Regret decomposition). Under Assumption 1, fix , , and an admissible policy A. Let be the calendar
Pinsker's inequality states that ; for Bernoulli laws, the total-variation distance is the absolute difference of their means.
Taylor's theorem with a bounded second derivative gives a quadratic upper bound on the difference between a smooth function and its value at a maximizer.
For independent copies of a square-integrable random variable, the independent-copy identity is .
period of the -st accepted call and define
Set . There is a finite constant , depending only on , such that
PROOF OF LEMMA 12. The proof proceeds in three steps.
Step 1: Identify the benchmark path. At state , the largest price accepted by the user is . Every posterior mean lies in , so the corresponding margin is at least . On a fixed potential-outcome path, a benchmark making calls earns at most the sum of the first purchase-indexed margins . Adding one more call leaves the earlier margins unchanged and adds a nonnegative margin. Thus, an optimal full-information benchmark makes calls and earns .
Step 2: Align accepted calls. The online policy consumes the prefix . At each accepted call, its price is at most , so . On a fixed realization, define the difference between benchmark and online profits
Separating the first benchmark terms from the remaining terms gives . Taking expectations yields the equality in the statement. This is the same call-by-call coupling as in Lemma 4.
Step 3: Bound the loss from unmatched calls. To cover , we use concentration at instead of the possibly zero margin . For with , the likelihood bounds in the proof of Lemma 11, namely (14), imply, for all sufficiently large ,
for a finite constant depending only on . Here , is the likelihood-bound constant from that proof, and the denominator integrates over . The choice of gives . Choose an integer so that the bound holds and for every . Then implies .
Write . Since , Hoeffding's inequality gives the finite bound
The tail contains terms, so pathwise
Taking expectations proves the claimed inequality. The constant B does not depend on the policy or the horizon. □
Lemma 12 reduces the lower bound to a comparison between accepted-call underpricing and rejected periods. The next lemma expresses an arbitrary posted price as a success-count threshold and quantifies the underpricing caused by a threshold gap.
Lemma 13 (Convert prices into success-count gaps). Under Assumption 1, use the constants from Lemma 11. For and , define
Then a price is accepted at state if and only if . Moreover, if , , is a nonnegative integer with , and the accepted price satisfies , then
PROOF OF LEMMA 13. For fixed , increasing the success count from to multiplies the posterior density by the strictly increasing likelihood ratio . The covariance identity used in Lemma 3 therefore implies . The user's tie-breaking rule then gives
If the query is accepted and , then . Summing the lower bound in Lemma 11 over the w intervening states gives
Indeed, every intervening count satisfies , as required by Lemma 11.
The price-loss bound in Lemma 13 is useful only when the hidden success-count path remains in the central region. We therefore record the high-probability event on which this is guaranteed at all sufficiently late call counts.
Lemma 14 (Probability bound for success-count deviations). Let be chosen as in Lemma 11. Define as the event that for every integer . Then
PROOF OF LEMMA 14. For a fixed , Hoeffding's inequality gives
Applying the union bound over at most T possible values of m proves the claim.
It remains to quantify the rejection-underpricing tradeoff on one late block using Lemmas 13 and 14. This is the key probabilistic step: either the block contains a rejection with substantial probability, or private outcome fluctuations force accepted prices to be too low.
For independent random variables in [0,1], Hoeffding's inequality gives .
The union bound states that the probability of a finite union of events is at most the sum of their probabilities.
Lemma 15 (Blockwise loss bound). Maintain the assumptions and of Lemma 12. Let be a block in the last quarter of the horizon, with . Let be the total underpricing on accepted calls in , and let be the number of rejections in . There is a constant such that, for all sufficiently large ,
PROOF OF LEMMA 15. Take large enough that . Write and for probability and expectation conditional on the entire interaction before period , including realized private call outcomes, and on the policy's independent random seed . This conditioning is used only for analysis.
Under this conditioning, and are fixed. For each possible , the event and the history on that event depend only on . Thus the unused outcomes remain i.i.d. Bernoulli. Let be the event that every price in the block is accepted, and set .
Step 1: Bound loss when a rejection is likely. If , at least one rejection occurs with conditional probability at least . Hence
Step 2: Bound underpricing when acceptance is likely. Suppose and . For , let be the price in period along the counterfactual path on which all preceding prices in the block are accepted. Define
The prices and thresholds are fixed by the initial public history, the seed U, and the assumed acceptances. On , this path agrees with the realized interaction, so , and by Lemma 13.
The increment has conditional distribution Binomial . For , set . The binomial point-mass bound implies
because this event restricts to at most integer values. Since on ,
On from Lemma 14, we have and . For sufficiently large , also and . Thus Lemma 13 implies that, on ,
Step 3: Sum and average the conditional bounds. Sum over , so that . Since , there is a universal constant such that
Using (18) and (19), and subtracting at most from the event probability, gives
for some constant , because for large .
Set . Combining the two cases, and using nonnegativity of losses when , yields
Averaging over the block-start history and the policy's randomization proves the lemma.
We now combine Lemmas 12, 14 and 15 to prove Lemma 2.
PROOF OF LEMMA 2. Fix an arbitrary admissible, possibly randomized, policy and set . Maintain Assumption 1 and . The decomposition (15) in Lemma 12 gives
We complete the proof in two steps.
Step 1: Bound regret with many rejections. We first show that rejections alone yield the desired lower bound if at least rejections occur with sufficiently large probability.
Define the event and let . Since on and otherwise, .
If , then Lemma 12, together with the nonnegativity of the underpricing loss , gives
Because and is independent of and , this establishes the desired lower bound for sufficiently large . It therefore remains to consider policies with .
Step 2: Aggregate the late blocks. Suppose that . Set and . We partition the final ML periods into the disjoint blocks
for . Since , every selected block lies in the last quarter of the horizon.
To apply Lemma 15, we first verify that sufficiently many calls have occurred before each block. On , fewer than T/4 periods are rejected over the entire horizon. A block starting at period s therefore satisfies
For , Stirling's formula gives for .
Thus for every selected block. Choosing late blocks ensures that the required initial call count is reached with high probability.
The remaining error term comes from the event , whose probability is bounded in Lemma 14. For sufficiently large , (16) gives , while . Applying the blockwise bound (17) therefore yields
for every r. Hence each block contributes a constant expected loss through rejections, underpricing, or both.
Since the blocks are disjoint and each period contributes non-negatively to and , we can sum their losses to obtain
For sufficiently large , the number of selected blocks satisfies . Taking expectations and applying (15) and (20), we obtain
Since and is independent of and , this establishes the desired lower bound in the remaining case.
Combining the two cases, take and a finite integer such that for all . Regret is nonnegative at every horizon, so choosing covers all integers . Both constants depend only on and not on the policy. Because , taking the infimum over gives the statement of Lemma 2.
C Omitted Proofs in Section 4
C.1 Proof of the Upper Bound
Throughout this appendix, assume Assumption 1 and fix . We first prove that CAT-R in Algorithm 4 has regret uniformly over . The proof bounds three sources of loss: underpricing, calibration rejections, and incorrect service-continuation decisions. Posterior concentration then relates these losses to the dynamic full-information benchmark.
Use the accepted-call notation from Section B.2. For a fixed type , let be independent Bernoulli() potential outcomes, and set and , with . Each accepted call consumes the next outcome. Thus, before period , the user's state is . Write for and .
The sensitivity bound in Lemma 3 already bounds how prices change with the success count. The next lemma bounds the difference between the user's posterior mean and the true type, which is needed because the benchmark can choose when to serve.
Lemma 16 (Posterior concentration). There are finite constants , depending only on , such that for all integers and ,
Moreover, for every and integer ,
PROOF OF LEMMA 16. The proof proceeds in two steps.
Step 1: Bound the posterior second moment. We first compare the posterior with the normalized likelihood, whose curvature gives a bound valid even at the support endpoints.
Fix and let be the probability density on proportional to . Let have density . Put , , and . Then throughout the interval. The maximizing point satisfies , including when is an endpoint, so
Since , integration by parts gives
The boundary term is nonnegative because . Combining these inequalities yields .
The posterior density is proportional to . By Assumption 1, its ratio to is at most almost everywhere. Its second moment about z is therefore at most . Cauchy-Schwarz proves the first claim with .
Step 2: Sum the deviations from the true type. Projection onto cannot increase the distance to . Hence
Since , the expected second term is at most . Finally, and . Taking proves the sum bound.
We next verify the public count bounds maintained by CAT-R. During calibration, the threshold variable b increases while the stored variable L remains unchanged; the proof therefore uses b as the current lower bound in that phase.
Lemma 17 (Count and pricing bounds). CAT-R is admissible. On every outcome sequence, its public upper bound satisfies whenever the retirement test is evaluated after calls.
For horizon , let count rejected queries before retirement and define the total underpricing by
Then, on every outcome sequence,
where is the constant in Lemma 3.
PROOF OF LEMMA 17. The proof proceeds in three steps.
Step 1: Verify the count bounds and query decisions. Consider a cycle starting at the exact state , and set .
Define during tracking and during calibration. We verify that
throughout the cycle, before any retirement test or posted price. These bounds hold at the start of the cycle, where . By Lemma 3, is strictly increasing in the integer success count; the case has only the state . Purchase at equality therefore implies that a query at is accepted exactly when .
During tracking, the query is . After each call, n and U increase by one, while increases by either zero or one. Keeping preserves the bounds, and their width is at most the number of tracking calls, hence at most E.
If calibration is reached, after accepted calibration queries we have and . Since and , the next threshold is at most . An acceptance implies that the current success count is at least . Increasing by one then preserves both the count bounds and their width. A rejection implies ; together with and integrality, this gives . The update makes the next reset exact. Stopping or retiring can only end this sequence of valid updates.
All prices and state variables depend only on public purchase decisions and the known prior, cost, and horizon. Every queried posterior mean lies in , and retirement posts the feasible price 1, which is always rejected. On an unreachable public history, define the policy to post 1 thereafter. This establishes admissibility.
Step 2: Bound underpricing on accepted calls. The first price is , so its underpricing is zero. For every later accepted call, the query is at or , and the success-count difference is at most E. Since and ,
For the middle inequality, if , then , so integrality gives . Summing the sensitivity bound over the intervening states gives
Each call count occurs before at most one accepted call. Summing over proves the bound on . The count bounds also give before every retirement test with . This proves the stated count-error bound, including when the test triggers retirement.
Step 3: Count calibration rejections. Every active rejection ends one cycle, and each completed cycle includes its full tracking phase. Let be the call counts after successive completed cycles. Then . Writing gives
Summing over completed cycles and using yields
An unfinished final cycle contributes no additional active rejection.
The remaining task is to bound losses from service decisions. For types below cost, the sum of the retirement bonuses limits continued service. For types above cost, an expected maximal deviation limits the loss from retiring too early.
Lemma 18 (Retirement bonus bounds). For any integer and , let for , and define
The following bounds hold with a universal constant :
PROOF OF LEMMA 18. The proof proceeds in two steps.
Step 1: Sum the bonuses. The bonus is decreasing on . An integral comparison, followed by , gives
Step 2: Bound the largest downward error. We first obtain a maximal concentration bound for . For any , Hoeffding's lemma applied to the independent, mean-zero variables , each in an interval of length one, shows that is a nonnegative supermartingale. Stopping it at the first crossing of , capped at an integer , and taking gives
Indeed, on a crossing the stopped exponential is at least , whereas its expectation is at most one by bounded optional stopping.
Partition the call counts into the nonempty blocks , for , and write . If for some and , then
All indices in the block are at most . The maximal bound therefore gives
A union bound and integration of the tail probabilities now yield
Empty blocks may be included in this upper bound. The geometric series is finite, proving the claim with .
We can now bound the cost of serving too often or too rarely. The following statement is uniform even when is arbitrarily close to c.
Lemma 19 (Loss from service decisions). There is a universal constant such that CAT-R satisfies
PROOF OF LEMMA 19. The proof proceeds in two steps.
Step 1: Bound missed service above cost. Let count all periods assigned price 1 after retirement, including the period in which the retirement test first succeeds. Every period is either an accepted call, an active rejection, or a retired period, so . Put . If retirement occurs after calls, the test and the count bound give
Consequently, . This inequality also holds when retirement never occurs or . Since , Lemmas 17 and 18 imply
Step 2: Bound continued service below cost. Put . On the event for , consider the period of the -st accepted call. Its retirement test did not trigger, and Lemma 17 gives . Thus
Multiplying by and taking expectations yields
This uses an unconditional bound at the deterministic call count ; no conditional unbiasedness is required. The first call contributes at most . Using and Lemma 18, we obtain
The two cases establish the claim.
The preceding lemmas bound CAT-R's losses on the potential-outcome sequence. We now combine these bounds to prove the upper bound.
UPPER-BOUND PART OF THEOREM 2. The proof proceeds in two steps.
Step 1: Compare profits on the same outcome sequence. Fix . An optimal benchmark policy exists by backward induction over the finitely many reachable states in the Bellman recursion. Whenever it serves, it can charge . If it makes calls, its realized profit is . For every outcome sequence and every such ,
Hence Lemma 16 implies . This comparison allows both waiting and calls with negative current margins.
CAT-R's profit satisfies the pathwise identity
Bounding the partial sum below by and applying Lemmas 16 and 17 gives
Both comparisons hold for outcome-dependent call counts, including when the horizon ends within calibration.
Step 2: Combine pricing and service-decision losses. Subtracting the last bound from the benchmark bound yields
The first line equals when , and when . Lemma 19 therefore bounds it by . For , we conclude
The constant depends only on . All estimates include , the support endpoints, and .
C.2 Proof of the Lower Bound
For the lower bound, the hard types lie on opposite sides of the serving cost. Serving too often is costly under the lower type, while serving too rarely gives up profit under the higher type. We first account for deviations of the user's posterior mean from the true type, then relate regret to these two call-count errors. An information bound shows that no policy can make both errors small.
Fix an arbitrary admissible, possibly randomized policy A. Write for its total number of calls, as in the main-text sketch, and use j for deterministic call counts below. Set
where will be chosen at the end. Both types belong to . All constants in this subsection are independent of A and T.
We first bound the total deviations that exceed a fixed fraction of the distance from cost.
Lemma 20 (Summable posterior deviations). Set , using from Lemma 16. For every and ,
PROOF OF LEMMA 20. We prove the upper-tail bound; the lower-tail proof reverses the signs. For and , the posterior approximation in Lemma 16 gives
Here projection onto cannot increase a positive deviation above , or a negative deviation below it. Hoeffding's inequality, Tonelli's theorem, and yield
The deterministic part is decreasing in j, so
The contribution is at most one. Taking gives . The lower-tail bound follows from the lower-tail version of Hoeffding's inequality and the same calculation.
These deviation bounds let us compare service counts without assuming that early profit margins already have the sign of .
Lemma 21 (Regret and the number of calls). For the two types defined above, every admissible policy satisfies
PROOF OF LEMMA 21. Use the same potential-outcome sequence for the online policy and each benchmark comparison. Since an accepted price cannot exceed the user's posterior mean, pathwise
At , immediate retirement is feasible for the benchmark and yields zero. Moreover,
Sum over , bound the positive terms by their sum over all , and apply Lemma 20 to obtain the first inequality.
At , serving in every period at the posterior mean is a feasible benchmark policy. Subtracting the online prefix bound from this policy's profit leaves . Each term is at least . The second inequality follows from Lemma 20. The comparisons hold on every outcome sequence, so they do not require the random total to be independent of the outcomes.
To keep both call-count errors small, a policy would need to distinguish the two types from purchase decisions. The next lemma bounds how much information those observations contain.
Lemma 22 (Information in the provider's observations). Let and be the laws under and of the public history . Then
PROOF OF LEMMA 22. Augment the public history with the policy's random seed, independent of the type and outcomes, and the outcomes of accepted calls. Conditional on this augmented history, the same pricing policy and posterior map determine the next price
and purchase decision under either type. An accepted call adds a Bernoulli outcome; a rejected period adds no outcome. The chain rule for relative entropy therefore gives
where are the augmented-history laws and kl is Bernoulli relative entropy. The common seed contributes zero relative entropy. Discarding private outcomes and the seed cannot increase relative entropy, so the same expression bounds the public-history divergence. Finally, for . Since and , this proves the claim.
The last step combines the call-count and information bounds. The constant in must account for the posterior correction, so we choose it explicitly.
LOWER-BOUND PART OF THEOREM 2. The proof proceeds in three steps. We first turn small regret at both types into a test that distinguishes them, then bound the accuracy of this test, and finally choose the separation between the types.
Step 1: Relate small regret to opposite service decisions. Fix an arbitrary admissible policy and write . For now, fix and recall that . Small regret requires few calls under but many calls under . To quantify these requirements, let be the larger regret at the two types and define to include the posterior-deviation correction:
Rearranging the two inequalities in Lemma 21 gives
These inequalities also imply , since both expected call-count errors are nonnegative.
The total call count is observable from the public history. Thus the event defines a test: choose on and on . An error under requires at least calls, whereas an error under leaves more than periods unserved. Applying Markov's inequality to each error and adding the bounds yields
Step 2: Bound the testing error from below. We next show that the information available to the provider prevents this test from being too accurate. For any probability laws and event , the Bretagnolle-Huber inequality states
For completeness, suppose first that . Let denote their Hellinger affinity. Jensen's inequality gives
, while Cauchy-Schwarz bounds their total variation distance by . Consequently,
If the relative entropy is infinite, the right-hand side is zero, so the inequality still holds.
To apply this inequality, Lemma 22 and the call-count bound from Step 1 give
Combining the resulting lower bound with the upper bound on the same testing error yields
Equivalently, every admissible policy must satisfy
Step 3: Choose the hard types. We choose on the scale so that a regret lower bound of order becomes a lower bound. Its coefficient must also be large enough to account for the
correction in . Specifically, set
The constant is independent of and . For , we have , so both and belong to .
Suppose, toward a contradiction, that . Then . Since is increasing for , (21) implies
which is impossible. Thus every admissible policy incurs regret greater than for at least one of the two feasible types.
The pair of types is chosen independently of the policy. Taking the infimum over therefore gives
This proves the lower bound. Together with CAT-R's upper bound, it establishes for every fixed prior and interior serving cost under the stated assumptions.