Manuscript Offprint
arXiv:2608.25303Sample Complexity of the Second-Best Bilateral Trade
Abstract
We study the sample complexity of learning near-optimal bilateral trade mechanisms. Unlike previous work on learning simple or fixed-price bilateral-trade mechanisms [Babaioff et al., 2024, Castiglioni et al., 2026], we focus on mechanisms satisfying Bayesian incentive compatible (BIC), interim individually rational (IIR), and ex-ante weakly budget balanced (WBB). In other words, our target is to design a sample-based mechanism that achieves the second-best gains-from-trade benchmark.
We give matching or nearly matching upper and lower bounds in three regimes. For regular product distributions on , additive -approximation has sample complexity . For multiplicative -approximation on distributions under the same assumptions, we find that the sample complexity is , which is benchmark-sensitive with unavoidable dependence on the second-best gains-from-trade . We also investigate the setting of unbounded distributions with monotone-hazard-rate assumption. The sample complexity depends on the ratio , where is the sum of the buyer's expected value and seller's expected cost.
*Harbin Institute of Technology, Shenzhen; Great Bay University, qyunyun26.s@gmail.com
Harbin Institute of Technology, Shenzhen, sxliu@hit.edu.cn
Great Bay University, zqwan@gbu.edu.cn
1 Introduction
Bilateral trade is perhaps the smallest market in which the basic tension of two-sided market design already appears. In this model, a seller owns one indivisible item and has a private cost drawn from a distribution , while a buyer has a private value drawn independently from . If the item is transferred from the seller to the buyer, the realized gains-from-trade (GFT) is : this is the increase in total surplus created by moving the item to the agent who values it more. If no trade occurs, the GFT is zero. Thus the efficient, full-information rule trades exactly when , and under the product distribution its expected GFT is , which is also called the first-best GFT.
However, private information prevents the designer from directly implementing the efficient rule. The mechanism must incentivize the buyer and seller to report their value and cost truthfully, guarantee nonnegative interim utility, and avoid running an expected deficit when buying the good from the seller and selling it to the buyer. The seminal result of Myerson and Satterthwaite [1983] shows that any mechanism satisfying the above constraints, namely Bayesian incentive compatible (BIC), interim individually rational (IIR), and ex-ante weakly budget balanced (ex-ante WBB), can never achieve the first-best GFT. Instead, they proposed the second-best GFT, denoted by SB(D), which is the largest expected GFT achievable by a BIC, IIR, and ex-ante WBB mechanism. This benchmark is central to the theory of bilateral trade and two-sided markets, and has motivated a large literature on simple mechanisms and approximation guarantees [Brustle et al., 2017, Deng et al., 2022, Fei, 2022, Cai and Wu, 2023, Liu et al., 2023].
Most of the classical bilateral trade literature assumes that the designer knows the buyer and seller distributions. In many applications, such as online platforms, the prior is not given explicitly. The designer may instead observe past buyer values and seller costs, or have access to samples from the two sides of the market. This leads to a learning question: how many samples are needed before the designer can choose a mechanism whose GFT is close to the relevant benchmark?
Recent work has begun to answer this question for simple mechanisms in small markets. In particular, Babaioff et al. [2024] study learning simple mechanisms that maximize GFT from samples, and Castiglioni et al. [2026] study sample complexity for fixed-price mechanisms. These works show that GFT learning already has its own structure even for simple trading rules. This broader question is explicitly raised by Babaioff et al. [2024], who ask about learning BIC/IIR/WBB mechanisms beyond fixed prices and simple strongly budget-balanced mechanisms.
We take up this question for bilateral trade. Given independent samples from and , the learner must output a BIC, IIR, and ex-ante WBB mechanism whose GFT is close to the second-best GFT under the unknown true distribution. The central question is:
How many samples are needed to learn a nearly second-best bilateral-trade mechanism?
To answer this question, we give matching or nearly matching upper and lower bounds in three regimes: additive approximation on bounded-support distributions, multiplicative approximation on bounded-support distributions, and multiplicative approximation for unbounded monotone hazard rate (MHR) distributions. In particular, the multiplicative approximation is benchmark-sensitive: when the second-best GFT is small, no sample bound independent of SB(D) is possible.
Table 1: A summary of our sample-complexity bounds for learning second-best gains from trade, up to logarithmic factors.
| Settings | Guarantee | Upper Bound | Lower Bound |
|---|---|---|---|
| Bounded support , regular | () | [Thm. 3.4] | [Thm. 3.7] |
| Bounded support , regular | [Thm. 4.3] | [Thm. 4.4] | |
| MHR marginals, seller regularity | [Thm. 5.2] | [Thm. 5.3] |
Note: Upper bounds hold with probability at least and use independent samples from each marginal. Precise bounds are stated in the referenced theorems. Here .
Distribution-relative feasibility and mechanism mixing. The first takeaway is that feasibility is distribution-relative. A mechanism with nonnegative expected revenue under the empirical product distribution may run a deficit under the true distribution, and a mechanism feasible on one statistically indistinguishable instance may be infeasible on another. Our upper bounds therefore impose a positive empirical revenue margin large enough to absorb the sample-to-truth slack. To show that this margin preserves near-optimality, we use a posted-spread mechanism to construct a near-optimal comparator satisfying the margin. The learned mechanism then satisfies the empirical revenue margin, which is sufficient to remain WBB after transfer to the true distribution.
Benchmark-sensitive multiplicative approximation. The second takeaway concerns multiplicative approximation. In the Myerson auction learning literature [Devanur et al., 2016, Guo et al., 2019], multiplicative approximation guarantees are stated without dependence on the realized optimal revenue. However, such a scale-free guarantee is impossible in our bilateral trade setting. Our lower bounds exploit the same distribution-relative feasibility from the opposite direction: we first construct statistically close instances whose near-optimal feasible mechanism classes are separated by the ex-ante WBB constraint. Under multiplicative approximation, this separation can be diluted into a rare region without weakening it relative to the benchmark, while proportionally reducing the statistical information available from each sample. This is the source of the dependence.
Next, we introduce our results.
Bounded support: additive approximation. The upper bound follows a simple robust-learning principle: optimize over an empirical version of the canonical mechanism class with a sufficient revenue margin, and use a posted-spread mechanism to construct a near-optimal comparator satisfying that margin. This gives a BIC, IIR, and ex-ante WBB mechanism with using
samples from each marginal. The additive lower bound matches the leading scale. We construct two statistically close regular instances whose feasible near-optimal mechanism classes are separated by the ex-ante WBB constraint: any mechanism that is WBB on one instance incurs an GFT loss on the other. Distinguishing which feasible class is appropriate therefore requires
samples.
Bounded support: multiplicative approximation. For the multiplicative guarantee , substituting into the additive result would give a quadratic dependence on . We improve this to the nearly tight characterization
The algorithm differs from the additive learner by first estimating the scale of SB(D) and then learning only among mechanisms whose empirical accounting quantities live at that scale. This localization turns the additive -type dependence into the sharper dependence.
The lower bound shows that this benchmark sensitivity is inherent to multiplicative approximation. Starting from the additive hard pair, we dilute the distinguishing part of the instance into a block that occurs with probability p. This scales both the second-best benchmark and the cross-instance WBB separation by the same factor p, so the separation remains unchanged relative to the benchmark, while the information revealed by each sample is reduced by a factor p. Since the resulting instances satisfy , distinguishing the appropriate feasible mechanism incurs an additional 1/p sample cost, yielding the linear dependence on .
Unbounded MHR distributions: multiplicative approximation. Finally, we consider the multiplicative approximation without a bounded support. The main new issue is that there is no known scale h on which to run the bounded-support learner. Under MHR marginals with seller regularity, we use the samples to identify a sufficiently large effective window, learn on the induced bounded problem, and then extend the learned mechanism back to the original type space. The resulting sample complexity depends on the mean-to-benchmark ratio
The corresponding sample-complexity characterization is
The lower bound reuses the same rare-block construction inside the upper tail of an MHR distribution. The rare block preserves the multiplicative WBB separation, while the surrounding exponential tail makes the mean-to-benchmark ratio scale as , yielding the matching dependence up to logarithmic factors.
1.2 Related Work
Bilateral trade and approximation algorithms. In bilateral trade with independent buyer and seller values, Myerson and Satterthwaite [1983] rule out first-best GFT under incentive compatibility, individual rationality, and budget balance, motivating Bayesian approximation of the second-best GFT benchmark, with early work by Blumrosen and Mizrahi [2016]. Brustle et al. [2017] develop a virtual-surplus and simple-mechanism framework, and Fei [2022], building on Deng et al. [2022], gives a delegated-pricing bound for the second-best benchmark. Fixed-price approximations form a closely related line of work [McAfee, 2008, Kang et al., 2022, Liu et al., 2023, Cai and Wu, 2023].
MHR implies buyer-side regularity, but does not imply seller-side regularity.
Recent work further sharpens the constant-factor guarantees: Liu et al. [2026] establish the sharp first-best/second-best ratio, while Hartline and Wang [2025] give a simple geometric analysis of constant-factor GFT approximation. Dütting et al. [2021] study limited-information two-sided mechanisms under different information models and benchmarks. Correlated bilateral trade has been studied separately as a distinct extension of the independent-values model. Dobzinski and Shaulker [2024] study welfare approximation under correlated values, while related interdependent-value models are considered by Dobzinski et al. [2025], Kunimoto and Zhang [2026].
Learning of bilateral trade. The closest learning papers study sample-based GFT maximization and fixed-price learning in small two-sided markets [Babaioff et al., 2024, Castiglioni et al., 2026]. Deng et al. [2025] study sample-based first-best approximation in bilateral trade. Our target is instead the second-best benchmark under BIC, IIR, and ex-ante WBB constraints for the true distribution. Di Gregorio et al. [2026] study private sample-based learning in bilateral trade. A separate line studies online bilateral trade under regret objectives and different budget-balance and feedback models [Blum et al., 2006, Cesa-Bianchi et al., 2024a,b, Azar et al., 2024, Bernasconi et al., 2024, Chen et al., 2025, Jin, 2026, Lunghi et al., 2026a, Gaucher et al., 2025]. For GFT maximization, much of this literature studies fixed-price mechanisms and related price-based benchmarks. Bernasconi et al. [2024] consider global budget balance, Chen et al. [2025] establish tight regret bounds for fixed-price bilateral trade, and Lunghi et al. [2026b] study a stronger benchmark based on distributions over pairs of prices. Feng, Ma, Peng, and Wan [Feng et al., 2026] study online pricing in two-sided markets. Di Gregorio et al. [2025] study profit maximization over general DSIC and IR mechanisms. These works differ from our setting in the mechanism classes, objectives, or learning model considered.
2 Preliminaries
For a product distribution , let be a direct mechanism, where denotes the trade probability, and denote the buyer and seller payments, respectively. Define the GFT and revenue of as
A mechanism is feasible if it is BIC, IIR, and ex-ante WBB under , where ex-ante WBB means . Given the type distribution , the second-best GFT is defined as
and the first-best GFT is . The first-best and second-best benchmarks are within a universal constant factor.
Lemma 2.1 (Fei [2022]). .
Regularity and monotone hazard rate. Let , be the buyer and seller marginal cdfs, with densities , on their support interiors. The buyer virtual value and seller virtual cost are
A buyer distribution is regular if its virtual value is nondecreasing, and a seller distribution is regular if its virtual cost is nondecreasing. For a distribution F with density f, the hazard rate is
. A distribution is monotone hazard rate (MHR) if is nondecreasing on the support interior [Barlow et al., 1963]. The virtual values are useful because the Myerson envelope formula bounds revenue by virtual surplus.
Lemma 2.2 (Brustle et al. [2017]). For continuous marginals with positive densities, every BIC/IIR mechanism with allocation q satisfies
Threshold mechanisms. A deterministic canonical threshold mechanism is specified by monotone threshold maps and and trades on , equivalently , with threshold payments. The boundary thresholds and encode the never-trade and always-trade conventions. A randomized threshold mechanism is a report-independent ex-ante randomization over finitely many deterministic canonical threshold mechanisms. Such randomization preserves BIC and IIR, while GFT and revenue are affine. Appendix A fixes the boundary conventions used when thresholds meet atoms. The next theorem shows that canonical threshold mechanisms suffice to attain the second-best GFT for bounded regular product distributions.
Theorem 2.3 (Myerson and Satterthwaite [1983], Brustle et al. [2017]). For every regular product distribution on with positive densities and , there exists a second-best optimal feasible mechanism with whose allocation is
for some multiplier .
Learning model. All learning guarantees below are with respect to independent marginal samples and . With probability at least , the output mechanism should be BIC, IIR, and ex-ante WBB under the true distribution . Our target is
in the additive or multiplicative regime, respectively.
3 Additive Approximation with Bounded Support Distributions
3.1 Upper Bound
This subsection gives the bounded-support additive learner. The algorithm is a plug-in empirical optimizer, but with one deliberate modification: instead of merely requiring nonnegative empirical revenue, it requires a positive empirical revenue margin. The margin lets empirical revenue feasibility transfer back to the unknown distribution.
Let be the unknown product distribution on . Write the independent marginal samples as and , and set the empirical distributions to be
where denotes the point mass at x. Define
where is a sufficiently small universal constant and is chosen small relative to .
The empirical learner. The learner first forms the endpoint-augmented empirical grids. After merging duplicate sample values, write
Let and .
We optimize GFT over direct mechanisms via an LP defined on the empirical grid ; its solutions are then extended to using threshold maps. The LP variables are allocation probabilities . We require the allocation to be monotone in both arguments. Equivalently, the LP optimizes over
where the first inequality ranges over and all , and the second over all and . When is integral (i.e. ), these constraints give a deterministic canonical threshold allocation on the grid, consistent with the threshold maps from Section 2.
Algorithm 1: Empirical additive learner
Input: , samples and
Output: A randomized threshold mechanism on , or no trade
1 Build , the grids , and masses ;
2 Form and encode , and as linear functions of ;
3 Solve the empirical LP (1);
4 if the LP is infeasible then
5 | return no trade;
6 Let be an optimal solution and write with integral ;
7 foreach component do
8 | Extend to ;
9 | Equip with its threshold payments;
10 return the report-independent mixture choosing component with probability ;
For a monotone allocation q, we use the following Myerson payments to keep the mechanism BIC and IIR on the grid:
This normalization gives zero utility to the lowest buyer type and the highest seller type. Hence the monotone allocation q uniquely determines the direct mechanism on the grid, and its feasibility is shown in Lemma A.1. The empirical objective and revenue are therefore linear functions of q:
The empirical program is the finite LP
It has at most allocation variables and monotonicity constraints, and thus can be solved in polynomial time. The LP solution is then converted into a mechanism on the original report space as follows. By Lemma B.2, we can take an optimal solution and write it as a convex combination of at most two monotone integral grid allocations . For each component, define the stepwise allocation , where and . Lemma A.2 gives threshold maps satisfying
The returned mechanism first draws with probability , independently of reports, and then runs this deterministic threshold mechanism on the reported , with the corresponding threshold payments. Thus the object returned by the algorithm is a randomized threshold mechanism on ; on empirical profiles its payments agree with the envelope payments above, so its empirical GFT and revenue are exactly the LP objective and constraint values. The construction uses only the samples, and the analysis below shows that the resulting mechanism is feasible and near-optimal under the unknown distribution .
Sample complexity analysis. We now analyze why the margin-constrained empirical LP is feasible and near-optimal on the high-probability sampling event. This is an existence argument: we first show that the empirical LP contains a near-optimal feasible mechanism, and then use empirical optimality and transfer to obtain the guarantee for the learned mechanism. Let be the marginal cdfs of , and be the empirical marginal cdfs. Define the marginal Kolmogorov distance by
The following lemma transfers marginal Kolmogorov distance to GFT and revenue difference.
Lemma 3.1. If , then every randomized canonical threshold mechanism satisfies
To compare the true second-best mechanism with the empirical LP, we use the following projection notation. For a randomized canonical threshold mechanism , let denote its empirical-grid projection: restrict each deterministic component's allocation to the grid and implement the resulting finite-grid allocation using the Myerson payments (Lemma A.1) to ensure BIC/IIR.
Lemma 3.2. Let be a deterministic canonical threshold mechanism on , and let . Then
The same holds for randomized threshold mechanisms.
On the event , a canonical optimizer for need not satisfy the empirical revenue margin after projection. Recall that, by Theorem 2.3, there is a second-best optimal mechanism with whose allocation is a canonical threshold rule. For the empirical-grid projection of this optimum, ,
Thus is already near-optimal in empirical GFT, but it need not satisfy the positive revenue-margin constraint. The following posted-spread mechanism supplies the missing revenue slack.
Lemma 3.3. There is a universal constant such that every product distribution supported on with admits a posted-spread mechanism satisfying
In particular, if , then .
Let be the empirical-grid projection of the posted-spread mechanism. By Lemmas 3.3, 3.2, and 3.1, retains empirical revenue of order . Mixing into with weight therefore gives
with
Thus the empirical-margin LP contains a near-optimal feasible mechanism. By empirical optimality, the mechanism returned by Algorithm 1 has empirical GFT at least and empirical revenue at least . On the event , Lemma 3.1 therefore gives
Choosing sufficiently small relative to makes the revenue nonnegative and the total GFT loss at most .
Finally, by the Dvoretzky–Kiefer–Wolfowitz inequality applied to the two marginals,
Combining the above argument with this bound yields the following theorem.
Theorem 3.4. There are universal constants such that, for every regular product distribution supported on with positive densities and , and every , Algorithm 1 with
samples of each marginal returns, with probability at least , a BIC, IIR, and ex-ante WBB mechanism satisfying .
3.2 Lower Bound
This subsection proves the additive lower bound by constructing two regular product distributions on and showing that the upper bound from Section 3.1 is tight up to the logarithmic factors. Let be the uniform distribution on . Fix two nonzero nonnegative functions with equal integrals and
Set . For and sufficiently small , let be the distribution on with density
and set . The equality of the integrals ensures that is a probability density. Hence and share the seller marginal and differ only by the signed buyer perturbation . For sufficiently small , both instances are regular product distributions; the verification is given in Appendix B. The following lemma bounds their KL divergence.
Lemma 3.5. For the pair above, and .
The same pair also separates the WBB constraints: any mechanism that is ex-ante WBB under loses GFT when evaluated under .
Lemma 3.6. There are constants such that, for every , every BIC/IIR mechanism that is ex-ante WBB under satisfies
Lemma 3.5 gives the information-distance estimate needed for the two-point argument. In contrast, Lemma 3.6 separates the near-optimal feasible classes of the two instances: a mechanism that succeeds on one instance cannot also satisfy the WBB and near-optimality requirements on the other. Thus uniform success over the pair forces the learner to distinguish the two buyer marginals, yielding the additive lower bound.
Theorem 3.7. There are universal constants such that, for every and , any learner that, uniformly over regular product distributions on , outputs an additive -approximation to with probability at least requires
samples from each marginal.
4 Multiplicative Approximation with Bounded Support Distributions
4.1 Upper Bound
This section turns to the bounded-support multiplicative learner. As in Section 3.1, the algorithm is a plug-in empirical optimizer with canonical Myerson payments and a positive empirical revenue margin. The new step is to localize the empirical LP using a pilot estimate of the benchmark scale. This replaces the uniform Kolmogorov estimate with a benchmark-localized bound.
The samples are split into an independent pilot part and a training part. On the pilot split, pair the buyer and seller samples independently and set
where is a sufficiently small universal constant, fixed independently of . In Lemma 4.1, we will show that is a constant-factor estimate of , and hence of by Lemma 2.1.
All constants in this subsection may depend on the fixed bump functions , which are chosen once and for all, and are independent of the scaling and accuracy parameters.
Mechanism construction. On the training split, we first construct the empirical product distribution and empirical grids as in Section 3.1, with the same monotone allocation constraints and canonical payments. Then we use the following LP to construct an allocation rule on the empirical grid, which is converted to a mechanism on the continuous distribution in the same way as Algorithm 1.
Compared with Section 3.1, the new constraints remove negative-surplus trades and localize the empirical mechanism at the scale . The program remains a polynomial-size finite LP. Since the LP enforces positive revenue, the cap also gives . Thus both quantities needed for the localized transfer bound are controlled at the estimated scale .
Algorithm 2: Bounded multiplicative localized learner
Input: , pilot samples , , and training samples ,
Output: A randomized threshold mechanism on , or no trade
1 Compute ;
2 if then
3 | return no trade;
4 Set and ;
5 Build the training empirical distribution and empirical grids as in Section 3.1;
6 Solve the localized empirical LP (2);
7 if the LP is infeasible then
8 | return no trade;
9 Implement a suitable optimal LP solution using the finite-grid procedure from Section 3.1;
10 return the resulting randomized threshold mechanism;
The finite-grid implementation is the same order-polytope construction as in Lemma B.2; as shown in Appendix C, a suitable optimum of the localized LP can be implemented as a mixture of at most three deterministic threshold mechanisms. Hence the output is a randomized threshold mechanism satisfying the empirical revenue margin and the empirical GFT cap in the LP.
Lemma 4.1. There is a universal constant C > 0 such that, if the pilot split has
samples from each marginal, then the pilot estimate lies between and with probability at least . Consequently, .
The following lemma transfers empirical guarantees back to the true distribution for localized mechanisms. Write . For , say that is -localized under if , and . Then we have the following lemma.
Lemma 4.2. With probability at least , the following holds uniformly over all and all randomized threshold mechanisms with allocation whenever . Denote , if M is A-localized under either D or , then
Consequently,
The pilot estimate identifies the benchmark scale, while the localization constraint restricts the empirical program to mechanisms whose GFT and utility are of that scale. Lemma 4.2 then applies with localization parameter , so the empirical-to-true error is controlled at the benchmark scale rather than the ambient scale . This benchmark-localized comparison yields the improved linear dependence on .
Theorem 4.3. For every regular product distribution on with positive densities, , and , Algorithm 2 with
samples from each marginal returns, with probability at least , a BIC, IIR, and ex-ante WBB mechanism satisfying .
4.2 Lower Bound
The lower bound shows that the leading factor in Theorem 4.3 is unavoidable. More explicitly, for each rare-block probability we construct a pair with . We first prove a lower bound of for this pair, and the displayed theorem follows by rewriting . Take the additive hard pair from Section 3.2 on the value scale , and embed it in a probability active buyer block. Here is the internal value scale of the additive hard pair; in the formal proof we set so that the shifted support lies inside . Let the scale- additive pair be , let be the buyer upper-tail quantile, and define the upper-tail quantile function of the embedded buyer by
Let the seller’s cost be right shifted to . The active block is the tail event ; it has probability , and conditional on this event the instance is exactly the additive hard pair shifted up by .
Outside the active block, trade has nonpositive surplus and nonpositive virtual surplus, so the WBB separation is entirely carried by the active block. The two embedded instances are identical on this inactive block, and differ only inside the probability-p active block; hence the one-sample KL divergence is the additive-pair KL multiplied by p. Overall, we can show that
Choosing gives WBB separation and one-sample KL divergence , while . The two-point testing argument therefore yields the following lower bound.
Theorem 4.4. There exists a universal constant such that, for every , any learner that, uniformly over regular product distributions on , outputs a BIC, IIR, and ex-ante WBB mechanism achieving a -approximation to SB(D) with probability at least 2/3 requires
samples from each marginal in the worst case.
The upper and lower bounds match up to a factor . The rare-block construction is unnecessary in the additive regime because the target error is absolute: a probability-p block would require , hence , giving one-sample KL divergence and only samples.
5 Multiplicative Approximation with Unbounded MHR Distributions
We extend the bounded multiplicative learner to unbounded instances. The difficulty is that the bounded-support scale h of Section 4 is absent. Under MHR marginals and seller regularity, the learner estimates a finite cap , forms a truncated instance, runs the bounded learner on that instance, and extends the learned mechanism back to the original type space.
Assumption 5.1 (MHR marginals and seller regularity). The buyer and seller marginals are supported on intervals in , have finite means and strictly positive densities on their support interiors, and are MHR. In addition, the seller virtual cost is nondecreasing on the seller support interior.
The main proof idea is to turn the unbounded instance into a bounded one without creating spurious trades in the tail. A direct cap works naturally for buyer values, but it is not safe for seller costs: replacing a very high cost by the cap could make an infeasible trade appear profitable. We therefore use a cap/sentinel truncation. For , define the truncated distribution by
where is a no-trade seller sentinel type. The sentinel type prevents high seller costs from being capped downward and creating artificial surplus. Mechanisms on are required to allocate zero on the seller-sentinel type. Such a mechanism N is run on the original instance through the truncation map; denote the resulting mechanism by .
Write
The learner uses an independent sample split to estimate the mean scale and to find a posted-spread mechanism with a lower confidence bound on its revenue. More precisely, Appendix D shows that, with high probability, it obtains and with . It then sets
For a sufficiently large universal constant , these estimates together with the MHR tail bound give
Thus the bounded-support multiplicative learner of Section 4 can be applied to with accuracy , after which the learned mechanism is extended back to the original type space through . The extension preserves revenue and does not decrease GFT. This gives the following bound.
Theorem 5.2. Under Assumption 5.1, for every product distribution with , every , and every , the estimated-cap learner described above and formalized in Algorithm 3 with
samples from each marginal returns, with probability at least , a BIC, IIR, and ex-ante WBB mechanism satisfying .
The lower bound shows that this benchmark-sensitive dependence is not an artifact of the cap. Write . Our construction hides the bounded-support hard instance inside a rare upper-tail region of an MHR distribution. Outside that region, the two candidate worlds are essentially indistinguishable and do not provide useful budget-feasible trade. Inside the rare region, the same WBB separation as in the bounded lower bound reappears, but the learner sees that region only with its small tail probability. Thus the benchmark itself is small, yet achieving a relative approximation still requires discovering the rare informative part of the market. This yields the following lower bound.
Theorem 5.3. For arbitrarily large benchmark ratios and all sufficiently small , there are product distributions satisfying Assumption 5.1 with such that any learner that, with probability at least 2/3, outputs a BIC, IIR, and ex-ante WBB mechanism achieving a -approximation to SB(D) requires
samples from each marginal in the worst case.
Thus the MHR upper and lower bounds match up to polylogarithmic factors .
Acknowledgments
We used generative AI tools as an interactive aid in developing parts of the proofs, as well as in improving the presentation of the paper. All mathematical arguments and claims were independently reviewed and verified by the authors, who take full responsibility for the content of the paper.
References
Yossi Azar, Amos Fiat, and Federico Fusco. An -regret analysis of adversarial bilateral trade. Artificial Intelligence, 337:104231, 2024. doi: 10.1016/j.artint.2024.104231.
Moshe Babaioff, Amitai Frey, and Noam Nisan. Learning to maximize gains from trade in small markets. In Proceedings of the 25th ACM Conference on Economics and Computation (EC), page 195, 2024. doi: 10.1145/3670865.3673463.
Richard E. Barlow, Albert W. Marshall, and Frank Proschan. Properties of probability distributions with monotone hazard rate. The Annals of Mathematical Statistics, 34(2):375–389, 1963. doi:10.1214/aoms/1177704147.
Martino Bernasconi, Matteo Castiglioni, Andrea Celli, and Federico Fusco. No-regret learning in bilateral trade via global budget balance. In Proceedings of the 56th Annual ACM Symposium on Theory of Computing, pages 247–258, 2024. doi: 10.1145/3618260.3649653.
Avrim Blum, Tuomas Sandholm, and Martin Zinkevich. Online algorithms for market clearing. Journal of the ACM, 53(5):845–879, 2006. doi: 10.1145/1183907.1183913.
Liad Blumrosen and Yehonatan Mizrahi. Approximating gains-from-trade in bilateral trading. In Web and Internet Economics, volume 10123 of Lecture Notes in Computer Science, pages 400–413. Springer, 2016. doi: 10.1007/978-3-662-54110-4_28.
Johannes Brustle, Yang Cai, Fa Wu, and Mingfei Zhao. Approximating gains from trade in two-sided markets via simple mechanisms. In Proceedings of the 2017 ACM Conference on Economics and Computation, pages 589–590, 2017. doi: 10.1145/3033274.3085148. Full version: arXiv:1706.04637.
Yang Cai and Jinzhao Wu. On the optimal fixed-price mechanism in bilateral trade. In Proceedings of the 55th Annual ACM Symposium on Theory of Computing, pages 737–750, 2023. doi:10.1145/3564246.3585171.
Matteo Castiglioni, Anna Lunghi, and Alberto Marchesi. The sample complexity of uniform approximation for multi-dimensional CDFs and fixed-price mechanisms. In Proceedings of the 58th Annual ACM Symposium on Theory of Computing, pages 1353–1364, 2026. doi: 10.1145/3798129.3800845.
Nicolò Cesa-Bianchi, Tommaso Cesari, Roberto Colomboni, Federico Fusco, and Stefano Leonardi. Bilateral trade: A regret minimization perspective. Mathematics of Operations Research, 49(1):171–203, 2024a. doi: 10.1287/moor.2023.1351.
Nicolò Cesa-Bianchi, Tommaso Cesari, Roberto Colomboni, Federico Fusco, and Stefano Leonardi. Regret analysis of bilateral trade with a smoothed adversary. Journal of Machine Learning Research, 25(234):1–36, 2024b. URL https://jmlr.org/papers/v25/23-1627.html.
Houshuang Chen, Yaonan Jin, Pinyan Lu, and Chihao Zhang. Tight regret bounds for fixed-price bilateral trade. arXiv preprint arXiv:2504.04349, 2025. To appear in ICALP 2026.
Yuan Deng, Jieming Mao, Balasubramanian Sivan, and Kangning Wang. Approximately efficient bilateral trade. In Proceedings of the 54th Annual ACM Symposium on Theory of Computing, pages 718–721, 2022. doi: 10.1145/3519935.3520054.
Yuan Deng, Jieming Mao, Balasubramanian Sivan, Kangning Wang, and Jinzhao Wu. Approximately efficient bilateral trade with samples. In Proceedings of the 26th ACM Conference on Economics and Computation, pages 206–223, 2025. doi: 10.1145/3736252.3742519.
Nikhil R. Devanur, Zhiyi Huang, and Christos-Alexandros Psomas. The sample complexity of auctions with side information. In Proceedings of the 48th Annual ACM Symposium on Theory of Computing, pages 426–439, 2016. doi: 10.1145/2897518.2897553. Full version: arXiv:1511.02296.
Simone Di Gregorio, Paul Dütting, Federico Fusco, and Chris Schwiegelshohn. Nearly tight regret bounds for profit maximization in bilateral trade. In Proceedings of the 66th IEEE Annual Symposium on Foundations of Computer Science (FOCS), pages 1570–1594, 2025. doi:10.1109/FOCS63196.2025.00083.
Simone Di Gregorio, Federico Fusco, Stefano Leonardi, and Chris Schwiegelshohn. Private learning in bilateral trade. arXiv preprint arXiv:2606.02050, 2026.
Shahar Dobzinski and Ariel Shaulker. Bilateral trade with correlated values. In Proceedings of the 56th Annual ACM Symposium on Theory of Computing, pages 237–246, 2024. doi:10.1145/3618260.3649659.
Shahar Dobzinski, Alon Eden, Kira Goldner, Ariel Shaulker, and Thodoris Tsilivis. Bilateral trade with interdependent values: Information vs. approximation. In Proceedings of the 26th ACM Conference on Economics and Computation, pages 641–665, 2025. doi: 10.1145/3736252.3742607.
Paul Dütting, Federico Fusco, Philip Lazos, Stefano Leonardi, and Rebecca Reiffenhäuser. Efficient two-sided markets with limited information. In Proceedings of the 53rd Annual ACM SIGACT Symposium on Theory of Computing, pages 1452–1465, 2021. doi: 10.1145/3406325.3451076.
Aryeh Dvoretzky, Jack Kiefer, and Jacob Wolfowitz. Asymptotic minimax character of the sample distribution function and of the classical multinomial estimator. The Annals of Mathematical Statistics, 27(3):642–669, 1956. doi: 10.1214/aoms/1177728174.
Yumou Fei. Improved approximation to first-best gains-from-trade. In Web and Internet Economics, volume 13778 of Lecture Notes in Computer Science, pages 204–218. Springer, 2022. doi: 10.1007/978-3-031-22832-2_12.
Yiding Feng, Mengfan Ma, Bo Peng, and Zongqi Wan. Searching for optimal prices in two-sided markets. In Proceedings of the 27th ACM Conference on Economics and Computation (EC), 2026.
Solenne Gaucher, Martino Bernasconi, Matteo Castiglioni, Andrea Celli, and Vianney Perchet. Feature-based online bilateral trade. In The Thirteenth International Conference on Learning Representations, 2025.
Chenghao Guo, Zhiyi Huang, and Xinzhi Zhang. Settling the sample complexity of single-parameter revenue maximization. In Proceedings of the 51st Annual ACM Symposium on Theory of Computing, pages 662–673, 2019. doi: 10.1145/3313276.3316325.
Jason Hartline and Kangning Wang. A geometric analysis of gains from trade. arXiv preprint arXiv:2508.06469, 2025.
Yaonan Jin. Tight regret bounds for bilateral trade under semi feedback. arXiv preprint arXiv:2601.16412, 2026.
Zi Yang Kang, Francisco Pernice, and Jan Vondrák. Fixed-price approximations in bilateral trade. In Proceedings of the 2022 Annual ACM-SIAM Symposium on Discrete Algorithms (SODA), pages 2964–2985. SIAM, 2022. doi: 10.1137/1.9781611977073.115.
Takashi Kunimoto and Cuiling Zhang. Efficient bilateral trade with interdependent values: The use of two-stage mechanisms. Journal of Mathematical Economics, 122:103191, 2026. doi:10.1016/j.jmateco.2025.103191.
Zhengyang Liu, Zeyu Ren, and Zihe Wang. Improved approximation ratios of fixed-price mechanisms in bilateral trades. In Proceedings of the 55th Annual ACM Symposium on Theory of Computing, pages 751–760, 2023. doi: 10.1145/3564246.3585160.
Zhengyang Liu, Ying Qin, Zeyu Ren, and Zihe Wang. Second-best bilateral trade is 1/2 efficient. arXiv preprint arXiv:2606.03849, 2026.
Anna Lunghi, Matteo Castiglioni, and Alberto Marchesi. Better regret rates in bilateral trade via sublinear budget violation. In Proceedings of the 2026 Annual ACM-SIAM Symposium on Discrete Algorithms (SODA), pages 6494–6536. SIAM, 2026a. doi: 10.1137/1.9781611978971.233.
Anna Lunghi, Mattia Piccinato, Matteo Castiglioni, and Alberto Marchesi. A stronger benchmark for online bilateral trade: From fixed prices to distributions. In Proceedings of the 43rd International Conference on Machine Learning (ICML), 2026b.
Pascal Massart. The tight constant in the Dvoretzky–Kiefer–Wolfowitz inequality. The Annals of Probability, 18(3):1269–1283, 1990. doi: 10.1214/aop/1176990746.
R. Preston McAfee. The gains from trade under fixed price mechanisms. Applied Economics Research Bulletin, 1(1):1–10, 2008.
Roger B. Myerson. Optimal auction design. Mathematics of Operations Research, 6(1):58–73, 1981. doi: 10.1287/moor.6.1.58.
Roger B. Myerson and Mark A. Satterthwaite. Efficient mechanisms for bilateral trading. Journal of Economic Theory, 29(2):265–281, 1983. doi: 10.1016/0022-0531(83)90048-0.
Dmitriy Panchenko. Symmetrization approach to concentration inequalities for empirical processes. The Annals of Probability, 31(4):2068–2081, 2003. doi: 10.1214/aop/1068646378.
Richard P. Stanley. Two poset polytopes. Discrete & Computational Geometry, 1(1):9–23, 1986. doi: 10.1007/BF02187680.
Alexandre B. Tsybakov. Introduction to Nonparametric Estimation. Springer Series in Statistics. Springer, New York, 2009. ISBN 9780387790510. doi: 10.1007/b13794.
A Threshold Mechanisms on Grids
A.1 Second-Best Threshold Structure
Proof of Theorem 2.3. The second-best characterization of Myerson and Satterthwaite [1983], Brustle et al. [2017] gives an optimal allocation that, for some , maximizes pointwise
Hence, outside a null tie set,
Regularity makes and nondecreasing, so is nondecreasing in and nonincreasing in , hence is a canonical threshold allocation. The tie set is a monotone graph and has -measure zero because both marginals have densities. Myerson's payment identity [Myerson, 1981] implements as a BIC and IIR mechanism, and the second-best characterization gives ex-ante WBB and value SB().
A.2 Finite-grid implementation
Lemma A.1 (Myerson, 1981). On finite buyer and seller grids
every allocation q that is nondecreasing in the buyer report and nonincreasing in the seller report is implemented by
and
The lowest buyer type and the highest seller type obtain zero utility. Thus the mechanism is DSIC and ex-post IR on the grid, hence BIC and IIR. Integral monotone allocations are deterministic threshold rules; fractional allocations used below are implemented as report-independent mixtures of integral rules.
Lemma A.2. Let be monotone on the grids above. Define
and, on ,
Then Step q is monotone, agrees with q on the grid, admits threshold representations
and its threshold payments agree on grid profiles with the envelope payments in Lemma A.1. Consequently, componentwise stepwise extension preserves DSIC and ex-post IR for report-independent mixtures and leaves all expectations unchanged under distributions supported on the grid.
Proof. Monotonicity follows because both coordinate projections are nondecreasing and the seller projection rounds upward. For fixed s, traded buyer reports form an upper interval; for fixed b, traded seller reports form a lower interval. Taking inclusive endpoints gives the displayed threshold rules. At grid profiles these critical thresholds are exactly the adjacent grid thresholds in the discrete envelope formulas, so payments agree with those in Lemma A.1. The statements for mixtures and grid-supported expectations follow componentwise.
Threshold convention. Deterministic threshold allocations use inclusive events and . Thus buyer threshold probabilities use the closed upper tail , seller threshold probabilities use , and boundary thresholds follow the conventions , , , and . At jump points, we use left-continuous buyer thresholds and right-continuous seller thresholds.
B Proofs for Section 3
B.1 Proof of Lemma 3.1
Proof. It suffices to prove the statement for deterministic canonical threshold mechanisms; the randomized case follows by linearity. We use the following one-dimensional estimate. If two probability measures on have cdfs within distance , then their integrals against any bounded-variation function differ by at most , where representatives are chosen consistently with the threshold convention. Also, if is monotone and -valued and is monotone and -valued, then
Let M be a deterministic canonical threshold mechanism with threshold maps . Write
Then
Consider the first term. Replacing by inside the integrand changes the value by at most . After this replacement, the integrand is the product of a monotone -valued function and a monotone -valued function, and hence has variation at most . Replacing the outer marginal measure by therefore changes the value by at most . Hence this term changes by at most . Applying the same argument to gives the same bound for the second term. Thus
For revenue, the threshold-payment formula gives
where when the threshold is finite, and under the no-trade boundary convention. This convention only keeps the integrand bounded; the associated trade probability is zero except possibly on a boundary of zero true mass. Similarly, when the threshold is finite and under the no-trade boundary convention. Each integrand is again the product of a monotone -valued function and a monotone -valued function. The same argument gives
Combining the two estimates proves
This is the claimed bound.
B.2 Proof of Lemma 3.2
Proof. Let be a deterministic canonical threshold mechanism with threshold maps , and let .
By definition, the finite-grid allocation of agrees with the allocation of on every empirical profile . Since is supported on these profiles, the empirical GFT is unchanged:
It remains to compare empirical revenue. The finite-grid allocation rounds each finite buyer threshold up to the smallest traded buyer grid point, hence to a value at least , and rounds each finite seller threshold down to the largest traded seller grid point, hence to a value at most . Follow the boundary threshold convention. Therefore, on every traded empirical profile, the buyer payment weakly increases and the seller payment weakly decreases, giving
The randomized case follows componentwise.
B.3 Proof of Lemma 3.3
Proof. Let
where the supremum is over posted-spread mechanisms. Since is supported on , we have . If , then
for every , and hence . The symmetric argument gives , contradicting the delegated-pricing ratio below because . Thus . Since posted-spread revenue is pointwise bounded by realized GFT, .
For every seller type s,
Let and
Then and . Hence
The symmetric buyer-side argument gives
By the delegated-pricing ratio of Fei [2022, Theorem 1.1],
Set and . Then
Since is nondecreasing on , this implies for a universal constant . Therefore
using .
Taking a posted-spread mechanism with revenue at least gives the stated revenue bound. Finally, a posted-spread mechanism trades only when the realized GFT dominates the price spread, so .
B.4 Proof of Theorem 3.4
Lemma B.1 (Dvoretzky et al., 1956, Massart, 1990). Let be formed from m independent samples from each marginal of . Then, for every ,
Lemma B.2. The empirical-margin LP has an optimum implementable as a mixture of at most two deterministic threshold mechanisms with the same empirical GFT and revenue.
Proof. The monotone allocation constraints define the order polytope of the finite grid order. Its vertices are precisely the monotone allocations [Stanley, 1986, Corollary 1.3]. Intersect this polytope with the revenue halfspace and take an optimal vertex of the resulting LP. Let G be the minimal face of the order polytope containing . If the active revenue constraint has rank smaller than on the tangent space of G, then can be perturbed in both directions inside G while preserving all active constraints, contradicting vertexhood. Hence . Therefore G is either a vertex or an edge of the order polytope, and is either a vertex or a convex combination of the two endpoints of that edge. By Lemmas A.1 and A.2, the relevant vertices can be implemented as deterministic threshold mechanisms, and empirical GFT and revenue are preserved by linearity.
Lemma B.3. Fix a distribution and mechanisms on the same type space with
If
then satisfies
Proof. Report-independent mixing makes Rev and GFT affine in the mixture weight, so
Lemma B.4. If , then there is an empirical-grid mechanism such that
Proof. Let be a canonical optimum for , and set . Lemmas 3.1 and 3.2 give
Let be the posted-spread mechanism from Lemma 3.3, and set . Lemmas 3.1, 3.2, and 3.3 imply
where the last step uses the choice of and . Applying Lemma B.3 under to and , with target margin , gives a mixture weight
Since has nonnegative empirical GFT, the resulting mixture satisfies
Proof of Theorem 3.4. By Lemma B.1, the event holds with probability at least whenever
which is implied by the stated sample bound since .
On this event, Lemma B.4 gives an empirical feasible mechanism with GFT at least . Therefore the empirical-margin LP is feasible, and its optimum has empirical GFT at least . By Lemma B.2, the mechanism returned by the algorithm has the same empirical GFT and revenue as an optimal LP solution, so
Lemma 3.1 gives
The constants in and make the true revenue nonnegative and the total GFT loss at most . Theorems A.1 and A.2 give BIC and IIR, and nonnegative true revenue gives ex-ante WBB.
B.5 Proof of Lemma 3.5
Proof. The seller marginal is common, so it suffices to compare the buyer marginals. For sufficiently small , assume . Then
For ,
Since , this gives
The same argument with the two signs exchanged gives
Because and differ only in the buyer marginal,
B.6 Proof of Lemma 3.6
Proof. For an allocation q, write and set
Under ,
and the virtual-surplus expression is
where
Here is the virtual-surplus density after multiplying by the buyer density factor ; it is not the pointwise virtual surplus alone. Let
For the threshold allocation ,
Its revenue equals its virtual surplus, namely
Integrating first in y and then by parts gives
by the chosen supports of and . Hence is ex-ante WBB under for , and
Now let be BIC, IIR, and ex-ante WBB under , with allocation . Lemma 2.2 and imply
Therefore
Since the boundary of T is a line segment and is bounded,
where
A direct calculation using the displayed formula for gives
Thus, for all sufficiently small ,
for a universal constant . This proves the lemma.
Lemma B.5. Let and . Let and be disjoint mechanism classes. If a learner using independent samples from each marginal returns a mechanism in with probability at least under , for each , then
Proof. Let and be the joint laws of the learner's samples and internal randomness under and , respectively. The event
satisfies . Since , success under implies . Hence
Pinsker’s inequality and product additivity of Kullback–Leibler divergence [Tsybakov, 2009, Lemma 2.5(i); Section 2.4, property (iii)] give
This proves the claim.
B.7 Proof of Theorem 3.7
Proof. Regularity of the additive hard pair. For , set
Then
Since and , both and vanish in neighborhoods of the endpoints. For sufficiently small , the densities are positive. Moreover,
has derivative , uniformly over . Hence the buyer inverse hazard rate is decreasing, so the buyer marginal is regular. The hazard rate is
On the compact region containing the perturbation, the hazard is a -small perturbation of the uniform hazard , whose derivative is bounded away from zero there. Near the endpoints it equals the uniform hazard. Thus the buyer marginal is MHR for sufficiently small . The seller marginal is uniform, hence regular and MHR, with nondecreasing virtual cost.
By the regularity verification above, and are regular product distributions. Let
By Lemma 3.6, if M is ex-ante WBB under , then
Thus whenever .
Set , decreasing the constant in the theorem so that lies in the perturbative range required above and in Lemma 3.6. Since the seller marginal is common, Lemmas B.5 and 3.5 give
This proves the theorem.
C Proofs for Section 4
C.1 Proof of Lemma 4.1
Proof. Let . Then , , and
By Bernstein's inequality,
for a universal constant . The stated pilot size gives
with probability at least . The bounds
from Lemma 2.1 give the final claim.
C.2 Proof of Lemma 4.2
Lemma C.1 ([Panchenko, 2003, Corollary 4] ). Let P be a distribution on , and let be the empirical distribution formed from independent samples . Let
For , write
and
where
For every fixed , there is a constant such that, for every ,
Lemma C.2. Let P be a distribution on , and let be the empirical distribution formed from m independent samples from P. Let
There is a universal constant such that, with probability at least , simultaneously for every ,
This formulation is a corollary by plugging the half line indicators as the function class in [Panchenko, 2003, Corollary 4]
Proof. Apply Lemma C.1, with and . For ,
Thus, on an event of probability at least ,
for all , after enlarging . Solving this scalar inequality gives
where the case larger than an absolute constant is covered by increasing since . This proves the lemma.
Lemma C.3. Under the event of Lemma C.2, every monotone function satisfies
Proof. Assume first that u is nondecreasing. By the layer-cake representation,
For each , the set is a half-line in . Therefore Lemma C.2 and Cauchy's inequality give
The nonincreasing case is identical, using lower half-lines.
Lemma C.4. Let be the empirical product distribution from samples from each marginal. With probability at least , every measurable nondecreasing in and nonincreasing in satisfies
Proof. Let
By Lemma C.3, after absorbing the union bound into the constant in , with probability at least the following two events hold simultaneously:
and
Work on and fix any admissible . Write
First define the seller-coordinate projection
Since is nonincreasing in its seller coordinate, . Moreover,
while
Applying to gives
Next fix the realized seller sample, and define the buyer-coordinate projection
For this fixed seller sample, is a deterministic element of because is nondecreasing in its buyer coordinate. The event is simultaneous over all functions in , so it applies to this particular . The two expectations of are
and
Applying to gives
It remains to remove the hybrid term T from the right-hand side. From the first display,
Using and AM-GM,
after increasing C. Hence . The same argument applied to
gives . Substituting into the seller-coordinate bound and into the buyer-coordinate bound yields
Finally, by the triangle inequality and ,
as claimed.
Proof of Lemma 4.2. It suffices to write the deterministic kernels obtained after fixing the report-independent random seed and then average these kernels over the randomization. Let be the seed, independent of the reports. Conditional on , the mechanism is a deterministic threshold component with allocation and threshold maps . Define three kernels
For any ,
Since whenever , we have whenever for almost every seed . Hence the three deterministic kernels inside the -expectations are nonnegative, -bounded, nondecreasing in , and nonincreasing in for almost every . Averaging over preserves these properties, so also have them.
We prove the case in which M is A-localized under ; the case in which M is A-localized under D is the same after interchanging D and . The localization assumption under gives
Indeed, the first inequality is , while the last two follow from nonnegativity and .
Let f be any one of . Lemma C.4 gives
For the three kernels above, the localization inequalities give . Since
we have
Therefore
Using AM-GM to absorb the middle term,
Substituting this bound into the previous display and moving the half-error term to the left gives
Thus the same bound applies to each of . In particular,
and
The revenue bound follows from Rev = GFT - U.
C.3 Proof of Theorem 4.3
Proof. Apply Lemma 4.1 and Lemma 4.2 with failure probability each. By a union bound, the two events hold simultaneously with probability at least . Replacing by only changes the logarithmic factor by an absolute constant, so we keep the notation . On the pilot event,
and hence and
Let be a universal constant large enough for the bounds in Lemma 4.2. Fix , then choose sufficiently small, and finally choose the hidden universal constant in the training sample size sufficiently large. More explicitly, after and are fixed, the stated training sample bound implies
for a universal constant that we may choose as large as needed. Since
choosing large enough gives
Indeed, the sample-size lower bound gives
and, since and ,
Let be a second-best canonical mechanism for . By surplus trimming, we may assume that it trades only on , without decreasing GFT or revenue. Indeed, for a deterministic threshold component with allocation and threshold maps , replacing
keeps the allocation threshold implementable, with threshold maps
On , regularity gives , so deleting such trades weakly increases both GFT and the virtual-surplus expression for revenue. The same operation is applied componentwise to randomized threshold mechanisms.
Lemma 3.3 gives a posted-spread mechanism P with
Posted-spread mechanisms are also surplus-trimmed. Applying Lemma B.3 to the surplus-trimmed and P with target margin gives a surplus-trimmed mechanism W such that
where the mixture weight is and is at most one by the choice of . Moreover, is -localized under , since
where the last inequalities use . Lemma 4.2, applied to , gives
Indeed, the revenue inequality uses Lemma 4.2 and (3). For the GFT cap, the same transfer bound gives
where the last step uses , , , and the fixed choice of sufficiently small . Let . By Lemma 3.2,
Also, satisfies the empirical negative-surplus constraint: on every empirical grid profile with , the allocation of is zero because is surplus-trimmed, and the projection preserves the grid allocation. Therefore is feasible for the localized empirical LP. In particular, on the current event the LP is feasible, so Algorithm 2 does not return no trade.
Let be an optimal solution of the localized empirical LP. Since is feasible, optimality gives the only comparison needed here:
It remains only to justify that this LP optimum is implemented by the mechanism class used in the transfer lemma. After imposing the zero-allocation constraints for , the remaining monotone allocation set is a face of the finite-grid order polytope. Intersecting this face with the empirical revenue halfspace and the empirical GFT-cap halfspace, the same face-dimension argument as in Lemma B.2 shows that an optimal LP solution may be chosen in a face of dimension at most two. By Carathéodory's theorem inside this face, it is a convex combination of at most three monotone integral grid allocations. The finite-grid implementation therefore realizes as a randomized threshold mechanism , with the same empirical GFT and revenue. In particular,
The LP constraints give and . Hence
Thus is -localized under .
We also need the surplus-trimming hypothesis of Lemma 4.2 for . Each deterministic component of the stepwise extension uses
If , then , so . The grid constraint for therefore implies that every deterministic component, and hence , has zero allocation whenever .
Then Lemma 4.2 gives
By Lemma 3.2 and another application of Lemma 4.2 to W,
after choosing the universal constant small enough. Similarly,
Thus is ex-ante WBB under D. Lemmas A.1 and A.2 give BIC and IIR for each deterministic component, and report-independent randomization preserves both properties. The pilot and training sample sizes are bounded by the stated
using Lemmas 4.1 and 2.1.
C.4 Proof of Theorem 4.4
Proof. Let , , be the scale-R additive hard pair from Subsection 3.2. By Lemmas 3.5 and 3.6,
and the cross-world WBB separation is .
Embed this pair in a probability-p active buyer block. Let be the buyer upper-tail quantile in the additive pair, and define the upper-tail quantile of the embedded buyer by
Equivalently, the buyer CDF is
Let the seller be , and denote the resulting product distribution by . The two branches join at , since and . Hence the buyer support is contained in , while the seller support is contained in .
To verify buyer regularity, consider the buyer revenue curve in the upper-tail quantile parameter . It is flat on the inactive branch, for , and on the active branch it is . The active-branch curve is concave because is regular and adding the linear term preserves concavity. At the joining point, the perturbation is supported away from the endpoint, so and ; hence the active and inactive pieces have matching one-sided derivatives, both equal to zero, at . Thus is concave across the join, and the buyer marginal is regular. The seller marginal is the translate , so seller regularity is preserved.
On the inactive block, buyer values are at most while seller values are at least , so realized surplus is nonpositive. The inactive buyer virtual value is zero, because for , while the seller virtual cost is at least . Hence the inactive block also has nonpositive virtual surplus and cannot contribute to the benchmark or offset the cross-world WBB separation. Since the inactive block has nonpositive realized surplus,
Conversely, take a feasible canonical mechanism for , shift its buyer and seller reports and payments upward by R, run it on the active buyer block, and use no trade on the inactive block. Seller interim utilities and expected revenue are multiplied by p. Buyer incentive compatibility is preserved within each block, and an inactive buyer cannot profitably report an active type because every active buyer critical payment is at least R. Hence the extended mechanism is feasible on and
Therefore
Now let M be BIC, IIR, and ex-ante WBB under , with allocation rule . By the envelope inequality,
Define the shifted active allocation
The inactive-region virtual surplus is nonpositive, so the active-region virtual-surplus integral is nonnegative. After shifting the active reports downward by R and substituting , the active-region GFT and virtual-surplus expressions are exactly p times the corresponding expressions in the additive hard pair. The variational argument in the proof of Lemma 3.6 therefore gives
Since the inactive-region GFT is nonpositive and
we obtain
Thus the cross-world WBB separation is .
Finally, the two buyer marginals coincide on the inactive block and, conditional on the active block, are the buyer marginals of the additive hard pair. Since the seller marginal is common,
and similarly
Set and , where is an absolute constant chosen within the perturbative range so that the separation exceeds the SB() tolerance. Then are supported on , satisfy
and their feasible -optimal classes are disjoint. Lemma B.5 therefore gives
Using , this becomes
33
☐
D Proofs for Section 5
D.1 Algorithm and supporting lemmas
We use the notation and from Section 5. For each marginal, partition the samples into two independent blocks: a cap-selection block and a bounded-learner block. Split the cap-selection block into independent subsamples for mean estimation and the posted-spread search, and split the bounded-learner block into the pilot and training subsamples required by Algorithm 2.
Throughout this appendix, for every cap , the seller sentinel in is treated as a fixed no-trade state and is not assigned a numerical cost. A mechanism on is specified on the numerical report region and extended to the sentinel row by
BIC and IIR are imposed on the numerical buyer and seller types under the full law . The sentinel is also an admissible report for a numerical seller and yields zero utility. We use for the supremum GFT over BIC, IIR, and ex-ante-WBB mechanisms in this class. Sentinel observations retain their probability mass. On such profiles, first-best surplus, GFT, buyer and seller utilities, revenue, and the pilot statistic are zero. In the empirical LP, sentinel observations form a fixed zero row, contribute zero to the empirical GFT, utility, and revenue expressions, and are excluded from the numerical seller envelope-payment formula. We identify no trade with the zero mechanism.
Fix a sufficiently large universal constant . Given the mean estimate , the posted-spread mechanism , and its lower-confidence revenue produced by the cap-selection stage, set
Algorithm 3 projects the bounded-learner samples to the truncated instance at width , applies Algorithm 2, and extends the resulting mechanism back to the original instance.
Algorithm 3: MHR estimated-cap learner
Input: Accuracy , confidence , and independent samples from each marginal Output: A mechanism for the original instance, or no trade
1 Compute the mean estimate from the mean-estimation split of the cap-selection samples; 2 Run the posted-spread search on the remaining cap-selection samples, obtaining a posted-spread mechanism P and its lower-confidence revenue ; 3 if then 4 | return no trade; 5 Project the bounded-learner pilot and training samples to the truncated instance ; 6 Run Algorithm 2 on the projected instance with , accuracy , and confidence , treating as a buyer endpoint and adjoining the fixed zero seller-sentinel row; denote its output by ; 7 return ;
Lemma D.1. There is a universal constant C > 0 such that, for every nonnegative MHR random variable X with mean and every ,
Consequently, for
one has
Proof. Let . By the MHR characterization in [Barlow et al., 1963, Section 3], is concave on the support. The case is immediate. Fix and set . The cases are immediate. For , set . By concavity, for ,
Thus
Hence , and therefore
Moreover, concavity of and imply
Therefore
The same survival bound gives
Applying these estimates to and using gives the displayed bound on after increasing the universal constant.
Fix a sufficiently large universal constant . Given a mean estimate computed from an independent sample, let be the number of posted-spread search samples and set
Pair the buyer and seller search samples independently, and denote the resulting pairs by . For , define
Choose to maximize
over . Let be the posted-spread mechanism with prices , and let be the attained maximum. The prices may be chosen among the search sample values in together with and . The posted-spread search therefore has at most candidate price pairs and can be implemented by direct enumeration in polynomial time. Projecting the bounded-learner samples adds only the buyer endpoint at and a fixed zero seller-sentinel row; the latter does not enter the numerical seller envelope-payment grid. Hence the bounded-learning stage remains a polynomial-size finite LP, and Algorithm 3 runs in polynomial time.
Lemma D.2. Suppose that is computed from an independent sample and satisfies
If
then, with probability at least over the posted-spread search samples,
for a universal constant .
Proof. For fixed , the revenue sample is bounded by and has variance at most . Since the class of events has constant VC dimension, the relative VC inequality [Panchenko, 2003, Corollary 4], together with the standard empirical-form conversion, gives, by the choice of , with probability at least , simultaneously for all ,
and
Applying this inequality at gives . The mechanism is BIC, IIR, and ex-post WBB because , and its realized GFT is at least its realized revenue. Hence
For a fixed empirical trade set, the lower-confidence score is linear in , so a maximizer may be chosen at the search sample values or at .
It remains to prove the lower bound on . Let be a sufficiently large universal multiple of , and let be the product distribution of and . Lemma D.1 gives
for a sufficiently small universal constant . Since
we have by the choice of .
Lemma 3.3 applied to gives prices such that
Indeed,
so the logarithmic denominator in Lemma 3.3 is . Clipping at does not change the revenue of these prices: if , then , while if , the revenue is zero. Thus the same lower bound holds under .
The sample condition gives , and hence
Together with , this implies by the choice of . Moreover,
so the stated sample bound gives
for a sufficiently small universal constant . On the relative VC event, this implies that is within a fixed fraction of and that the lower-confidence subtraction at is at most another fixed fraction of . The maximizing choice of therefore gives
The cap-selection stage is used only through the following event.
Lemma D.3. With
cap-selection samples from each marginal, the cap-selection stage returns a mean estimate , a posted-spread mechanism , and a lower-confidence revenue such that, with probability at least , the bounds
hold, where is the universal constant from Lemma D.2.
Proof. Use independent sample splits for mean estimation and posted-spread search. Split the mean-estimation samples into blocks, each of sufficiently large constant size, and let be the sum of the medians of the buyer and seller block averages. By Lemma D.1, for ,
Hence a sufficiently large constant block size gives a constant-factor estimate of the corresponding mean with constant probability. Taking the median over the independent blocks and applying a union bound to the two marginals gives
with probability at least . This proves the first part of (4).
Condition on this event. Since the posted-spread search uses an independent sample split, Lemma D.2 applies to the fixed estimate . Allocating a fixed fraction of the cap-selection samples to the posted-spread search, the stated sample bound implies
Therefore, with conditional probability at least ,
A union bound gives (4) with probability at least , which implies the stated probability. ☐
Lemma D.4. Let M be a surplus-trimmed randomized canonical threshold mechanism on D. Let be the mechanism obtained by applying the same threshold rule after projecting to , with the fixed zero outcome on the seller-sentinel row. Then
and
The same bounds hold when restricting the finite truncated instance further down to , .
Proof. It suffices to prove the result for a deterministic component of M and then average over the report-independent randomization. Let and be its buyer and seller threshold maps. Couple D and by capping the buyer type at v and sending every seller type to the seller sentinel.
We bound the GFT and revenue losses under the same profile partition. On every profile traded by the original mechanism, canonical threshold payments and individual rationality give
and therefore
If and , the allocation is unchanged. The GFT contribution is therefore unchanged, while restricting the type space cannot increase the seller critical payment and leaves the buyer critical payment of every retained trade unchanged. Hence revenue does not decrease.
Suppose that . If the restricted mechanism trades at , monotonicity implies that the original mechanism trades at . The GFT loss is , while revenue does not decrease because the buyer critical payment is unchanged and
If the restricted mechanism does not trade, any deleted GFT contribution is at most , and any positive deleted revenue contribution is at most
Finally, if , the restricted mechanism does not trade. Since is surplus-trimmed, an original trade requires . Both its GFT contribution and its positive revenue contribution are then at most
Thus, for each of the two objectives, the pointwise loss is bounded above by
Taking expectations and using
the expected loss in either objective is at most
Taking expectations proves both stated bounds.
For a finite truncated instance , couple and through the same original types . Restricting first at and then at gives the same projected reports as restricting directly at . Moreover, the capped buyer type is at most , and every traded active seller type above still satisfies by surplus trimming. Hence the same pointwise bounds apply, and the additional GFT and revenue losses are bounded by . Averaging over the deterministic components completes the proof.
Lemma D.5. Let N be a randomized canonical threshold mechanism on the truncated instance , with the fixed zero outcome on the seller-sentinel row and canonical payments on the numerical report region. Then is BIC and IIR on D, and
In particular, if N is ex-ante WBB under , then is ex-ante WBB under D.
Proof. The extension runs N after mapping to . For buyer types below the cap, incentives are inherited from N. For buyer types above the cap, reporting the capped type is optimal because the allocation is monotone and the canonical buyer payment is the critical-value payment at the capped type.
For a seller type , incentives among the numerical reports are inherited from N. Reporting the sentinel gives zero utility, which is no larger than the truthful utility by IIR. For a seller type , truthful reporting leads to the fixed zero sentinel outcome. Any deviation to a numerical seller report can result in trade only at a canonical seller critical payment of at most w. Hence the deviating utility is at most
while truthful reporting gives zero utility. Thus no seller type has a profitable deviation, and IIR follows from the same critical-payment representation.
Payments depend only on the projected reports, and the sentinel outcome has zero transfers. Their distribution under D is therefore the same as under , which gives
Profiles with have zero allocation. On profiles with , the projected surplus agrees with the true surplus when and is weakly smaller than the true surplus when . Therefore
Lemma D.6. There is a universal constant C > 0 such that the following holds for every . Let P be a posted-spread mechanism satisfying
If
then
Proof. By Lemma D.1, the stated lower bound on w, with the universal constant C sufficiently large, gives
Fix a sufficiently large such that both prices of lie below , and fix an accuracy parameter . Let be the truncated instance at level .
Choose a BIC, IIR, and ex-ante-WBB mechanism M on D, with allocation rule q, such that
By the envelope inequality,
Under the definition of above, let be the set of measurable allocations with . For , let denote its GFT and let denote its envelope revenue, whose coefficient on the numerical seller region is
For the mixed continuous–atomic buyer marginal of , the envelope formula gives
for every BIC and IIR mechanism with allocation a, with equality under the canonical normalized payments used below. At the buyer atom H, the buyer-payment coefficient is H, which gives the displayed coefficient .
Consider the single-constraint relaxation
Every BIC, IIR, and ex-ante-WBB mechanism counted by induces a feasible allocation, so
Let be the restriction of P to , and let be its allocation. By the choice of H,
Thus the relaxation is strictly feasible. The attainable pairs
form a compact convex subset of , so convex strong duality gives
The dual objective is at least
and therefore diverges as . Hence the minimum is attained by a finite multiplier , and
For a numerical profile, the corresponding pointwise score is
Regularity makes nondecreasing in b and nonincreasing in s. Moreover,
so this monotonicity extends to the buyer atom. Hence
with zero allocation on the seller-sentinel row, are deterministic canonical threshold allocations maximizing the Lagrangian at .
A zero-score profile cannot have , since regularity would give and hence . Thus, when , one has on the zero-score set, and the subgradient optimality condition gives
A report-independent mixture of these two threshold allocations can therefore be chosen with envelope revenue zero. Since both allocations maximize the same Lagrangian, this mixture has GFT .
If , boundary optimality gives
and has GFT . Thus, in either case, is attained by a randomized canonical threshold allocation with nonnegative envelope revenue. Its canonical payments give a BIC, IIR, and ex-ante-WBB mechanism on , and therefore
Together with the reverse inequality,
Applying Lemma D.5 to the randomized canonical threshold mechanism attaining gives a BIC, IIR, and ex-ante-WBB mechanism on with GFT at least . Therefore
On , define
with zero allocation at the buyer cap atom and on the seller-sentinel row. Since and
the envelope inequality for and dominated convergence give a deterministic sequence such that
Mixing with with weight
on gives a feasible allocation for the relaxation, because
Its GFT is at least , and therefore
Let be obtained by applying the componentwise surplus-trimming operation from the proof of Theorem 4.3 to the randomized canonical threshold mechanism attaining
This preserves its canonical threshold form and does not decrease GFT or revenue, so
Restrict further from H to w, and denote the resulting mechanism on by . Lemma D.4 gives
and
Let be the restriction of P to . The same lemma gives
Set
Since
we have
The revenue of the mixture
is at least
Thus the mixture is BIC, IIR, and ex-ante WBB under .
The GFT of the mixture is therefore at least
Using and
we have
Consequently,
Letting and then proves the lemma.
Lemma D.7. Fix , , and . Let satisfy Assumption 5.1, and let be its truncated instance with . Run Algorithm 2 on independent projected pilot and training samples from , using width , accuracy , and confidence , adding the buyer atom at as a grid point and adjoining the fixed zero seller-sentinel row. Then, with probability at least , the output is BIC, IIR, and ex-ante WBB under , and
using
samples from each marginal, split into the pilot and training parts required by Algorithm 2.
Proof. Let
Since , one has . Restricting a mechanism on to the numerical seller reports gives a mechanism on , and conversely any mechanism on extends to by assigning the fixed zero outcome to the sentinel. The additional sentinel report does not affect the numerical seller incentive constraints because it gives zero utility, while truthful utility is nonnegative by IIR. Buyer interim utilities, GFT, and revenue are multiplied by . Hence
Lemma 2.1 therefore gives
Likewise, extending a posted-spread mechanism from by the zero sentinel outcome multiplies its revenue by . Lemma 3.3 consequently yields a posted-spread mechanism satisfying
Since , one has , so the displayed lower bound is strictly positive. Thus supplies a strictly feasible point for the allocation relaxation at . Repeating the preceding allocation-relaxation argument with and in place of provides a surplus-trimmed randomized canonical threshold benchmark for with the fixed zero sentinel outcome. For the pilot stage, define
Then
The Bernstein calculation in Lemma 4.1 therefore gives a constant-factor estimate of , and hence of .
For the training stage, use the usual numerical buyer and seller grids in , including the buyer atom at w. Sentinel observations retain their empirical mass but form a fixed zero row. They introduce no allocation or payment variables and contribute zero to the empirical GFT, utility, and revenue expressions. Thus the allocation variables, monotonicity constraints, canonical payments, and order-polytope implementation on the numerical grid are exactly those used by Algorithm 2.
It remains to check the localized transfer step. Extend each seller-coordinate kernel used in Lemma 4.2 to the terminal sentinel state by assigning value zero. The kernels are nonnegative and nonincreasing on , so this extension remains nonincreasing. The corresponding upper- and lower-half-line classes on still have constant VC dimension. Hence the one-dimensional relative comparison, and therefore the localized GFT, utility, and revenue bounds, hold with .
The projected benchmark and the posted-spread mechanism above provide the same comparison and revenue-margin mechanisms used in the proof of Theorem 4.3. Applying its LP feasibility, optimality, and transfer-back argument with , , , and gives
The pilot and training sample bounds become
44
☐
D.2 Proof of Theorem 5.2
Proof. Split the confidence parameter between the cap-selection stage and the bounded learner. On the event (4), , so Algorithm 3 does not return no trade at the cap-selection stage. Moreover, the constant-factor estimate of implies that, for sufficiently large, the selected cap satisfies the hypothesis of Lemma D.6 with . Hence
By (4) and the definition of ,
Consequently,
Apply Lemma D.7 to with accuracy and confidence . With probability at least , the bounded learner returns satisfying
Let . By Lemma D.5, is BIC, IIR, and ex-ante WBB on , and
Combining the two bounds gives
Substituting the preceding bounds into Lemma D.7 gives the stated bounded-learner sample complexity. The cap-selection bound from Lemma D.3 is of the same order, and a union bound gives success probability at least .
D.3 Proof of Theorem 5.3
Proof. For a perturbation parameter to be chosen below, let , , be the scale-R additive hard pair from Section 3.2, where is its value scale. Let
be the buyer upper-tail quantile in the additive pair. The perturbation functions are compactly supported away from the endpoints, so the buyer marginal coincides with the uniform baseline near u = 1; in particular,
Fix sufficiently small. We reuse the rare-block embedding from the proof of Theorem 4.4, replacing the inactive branch by an exponential-tail branch and shifting the active block by :
Let the seller be
and denote the resulting product distribution by . The two branches join at because . Their derivatives also agree:
The buyer marginal is MHR for sufficiently small . On the inactive branch , , so the hazard rate is . On the active branch , the distribution is the shifted additive buyer marginal , which is MHR by the verification in Appendix B. The two branches join without a downward hazard jump because and give the common hazard value at . The seller marginal is a translate of , hence is MHR with nondecreasing virtual cost. Thus and satisfy Assumption 5.1.
The event is the active block. Conditional on this block, the instance is exactly the additive hard pair shifted by . Outside the active block, buyer values are at most , while seller costs are at least , so realized surplus is nonpositive. The inactive buyer virtual value is
whereas the seller virtual cost is at least . Hence the inactive region also has nonpositive virtual surplus and cannot contribute to the benchmark or offset the cross-world WBB separation.
The common shift by preserves both the real-surplus and virtual-surplus functionals in the active block. Writing on this block, one has
and
Since is uniform on , for the shifted seller type is , and
Moreover,
so
Hence, for every allocation rule, the active-block GFT and virtual-surplus integral are exactly p times the corresponding integrals in the additive hard pair. Therefore the benchmark-scaling and cross-world-separation argument from the proof of Theorem 4.4 applies verbatim after replacing the shift R by , and gives
and
It remains to express through . The seller mean is . The inactive buyer tail has mean
and the active buyer block contributes
Hence
It follows that
Choose , with the implicit constant sufficiently large for the cross-world WBB separation to exceed the SB( ) tolerance. Since the theorem concerns sufficiently small , this choice remains within the perturbative regime. The feasible -optimal classes for and are then disjoint. Lemma B.5 and the one-sample KL bound give
Thus
Choosing sufficiently small so that gives the theorem.