arXiv is now an independent nonprofit! Learn more
License: arXiv.org perpetual non-exclusive license
arXiv:1809.02718v2 [cs.GT] 13 Jul 2021

Cost Sharing in Two-Sided Markets

Sreenivas Gollapudi Affiliation: Google Research    Kostas Kollias Affiliation: Google Research    Ali Shameli Affiliation: Massachusetts Institute of Technology
Abstract

Motivated by the emergence of popular service-based two-sided markets where sellers can serve multiple buyers at the same time, we formulate and study the two-sided cost sharing problem. In two-sided cost sharing, sellers incur different costs for serving different subsets of buyers and buyers have different values for being served by different sellers. Both buyers and sellers are self-interested agents whose values and costs are private information. We study the problem from the perspective of an intermediary platform that matches buyers to sellers and assigns prices and wages in an effort to maximize gains from trade (i.e., buyer values minus seller costs) subject to budget-balance in an incentive compatible manner. In our markets of interest, agents trade the (often same) services multiple times. Moreover, the value and cost for the same service differs based on the context (e.g., location, urgency, weather conditions, etc). In this framework, we design mechanisms that are efficient, ex-ante budget-balanced, ex-ante individually rational, dominant strategy incentive compatible, and ex-ante in the core (a natural generalization of the core that we define here).

Keywords: 
Cost Sharing Mechanism Design Two-sided Markets.

1 Introduction

The recent emergence of sharing economy has brought renewed interest in the scientific community on studying two-sided markets where services are traded. One example of such markets are ride-sharing services like Uber and Lyft where one side of the market, i.e. drivers, provide a service to the other side of the market, namely riders. An important characteristic of such markets is the ability of a seller to offer service to multiple buyers at the same time. For example, Uber Pool and Lyft Line typically assign a driver to multiple riders at the same time; as long as the number of riders does not exceed the capacity of the car. This is in contrast to the one-to-one assignment that happens in other popular two-sided markets such as Amazon and Ebay. Central to the design of the above markets are the problems of price and wage computation as well as assignment of buyers to sellers.

Consider a simpler one sided case where we have multiple buyers and one service provider. In such a case, a service provider incurs a cost c(S)c(S) for serving a subset SS of its customers. In the case of ride-sharing, c(S)c(S) is the cost incurred by a cab driver to serve the riders in SS. Each rider ii values the ride viv_{i} which is known only to ii. In this case, the utility derived by the rider is vipiv_{i}-p_{i} where pip_{i} is the price charged to the rider for the ride. Depending on the pricing mechanism chosen by the ride-sharing platform, a rider might have an incentive to misreport her value to derive higher utility. The solution to this problem involves solving a cost sharing problem [14, 16, 20, 22, 26, 27, 28, 30]. A cost sharing mechanism first asks each buyer to report their value for being served and then decides the assignment as well as the price each user pays on the buyer side in a way that the cost of the seller is covered by the payments of the buyers.

The reader may note that in the above one-sided setting, only the values of the users are private while the cost function c(S)c(S) of the providers is known to the platform. In this study, we propose and study the two-sided cost sharing problem that generalizes the one-sided setting to the case where the costs are also private information to the sellers and the platform procures their services by offering wages. One challenge for such settings is designing a mechanism that can actually extract the true values and cost functions of buyers and sellers respectively.

In designing our mechanism, there are various objectives that we aim to achieve. A two-sided cost-sharing mechanism is efficient if it maximizes the sum of valuations of all buyers in the assignment minus the cost incurred by the sellers (which is equivalently called the gains from trade, a popular objective in the literature for designing mechanisms for two sided markets); It is dominant-strategy incentive compatible (DSIC) if for every buyer and seller, revealing their true value and cost respectively is a dominant strategy; it is weakly budget-balanced (BB) if, in the assignment, the price realized from all buyers is at least as large as the wages paid to all the sellers; it is individually rational (IR) if no agent incurs a loss participating in the mechanism; finally, a solution of the mechanism (which consists of an assignment and vectors of wages and prices) is in the core if the utilities of the agents are such that no subset of them can form a coalition and produce welfare higher than their collective utility in the proposed solution.

Two salient features of services in the sharing economy are - a) an agent participates many times in the market and b) the agent types tend to be dependent on environmental and circumstantial parameters (such as the current location, traffic volume in the surrounding area, weather conditions, urgency, etc.) and are not intrinsic to the agents. Therefore, our work focuses on designing two-sided cost sharing mechanisms that will satisfy the properties that pertain to agent utilities, namely IR and the core, in expectation. To be more precise, our mechanisms are efficient, dominant strategy IC (DSIC), ex-ante IR, ex-ante weakly BB, and ex-ante in the core.

We note that, on top of being suitable for our applications of interest, these properties are also tight from a technical perspective: Efficiency and IC are satisfied as their strongest possible versions and weakly BB is a platform constraint that we satisfy. Strenghtening ex-ante IR is not possible even when relaxing IC to Bayesian IC (as given by the Myerson-Satterthwaite impossibility theorem [29] for the single buyer-single seller case) or even when relaxing efficiency (gains from trade) to approximate efficiency (as shown in [4, 5, 11], again for a single buyer and a single seller). Moreover, it is conjectured to be impossible even when relaxing both IC and efficiency, as supported by partial impossibility results and experimental evidence [5].

1.1 Results and Techniques

Cost function Result
1 submodular seller Optimum welfare and core
Capacitated NGS sellers Optimum welfare and core
General sellers with constant capacity constraints approx welfare and core
Super additive sellers approx welfare and core
Table 1: Summary of our results.

As we explained above, our main contributions are mechanisms that are efficient, DSIC, ex-ante weakly BB, ex-ante IR, and ex-ante in the core. In Section 3 we study classes of cost functions that allow us to design an efficient mechanism, i.e. a mechanism that maximizes gains from trade. Subsequently in Section 4 we study general cost functions for which we devise an approximately efficient mechanism. The cases we study, are characterized by the cost functions of the sellers. We study 4 different scenarios. First the case where we only have one single seller, second, when we have multiple sellers with negative gross substitutes cost functions, third, when we have multiple sellers with general cost functions and constant capacity constraints, and lastly, when we have multiple sellers with superadditive cost functions.

Given that our setting is multi-dimensional, it is known that the design space for truthful mechanisms is strongly restricted and the main tool in our disposal is the family of VCG-type mechanisms [9, 21, 33]. Our first technical contribution is designing a VCG-like mechanism that guarantees the DSIC property as well as the induced outcome being ex-ante in the core. To do so, we first give an algorithm that computes utilities in the core for the case with known values and costs, by means of a primal-dual pair of LPs. This result is of independent interest in itself as it generalizes a result of [3] to our various models. We then show that the utilities for different realizations can be combined point-wise to yield weakly BB wages and payments that are ex-ante in the core.

A second technical contribution is the proper use of sampling to achieve our properties of interest with high probability in polynomial time in certain sub-models. We note that, in this sampling scenario, it is trickier to guarantee that the expected total utility (over sampled points) of a group of agents matches the expected welfare (over all points) that they could generate. However, with appropriate parameter selection and arguments, we show that we can approximate to arbitrary precision the utility per agent, which then yields the required properties.

Finally, for the case of multiple agents and general cost functions with constant capacity, since we can no longer achieve an assignment that maximizes gains from trade, it is more challenging to attain the DSIC property. However, we design a rounding scheme that rounds the optimal fractional solution of the LP corresponding to gains from trade, into an integral solution that achieves exactly a fixed fraction of the LP objective. This allows us to maintain the DSIC property for our mechanism. Subsequently, for the case of uncapacitated super additive cost functions, we present a transformation of the game to fit the framework of [23] and get a truthful mechanism, even in the absence of a welfare-maximizing algorithm. The framework of [23] is one-sided and requires utility functions that, among other properties, are monotone. Our setting is two-sided and the utility generated by each seller is not necessarily monotone in the set of buyers. However, we show how to get past these issues and design a mechanism that works for our model.

1.2 Related Work

Our work is related to two areas of literature: two-sided markets and (one-sided) cost sharing. In two-sided markets, a series of papers studies two-sided auctions that approximate efficiency with respect to the sum of values of the items’ holders after trade, as opposed to the gains from trade version that we study here [4, 10, 12, 17, 24]. With respect to gains from trade, approximating the optimal gains from trade is impossible in many settings [4, 5, 11]. Nevertheless, there do exist results that impose assumptions on the distributions and/or approximate a weaker benchmark: the gains from trade achieved by the “second-best” mechanism of Myerson and Satterthwaite [29], which is known to be the one that maximizes gains from trade subject to interim IR and BIC [5, 7, 11, 25]. All these results rely heavily on the fact that the studied settings are single-dimensional and break down even in minor departures from single-dimensionality. Approximating gains from trade even in simple multi-dimensional settings seems like a challenging problem. In a slightly different setting, other works [1, 2] approximate gains from trade with non-atomic populations of agents.

