Profit Maximization in Bilateral Trade against a Smooth Adversary

Simone Di Gregorio, Paul Duetting, Federico Fusco, Chris SchwiegelshohnNeurIPS 2026

TL;DR

Imagine you are a digital broker connecting buyers and sellers, trying to learn how to maximize your cut over time when market conditions keep shifting. If those shifts are completely arbitrary, learning is mathematically impossible—but this paper proves that if the shifts have just a tiny bit of "smoothness" (no infinitely sharp spikes in how people value goods), you can learn just as fast as if the market never changed at all. Along the way, the authors use a clever geometric trick to solve an open problem in collaborative ad auctions, too.

What Problem Does This Paper Address?

At the heart of every e-commerce platform is bilateral trade: a seller has an item, a buyer wants it, both have secret valuations, and a broker sets the rules of the game to take a profit. To keep everyone honest and willing to play, the broker must design a truthful mechanism—meaning neither party can game the system by lying about their valuation, and nobody walks away with negative utility.

Suppose the broker repeats this over $T$ rounds with new buyers and sellers, trying to minimize regret (the gap between the broker's actual profit and what the single best mechanism would have made in hindsight). Previous work uncovered a stark cliff:

  1. If valuations are drawn from a static, unchanging (i.i.d.) probability distribution, an algorithm can learn the optimal rules very quickly, achieving $\tilde{O}(\sqrt{T})$ regret.
  2. If an adversary chooses the valuations arbitrarily each round, learning is hopeless—no algorithm can achieve sublinear regret.

Real markets live somewhere in between: they shift over time (non-stationary), yet aren't infinitely malicious. To capture this middle ground, the authors study a $\sigma$-smooth adversary, which can change valuation distributions every round, provided those distributions aren't "too peaked" (their probability density is bounded by $1/\sigma$).

The catch? Unlike setting a single posted price, designing a truthful bilateral trade mechanism is a non-parametric problem. By classic economic theory (Myerson's characterization), a valid mechanism corresponds to carving the $[0,1]^2$ square of buyer-seller bids into a monotone "trade region," where prices are determined by projecting bids onto the region's boundary. Searching over all possible monotone shapes is a massive, infinite-dimensional headache.

Figure 1: A monotone mechanism and two of its approximations. Notice the seller payment error.

Methods

If you simply discretize the $[0,1]^2$ square into a uniform $\varepsilon$-grid of tiles and run a standard multi-armed bandit/experts algorithm (like HEDGE) over all valid grid-shaped mechanisms, there are exponentially many shapes ($\approx 2^{1/\varepsilon}$). That naive route stalls out at a sluggish $O(T^{2/3})$ regret.

Figure 2: An illustration of the approximating map defined in Definition 4, for different values of ε. The approximation of the allocation region is in blue, the original mechanism has orange boundary.

To break through to $\sqrt{T}$, the authors introduce HIER-MECH, an algorithm built on algorithmic chaining:

  • The Mechanism Tree: Instead of picking a single grid resolution, they organize grid mechanisms into a hierarchy of levels $h = 0, 1, \dots, H$, where each level doubles the grid precision ($\varepsilon = 2^{-h}$). Every fine-grained mechanism is connected to a coarser "inner approximation" parent above it.
  • Local HEDGE Walk: Every internal node in this tree runs its own local copy of the HEDGE algorithm over its children, using a level-specific learning rate ($\eta_h = 2^h/\sqrt{T}$). To pick a mechanism at round $t$, the broker takes a random walk from the root down to a leaf, guided by these local HEDGE instances, and feeds back the residual profit gained along each step of the path.
  • Probabilistic $L^1$-Nets: Standard algorithmic chaining requires deterministic worst-case ($L^\infty$) approximation guarantees between levels, which don't exist here—a tiny boundary shift can cause a huge payment jump for specific bids (as seen in the first figure). The authors bypass this by proving a novel expected $L^1$ Lipschitz bound: under $\sigma$-smoothness, the expected absolute profit difference between a mechanism and its $\varepsilon$-grid parent is at most $6\varepsilon/\sigma$.
  • Joint Ads Reduction: They also construct a geometric reduction (clipping the bid space to a quadrant and flipping an axis) connecting bilateral trade to the joint ads problem, where two buyers pool money to buy a shared ad slot.

Datasets

Not discussed in the paper. (This is a purely theoretical work proving mathematical regret bounds.)

Key Insights and Ideas

  • Smoothness tames non-stationarity: From an information-theoretic standpoint, facing a non-stationary $\sigma$-smooth adversary is just as easy as learning from a static i.i.d. distribution, even though i.i.d. algorithms (which permanently eliminate suboptimal mechanisms) completely fail when distributions drift.
  • Total variation saves the projections: Why does a grid approximation only lose $O(\varepsilon/\sigma)$ profit in expectation when payment projections can jump wildly? The authors show via a slick total-variation argument that while one grid column might suffer a large pricing error, the sum of maximum pricing errors across all columns and rows is bounded by a constant! Smoothness then spreads the probability thin enough to keep expected error tiny.
  • Two auction problems, one geometry: Bilateral trade can yield negative profit on bad trades, whereas joint ads revenue is always non-negative. By restricting bilateral trade to the $[0, 1/2] \times [1/2, 1]$ square—where buyers always pay at least $1/2$ and sellers get at most $1/2$—profit is guaranteed non-negative, unlocking a clean two-way bridge between the two problems.

Key Results

  • Tight Bilateral Trade Upper Bound: HIER-MECH achieves a regret bound of $\frac{20}{\sigma}\sqrt{T}\log T$ against a $\sigma$-smooth adversary (even without knowing $\sigma$ in advance), settling an open question from Di Gregorio et al. (2025).
  • Matching Lower Bound: Using their reduction to port over a known lower bound from joint ads, the authors prove that any algorithm for smooth bilateral trade must suffer at least $\frac{3}{128}\sqrt{T}$ regret (for $\sigma \in (0, 1/48)$), proving HIER-MECH is minimax optimal in $T$ up to a $\log T$ factor.
  • Breakthrough for Joint Ads: Porting HIER-MECH back to the joint ads problem yields a $\frac{160}{\sigma}\sqrt{T}\log T$ regret bound, improving upon the previous best $O(\frac{1}{\sigma}T^{2/3})$ bound and resolving an open question from Aggarwal et al. (2024).

Limitations and Future Work

  • Computational Bottleneck: While HIER-MECH is statistically optimal, maintaining HEDGE instances across the mechanism tree requires $\exp(\sqrt{T})$ running time. In contrast, the static i.i.d. setting admits a polynomial-time algorithm. Finding a $\text{poly}(T)$-time algorithm for the smooth setting remains a major open challenge.
  • Dependency on Smoothness ($\sigma$): While the $\sqrt{T}$ horizon dependence is tight, the exact minimax dependence on the smoothness parameter $\sigma$ (currently scaling as $1/\sigma$ in the upper bound versus a constant in the lower bound) is still open.

Summary updated

Abstract

Bilateral trade models the task of intermediating between two strategic agents, a seller and a buyer, who wish to trade a good. We study this problem from the perspective of a profit-maximizing broker within an online learning framework, where the agents' valuations are generated by a smooth adversary. We devise a learning algorithm that guarantees a $\tilde{O}(\sqrt{T})$ regret bound, which is tight in the time horizon $T$ up to poly-logarithmic factors. This matches the minimax rate for the stochastic i.i.d. case, and is also well separated from the adversarial setting, where sublinear-regret is unattainable. By extending the strong regret guarantees from the i.i.d. case to the smooth adversary, we significantly broaden the scope of settings where such fast rate is achievable, while closing an important gap in the regret landscape of this fundamental economic problem. To overcome the challenges posed by this adversary, we leverage a continuity property of smooth instances and combines this with a hierarchical net-construction of the broker's action space, which is analyzed via algorithmic chaining. We showcase the applicability of these techniques by deriving a similarly tight $\tilde{O}(\sqrt{T})$ regret bound for a related mechanism design model: the joint ads problem.
BibTeX
@inproceedings{gregorio2026profit,
  author = {Simone Di Gregorio and Paul Duetting and Federico Fusco and Chris Schwiegelshohn},
  title = {{Profit Maximization in Bilateral Trade against a Smooth Adversary}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=MaghUZLEQt},
}
Figure