Online Network Revenue Management Using Thompson Sampling: Bayesian Regret of TS-fixedResearch Paper
Motivation
A retailer who sells several products from shared, non-replenishable inventory over a finite season must set prices without knowing how demand responds to them. Every price posted is both a sale and an experiment. This is the network revenue management problem with demand learning, and it sits between two literatures: dynamic pricing with inventory, where demand is known and the fluid linear program of Gallego and van Ryzin (1997) is the standard benchmark, and multi-armed bandits, where learning is the whole problem but there are no resource constraints.
Ferreira, Simchi-Levi and Wang (Oper. Res. 2018) combine Thompson sampling with a linear-programming step: sample a demand model from the posterior, solve the fluid LP for that model, and randomize prices according to its solution. The same paper extends the scheme to continuous price sets, contextual pricing and bandits with knapsacks.
Timeline of the relevant results:
- 1997: Gallego and van Ryzin introduce the fluid LP upper bound for network revenue management with known demand.
- 2012: Besbes and Zeevi give a non-Bayesian network pricing algorithm with worst-case regret .
- 2013: Badanidiyuru, Kleinberg and Slivkins (bandits with knapsacks) give worst-case regret .
- 2013–2014: Bubeck and Liu and Russo and Van Roy give prior-free Bayesian regret bounds for Thompson sampling in unconstrained bandits.
- 2018: Ferreira, Simchi-Levi and Wang prove the Bayesian regret bound for TS-fixed (Theorem 1), the target of this mission.
Setting
There are products and resources. One unit of product consumes units of resource , and resource starts with inventory that is never replenished. The season has periods. In each period the retailer posts one of price vectors or a shut-off price under which demand is zero.
Given the posted price , the demand vector has law , where is unknown and drawn from a known, arbitrary prior . Demand is independent of the past given the posted price and , and is bounded: . Write for the mean demand of product under and parameter , and .
When inventory covers all demand, all demand is sold. Otherwise the satisfied demand satisfies , leaves every inventory nonnegative, and leaves at least one resource at zero; no other rule is imposed. Revenue is .
For a mean-demand matrix and capacities , the linear program is
with optimal value .
TS-fixed (Algorithm 1): in each period, sample from the posterior of given the history of posted prices and observed demands; let be an optimal solution of ; post with probability and with the remaining probability; observe demand and update the posterior.
Finally and .
Formalization targets
Goal: Theorem 1 against the LP benchmark
For , , every prior, every bounded demand family, every admissible fulfilment rule and every run of TS-fixed,
The paper prints this bound for , where is the revenue of the optimal policy that knows ; see Formalization scope for why the LP benchmark is stated instead.
Milestones
The article states Theorem 1 and says that its proof is in the online appendix (Supplemental Material at the DOI). The article itself contains no numbered lemma. The milestone list is therefore empty; the appendix's lemmas will be added as milestones once the appendix is held.
Significance
The bound is prior-free and has explicit constants that depend only on prices, consumption rates and demand bounds. Its dependence on matches the lower bound for Bayesian regret in unconstrained bandits with rewards in , a special case of the model with no inventory constraints (Bubeck and Cesa-Bianchi 2012, Theorem 3.5). It shows that the posterior-sampling principle survives the addition of resource constraints, lost sales and randomized LP-based pricing, and it is the template for the paper's later results (TS-update, contextual pricing, bandits with knapsacks).
The theorem is proved on paper but, as far as a platform search shows, not formalized anywhere. The platform has a formal proof of the unconstrained Bayesian Thompson sampling bound (BanditAlgorithm.thompson_sampling_bayesian_regret, Lattimore–Szepesvári Theorem 36.5) and an open single-product deterministic upper bound in revenue management (RevenueManagement.deterministic_upper_bound). Neither has inventory, an LP subroutine, or lost sales. A formal proof here would supply the first machine-checked analysis of Thompson sampling under resource constraints and would check the paper's constants.
Difficulty
In an unconstrained bandit, Thompson sampling's regret reduces to a sum of per-period gaps between an upper confidence bound and the sampled reward, because the sampled optimal arm and the true optimal arm are identically distributed given the history. Here the action is a randomized mixture from an LP, the reward is not additive in the prices chosen, and revenue is lost when inventory runs out. Two quantities must be controlled: the revenue the algorithm would collect if all demand could be served, and the revenue lost to stock-outs. The second depends on the random time at which each resource is exhausted under a pricing rule that was optimized for a sampled, not the true, demand, and on an arbitrary fulfilment rule once some resource is empty. Standard bandit arguments do not bound such lost sales, which are a nonlinear function of the whole trajectory.
Formalization scope
Lean representation. Products, resources and price vectors are indexed by Fin N, Fin M, Fin K; the posted price is an Option (Fin K) with none the shut-off price. Periods are 0-based ( stands for the paper's ). is a standard Borel space with a probability measure ; demand is a Markov kernel from Fin K to , bounded in for every parameter. A run of TS-fixed is a family of random variables on a probability space satisfying, almost surely and via conditional expectations: ; the posterior-sampling property of given everything before period ; the price draw with probabilities for a measurable optimal LP selection ; the demand law given the past, and the posted price; and fulfilment rules (a)/(b). The logarithm is natural. Prices, consumption and inventory are nonnegative (implicit in the paper). is a supremum over a nonempty bounded feasible set, so it has no junk value.
Corrections to the printed statement.
- is added. At the printed right-hand side is , yet on a one-price instance with Bernoulli demand, and a point-mass prior, TS-fixed loses about in expectation.
- The LP benchmark replaces . Section 3.1.1 bounds by , citing Gallego–van Ryzin. Under the paper's fulfilment rule this fails when products use disjoint resources: with two products, , , and deterministic demand , the known- policy earns at least while . The paper states that its proof bounds the gap to "the LP benchmark defined in Section 3.1.1" (p. 1594), and the last display of Section 3.1.1 bounds by exactly . Wherever the Gallego–van Ryzin bound holds, the corrected goal implies the printed one.
Ruled out. A bound for the "ideal" revenue instead of the satisfied revenue, or for an arbitrary policy whose prices are merely close to the LP solution, is not Theorem 1; the goal carries the full TS-fixed run and the lost-sales accounting.
Infrastructure needed. Posterior-sampling identities for general (standard Borel) priors, a Hoeffding/Azuma-type concentration for bounded demand along the price-selection process, LP sensitivity with respect to the mean-demand matrix, and a pathwise bound on lost sales under an arbitrary fulfilment rule. The LP and fluid-benchmark definitions are reusable for later missions on TS-update (Theorem 2), contextual pricing (Theorem 4) and bandits with knapsacks (Theorem 5). Contributions welcome: proofs of the goal, and formal statements of the online appendix's lemmas.
Selected references
- K. J. Ferreira, D. Simchi-Levi, H. Wang, Online Network Revenue Management Using Thompson Sampling, Operations Research 66(6):1586–1602, 2018. https://doi.org/10.1287/opre.2018.1755
- G. Gallego, G. van Ryzin, A Multiproduct Dynamic Pricing Problem and Its Applications to Network Yield Management, Operations Research 45(1):24–41, 1997. https://doi.org/10.1287/opre.45.1.24
- O. Besbes, A. Zeevi, Blind Network Revenue Management, Operations Research 60(6):1537–1550, 2012. https://doi.org/10.1287/opre.1120.1057
- A. Badanidiyuru, R. Kleinberg, A. Slivkins, Bandits with Knapsacks, FOCS 2013. https://arxiv.org/abs/1305.2545
- S. Bubeck, C.-Y. Liu, Prior-free and Prior-dependent Regret Bounds for Thompson Sampling, NeurIPS 2013. https://arxiv.org/abs/1311.0466
- D. Russo, B. Van Roy, Learning to Optimize via Posterior Sampling, Mathematics of Operations Research 39(4):1221–1243, 2014. https://doi.org/10.1287/moor.2014.0650
- S. Bubeck, N. Cesa-Bianchi, Regret Analysis of Stochastic and Nonstochastic Multi-armed Bandit Problems, Foundations and Trends in Machine Learning 5(1), 2012. https://arxiv.org/abs/1204.5721
- T. Lattimore, C. Szepesvári, Bandit Algorithms, Cambridge University Press, 2020, Chapter 36. https://doi.org/10.1017/9781108571401