On the cost sharing side of the literature, early work on cooperative games and the core can be found in [6, 19, 31, 32]. Related to our results on computing outcomes in the core for known agent types is the work by Bateni et al. [3] who show how to compute a solution in the core of a game where suppliers deal with manufacturers and all information is public. With a simple transformation, one can show that the model in [3] is equivalent to our model with additive cost functions. In this sense, our results on computing solutions in the core for known agent types generalize the corresponding result of [3] to broader classes of cost functions. Considering mechanisms for one-sided cost sharing, most works focus on the version of the problem where there are no prior distributions on the values of the buyers. We remark that, in the absence of prior knowledge, the two-sided setting is hopeless in trading-off efficiency and budget balance. A simple example with a buyer with a large value vv and a seller with 00 cost is enough to see that. The only price and wage that make this setting efficient and truthful are a price of 00 for the buyer and a wage of vv for the seller. The only exception to this rule, is the work by Fu et al. [18], who consider a Bayesian setting and show that any approximation algorithm for the underlying problem can be transformed into a mechanism for the cost sharing problem with a logarithmic loss in efficiency.

Finally, we note that our mechanisms are related to the AGV mechanism [13] and the mechanisms in [8], which also achieve ex-ante IR guarantees. The AGV mechanism is efficient, BB, Bayesian IC, and ex-ante IR under certain conditions (such as no costs) which are very different from our setting. The work in [8] focuses on auction settings (including a two-sided auction with a single seller and a single item) and designs mechanisms that are efficient, BB, DSIC, and ex-ante IR. Our mechanisms focus on the richer two-sided cost-sharing setting, in which we provide solutions in the core (an important consideration in our applications of interest as, otherwise, agents are incentivized to deal outside of the market), and also address computational considerations (as they run in polynomial time for various settings).

2 Preliminaries

Our market model is comprised of a set of m1m\geq 1 sellers MM and a set of n1n\geq 1 buyers NN. Each buyer iNi\in N is unit demand and has value vijv_{ij} for being served by seller jMj\in M. Each seller jMj\in M is endowed with a cost function cj(S)c_{j}(S) which gives the cost of the seller to serve the buyers in SNS\subseteq N. We assume that cj()=0c_{j}(\emptyset)=0 for all jMj\in M. Optionally, the model can impose a capacity constraint on the sellers with each seller jj being able to accept kjk_{j} buyers. We make the natural assumption that values are bounded and further, without loss of generality and for simplicity of exposition, that they are in [0,1][0,1]. Buyers and sellers interact with an intermediary platform that determines the assignment of buyers to sellers as well as prices pip_{i} for the buyers iNi\in N and wages wjw_{j} for the sellers jMj\in M. The utility of a buyer ii that is matched to a seller jj is ui=vijpiu_{i}=v_{ij}-p_{i}. The utility of a seller who is assigned buyers SS is uj=wjcj(S)u_{j}=w_{j}-c_{j}(S).

We assume the existence of discrete prior distributions over the types of each buyer and seller. The type of a seller specifies her cost function whereas the type of a buyer specifies her values. We assume agent types are drawn independently and that the prior distributions are common knowledge. Note that our discreteness assumption is a) natural, since these are distributions over possible payments which are by definition discrete, and b) without a major impact on the model since any continuous distribution can be replaced by a discrete version with an arbitrarily small approximation to the results. The solution that the platform needs to come up with is specified as an assignment of buyers to sellers, a price vector for the buyers, and a wage vector for the sellers. Throughout the paper we describe the assignment both as a collection of buyer subsets S1,S2,,SmS_{1},S_{2},\ldots,S_{m}, with SjS_{j} being the set assigned to seller jMj\in M, and as a mapping function σ()\sigma(\cdot), with σ(i)\sigma(i) being the seller to which buyer iNi\in N is assigned. Generally, our goal is to maximize gains from trade, i.e., the total value of matched buyers minus the total cost of sellers. Sometimes we refer to this objective as the social welfare.

We next describe the mechanism properties that appear in our results.

Efficiency

A mechanism is efficient if it maximizes the gain from trade, i.e., the total value of matched buyers minus the total cost of sellers. A mechanism is α\alpha-efficient if it achieves an α\alpha approximation to the optimal gains from trade.

Weak budget balance (BB)

A mechanism is ex-ante weakly BB if the expected sum of prices extracted from the buyers is at least equal to the expected sum of wages paid to the sellers.

Individual rationality (IR)

A mechanism is ex-ante IR if every agent has non-negative expected utility before all types are drawn. We say a mechanism is ϵ\epsilon ex-ante IR if the agent expected utilities are at least ϵ-\epsilon.

Incentive compatibility

A solution is dominant strategy incentive compatible (DSIC) if an agent cannot improve her utility by misreporting her type, even after learning the types of other agents.

In addition to these standard properties, we are interested in obtaining solutions that are in the core of the cost-sharing game, something that would encourage agents to adhere to the platform’s solution and stay in its market.

Cost-sharing core

A solution is in the core if the sum of buyer and seller utilities equals the welfare they produce and there does not exist a coalition of buyers and sellers who can generate welfare higher than the sum of their utilities. More generally, the α\alpha-core requests that every set of agents can’t produce welfare higher than α\alpha times their total utilities. The α\alpha-core property guarantees that agents on platform achieve in expectation, at least α\alpha fraction of the maximum utility they can potentially gain in the market by forming a private coalition.

Before moving forward with presenting our results, we define the classes of submodular and negative gross substitutes seller cost functions which we will use as part of our results. For the latter, we begin with the standard gross substitutes definition and then present the negative gross substitutes definition and how it is placed in our framework. This class of functions is interesting to study since it represents the theoretical border of tractability for obtaining the optimal solution for this problem.

Submodular cost functions

A cost function cc is submodular if for every subsets of buyers S,S2NS,S^{\prime}\in 2^{N} it is the case that c(S)+c(S)c(SS)+c(SS)c(S)+c(S^{\prime})\geq c(S\cup S^{\prime})+c(S\cap S^{\prime}).

Gross substitutes functions

A function ff defined over the set of buyers NN satisfies the gross substitutes condition if and only if the following holds. Let pp be a vector of prices charged to the buyers and let D(p)=argmaxSN{f(S)iSpi}D(p)=\arg\max_{S\subseteq N}\{f(S)-\sum_{i\in S}p_{i}\} be the demand set. Then, for every price vector pp, every SD(p)S\in D(p), and every qpq\geq p, there exists a set TNT\subseteq N such that (SA)TD(q)(S\setminus A)\cup T\in D(q), where A={iN:qipi}A=\{i\in N:~q_{i}\geq p_{i}\} is the set of items for which the prices increase from pp to qq.

Negative gross substitutes cost functions in two-sided cost-sharing

A seller cost function, which maps each subset of buyers S2NS\in 2^{N} to the real cost c(S)c(S), satisfies the negative gross substitutes condition if and only if the following holds. Let pp be a vector of prices charged to the buyers and let D(p)=argmaxSNc(S)iSpiD(p)=\arg\max_{S\subseteq N}c(S)-\sum_{i\in S}p_{i}. Then, for every price vector pp, every SD(p)S\in D(p), and every qpq\leq p, there exists a set TNT\subseteq N such that (SA)TD(q)(S\setminus A)\cup T\in D(q), where A={iN:qipi}A=\{i\in N:~q_{i}\leq p_{i}\}.

Super additive cost functions

A cost function cc is super additive if for every pair of disjoint subsets of buyers S,S2NS,S^{\prime}\in 2^{N} we have c(S)+c(S)c(SS)c(S)+c(S^{\prime})\leq c(S\cup S^{\prime}).

The class of functions satisfying the gross substitutes property contains, for example, all additive and unit-demand functions and is contained in the class of submodular functions. To abbreviate, we will say that a function is (negative) GS if it satisfies the (negative) gross substitutes condition.

In Section 3, we show how to design an efficient mechanism for special cases such as when we have one seller with a submodular cost function or the case where we have multiple sellers with negative gross substitutes cost functions. Note that, in general, this problem is very difficult, and as proved in Proposition 1, even for the case where the cost functions are constant over non-empty subsets, it is still NP-hard to design an efficient mechanism. That is why, in Section 4, we study approximately efficient mechanisms for more general cost functions.

Proposition 1

Given multiple sellers with cost functions that are constant over non-empty subsets, it is NP-hard to find an assignment that maximizes gains from trade.

We provide the proof of this Proposition in the appendix.

3 Efficient Mechanism

In this section we describe the main mechanism for most of the settings we study. The mechanism requires access to two algorithms: a) an algorithm to compute a welfare-maximizing assignment of buyers to sellers with known values and costs and b) a deterministic algorithm to compute non-negative utilities that are in the (approximate) core of the cost-sharing game and sum up to the optimal welfare, again, with known values and costs. We discuss these algorithms further in Section 3.1 and in the sections that correspond to the different models we study. For the polynomial time version of our mechanism, both of these algorithms must run in polynomial time. Let welfare-alg be the welfare maximizing algorithm and let core-alg be the algorithm that computes utilities in the α\alpha-core. The exact value of α\alpha will depend on the exact model, i.e., on the number of sellers and the class of cost functions under consideration.

