Competitive Bundle Trading

Yossi Azar, Niv Buchbinder, Roie Levin, Or Vardi

TL;DR

This paper introduces the first competitive online algorithms for the "Competitive Bundle Trading" problem, where a retailer must buy and sell bundles of goods under inventory constraints without knowing future market conditions. The authors design a dynamic pricing scheme that achieves a logarithmic competitive ratio relative to an optimal offline benchmark, proving that their results are nearly optimal through matching lower bounds.

What Problem Does This Paper Address?

Most classical online algorithms for retailers focus on the "sell-only" case: you have a fixed inventory and want to maximize revenue. In reality, retailers are middlemen—they must purchase goods from suppliers to replenish stock and then sell customized bundles to customers.

The challenge here is three-fold:

  1. Profit vs. Revenue: The goal is to maximize profit (Revenue - Cost). Unlike revenue-only problems, a bad decision in trading can lead to a negative profit, making the problem significantly more volatile.
  2. Bundling: Transactions aren't for single items but for "bundles" (e.g., buying a pallet of various computer parts to sell a specific PC build). This introduces complex dependencies between item types.
  3. Adversarial Uncertainty: The retailer doesn't know when suppliers or customers will arrive or what their valuations will be. They must decide whether to buy or sell now based only on current inventory and current offers.

Methods

The authors propose a dynamic pricing algorithm based on an exponential-weight-update scheme.

  • Dynamic Pricing: The algorithm maintains a "base price" for every item type. When the inventory for an item is full, its price is zero. As the inventory decreases, the price increases exponentially.
  • Decision Rule:
    • When a customer arrives, the retailer sells a bundle if the customer's valuation exceeds the current calculated bundle price.
  • When a supplier arrives, the retailer buys a bundle if the supplier's price is low enough compared to the retailer's internal valuation (the current "shadow price" of the items).
  • Incentive Compatibility (IC): For the "unknown valuation" setting (where agents might lie about their prices), the authors introduce a randomized version of the algorithm. It uses a randomly sampled threshold and a bidding phase to ensure that the best strategy for any supplier or customer is to be truthful.
  • Dual Fitting: To prove the algorithm's performance, the authors use a "dual fitting" analysis. They formulate the offline profit-maximization problem as a Linear Program (LP) and show that the online algorithm’s decisions "fit" into a feasible solution for the dual of that LP, providing a mathematical guarantee on the competitive ratio.

Datasets

This is a theoretical research paper in the field of online algorithms and mechanism design. Consequently, it does not use empirical datasets or training benchmarks. Instead, the "evaluation" consists of rigorous mathematical proofs of competitive ratios and lower bounds against an adversarial (worst-case) input sequence.

Key Insights and Ideas

  • The Necessity of Resource Augmentation: The authors prove that without "resource augmentation" (specifically, assuming the offline benchmark pays slightly more to suppliers than the online algorithm), no algorithm can achieve a finite competitive ratio. This highlights a fundamental limit of online trading.
  • The Inventory Threshold: There is a "threshold phenomenon" regarding warehouse size. If the inventory capacity is too small relative to the size of the bundles being traded, a retailer can be "tricked" by an adversary into a sequence of trades that results in unbounded losses compared to the optimum.
  • LIFO Accounting: For the lower bound proofs, the authors use a clever "Last-In, First-Out" (LIFO) accounting trick to track the profit of specific units of inventory, simplifying the analysis of complex multi-phase trading sequences.

Key Results

  • Competitive Ratio: The algorithm achieves a competitive ratio of $O(\frac{1}{\epsilon} \log(dv))$ for known valuations and $O(\frac{1}{\epsilon} \log(\frac{dv}{\epsilon}))$ for the incentive-compatible case.
  • Note: $d$ is the max bundle size, $v$ is the ratio of max/min valuations, and $\epsilon$ is the resource augmentation parameter.
  • Matching Lower Bounds: They prove a lower bound of $\Omega(\frac{1}{\epsilon} \log(dv))$, meaning their algorithm is essentially as good as any algorithm can possibly be for this problem.
  • Feasibility: They demonstrate that as long as the inventory capacity is at least logarithmic in the valuation range ($v$) and bundle size ($d$), the algorithm will never violate inventory constraints (i.e., it won't try to sell what it doesn't have or buy more than it can store).

Limitations and Future Work

  • Large Inventory Requirement: The results rely on the "large inventory" assumption. While the authors prove this is necessary for deterministic algorithms, it remains an open question whether randomized algorithms can bypass this restriction.
  • Initial State: The current model assumes the retailer starts with a full inventory. Preliminary results suggest that starting with an empty inventory might change the competitive ratio (potentially to a constant like 3 for specific cases), which warrants further study.
  • Stochastic vs. Adversarial: The paper focuses on the adversarial setting. Exploring "Prophet" settings (where valuations come from known distributions) could lead to even tighter constant-factor competitive ratios.

Summary updated

BibTeX
@inproceedings{azar2026competitive,
  author = {Yossi Azar and Niv Buchbinder and Roie Levin and Or Vardi},
  title = {{Competitive Bundle Trading}},
  booktitle = {ICALP},
  year = {2026},
  doi = {10.4230/lipics.icalp.2026.17},
}
Figure