A Parametric Contextual Online Learning Theory of Brokerage

François Bachoc, Tommaso Cesari, Roberto Colomboni

Introduction

In classic bilateral trade scenarios, a broker sits between two traders, each holding a secret valuation for an asset. The broker proposes a price; if that price falls between the two valuations, a trade occurs, generating a "gain from trade." While previous research has mostly examined "non-contextual" versions of this problem, real-world brokers rarely fly blind. They rely on market trends, asset details, and supply/demand signals before setting a price.

This paper introduces the first theoretical framework for contextual online brokerage, where a middleman sets prices for buyers and sellers based on sequential market data. The authors demonstrate that while the problem is unlearnable in the most general sense, optimal regret—ranging from logarithmic to square-root growth—can be achieved by assuming market noise has a bounded density and by employing a strategic explore-exploit algorithm.

The Contextual Brokerage Problem

The authors formalize the problem with the following characteristics:

  1. Sequential Decision Making: The broker must set prices round after round.
  2. Linear Context: The "true" market value is assumed to be a linear function of the observed context ($m_t = c_t^\top \phi$).
  3. Sparse Feedback: In the realistic "2-bit feedback" setting, the broker does not see the traders' actual valuations. They only receive two bits of information per round: whether Trader A wanted to buy/sell at the proposed price, and whether Trader B did the same.

The ultimate objective is to minimize regret: the difference between the gain the broker actually achieved and the maximum gain they could have achieved had they known the optimal pricing strategy from the beginning.

Algorithmic Approach

Because this is a purely theoretical paper, the authors do not rely on empirical datasets. Instead, they approach the problem through the lens of Online Linear Regression and Contextual Bandits, adapting to the uniquely scarce feedback of the brokerage setting.

  • Algorithm 1 (2-bit feedback): This adaptive explore-exploit algorithm uses a deterministic rule to decide whether to explore (post a random price to get an unbiased estimate of the market value) or exploit (post a price based on the current estimate of the hidden vector $\phi$). This decision relies on the "elliptical potential," which measures how much novel information the current context provides compared to historical data.
  • Algorithm 2 (Full feedback): If the broker is allowed to see the actual valuations at the end of each round, exploration is unnecessary. The broker simply updates their estimate of $\phi$ every round using the revealed valuations.

These methods are supported by the Elliptical Potential Lemma and a novel structural result linking pricing errors to a quadratic loss in trade gain.

Key Theoretical Insights

Several foundational insights drive the paper's theoretical guarantees:

  • The "Market Value" is the North Star: The authors prove that if traders' valuations are zero-mean perturbations of a market value $m_t$, then posting $m_t$ as the price always maximizes the expected gain from trade, even if the traders have different noise distributions.
  • Quadratic Sensitivity: The loss incurred by posting a suboptimal price is at most quadratic in its distance from the true market value. This crucial finding bridges the gap between "pricing" and "parameter estimation."
  • The Bounded Density Requirement: A major revelation is that the problem is strictly unlearnable (resulting in linear $\Omega(T)$ regret) if one does not assume the market noise has a bounded density. If the noise is "spiky" (e.g., a discrete distribution), the optimal price might diverge from the market value, leading the broker astray indefinitely.

Regret Bounds and Results

The paper quantifies the "cost" of limited information, providing a complete regret table for the contextual brokerage problem. Moving from full feedback (seeing exact valuations) to 2-bit feedback (seeing only buy/sell signals) shifts the optimal regret from logarithmic to square-root scaling.

Summary of optimal regret bounds based on feedback type and density assumptions.

The authors successfully prove matching lower bounds for these cases, demonstrating that their algorithms are theoretically optimal. Furthermore, the regret scales linearly with the dimension $d$ of the context, which aligns with standard linear contextual problem expectations.

Limitations and Future Directions

While establishing a strong theoretical baseline, the authors note several limitations that pave the way for future research:

  • Linearity: The model assumes market value is a strictly linear function of context. Exploring non-parametric or non-linear (e.g., neural network) relationships is a natural next step.
  • The "Average Opinion" Assumption: The model assumes the market value is the mean of the traders' valuations. In reality, some assets possess an inherent value independent of immediate trader consensus.
  • Strategic Behavior: The current framework assumes traders are "honest" about their willingness to trade at the proposed price. It does not account for strategic misreporting designed to manipulate future prices.
  • Fixed Roles: Extending this framework to complex market-making scenarios—where a broker actively manages an inventory rather than just matching single buyers and sellers—remains an open challenge.

Summary updated

BibTeX
@inproceedings{bachoc2025parametric,
  author = {François Bachoc and Tommaso Cesari and Roberto Colomboni},
  title = {{A Parametric Contextual Online Learning Theory of Brokerage}},
  booktitle = {International Conference on Machine Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=GA7RDBGs6S},
}
Figure