Mechanism 1

Is defined as follows:

  • Allocation Rule: Given the reported values vijv_{ij} for iN,jMi\in N,j\in M, and cost functions cj:2Nc_{j}:2^{N}\to\mathbb{R} for jMj\in M, output the welfare-maximizing allocation computed by welfare-alg.

  • Pre-processing: For every realization of agent types rr that has some probability qrq_{r}, compute buyer utilities yir,iN,y_{i}^{r},i\in N, and seller utilities zjr,jMz_{j}^{r},j\in M, that are non-negative, in the α\alpha-core, and sum up to the optimal welfare using core-alg. Let yi=rqryiry_{i}=\sum_{r}q_{r}y_{i}^{r}, be the expected utility of buyer ii over all realizations and let zj=rqrzjrz_{j}=\sum_{r}q_{r}z_{j}^{r}, be the expected utility of seller jj over all realizations.

  • Buyer prices: The price charged to buyer ii is

    pi=jMcj(Sj)iN,iiviσ(i)+iN,iiyi+jMzj,p_{i}=\sum_{j\in M}c_{j}(S_{j})-\sum_{i^{\prime}\in N,i^{\prime}\neq i}v_{i^{\prime}\sigma(i^{\prime})}+\sum_{i^{\prime}\in N,i^{\prime}\neq i}y_{i^{\prime}}+\sum_{j\in M}z_{j},

    where SjS_{j} is the set of buyers assigned to seller jj and σ(i)\sigma(i^{\prime}) is the seller that ii^{\prime} is assigned to.

  • Seller wages: The wage paid to seller jj is

    wj=iNviσ(i)jM,jjcj(Sj)iNyijM,jjzj,w_{j}=\sum_{i\in N}v_{i\sigma(i)}-\sum_{j^{\prime}\in M,j^{\prime}\neq j}c_{j^{\prime}}(S_{j^{\prime}})-\sum_{i\in N}y_{i}-\sum_{j^{\prime}\in M,j^{\prime}\neq j}z_{j^{\prime}},

    where SjS_{j} is the set of buyers assigned to seller jj and σ(i)\sigma(i) is the seller that ii is assigned to.

Theorem 3.1

Mechanism 1 is efficient, ex-ante weakly BB, DSIC, ex-ante IR, and ex-ante in the α\alpha-core.

Proof

We first show the mechanism is DSIC. We can then assume that the agents reveal their true types when discussing the remaining properties. Let v^ij\hat{v}_{ij} for iN,jMi\in N,j\in M, and cj^()\hat{c_{j}}(\cdot) for jMj\in M, be the reported values and cost functions. The utility of buyer ii who is matched to some seller σ(i)\sigma(i) will be

ui=v^iσ(i)pi=iNv^iσ(i)jMc^j(Sj)iN,iiyijMzj.u_{i}=\hat{v}_{i\sigma(i)}-p_{i}=\sum_{i^{\prime}\in N}\hat{v}_{i^{\prime}\sigma(i^{\prime})}-\sum_{j\in M}\hat{c}_{j}(S_{j})-\sum_{i^{\prime}\in N,i^{\prime}\neq i}y_{i^{\prime}}-\sum_{j\in M}z_{j}.

The utility of seller jj will be

uj=wjcj(Sj)=iNv^iσ(i)jMc^j(Sj)iNyijM,jjzj.u_{j}=w_{j}-c_{j}(S_{j})=\sum_{i\in N}\hat{v}_{i\sigma(i)}-\sum_{j^{\prime}\in M}\hat{c}_{j^{\prime}}(S_{j^{\prime}})-\sum_{i\in N}y_{i}-\sum_{j^{\prime}\in M,j^{\prime}\neq j}z_{j^{\prime}}.

In both cases we get that the utility is the welfare shifted by a constant term that depends on the yy and zz vectors. Since the mechanism will pick the allocation that maximizes welfare, we get that it is in the best interest of the agent to reveal her true information.

Efficiency follows trivially by the fact that we output the welfare-maximizing allocation of welfare-alg.

To prove the mechanism is ex-ante IR we show that the expected utility of any buyer and seller is non-negative. The expected utility of a buyer ii is

𝔼[ui]=𝔼[iNviσ(i)jMcj(Sj)iN,iiyijMzj],\mathbb{E}[u_{i}]=\mathbb{E}\left[\sum_{i^{\prime}\in N}v_{i^{\prime}\sigma(i^{\prime})}-\sum_{j\in M}c_{j}(S_{j})-\sum_{i^{\prime}\in N,i^{\prime}\neq i}y_{i^{\prime}}-\sum_{j\in M}z_{j}\right],

where the σ()\sigma(\cdot) and Sj,j=1,2,,mS_{j},j=1,2,\ldots,m, represent the optimal assignment for each realization. If we call WW the expected optimal welfare, we get

𝔼[ui]=WiN,iiyijMzj=WW+yi=yi0.\mathbb{E}[u_{i}]=W-\sum_{i^{\prime}\in N,i^{\prime}\neq i}y_{i^{\prime}}-\sum_{j\in M}z_{j}=W-W+y_{i}=y_{i}\geq 0.

Similarly for a seller jj we get

𝔼[uj]=𝔼[iNviσ(i)jMcj(Sj)iNyijM,jjzj]=zj0.\mathbb{E}[u_{j}]=\mathbb{E}\left[\sum_{i\in N}v_{i\sigma(i)}-\sum_{j^{\prime}\in M}c_{j^{\prime}}(S_{j^{\prime}})-\sum_{i\in N}y_{i}-\sum_{j^{\prime}\in M,j^{\prime}\neq j}z_{j^{\prime}}\right]=z_{j}\geq 0.

This proves ex-ante IR.

Ex-ante weakly BB follows from the fact that the expected sum of utilities equals the produced welfare:

𝔼[iNui+jMuj]=iN𝔼[ui]+jM𝔼[uj]=iNyi+jMzj=W.\mathbb{E}\left[\sum_{i\in N}u_{i}+\sum_{j\in M}u_{j}\right]=\sum_{i\in N}\mathbb{E}[u_{i}]+\sum_{j\in M}\mathbb{E}[u_{j}]=\sum_{i\in N}y_{i}+\sum_{j\in M}z_{j}=W.

This implies the total money paid out to sellers is in expectation equal to the total money extracted from the buyers.

Switching to the ex-ante α\alpha-core property, as we saw in the previous paragraph, our mechanism guarantees expected utility yiy_{i} to each buyer iNi\in N and expected utility zjz_{j} to each seller jMj\in M. For every set SS that contains buyers SNS^{N} and sellers SMS^{M}, let Wr(S)W^{r}(S) be the welfare the set can produce under realization rr. Then

α(iSNyir+jSMzjr)Wr(S),\alpha\left(\sum_{i\in S^{N}}y^{r}_{i}+\sum_{j\in S^{M}}z^{r}_{j}\right)\geq W^{r}(S),

by the fact that vectors yr,zry^{r},z^{r} are given by core-alg. Taking the weighted average of this inequality with respect to the probabilities qrq_{r} shows that

α(iSNyi+jSMzj)𝔼[Wr(S)],\alpha\left(\sum_{i\in S^{N}}y_{i}+\sum_{j\in S^{M}}z_{j}\right)\geq\mathbb{E}[W^{r}(S)],

which proves the ex-ante α\alpha-core property. ∎

The second step of Mechanism 1 might not be feasible in polynomial time. We now modify our mechanism to make it run in polynomial time (assuming welfare-alg and core-alg run in polynomial time) as follows. Define Mechanism 2 to be exactly like Mechanism 1, however we replace the second step with the following:

  • Pre-processing: Sample a set CC of c=n2(n+m)5/ϵ3c=n^{2}(n+m)^{5}/\epsilon^{3} realizations of agent types, for some small parameter ϵ>0\epsilon>0. For every sample rCr\in C, compute buyer utilities yir,iN,y_{i}^{r},i\in N, and seller utilities zjr,jMz_{j}^{r},j\in M, that are non-negative, in the α\alpha-core, and sum up to the optimal welfare using core-alg. Let

    yi=(rCyirc)+ϵ(n+m)2,y_{i}=\left(\sum_{r\in C}\frac{y_{i}^{r}}{c}\right)+\frac{\epsilon}{(n+m)^{2}},

    be the slightly shifted average utility of buyer ii over all sampled realizations and let

    zj=(rCzjrc)+ϵ(n+m)2,z_{j}=\left(\sum_{r\in C}\frac{z_{j}^{r}}{c}\right)+\frac{\epsilon}{(n+m)^{2}},

    be the slightly shifted average utility of seller jj over all sampled realizations.

Theorem 3.2

