Optimal Regret for Profit Maximization in Bilateral Trade

Matteo Castiglioni, Anna Lunghi, Alberto MarchesiarXiv 2026

TL;DR

This paper proves that an intermediary in a bilateral trade market can learn to maximize profits just as efficiently as a seller in a single-buyer market. By designing a novel algorithm that exploits the structure of bivariate cumulative distribution functions (CDFs), the authors achieve an optimal regret rate of $\widetilde{\mathcal{O}}(T^{2/3})$, effectively showing that the "curse of dimensionality" does not apply when moving from one-sided to two-sided market learning.

What Problem Does This Paper Address?

In a bilateral trade scenario, an intermediary sits between a seller and a buyer. The intermediary posts a purchase price $p$ to the seller and a sale price $q$ to the buyer. Trade occurs only if the seller's private valuation is below $p$ and the buyer's is above $q$. If both accept, the intermediary pockets the difference $(q - p)$.

The catch? The intermediary never sees the actual valuations—only a single bit of feedback: did the trade happen or not?

When this process repeats over $T$ rounds with valuations drawn from an unknown joint distribution, the goal is to minimize regret—the difference between the profit the intermediary actually made and the profit they could have made if they had known the distribution perfectly from the start and picked the best fixed pair of prices.

Standard "multi-armed bandit" techniques for this kind of problem typically hit a wall at $\widetilde{\mathcal{O}}(T^{3/4})$ regret in two dimensions. However, in the simpler one-dimensional case (selling to a single buyer), the optimal rate is known to be $\widetilde{\mathcal{O}}(T^{2/3})$. This paper asks: Is learning two prices intrinsically harder than learning one?

Methods

The authors introduce a sophisticated Phased Successive Elimination algorithm. Instead of treating every price pair as an independent "arm," they exploit the fact that trade probabilities are governed by a underlying bivariate CDF.

Key technical innovations include:

  1. Conservative Successive Elimination: Standard elimination algorithms discard suboptimal actions. Here, the authors maintain two sets: a target set of promising price pairs to refine, and a larger queryable set of "not-too-bad" pairs. These auxiliary query points provide the geometric flexibility needed for efficient estimation while keeping exploration regret low.
  2. Relative Learning via Dyadic Decomposition: Rather than estimating the absolute probability of trade at every point, the algorithm estimates differences in probabilities along rows of a grid. They use a dyadic decomposition—breaking intervals into a logarithmic number of standard "building block" intervals—to share information across different price pairs.
  3. Rerouting Mappings: Successive elimination creates "holes" in the price grid as bad actions are removed. To maintain the efficiency of dyadic decomposition, the authors "reroute" the endpoints of these intervals to nearby points that are still in the queryable set. This ensures that every measurement used to refine a target point is itself a low-regret action.
Figure 1: A decomposition of the region between xi,j and xi′,j. Top: the probability region associated with the grid point xi′,j is gray, while the union of the colored regions represents the probability regions associated with the difference between xi,j and xi′,j. Middle: the dyadic interval tree of cardinality O(K) used to decompose the differences. Bottom: the selected intervals form the consecutive chain B(i, i′) used to reconstruct the CDF difference. Colors identify the same interval throughout.

Datasets

This is a theoretical paper focused on proving regret bounds for arbitrary joint distributions. As such, it does not use empirical datasets or benchmarks. The results are established through rigorous mathematical proof.

Key Insights and Ideas

  • No Curse of Dimensionality: The most striking finding is that the regret rate for two-dimensional profit maximization matches the one-dimensional lower bound. This suggests that the monotonic structure of CDFs is a powerful tool for bypassing the usual dimensional scaling in bandit problems.
  • Structure Over Lipschitzness: While the profit function isn't necessarily smooth (it can have jumps if the valuation distribution has "atoms"), the monotonicity of the CDF allows for a one-sided discretization guarantee that is more robust than general Lipschitz continuity.
  • The Power of "Inertia": In their mapping construction, the authors show that it's better to keep using a suboptimal representative point as long as it's "good enough" (queryable) rather than constantly jumping to the absolute best point. This "inertia" limits the number of times the algorithm has to restart its binary search procedures, saving significant sample complexity.

Key Results

  • Optimal Regret: The algorithm achieves an expected regret of $R_T = \widetilde{\mathcal{O}}(T^{2/3})$.
  • Matching Bounds: This result matches the classical $\Omega(T^{2/3})$ lower bound for one-dimensional dynamic pricing up to logarithmic factors, proving that the algorithm is essentially optimal.
  • Sample Efficiency: The refinement oracle designed by the authors can improve the precision of CDF estimates over a target set to $\epsilon$ using only $\widetilde{\mathcal{O}}(\epsilon^{-3})$ samples, matching the best known rates for one-dimensional estimation under one-bit feedback.

Limitations and Future Work

The authors highlight two main areas for future exploration:

  • General Reward Functions: The current proof relies on the specific affine form of the profit margin $(q - p)$. It remains to be seen if the same $T^{2/3}$ rate holds for more general reward functions $g(p, q)F(p, q)$ where $g$ is just a bounded Lipschitz function.
  • Adversarial Valuations: This work assumes valuations are drawn from a stationary (though unknown) distribution. In an adversarial setting where valuations can change arbitrarily each round, it is unclear if one-bit feedback is sufficient to achieve the same regret rate.
  • Higher Dimensions: While they solved the 2D case, the question of whether this dimension-independent regret extends to markets with $N$ buyers and $M$ sellers remains an open and tantalizing problem.

Summary updated

Abstract

Learning to profit from trade requires learning both sides of a market: what a seller is willing to accept and what a buyer is willing to pay. We study repeated bilateral trade, where an intermediary posts a purchase price to a seller and a sale price to a buyer whose valuations are drawn from an unknown joint distribution. Trade occurs only if both parties accept their respective prices, in which case the intermediary earns the difference between the two prices. The intermediary observes only whether trade occurs, without observing either valuation. We show that learning both sides of the market is no harder, in terms of regret, than learning just one. Specifically, we design an algorithm achieving regret $\widetilde{\mathcal{O}}(T^{2/3})$ against the best fixed pair of prices, matching, up to logarithmic factors, the classical lower bound for one-dimensional dynamic pricing. Our result shows that the classical one-dimensional regret rate survives the transition to two dimensions, raising the question of whether this absence of a curse of dimensionality extends to arbitrarily high dimensions.
BibTeX
@misc{castiglioni2026optimal,
  author = {Matteo Castiglioni and Anna Lunghi and Alberto Marchesi},
  title = {{Optimal Regret for Profit Maximization in Bilateral Trade}},
  year = {2026},
  eprint = {2611.09558},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.09558},
}

Loading related content...

Figure