Manuscript Offprint

arXiv:2611.09615

Contextual Search and Bilateral Trade with a Trace-Square-Root Potential

Romain Cosson, Federico Fusco, Anupam Gupta, Stefano Leonardi, Renato Paes Leme, Matteo Russo

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

We present a unified potential method for contextual search and bilateral trade with one-bit feedback and obtain order-tight algorithms for both problems. Our framework starts from a Bayesian perspective in which the unknown target (for contextual search) and the unknown pair of valuations (for bilateral trade) are sampled from a known prior distribution. In that model, the decision maker bases its prediction on the posterior distribution, obtained by conditioning on feedback received in previous rounds. For Bayesian contextual search, we present an algorithm with a total loss bounded by O(TrΣ)O(\text{Tr} \sqrt{\Sigma}), where Σ\Sigma is the covariance matrix of the target's prior; and for contextual bilateral trade, our algorithm's regret is bounded by O(TrΣS+TrΣB)O(\text{Tr} \sqrt{\Sigma_S} + \text{Tr} \sqrt{\Sigma_B}), where ΣS\Sigma_S and ΣB\Sigma_B are the covariance matrices of the seller's and buyer's valuations.

We then use ideas from this Bayesian setting and adapt a “dual” of this trace-square-root potential to the classical worst-case setting, where the target and valuations are chosen adversarially from the unit Euclidean ball. For both contextual search and bilateral trade, we obtain tight O(d)O(\sqrt{d})-regret algorithms. These results match the existing lower bounds up to a constant factor and improve on the previous guarantees of O(dlog⁡d)O(d \log d) for contextual search and of O(d6d)O(d 6^d) for bilateral trade.

*Computer Science Department, New York University, NYC, United States. †Department of Computer, Control, and Management Engineering, Sapienza University, Rome, Italy. ‡Google Research, NYC, United States. §EPFL, Lausanne, Switzerland.

1 Introduction

We study parameter search problems in settings where decision makers receive only limited feedback. For example, a pricing algorithm sees the features of the customer, quotes a price for a product described by a feature vector and learns only whether the customer bought it. An idealized dosing procedure receives patient features and learns only whether the dose was too low or too high. A broker quotes prices to both a buyer and a seller, and learns only whether they traded. In each case, there is a vector hidden from the learner, and at each step, the observed features provide a “context”: together, the hidden vector and the context determine a target value that the learner tries to match. In this paper, we study two classical problems at the intersection of theoretical computer science and economics that are inspired by such situations: contextual search and contextual bilateral trade.

Contextual search. The basic problem in this setting is contextual search, where the target is an unknown vector z∈Rdz \in \mathbb{R}^d. In round tt, an adversary reveals the context vector xt\boldsymbol{x}_t with ∥xt∥2≤1\|\boldsymbol{x}_t\|_2 \leq 1. The two together define the target value xt⊤z\boldsymbol{x}_t^\top z—this is unknown to the learner, since zz is unknown. The learner does observe xt\boldsymbol{x}_t, then proposes a price ptp_t and incurs symmetric loss ℓt=∣xt⊤z−pt∣\ell_t = |\boldsymbol{x}_t^\top z - p_t|. The learner observes neither the target value nor the loss incurred, but only the one-bit feedback sign (xt⊤z−pt)(\boldsymbol{x}_t^\top z - p_t)—i.e., whether the price was too high or too low. Using this information, the learner aims to bound its total loss ∑t=1TE[ℓt]\sum_{t=1}^T \mathbb{E}[\ell_t] (also called the “regret”) independently of TT. The problem of contextual search arose from feature-based pricing and auctions [KL03, CLPL20, LPLV18]. It is useful to note that, for d=1d=1, the problem reduces to binary search, but higher-dimensional versions become much more challenging. Indeed, a series of works has studied this problem, and the state of the art is an O(dlog⁡d)O(d \log d)-competitive algorithm [LPLS21]. However, the lower bound was only Ω(d)\Omega(\sqrt{d}): can we close this gap?

Contextual bilateral trade. An extension of contextual search is bilateral trade, where the learner is a broker who intermediates between a seller and a buyer with hidden vectors s,b∈Rd\boldsymbol{s}, \boldsymbol{b} \in \mathbb{R}^d. In round tt, an adversary reveals a context vector xt\boldsymbol{x}_t with ∥xt∥2≤1\|\boldsymbol{x}_t\|_2 \leq 1 corresponding to valuations xt⊤s\boldsymbol{x}_t^\top \boldsymbol{s} for the seller and xt⊤b\boldsymbol{x}_t^\top \boldsymbol{b} for the buyer—these are unknown to the broker, who does not see s,b\boldsymbol{s}, \boldsymbol{b}. The broker then proposes a price ptp_t and observes whether both agents are willing to trade at that price, i.e., if xt⊤s≤pt≤xt⊤b\boldsymbol{x}_t^\top \boldsymbol{s} \leq p_t \leq \boldsymbol{x}_t^\top \boldsymbol{b}. Note that, given the feedback structure, a failed trade does not identify which agent refused. The broker aims to maximize gain from trade, defined as ∑(xt⊤b−xt⊤s)+\sum (\boldsymbol{x}_t^\top \boldsymbol{b} - \boldsymbol{x}_t^\top \boldsymbol{s})_+, where the sum is taken over all rounds tt in which the trade took place, or equivalently, to minimize the total loss ∑t=1TE[ℓt]\sum_{t=1}^T \mathbb{E}[\ell_t], which is the total gain from trade it failed to realize. The model was introduced by Gaucher et al. [GBC+25], building on the online bilateral trade framework of Cesabianchi et al. [CBCC+21, CCC+24]. The gaps left by the literature are much larger in this setting: the only upper bound for this one-bit feedback model is O(d6d)O(d6^d) [CFG+26], and the lower bound is again Ω(d)\Omega(\sqrt{d}), leaving a huge gap: can we close it?

References (21)