For arbitrarily small ϵ>0\epsilon>0, Mechanism 2 runs in time polynomial in n,mn,m, and 1/ϵ1/\epsilon, and is efficient, DSIC, and, with probability 1ϵ1-\epsilon, ex-ante weakly BB, ϵ\epsilon ex-ante IR, and ex-ante in the α(1+δ)\alpha(1+\delta)-core, where δ=2ϵ/W\delta=2\epsilon/W and WW is the expected optimal welfare.

Proof

It’s not hard to see that the mechanism runs in polynomial time, assuming welfare-alg and core-alg run in polynomial time. Computing the allocation is a single invocation of welfare-alg, computing the yi,zjy_{i},z_{j} variables requires a polynomial number of invocations of core-alg and computing the prices and wages are simple calculations.

Efficiency and the DSIC property follow exactly as in Theorem 3.1. To argue about the remaining properties, we first study the values of yi,iNy_{i},i\in N, zj,jMz_{j},j\in M, that we use in the mechanism. Let yi,iNy_{i}^{*},i\in N, zj,jMz_{j}^{*},j\in M, be the corresponding values that are produced in Mechanism 1, i.e., the expected values over all realizations. Since core-alg is deterministic, these values are fixed and well-defined. We claim that

yi[yi,yi+2ϵ(n+m)2] with probability at least 1ϵn+m.y_{i}\in\left[y_{i}^{*},y_{i}^{*}+\frac{2\epsilon}{(n+m)^{2}}\right]\text{ with probability at least }1-\frac{\epsilon}{n+m}.

Focus on a single yiy_{i} and let YY be a random variable equal to the average of yiry_{i}^{r} over all samples rCr\in C. Since all values are in [0,1][0,1], welfare is at most nn and, hence, so is every yiry_{i}^{r}. This implies the variance of any such sample is at most n2n^{2}, and the variance of their mean, YY, is at most n2/cn^{2}/c. Then, Chebyshev’s inequality:

Pr[|Yyi|knc]1k2,\text{Pr}\left[\left|Y-y_{i}^{*}\right|\geq k\frac{n}{\sqrt{c}}\right]\leq\frac{1}{k^{2}},

for k=(n+m)/ϵk=\sqrt{(n+m)/\epsilon} and cc as in Mechanism 2 gives us Pr[|Yyi|ϵ(n+m)2]ϵn+m\text{Pr}\left[\left|Y-y_{i}^{*}\right|\geq\frac{\epsilon}{(n+m)^{2}}\right]\leq\frac{\epsilon}{n+m}. Observe that our yiy_{i} is simply YY shifted by ϵ/(n+m)2\epsilon/(n+m)^{2}, which proves our original claim. The calculation for each zjz_{j} is identical. Now, we may observe that the probability that all yiy_{i} and zjz_{j} satisfy the condition in our claim is at least (1ϵn+m)n+m1ϵ\left(1-\frac{\epsilon}{n+m}\right)^{n+m}\geq 1-\epsilon.

At this point, given the fact that with high probability every yiy_{i} and zjz_{j} are at least (and very close to) the corresponding yiy_{i}^{*} and zjz_{j}^{*}, we may argue about weakly BB, IR, and the core. We first observe that, with WW the expected optimal welfare, we get

𝔼[iNpijMwj]\displaystyle\mathbb{E}\left[\sum_{i\in N}p_{i}-\sum_{j\in M}w_{j}\right] =𝔼[(n+m1)(jMcj(Sj)iNviσ(i)+iNyi+jMzj)]\displaystyle=\mathbb{E}\left[(n+m-1)\left(\sum_{j\in M}c_{j}(S_{j})-\sum_{i\in N}v_{i\sigma(i)}+\sum_{i\in N}y_{i}+\sum_{j\in M}z_{j}\right)\right]
(nm+1)(jM𝔼[cj(Sj)]iN𝔼[viσ(i)]+iNyi+jMzj)\displaystyle\geq(n-m+1)\left(\sum_{j\in M}\mathbb{E}[c_{j}(S_{j})]-\sum_{i\in N}\mathbb{E}[v_{i\sigma(i)}]+\sum_{i\in N}y_{i}^{*}+\sum_{j\in M}z_{j}^{*}\right)
=(nm+1)(W+W)=0,\displaystyle=(n-m+1)(-W+W)=0,

where the σ()\sigma(\cdot) and Sj,j=1,2,,mS_{j},j=1,2,\ldots,m, represent the optimal assignment for each realization. This proves the mechanism is WBB.

We now focus on the expected utility of buyer ii. We get

𝔼[ui]\displaystyle\mathbb{E}[u_{i}] =𝔼[jMiSjvijjMcj(Sj)iN,iiyijMzj]\displaystyle=\mathbb{E}\left[\sum_{j\in M}\sum_{i^{\prime}\in S_{j}}v_{i^{\prime}j}-\sum_{j\in M}c_{j}(S_{j})-\sum_{i^{\prime}\in N,i^{\prime}\neq i}y_{i^{\prime}}-\sum_{j\in M}z_{j}\right]
=WiN,iiyijMzj\displaystyle=W-\sum_{i^{\prime}\in N,i^{\prime}\neq i}y_{i^{\prime}}-\sum_{j\in M}z_{j}
WiN,ii(yi+2ϵ(n+m)2)jM(zj+2ϵ(n+m)2)\displaystyle\geq W-\sum_{i^{\prime}\in N,i^{\prime}\neq i}\left(y_{i^{\prime}}^{*}+\frac{2\epsilon}{(n+m)^{2}}\right)-\sum_{j\in M}\left(z_{j}^{*}+\frac{2\epsilon}{(n+m)^{2}}\right)
WW+yi2ϵn+myi2ϵn+mϵ.\displaystyle\geq W-W+y_{i}^{*}-\frac{2\epsilon}{n+m}\geq y_{i}^{*}-\frac{2\epsilon}{n+m}\geq-\epsilon.

The calculation for each seller jj is similar. This proves the mechanism is ϵ\epsilon ex-ante IR.

We finally focus on the core property. The utilities (y,z)(y^{*},z^{*}) are in the α\alpha-core, as established in Theorem 3.1. As we saw in the previous paragraph, the expected utility of a buyer ii is at least yi2ϵ/(n+m)y_{i}^{*}-2\epsilon/(n+m) and the expected utility of each seller jj is at least zj2ϵ/(n+m)z_{j}^{*}-2\epsilon/(n+m). Then, for the total utility of any subset of buyers SNS^{N} and any subset of sellers SMS^{M} who generate expected welfare W(SN,SM)W\left(S^{N},S^{M}\right), we get:

U(SN,SM)\displaystyle U\left(S^{N},S^{M}\right) =iSN𝔼[ui]+jSM𝔼[uj]\displaystyle=\sum_{i\in S^{N}}\mathbb{E}[u_{i}]+\sum_{j\in S^{M}}\mathbb{E}[u_{j}]
iSN(yi2ϵn+m)+jSM(zj2ϵn+m)\displaystyle\geq\sum_{i\in S^{N}}\left(y_{i}^{*}-\frac{2\epsilon}{n+m}\right)+\sum_{j\in S^{M}}\left(z_{j}^{*}-\frac{2\epsilon}{n+m}\right)
iSNyi+jSMzj2ϵW(SN,SM)α2ϵ.\displaystyle\geq\sum_{i\in S^{N}}y_{i}^{*}+\sum_{j\in S^{M}}z_{j}^{*}-2\epsilon\geq\frac{W\left(S^{N},S^{M}\right)}{\alpha}-2\epsilon.

Rearranging we get:

W(SN,SM)α[U(SN,SM)+2ϵ]α[U(SN,SM)+2ϵU(SN,SM)W]α(1+δ)U(SN,SM),\displaystyle W\left(S^{N},S^{M}\right)\leq\alpha\left[U\left(S^{N},S^{M}\right)+2\epsilon\right]\leq\alpha\left[U\left(S^{N},S^{M}\right)+2\epsilon\frac{U\left(S^{N},S^{M}\right)}{W}\right]\leq\alpha(1+\delta)U\left(S^{N},S^{M}\right),

where δ\delta is as in the theorem statement. The second inequality follows by the fact that any subset of agents are offered expected utilities at most the expected optimal welfare which, in turn, follows by weakly BB of the mechanism. This completes our proof of the core property and the theorem. ∎

3.1 Welfare Maximization and Core Computation Algorithms

In this section we further discuss welfare-alg and core-alg. We begin with welfare-alg and note that in Mechanism 1, for which no run-time guarantees are provided, welfare-alg is simply exhaustive search and is available in all models. For Mechanism 2, welfare-alg must be an algorithm that solves the optimization problem of assigning buyers to sellers in polynomial time. This can be done in several models (as we explain in upcoming sections), such as the case with negative GS cost functions and the case with a single uncapacitated seller with a submodular cost function.

Our core computation algorithm, core-alg, relies on the following primal-dual pair of linear programs. The primal:

maximize jMSN,|S|kjxjS(iSvijcj(S))\displaystyle\sum_{j\in M}\sum_{S\subseteq N,|S|\leq k_{j}}x_{jS}\left(\sum_{i\in S}v_{ij}-c_{j}(S)\right)
subject to SNxjS1\displaystyle\sum_{S\subseteq N}x_{jS}\leq 1 jM\displaystyle\forall j\in M
jMSixjS1\displaystyle\sum_{j\in M}\sum_{S\ni i}x_{jS}\leq 1 iN\displaystyle\forall i\in N
xjS0\displaystyle x_{jS}\geq 0 jM,SN\displaystyle\forall j\in M,\forall S\subseteq N

and the dual:

minimize iNyi+jMzj\displaystyle\sum_{i\in N}y_{i}+\sum_{j\in M}z_{j}
subject to iSyi+zjiSvijcj(S)\displaystyle\sum_{i\in S}y_{i}+z_{j}\geq\sum_{i\in S}v_{ij}-c_{j}(S) jM,SN,|S|kj\displaystyle\forall j\in M,\forall S\subseteq N,|S|\leq k_{j}
yi0\displaystyle y_{i}\geq 0 iN\displaystyle\forall i\in N
zj0\displaystyle z_{j}\geq 0 jM\displaystyle\forall j\in M

Let WW^{*} be the optimal value of primal and let WW be the optimal value among integral solutions to primal. The utilities that core-alg outputs are precisely the dual variables scaled by W/WW/W^{*}. The following theorem shows that these values are indeed in the approximate core.

Theorem 3.3

Let (y,z)(y^{*},z^{*}) be the solution to dual and let (y,z)=(y,z)W/W(y,z)=(y^{*},z^{*})W/W^{*}, where WW^{*} is the optimal value for primal and WW the value of the integral optimal solution to primal. Then (y,z)(y,z) gives utilities yiy_{i} for the buyers iNi\in N and utilities zjz_{j} for the sellers jMj\in M that are in the α\alpha-approximate core, with α\alpha the integrality gap of primal.

Proof

We get

iNyi+jMzj=iNyiWW+jMzjWW=WW(iNyi+jMzj)=W,\sum_{i\in N}y_{i}+\sum_{j\in M}z_{j}=\sum_{i\in N}y_{i}^{*}\frac{W}{W^{*}}+\sum_{j\in M}z_{j}^{*}\frac{W}{W^{*}}=\frac{W}{W^{*}}\left(\sum_{i\in N}y_{i}^{*}+\sum_{j\in M}z_{j}^{*}\right)=W,

which shows the sum of the agents’ utilities equals the welfare they produce in the optimal assignment. This shows the first property of the core.

Next, we argue that there exists no set of agents who can form a coalition and produce welfare higher than α\alpha times the sum of their utilities. We first observe that it suffices to focus on coalitions with a single seller and several buyers by proving that if no such coalition (with one seller) can improve their welfare, then no other coalition (with multiple sellers) can improve their welfare either. More precisely, we argue about the contrapositive: if there exists a coalition with multiple sellers that improves its members’ welfare, then there also exists a coalition with a single seller that improves its members’ welfare. To see this suppose there is a coalition with multiple sellers 1,2,,l1,2,\ldots,l, and consider the optimal assignment of buyers in the coalition to these sellers, in which SjS_{j} is the set of buyers assigned to seller jj. Define the improvement of the coalition as

Δ=j=1,2,,l(iSjvijcj(Sj))αj=1,2,,l(iSjyi+zj),\Delta=\sum_{j=1,2,\ldots,l}\left(\sum_{i\in S_{j}}v_{ij}-c_{j}(S_{j})\right)-\alpha\sum_{j=1,2,\ldots,l}\left(\sum_{i\in S_{j}}y_{i}+z_{j}\right),

Also define the improvement around each seller as

Δj=(iSjvijcj(Sj))α(zj+iSjyi).\Delta_{j}=\left(\sum_{i\in S_{j}}v_{ij}-c_{j}(S_{j})\right)-\alpha\left(z_{j}+\sum_{i\in S_{j}}y_{i}\right).

Clearly Δ=j=1,2,,lΔj\Delta=\sum_{j=1,2,\ldots,l}\Delta_{j}, which implies that if Δ>0\Delta>0, then there also exists some Δj>0\Delta_{j}>0, which in turn implies our statement that, if there exists an improving coalition with multiple sellers, then there also exists an improving coalition with one seller.

Hence, at this point, it suffices to prove that there does not exist a coalition with one seller that can produce welfare higher than α\alpha times the sum of the agents’ utilities in our solution. Let this coalition be seller jj and buyers SS. We get:

α(iSyi+zj)=αWW(iSyi+zj)αWW(iSvijcj(S))iSvijcj(S),\alpha\left(\sum_{i\in S}y_{i}+z_{j}\right)=\alpha\frac{W^{*}}{W}\left(\sum_{i\in S}y_{i}^{*}+z_{j}^{*}\right)\geq\alpha\frac{W^{*}}{W}\left(\sum_{i\in S}v_{ij}-c_{j}(S)\right)\geq\sum_{i\in S}v_{ij}-c_{j}(S),

where the first inequality follows from the first dual constraint and the second inequality follows by the fact that W/WW/W^{*} is at most the integrality gap α\alpha. This proves the second property of the α\alpha-core. ∎

With respect to running time considerations, we need to be able to solve dual in polynomial time.

For the case where we only have one submodular seller we can show that the integrality gap of primal is 1 and we can solve the primal optimally in polynomial time.

This also holds when we have multiple sellers with NGS cost functions. These functions, which are strictly more general than linear functions, represent the limit of tractability for solving primal optimally over the space of integral solutions. Once we leave the space of NGS functions, we have to rely on approximately efficient mechanisms to achieve our results.

This implies that for these two cases, we can utilize Mechanism 2 to achieve in polynomial time, a mechanism that is efficient, DSIC, and, with probability 1ϵ1-\epsilon, ex-ante weakly BB, ϵ\epsilon ex-ante IR, and ex-ante in the (1+δ)(1+\delta)-core, where δ=2ϵ/W\delta=2\epsilon/W and WW is the expected optimal welfare. Please refer to 0.A.2 and 0.A.3 for more details.

4 Approximately Efficient Mechanism

In this section, we present a polynomial time mechanism that addresses the case of intractable models, such as multiple submodular sellers. Our mechanism will achieve approximate efficiency and will be in the approximate core. The mechanism requires access to an algorithm that computes a convex combination of integral solutions that is equal to 1/γ1/\gamma times the fractional optimal solution of the primal of Section 3.1, for some given γ\gamma. We discuss this algorithm, which we call approx-welfare-alg, further in Section 4.1. We now present the mechanism’s specifics.

Mechanism 3. Specifics:

  • Allocation Rule: Given the reported values vijv_{ij} for iN,jMi\in N,j\in M, and cost functions cj:2Nc_{j}:2^{N}\to\mathbb{R} for jMj\in M, let xx^{*} be the optimal solution to the primal linear program in Section 3.1. Our allocation is the lottery xx that is output by approx-welfare-alg.

  • Pre-processing: Sample a set CC of c=n2(n+m)5/ϵ3c=n^{2}(n+m)^{5}/\epsilon^{3} realizations of agent types, for some small parameter ϵ>0\epsilon>0. For every sample rCr\in C, compute buyer utilities yir,iN,y_{i}^{r},i\in N, and seller utilities zjr,jMz_{j}^{r},j\in M, by solving the dual of Section 3.1. Let yi=(rCyirc)+ϵ(n+m)2y_{i}=\left(\sum_{r\in C}\frac{y_{i}^{r}}{c}\right)+\frac{\epsilon}{(n+m)^{2}}, be the slightly shifted average utility of buyer ii over all sampled realizations and let zj=(rCzjrc)+ϵ(n+m)2z_{j}=\left(\sum_{r\in C}\frac{z_{j}^{r}}{c}\right)+\frac{\epsilon}{(n+m)^{2}}, be the slightly shifted average utility of seller jj over all sampled realizations. Also, define

    vi(x)=jM,SixjSvij and cj(x)=SNxjScj(S),v_{i}(x^{*})=\sum_{j\in M,S\ni i}x^{*}_{jS}v_{ij}\text{~~~~and~~~~}c_{j}(x^{*})=\sum_{S\subseteq N}x^{*}_{jS}c_{j}(S),

    which can be interpreted as the extracted value of buyer ii and the incurred cost of seller jj under fractional solution xx^{*}.

  • Buyer prices: The price charged to buyer ii is

    pi=1γ(jMcj(x)iN,iivi(x)+iN,iiyi+jMzj).p_{i}=\frac{1}{\gamma}\left(\sum_{j\in M}c_{j}(x^{*})-\sum_{i^{\prime}\in N,i^{\prime}\neq i}v_{i}(x^{*})+\sum_{i^{\prime}\in N,i^{\prime}\neq i}y_{i^{\prime}}+\sum_{j\in M}z_{j}\right).
  • Seller wages: The wage paid to seller jj is

    wj=1γ(iNvi(x)jM,jjcj(x)iNyijM,jjzj).w_{j}=\frac{1}{\gamma}\left(\sum_{i\in N}v_{i}(x^{*})-\sum_{j^{\prime}\in M,j^{\prime}\neq j}c_{j^{\prime}}(x^{*})-\sum_{i\in N}y_{i}-\sum_{j^{\prime}\in M,j^{\prime}\neq j}z_{j^{\prime}}\right).
Theorem 4.1

For arbitrarily small ϵ>0\epsilon>0, Mechanism 3 runs in time polynomial in n,mn,m, and 1/ϵ1/\epsilon, and is γ\gamma-efficient, DSIC, and, with probability 1ϵ1-\epsilon, ex-ante weakly BB, ϵ\epsilon ex-ante IR, and ex-ante in the γ(1+δ)\gamma(1+\delta)-core, where δ=2ϵ/W\delta=2\epsilon/W and WW is the expected welfare of the mechanism.

Proof

It is clear to see that the mechanism runs in polynomial time since it makes only polynomially many invocations to algorithms with polynomial running times. The fact that the mechanism is (in expectation) γ\gamma-efficient follows directly by the fact that the output is a lottery over integral solutions that is precisely a 1/γ1/\gamma approximation to the fractional optimal solution of primal.

The (expected over lottery realizations) utility of a buyer iNi\in N is

ui=jM,SixjSvijpi=1γvi(x)pi=1γ(W(x)+iN,iiyi+jMzj),u_{i}=\sum_{j\in M,S\ni i}x_{jS}v_{ij}-p_{i}=\frac{1}{\gamma}v_{i}(x)-p_{i}=\frac{1}{\gamma}\left(W(x)+\sum_{i^{\prime}\in N,i^{\prime}\neq i}y_{i^{\prime}}+\sum_{j\in M}z_{j}\right),

where W(x)W(x) is the objective of primal. This is precisely the expected social welfare plus some constant terms scaled by 1/γ1/\gamma. Then, it is in the interest of the buyer to reveal her true vijv_{ij} values so that the mechanism will maximize her utility. Similarly, for a seller jj we get

uj=wjSNxjScj(S)=1γ(W(x)+iNyi+jM,jjzj),u_{j}=w_{j}-\sum_{S\subseteq N}x_{jS}c_{j}(S)=\frac{1}{\gamma}\left(W(x)+\sum_{i\in N}y_{i}+\sum_{j^{\prime}\in M,j^{\prime}\neq j}z_{j^{\prime}}\right),

which proves truth-telling is an optimal strategy for each seller as well. Then we get that the mechanism is DSIC.

Now, let yi,iNy_{i}^{*},i\in N, and zj,jMz_{j}^{*},j\in M, be the average utilities given by dual over all possible type realizations. Similarly to the proof of Theorem 3.2, we can get that, with probability at least 1ϵ1-\epsilon, every

yi[yi,yi+2ϵ(n+m)2]y_{i}\in\left[y_{i}^{*},y_{i}^{*}+\frac{2\epsilon}{(n+m)^{2}}\right]

and every

zj[zj,zj+2ϵ(n+m)2].z_{j}\in\left[z_{j}^{*},z_{j}^{*}+\frac{2\epsilon}{(n+m)^{2}}\right].

Now let WW^{*} be the expected optimal value of primal and dual. Then, we get that with probability at least 1ϵ1-\epsilon:

𝔼[iNpijMwj]\displaystyle\mathbb{E}\left[\sum_{i\in N}p_{i}-\sum_{j\in M}w_{j}\right] =1γ(n+m1)(𝔼[jMcj(x)iNvi(x)]+iNyi+jMzj)\displaystyle=\frac{1}{\gamma}(n+m-1)\left(\mathbb{E}\left[\sum_{j\in M}c_{j}(x^{*})-\sum_{i\in N}v_{i}(x^{*})\right]+\sum_{i\in N}y_{i}+\sum_{j\in M}z_{j}\right)
1γ(n+m1)(𝔼[jMcj(x)iNvi(x)]+iNyi+jMzj)\displaystyle\geq\frac{1}{\gamma}(n+m-1)\left(\mathbb{E}\left[\sum_{j\in M}c_{j}(x^{*})-\sum_{i\in N}v_{i}(x^{*})\right]+\sum_{i\in N}y^{*}_{i}+\sum_{j\in M}z^{*}_{j}\right)
=(nm+1)(W+W)=0,\displaystyle=(n-m+1)(-W+W)=0,

which proves weakly BB. We now focus on the expected utility of buyer ii. We get

𝔼[ui]\displaystyle\mathbb{E}[u_{i}] =𝔼[vi(x)1γ(iN,iivi(x)jMcj(x)iN,iiyijMzj)]\displaystyle=\mathbb{E}\left[v_{i}(x)-\frac{1}{\gamma}\left(\sum_{i^{\prime}\in N,i^{\prime}\neq i}v_{i^{\prime}}(x^{*})-\sum_{j\in M}c_{j}(x^{*})-\sum_{i^{\prime}\in N,i^{\prime}\neq i}y_{i^{\prime}}-\sum_{j\in M}z_{j}\right)\right]
=𝔼[1γ(iNvi(x)jMcj(x)iN,iiyijMzj)]\displaystyle=\mathbb{E}\left[\frac{1}{\gamma}\left(\sum_{i\in N}v_{i}(x^{*})-\sum_{j\in M}c_{j}(x^{*})-\sum_{i^{\prime}\in N,i\neq i}y_{i^{\prime}}-\sum_{j\in M}z_{j}\right)\right]
=1γ(WiN,iiyijMzj)\displaystyle=\frac{1}{\gamma}\left(W^{*}-\sum_{i^{\prime}\in N,i\neq i}y_{i^{\prime}}-\sum_{j\in M}z_{j}\right)
1γ[WiN,ii(yi+2ϵ(n+m)2)jM(zj+2ϵ(n+m)2)]\displaystyle\geq\frac{1}{\gamma}\left[W^{*}-\sum_{i^{\prime}\in N,i^{\prime}\neq i}\left(y_{i^{\prime}}^{*}+\frac{2\epsilon}{(n+m)^{2}}\right)-\sum_{j\in M}\left(z_{j}^{*}+\frac{2\epsilon}{(n+m)^{2}}\right)\right]
=1γ(WW+yi2ϵn+m)ϵ.\displaystyle=\frac{1}{\gamma}\left(W^{*}-W^{*}+y_{i}^{*}-\frac{2\epsilon}{n+m}\right)\geq-\epsilon.

The calculation for each seller jj is similar. This proves the mechanism is ϵ\epsilon ex-ante IR.

We finally focus on the core property. For given subsets of buyers and sellers SNS^{N} and SMS^{M}, let W(SN,SM)W\left(S^{N},S^{M}\right) be the welfare they can produce. We get

U(SN,SM)\displaystyle U(S^{N},S^{M}) =iSN𝔼[ui]+jSM𝔼[uj]\displaystyle=\sum_{i\in S^{N}}\mathbb{E}[u_{i}]+\sum_{j\in S^{M}}\mathbb{E}[u_{j}]
1γ(iSNyi+jSMzj2ϵ)\displaystyle\geq\frac{1}{\gamma}\left(\sum_{i\in S^{N}}y_{i}^{*}+\sum_{j\in S^{M}}z_{j}^{*}-2\epsilon\right)
W(SN,SM)γ2ϵ.\displaystyle\geq\frac{W\left(S^{N},S^{M}\right)}{\gamma}-2\epsilon.

Rearranging we get:

W(SN,SM)γ[U(SN,SM)+2ϵ]γ[U(SN,SM)+2ϵU(SN,SM)W]γ(1+δ)U(SN,SM),\displaystyle W\left(S^{N},S^{M}\right)\leq\gamma\left[U\left(S^{N},S^{M}\right)+2\epsilon\right]\leq\gamma\left[U\left(S^{N},S^{M}\right)+2\epsilon\frac{U\left(S^{N},S^{M}\right)}{W}\right]\leq\gamma(1+\delta)U\left(S^{N},S^{M}\right),

where δ\delta is as in the theorem statement. The second inequality follows by the fact that any subset of agents are offered expected utilities at most the expected optimal welfare which, in turn, follows by weakly BB property of the mechanism. This completes our proof of the core property and the theorem. ∎

4.1 Approximate Welfare Algorithm

In this section, we present approx-welfare-alg, which outputs a convex combination of integral solutions that is precisely x/γx^{*}/\gamma with xx^{*} the fractional optimal solution to primal. We study two different settings. One is for general cost functions when we treat the capacity constraint of sellers as a constant. The other setting is when the cost functions are super additive.

General Cost Functions with Constant Capacity Constraints

In this section we study the case where sellers can have general cost functions and the capacity of all the sellers is a constant CC. One can easily extend our result to the case where these constants are different for different sellers, however, for ease of exposition, we assume the same capacity constraint for all sellers.

Our approximate welfare algorithms consists of two parts. First we need to argue that we can find an optimal feasible solution to primal linear program in Section 3.1. And next we need to argue that we can in fact assign the buyers to sellers in a way that the assignment is a convex combination of integral solutions such that the expected assignment is exactly equal to 1/γ1/\gamma times the fractional optimal solution for some constant γ\gamma. This equality is important, since otherwise, the proof of DSIC property in Theorem 4.1 does not go through.

To optimally solve the primal, we first explain how we can design a separation oracle for the dual. This is not too hard, since for each seller jMj\in M, given the values of {y}i,{z}j\{y\}_{i},\{z\}_{j}, we have to be be able to check the following constraint in polynomial time

iSyi+zjiSvijcj(S)SN,|S|C.\sum_{i\in S}y_{i}+z_{j}\geq\sum_{i\in S}v_{ij}-c_{j}(S)~~~~~~~~~~~~\forall S\subseteq N,|S|\leq C.

However, since CC is just a constant, we can just enumerate over all such subsets and check them one by one. This allows us to solve the primal optimally to achieve solution xx^{*}. Next we will show how to round this optimal fractional solution into an integral solution, such that for each jMj\in M and SNS\subseteq N, the probability that seller jj is assigned set SS is exactly xj,S/γx^{*}_{j,S}/\gamma for γ=C+1\gamma=C+1.

To do this, first pick an arbitrary order for all pairs (j,S)(j,S) where jMj\in M and SNS\subseteq N and call them (j1,S1),(j2,S2),,(jk,Sk)(j_{1},S_{1}),(j_{2},S_{2}),\ldots,(j_{k},S_{k}) where kk is the total number of such pairs. Then run the following rounding algorithm.

Algorithm 1 Rounding Algorithm
1: input: An optimal solution xx^{*} to primal.
2: output: A random integral and feasible assignment xx such that 𝔼[xj,S]=xj,Sγ+1\mathbb{E}[x_{j,S}]=\frac{x^{*}_{j,S}}{\gamma+1} for all jMj\in M and SNS\subseteq N.
3: For i=1…k do:
4:If none of the buyers in SiS_{i} have been assigned to a seller, and, no set of buyers have been assigned to seller jij_{i} then:
5:   Define set RR as follows
R={l|l<i,(SiSl or jl=ji)}R=\{l|l<i,(S_{i}\cap S_{l}\neq\emptyset\text{ or }j_{l}=j_{i})\}
6:   Assign buyers in SiS_{i} to seller jij_{i} with probability xji,Siγ(1lRxjl,Sl/γ)\frac{x_{j_{i},S_{i}}}{\gamma(1-\sum_{l\in R}x_{j_{l},S_{l}}/\gamma)}.
7: End

We have the following result.

Theorem 4.2

Given an optimal solution xx^{*} to primal, Algorithm 1 will generate a random integral assignment xx, such that

𝔼[xj,S]=1C+1xj,SjM,SN.\mathbb{E}[x_{j,S}]=\frac{1}{C+1}x^{*}_{j,S}~~~~~~~~\forall j\in M,S\subseteq N.
Proof

To prove this, we use induction. Note that for i=1i=1, the algorithm will assign the set S1S_{1} to seller j1j_{1} with probability xj1,S1/γx_{j_{1},S_{1}}/\gamma. Now suppose this is true for all i<ki<k. We will show that the algorithm will also assign set SkS_{k} to seller jkj_{k} with probability xjk,Skγ\frac{x^{*}_{j_{k},S_{k}}}{\gamma}. By chain rule, and definition of Algorithm 1, we have

[Sk gets assigned to jk]=\displaystyle\mathbb{P}[S_{k}\text{ gets assigned to }j_{k}]= [buyers in Sk or the seller jk are not assigned before iteration k]×\displaystyle\mathbb{P}[\text{buyers in }S_{k}\text{ or the seller }j_{k}\text{ are not assigned before iteration }k]\times
xji,Siγ(1lRxjl,Sl/γ).\displaystyle\frac{x^{*}_{j_{i},S_{i}}}{\gamma(1-\sum_{l\in R}x^{*}_{j_{l},S_{l}}/\gamma)}.

Now by the induction hypothesis, we have

[buyers in Sk or the seller jk are not assigned before iteration k]=\displaystyle\mathbb{P}[\text{buyers in }S_{k}\text{ or the seller }j_{k}\text{ are not assigned before iteration }k]=
1[a buyer in Sk or the seller jk is assigned before iteration k]=(1lRxjl,Sl/γ).\displaystyle 1-\mathbb{P}[\text{a buyer in }S_{k}\text{ or the seller }j_{k}\text{ is assigned before iteration }k]=(1-\sum_{l\in R}x^{*}_{j_{l},S_{l}}/\gamma).

Now by putting these two equalities together, we have:

[Sk gets assigned to jk]=xji,Siγ(1lRxjl,Sl/γ)×(1lRxjl,Sl/γ)=xji,Siγ.\displaystyle\mathbb{P}[S_{k}\text{ gets assigned to }j_{k}]=\frac{x^{*}_{j_{i},S_{i}}}{\gamma(1-\sum_{l\in R}x^{*}_{j_{l},S_{l}}/\gamma)}\times(1-\sum_{l\in R}x^{*}_{j_{l},S_{l}}/\gamma)=\frac{x^{*}_{j_{i},S_{i}}}{\gamma}.

There is just one additional piece that we need to prove which is that for all iterations of Algorithm 1, lRxjl,Sl/γ1\sum_{l\in R}x_{j_{l},S_{l}}/\gamma\leq 1. To see this, note that by the first two constraints of primal, we have

SNxjS1\displaystyle\sum_{S\subseteq N}x^{*}_{jS}\leq 1 jM,\displaystyle\forall j\in M,
jNSixjS1\displaystyle\sum_{j\in N}\sum_{S\ni i}x^{*}_{jS}\leq 1 iN.\displaystyle\forall i\in N.

Also since each set SS has size at most CC, we must have for any jMj\in M and SNS\subseteq N

jMSN,SSxj,SC,\displaystyle\sum_{j^{\prime}\in M}\sum_{S^{\prime}\subseteq N,S^{\prime}\cap S\neq\emptyset}x^{*}_{j^{\prime},S^{\prime}}\leq C,
SNxj,S1.\displaystyle\sum_{S^{\prime}\subseteq N}x^{*}_{j,S^{\prime}}\leq 1.

Therefore, we must have

lRxjl,Sl/γjMSN,SSixj,S/γ+SNxji,S/γ(C+1)/γ1\sum_{l\in R}x_{j_{l},S_{l}}/\gamma\leq\sum_{j\in M}\sum_{S\subseteq N,S\cap S_{i}\neq\emptyset}x^{*}_{j,S}/\gamma+\sum_{S\subseteq N}x^{*}_{j_{i},S}/\gamma\leq(C+1)/\gamma\leq 1

and this finishes the proof. ∎

Super Additive Cost Functions

The idea in this section is to, similar to the previous section, first solve the primal linear program to obtain an optimal fractional solution xx^{*}. This is in general a hard problem, however, we assume in this section, that we are given access to a demand oracle for the problem. The demand oracle allows us to design a separation oracle for the dual, which in turn allows us to obtain xx^{*} in polynomial time. We will then use a method inspired by [15], that can round this fractional solution to an integral solution with a n\sqrt{n} approximation ratio in polynomial time. Finally, following the following lemma due to [23], we show how we can design an algorithm that round the solution of xx^{*} into a random integral solution xx, such that 𝔼[x]=x/n\mathbb{E}[x]=x^{*}/\sqrt{n}.

Lemma 1 (Lavi and Swamy [23])

Let xx^{*} be the fractional optimal solution to primal and γ\gamma be such that there exists a γ\gamma-approximation algorithm for the buyer to seller assignment problem and γ\gamma also bounds the integrality gap of primal. Then, there exists an algorithm which we call lottery-alg that can be used to obtain, in polynomial time, a convex combination of integral solutions that is equal to x/γx^{*}/\gamma, under the following conditions on the welfare generated by each seller jj and her matched buyers: a) it is a monotone function, b) it is 00 for an empty set of buyers, and c) we have a polynomial time demand oracle for it.

Note that the utility function of the sellers in our setting does not satisfy the conditions presented in 1. Namely, the welfare of each seller Vj(S)=iSvijcj(S)V_{j}(S)=\sum_{i\in S}v_{ij}-c_{j}(S) is not monotone. To fix this issue, we define another utility function for our sellers as follows,

V^j(S)=maxiSSSvijcj(S).\hat{V}_{j}(S)=\max_{S^{\prime}\subseteq S}\sum_{i\in S^{\prime}}v_{ij}-c_{j}(S^{\prime}).

Now we have the following result.

Theorem 4.3

For the case of super additive cost functions, using lottery-alg of Lemma 1, with V^j(S)\hat{V}_{j}(S) as the welfare functions, we can in polynomial time, achieve a random integral assignment xx such that x=x/γx=x^{*}/\gamma, with γ=O(n)\gamma=O(\sqrt{n}).

Proof

We first need to argue that lottery-alg can use the V^j(S)\hat{V}_{j}(S) functions, which means that each one of them: a) is monotone, b) is 00 for the empty set, and c) has a polynomial time demand oracle. Monotonicity and V^j()=0\hat{V}_{j}(\emptyset)=0 follow clearly by the definition of the function. The demand oracle is simply an algorithm that maximizes Vj()V_{j}(\cdot), which can be used to calculate V^j(.)\hat{V}_{j}(.) and can also be turned directly into a separation oracle for the dual. If solve the problem for V^(.)\hat{V}(.), we can easily turn that solution into a solution for our original welfare functions. To see that this works, let’s suppose, for the sake of contradiction, that some maximizer SS^{*} of Vj()V_{j}(\cdot) is not maximizing V^j()\hat{V}_{j}(\cdot). Then, there exists some SS^{\prime} that maximizes V^j()\hat{V}_{j}(\cdot) and is minimal, i.e., any subset of SS^{\prime} does not maximize V^j(S)\hat{V}_{j}(S). Then, by definition, we get V^j(S)=Vj(S)\hat{V}_{j}(S^{*})=V_{j}(S^{*}) and V^j(S)=Vj(S)\hat{V}_{j}(S^{\prime})=V_{j}(S^{\prime}). This leads to a contradiction since it must be the case that Vj(S)Vj(S)V_{j}(S^{*})\geq V_{j}(S^{\prime}) and V^j(S)>V^j(S)\hat{V}_{j}(S^{\prime})>\hat{V}_{j}(S^{*}).

Next, we need to prove that the solution produced by lottery-alg will be x/γx^{*}/\gamma. First note that a γ=O(n)\gamma=O(\sqrt{n}) algorithm for this assignment problem is given in [15]. We do not provide the method used in their paper here to save space. However, the main observation is that since the cost functions are super additive, if we break a set of buyers into two disjoint subsets, and randomly assign one of them to the seller, the expected cost incurred by the seller decreases. Therefore, we can take the solution xx^{*} and break it into several integral assignments while potentially breaking some subsets into smaller sets and then we randomly use one of those integral assignments.

We now show that xx^{*} is a fractional optimal solution to primal even if we replace the objective function coefficients Vj(S)V_{j}(S) with V^j(S)\hat{V}_{j}(S) to get primal-hat. Suppose this was not true and let xx^{\prime} be an optimal solution to primal-hat that achieves objective value W(x)>W(x)W(x^{\prime})>W(x^{*}) (note W(x)W(x^{*}) is the objective value both for primal and primal-hat). We may assume every positive xjSx^{\prime}_{jS} is such that Vj(S)=V^j(S)V_{j}(S)=\hat{V}_{j}(S), since, if this is not true, we can easily transform xx^{\prime} into this form (move all the value of xjSx^{\prime}_{jS} to the corresponding variable for the minimal set that achieves the same V^j(S)\hat{V}_{j}(S)). Now the objective value W(x)W(x^{\prime}) will be the same for both primal and primal-hat, which gives a contradiction to the optimality of xx^{*} for primal, since it would mean that W(x)W(x^{\prime}), which is larger than W(x)W(x^{*}), is the objective value for primal as well. This means we can use xx^{*} as the optimal fractional solution to give to lottery-alg, together with V^j()\hat{V}_{j}(\cdot) functions, and compute a lottery as in Lemma 1.

Finally, as we argued before, every integral solution in the lottery can be converted into an integral solution for the Vj()V_{j}(\cdot) functions with the same welfare. For each seller jj with assigned buyer set SS, we can compute SargmaxiSSSvijcj(S)S^{*}\in\arg\max_{S^{\prime}\subseteq S}\sum_{i\in S^{\prime}}v_{ij}-c_{j}(S^{\prime}) using our demand oracle. We then keep the players in SS^{*} assigned to the seller and remove the players in SSS\setminus S^{*}. ∎

References

Appendix 0.A Deferred Proofs

0.A.1 Proof of Proposition 1

We prove this by using a reduction from the set cover problem. Suppose we are given an instance of the set cover problem as follows:

  • Universe U={1,,n}U=\{1,\ldots,n\}

  • Collection of subsets 𝒮={S1,,Sm}\mathcal{S}=\{S_{1},\ldots,S_{m}\} such that S1S2Sm=US_{1}\cup S_{2}\cup\ldots\cup S_{m}=U.

We want to know what’s the minimum number of subsets from 𝒮\mathcal{S} that we can use to cover all the elements in UU. We reduce this problem to our two-sided market problem as follows. Suppose we have have nn buyers and mm sellers and the cost of serving any non-empty subset of buyers for any seller is exactly equal to one. We also assume for each buyer ii, the value of being served by seller jj is one if and only if iSji\in S_{j}. In this setting, it’s easy to see that the optimal value of gains from trade is exactly equal to nOPTn-\text{OPT} where OPT is the optimal solution to the set cover instance. This implies that we cannot design a polynomial time mechanism that is efficient for our setting even for the case when the cost functions are constant over non-empty subsets.

0.A.2 Single Seller

We now begin discussing the results our mechanism yields in various settings. We begin with the case of one seller. In this case, there is always a subset of buyers with size at most kjk_{j} that maximizes the produced welfare. This set SS maximizes the corresponding coefficient in the objective function (which is precisely the produced welfare) of the primal of Section 3.1 and setting the corresponding xjSx_{jS} variable to 11 is an integral optimal solution to the program. This suggests the integrality gap α\alpha is equal to 11 in the statement of Theorem 3.1.

Corollary 1

For the case of a single seller, Mechanism 1 is efficient, ex-ante weakly BB, DSIC, ex-ante IR, and ex-ante in the core.

We now argue that Mechanism 2 can be applied to the case of a single submodular uncapacitated seller. First of all, the argument of the previous paragraph remains: there is some welfare-maximizing subset of buyers and, similarly, the integrality gap will be 11. Now we need to show that we can run welfare-alg and core-alg in polynomial time. With regard to welfare-alg, our problem involves minimizing a (non-monotone) submodular function, which is known to be solvable in polynomial time. This also gives us the integral optimal of primal we need in core-alg. All that remains is to show we can solve the dual of Section 3.1 in polynomial time. This program has an exponential number of constraints, however, given a separation oracle, we can use the ellipsoid method to solve it in polynomial time. Checking the non-negativity constraints is trivial. We may rewrite the other constraint as

cj(S)vij+iSyi+zj0.c_{j}(S)-v_{ij}+\sum_{i\in S}y_{i}+z_{j}\geq 0.

With given yi,zjy_{i},z_{j} variables, the left hand side is a submodular function, which as argued above can be minimized in polynomial time. If this minimum value is non-negative then all constraints of this form are satisfied. We then get the following corollary.

Corollary 2

For the case of a single seller and for arbitrarily small ϵ>0\epsilon>0, Mechanism 2 runs in time polynomial in n,mn,m, and 1/ϵ1/\epsilon, and is efficient, DSIC, and, with probability 1ϵ1-\epsilon, ex-ante weakly BB, ϵ\epsilon ex-ante IR, and ex-ante in the (1+δ)(1+\delta)-core, where δ=2ϵ/W\delta=2\epsilon/W and WW is the expected optimal welfare.

0.A.3 Negative Gross Substitutes Cost Functions

We now study the case with capacitated NGS sellers. If the functions cj(.)c_{j}(.) are NGS, then primal can be reduced to maximizing a function satisfying the GS property subject to allocation constraints. It is known that in this case, the optimal solution to the linear program will be integral. This implies that again α=1\alpha=1. We then get the following corollary.

Corollary 3

For the case of capacitated NGS sellers, Mechanism 1 is efficient, ex-ante weakly BB, DSIC, ex-ante IR, and ex-ante in the core.

The solution to primal also gives us our polynomial time welfare-alg and our integral solution to primal for core-alg. Then, for Mechanism 2, it remains to give a separation oracle for dual. Rewriting the first family of constraints as we did in Section 0.A.2, we get an NGS function on the left hand side. As we observed, the function can be minimized in polynomial time (since it is equivalent to GS maximization). If the minimum is non-negative then all constraints of this form are satisfied. Checking the non-negativity constraints is trivial.

Corollary 4

For the case of capacitated NGS sellers and for arbitrarily small ϵ>0\epsilon>0, Mechanism 2 runs in time polynomial in n,mn,m, and 1/ϵ1/\epsilon, and is efficient, DSIC, and, with probability 1ϵ1-\epsilon, ex-ante WBB, ϵ\epsilon ex-ante IR, and ex-ante in the (1+δ)(1+\delta)-core, where δ=2ϵ/W\delta=2\epsilon/W and WW is the expected optimal welfare.