A Polynomial-time, Truthful, Individually Rational and Budget Balanced Ridesharing Mechanism
Proceedings of the Thirtieth International Joint Conference on Artificial Intelligence. Main Track. Pages 268-275.
https://doi.org/10.24963/ijcai.2021/38
Keywords
- Agent-based and Multi-agent Systems: Coordination and Cooperation
- Agent-based and Multi-agent Systems: Economic Paradigms, Auctions and Market-Based Systems
- Multidisciplinary Topics and Applications: Transportation
Abstract
Ridesharing has great potential to improve transportation efficiency while reducing congestion and pollution. To realize this potential, mechanisms are needed that allocate vehicles optimally and provide the right incentives to riders. However, many existing approaches consider restricted settings (e.g.,
only one rider per vehicle
or a common origin for all riders). Moreover,
naive applications of standard approaches, such as the Vickrey-Clarke-Groves or greedy mechanisms, cannot achieve a polynomial-time, truthful, individually rational and budget balanced mechanism. To address this, we formulate a general ridesharing problem and apply mechanism design to develop a novel mechanism which satisfies all four properties and whose social cost is within 8.6% of the optimal on average.
- [Archer and Tardos, 2001] Aaron Archer and Éva Tardos. Truthful mechanisms for one-parameter agents. In Pro- ceedings 42nd IEEE Symposium on Foundations of Com- puter Science, pages 482-491. IEEE, 2001.
- [Chen et al., 2019] Mengjing Chen, Weiran Shen, Pingzhong Tang, and Song Zuo. Dispatching through pricing: Modeling ride-sharing and designing dynamic prices. In Proceedings of the Twenty-Eighth Interna- tional Joint Conference on Artificial Intelligence, pages 165-171, 2019. IJCAI
- [Cheng et al., 2014] Shih-Fen Cheng, Duc Thien Nguyen, and Hoong Chuin Lau. Mechanisms for arranging ride sharing and fare splitting for last-mile travel demands. In Proceedings of the 2014 International Conference on Au- tonomous Agents and Multi-Agent Systems, pages 1505- 1506, 2014.
- [Cordeau and Laporte, 2007] Jean-François Cordeau and Gilbert Laporte. The dial-a-ride problem: models and algorithms. Annals of operations research, 153(1):29-46, 2007.
- [Hasan et al., 2018] Mohd Hafiz Hasan, Pascal Van Henten- ryck, Ceren Budak, Jiayu Chen, and Chhavi Chaudhry. Community-based trip sharing for urban commuting. In Thirty-Second AAAI Conference on Artificial Intelligence, pages 6589-6597, 2018.
- [Kleiner et al., 2011] Alexander Kleiner, Bernhard Nebel, and Vittorio Amos Ziparo. A mechanism for dynamic ride sharing based on parallel auctions. In Twenty-Second International Joint Conference on Artificial Intelligence, pages 266-272, 2011. IJCAI
- [Lu et al., 2018] Alice Lu, Peter I. Frazier, and Oren Kislev. Surge pricing moves uber's driver-partners. In Proceed- ings of the 2018 ACM Conference on Economics and Com- putation, 2018.
- [Ma et al., 2019] Hongyao Ma, Fei Fang, and David C Parkes. Spatio-temporal pricing for ridesharing platforms. In Proceedings of the 2019 ACM Conference on Eco- nomics and Computation, pages 583-583, 2019.
- [Myerson and Satterthwaite, 1983] Roger B Myerson and Mark A Satterthwaite. Efficient mechanisms for bilat- eral trading. Journal of economic theory, 29(2):265-281, 1983.
- [Myerson, 1981] Roger B Myerson. Optimal auction design. Mathematics of operations research, 6(1):58-73, 1981.
- [Nemhauser et al., 1978] George L Nemhauser, Laurence A Wolsey, and Marshall L Fisher. An analysis of approxima- tions for maximizing submodular set functions-i. Math- ematical programming, 14(1):265-294, 1978.
- [NYC-OpenData, 2018] NYC-OpenData. 2018 yellow taxi trip data. https://data.cityofnewyork.us/Transportation/ 2018-Yellow-Taxi-Trip-Data/t29m-gskq, 2018. Ac- cessed: 2020-04-01. Link
- [Rheingans-yoo et al., 2019] Duncan Rheingans-yoo, Scott Duke Kominers, Hongyao Ma, and David C Parkes. Ridesharing with driver location preferences. In Proceed- ings of the Twenty-Eighth International Joint Conference on Artificial Intelligence, pages 557-564, 2019. IJCAI
- [Shen et al., 2016] Wen Shen, Cristina V. Lopes, and Ja- cob W. Crandall. An online mechanism for ridesharing in autonomous mobility-on-demand systems. In Proceed- ings of the Twenty-Fifth International Joint Conference on Artificial Intelligence, pages 475-481, 2016. IJCAI
- [Shoham and Leyton-Brown, 2008] Yoav Shoham and Kevin Leyton-Brown. Multiagent systems: Algorithmic, Game-Theoretic, and logical foundations. Cambridge University Press, 2008.
- [Spieser et al., 2014] Kevin Spieser, Kyle Treleaven, Rick Zhang, Emilio Frazzoli, Daniel Morton, and Marco Pavone. Toward a systematic approach to the design and evaluation of automated mobility-on-demand systems : A case study in singapore. In Road vehicle automation, pages 229-245. Springer, 2014.
- [Zhao et al., 2014] Dengji Zhao, Dongmo Zhang, Enrico H Gerding, Yuko Sakurai, and Makoto Yokoo. Incentives in ridesharing with deficit control. In Proceedings of the 2014 International Conference on Autonomous Agents and Multi-agent Systems, pages 1021-1028, 2014.
References were extracted automatically from the PDF and may contain errors.
Full text extracted automatically from the PDF; figures, tables and equations may differ. The PDF is the version of record.
1 Introduction
Ridesharing can meet more traffic demand with fewer vehicles than existing taxi services or privately-owned vehicles. At the same time, it can reduce traffic congestion, energy consumption and pollution. Moreover, with the introduction of autonomous vehicles, unused vehicles become active transportation resources, and ridesharing can further increase utilization of such vehicles [Spieser et al., 2014].
Broadly, there are two research streams addressing ridesharing problems: the first one focuses on algorithms for assigning vehicles to riders while solving the routing problem in an optimal way [Cordeau and Laporte, 2007; Hasan et al., 2018; Chen et al., 2019]. However, none of these studies consider incentives and whether it is in the best interest of riders to follow the proposed solution and to report their preferences truthfully. Especially when the origins and destinations of the riders are different, they are sometimes required to detour to share the vehicle with others. Hence, there may be an incentive to misreport time constraints and preferences to prevent detours.
To address this, the second research stream focuses on mechanism design approaches, which incentivize truthful reporting and avoid strategic manipulation. In addition to this property, which is called incentive compatibility (IC), other desirable properties include (weak) budget balance (BB, i.e., the system does not require an outside subsidy), individual rationality (IR, i.e., an individual is never worse off participating in the mechanism) and scalability (i.e., the allocation and any payments can be computed in polynomial time). An early approach uses a second price auction [Kleiner et al., 2011], but their work is limited to single riders per vehicle and does not allow cooperation between drivers. [Shen et al., 2016] propose an online posted-price mechanism but they only consider autonomous vehicles (vehicles can move without any riders allocated) and their approach is not scalable. Furthermore, [Cheng et al., 2014] propose a mechanism that satisfies IC, BB and IR, but they assume all riders depart from the same origin and so their method does not coordinate the pickup of riders at different locations. [Zhao et al., 2014] propose a Vickrey-Clarke-Groves (VCG) mechanism, but their approach is not scalable and BB is only satisfied when there is no detour. More recent work on mechanism design, e.g., [Rheingans-yoo et al., 2019; Lu et al., 2018; Ma et al., 2019], only focuses on drivers and does not consider rider incentives. Also, none of the above consider settings where riders can switch vehicles which can enable more efficient solutions, especially in settings with limited vehicles as in suburban areas.
An extended version including technical appendices is available at https://arxiv.org/abs/2105.11292.
In short, to date there exist no scalable mechanisms for general ridesharing settings that satisfy IC, IR and BB. To address this shortcoming, we make the following novel contributions:
- We formulate a more general ridesharing problem compared to existing approaches. In particular, this is the first model that considers both autonomous and nonautonomous vehicles and where riders can switch between vehicles if it is beneficial to do so.
- We prove that, unsurprisingly, computing the optimal allocation is NP-hard. Nevertheless, by introducing some weak assumptions, we show that it can be to reduced to a polynomial-time linear program.
- We show that approaches based on VCG mechanisms or naive greedy (where riders are allocated in order of their marginal cost) do not satisfy the necessary properties. Specifically, the standard VCG approach does not satisfy BB and a modified, budged balanced, version can-
not be computed efficiently using our novel polynomialtime reduction. Also, naive greedy violates a property called monotonicity, meaning it fails to satisfy IC.
- To address this, we propose a general methodology to design monotone greedy allocation mechanisms. We then apply this theory to produce a novel two-stage mechanism with carefully designed payments to ensure both IR and BB, as well as IC and scalability.
- We empirically evaluate the performance of different mechanisms and show the advantages of our methods. Our monotone greedy mechanism satisfies all desirable properties with typically less than a 9% social cost increase compared to the optimal allocation.
In what follows, Section 2 introduces the ridesharing model and its mechanism design formulation. Section 3 considers the VCG mechanism and its budget balanced version. Section 4 studies the greedy mechanisms. Section 5 provides an empirical evaluation of the mechanisms and Section 6 concludes. Due to space limitations, most proofs for the theoretical results are provided in the extended version of the paper.
2 The Model
In this section, we first provide a formal model of the ridesharing problem followed by an example. We then formulate this as a mechanism design problem.
2.1 The Ridesharing (RS) Problem
We assume finite time steps T = {0, 1, . . . , T}, set of riders N = {1, 2, . . . ,N} and vehicles K = {1, 2, . . . ,K}. Let w ∈ N+ denote the vehicle capacity (i.e., the maximum number of riders in a vehicle). The road network is represented by a directed graph G = (V, E), where edges E denote road segments, vertices V denote locations, and loops (v, v) ∈ E are used to model stationary vehicles. The length of an edge e ∈ E is given by le and denotes the travel distance. For simplicity we assume l(v,v′ ) = 1 if v ̸= v′ , and l(v,v) = 0, ∀(v, v′ ) ∈ E. 1 Let Op i ,Dp i ∈ V denote the origin and the destination of rider i ∈ N. Also, let Ock denote the initial location of vehicle k ∈ K, which does not have to be where riders are (in case of autonomous vehicles). We denote by P the set of all paths in G. A path is a vector of size S, denoted by 〈v〉S ≡ 〈v1, . . . , vS〉, where an element vs ∈ V is the s-th location in the path and (vs, vs+1) ∈ E, ∀s < S. Since paths do not include information of time, we define a route as a tuple of vectors 〈〈v〉S, 〈t〉S〉 where the path departs from location vs at time ts. Route 〈〈v〉S, 〈t〉S〉 satisfies ts+1 = ts + l(vs,vs+1) if vs ̸= vs+1. If vs = vs+1, it means the rider or vehicle stays at vs for an amount of time given by ts+1 - ts (e.g., to wait for a vehicle or because they already arrived at the destination). The set of routes is denoted by R. The route of rider i and the route of vehicle k are denoted by rp i , rck ∈ R, respectively. We let edge(r, t) ∈ E be a function that returns the edge in route r that the rider or vehicle is traversing at t. E.g., edge(〈〈A, B, C〉, 〈0, 1, 2〉〉, 1) = (B, C). Similarly, loc(r, t) ∈ V returns the location at t. E.g., loc(〈〈A, B, C〉, 〈0, 1, 2〉〉, 1) = B. Riders cannot move without vehicles but vehicles can move without riders if they are autonomous. If they are not autonomous, then they need at least one rider.
1 The former ensures that a rider is always at a vertex at each time step. Furthermore, since le is used to compute costs (discussed below), the latter ensures that stationary vehicles do not incur fuel costs. Longer roads can be represented by joining multiple edges.
We denote the assignment of vehicles to riders with tensor B ∈ B = {0, 1}T×N×K . B[t, i, k] = 1 is possible only if the path of rider i is the same as vehicle k at time t. The assignment may change over time, which means a rider can switch vehicles on the way 2 . We do not specifically distinguish between drivers and riders. Any rider in a vehicle can be a driver if the vehicle is not autonomous. Furthermore, riders can use a taxi as the outside option (B[t, i, k] = 0, ∀t ∈ T , k ∈ K) if it is more beneficial than using ridesharing. We assume that the waiting time for a taxi is zero and the taxi takes the shortest path between the origin and destination of the rider. However, a rider cannot combine a taxi with ridesharing.
An overall allocation is denoted by π = 〈rp , rc ,B〉 ∈ RN × RK × B, where rp = 〈rp i 〉i∈N, rc = 〈rck 〉k∈K are the routes for riders and vehicles, respectively. We will also use rp i (π), rck (π) to denote a route for rider i and vehicle k given allocation π. An allocation is feasible if, for each rider i, the route rp i consist of a path between Op i and Dp i , and the vehicle capacity is not exceeded. Formally, the set of feasible allocations is defined by:
The first line of constraints specifies origins and destinations of the routes. The second constraint is the definition of B. The third constraint means that a taxi cannot be combined with ridesharing (if riders traverse an edge using a taxi, they always use a taxi). The fourth is the capacity constraint.
If vehicles are not autonomous or have no dedicated driver, Π needs an additional condition that any moving vehicle needs at least one rider: ledge(rck ,t) > 0 ⇒ ∑j∈N B[t, j, k]>0.
Now that we have defined the allocation, we proceed with defining the costs which the system aims to minimise. These costs include travel and waiting time, fuel costs and taxi labour costs. Formally, the travel time of rider i including waiting time is denoted by Ti(π) = min{ts|rp i = 〈〈v〉S, 〈t〉S〉, vs = Dp i }, which is the earliest time to reach the destination. Furthermore, let T 0 i denote the travel time for rider i using the shortest path (e.g., taxi). The travel time of vehicle k is denoted by T c k (π) = ∑t∈T ledge(rck (π),t). Furthermore, let α, β ∈ R denote the (additional) labour cost per time step for a taxi driver and fuel cost per distance for a vehicle, respectively. Let γi ∈ Γ = [0, γmax] represent the value of time, i.e., a subjective cost rider i is willing to pay to avoid a unit of travel time. Then the cost of rider i is: ci(π) = c0i = (α + β + γi)T 0 i when using a taxi, and ci(π) = γiTi(π) when using ridesharing. In addition, the fuel cost of the ridesharing system is calculated separately and is given by cF (π) = ∑k∈K βT c k (π). Given this, the ridesharing (RS) problem is to find a feasible allocation π ∈ Π that minimizes the social cost including fuel cost CF (N , π) = ∑i∈N ci(π) + cF (π).
2 In practice, this can take time, but we ignore this for simplicity. The model can easily be extended by introducing waiting times for vehicles when riders switch at some designated safe areas.
To illustrate the model, Figure 1 shows an example with N = 2,K = 2 and T = 5. The two figures show two possible allocations: in left figure, for example, rp 1 = 〈〈A, A, B〉, 〈0, 3, 4〉〉 and rp 2 = 〈〈B,B,C〉, 〈0, 1, 2〉〉. Rider 2 is assigned to vehicle 1 at t = 1, i.e., B[1, 2, 1] = 1 while rider 1 is not assigned to vehicle 2 until t = 3, i.e., B[3, 1, 2] = 1. If γ1 = 2 and γ2 = 1, then the optimal allocation is the one on the right, with Ti = T c k = 3 and social cost CF = 15.
2.2 MechanismDesign Formulation
A mechanism takes reports from riders on their privatelyknown types as input, and computes the allocation and payment as output. In our model, we assume Op i andDp i are easy to track with GPS and so γi is the only private information, which is referred to as rider i's type. Let γ ∈ ΓN be the type profile of all riders, -i the set of riders except for i, and γ-i the types of all riders except i. For simplicity, we assume that all riders and vehicles are ready to depart at t = 0, but this can be easily extended. A mechanism is then defined as a functionM : ΓN →Π×RN , that computes a feasible allocation π ∈ Π from a given type profile and payment vector x(π) ∈ RN , where xi(π) is the payment of rider i to the system. We sometimes use π(γ) to emphasize the dependence on γ. If i chooses a taxi, xi(π) = 0. Sometimes we use shorthand notation π(γi) = π(γi, γ-i). Given this, the utility of rider i is defined as ui(π) = -ci(π) - xi(π).
In practice, the ridesharing mechanism may work as in the following example. First, rider i reports their type γi using a slider in a suitable smartphone app, along with Op i and Dp i . Note that γi is not necessarily truthful. Once the report profile γ is obtained, the mechanism computes π(γ) and x(π), and reveals them to riders before travel. Finally, xi is charged after the travel. To this end, the mechanism needs to achieve the following properties:
Budget balance (BB), which is formulated as:
Individual rationality (IR), which is formulated as:
Dominant-strategy incentive compatibility (DSIC), or truthfulness, which is formulated as:
3 The VCGMechanisms
Next, we will show that the well-known VCG mechanism [Shoham and Leyton-Brown, 2008] does not achieve BB and polynomial-time computation at the same time when applied to the RS problem. This mechanism first computes an optimal allocation π(γ) given (reported) type profile γ and then it computes the payment x(π) as the externality that each rider imposes on other riders. Specifically, for our RS problem, the objective is to minimize CF (N , π), and so the VCG payment is computed as xi(π) = CF (-i, π(γ)) - CF (-i, π(γ-i)). As a result, the optimal allocation π and the payment x guarantee DSIC and IR. In the extended version, we show that the RS problem is NP hard by reducing the travelling salesman problem. However, with a mild assumption, an algorithm based on integer linear program (ILP) can solve it in polynomial time. The algorithm relaxes the ILP into a linear program (LP), that outputs an integer solution of the original ILP. The detail of the algorithm and proofs are also in the extended version. However, VCG has the following issue.
Proposition 1 VCG does not satisfy BB in the RS problem.
Proof. Suppose both riders 1 and 2 have the same origin O and destination D, which are directly connected with an edge. VCG allocates the vehicle to both riders for sharing. Since the absence of either rider does not change the allocation and cost of the other rider, the VCG payment is zero for both riders. This means the fuel cost of the vehicle is not recovered.
Despite this negative result, we show it is possible to modify VCG to satisfy BB by sacrificing polynomial-time computation, as follows. Let Ki(π) = {k ∈ K|B[t, i, k] = 1, ∃t ∈ T } denote the set of vehicles that rider i uses. Then, the total fuel costs of all rides that a rider i is involved in is ciF (π) = ∑k∈Ki βT c k (π). We then define an imaginary system cost by redundantly counting the fuel costs of vehicles as follows: cI(π) = ∑i∈N ciF (π). The total social cost including this imaginary cost is then given by CI(N, π) = ∑i∈N ci(π) + cF (π) + cI (π). Given this, we have a budget balanced VCG (BVCG) by replacing the objective function of VCG with CI .
Proposition 2 Assuming autonomous vehicles, BVCG satisfies DSIC, IR and BB.
Briefly, this is because the payment is computed based on the imaginary cost cI, which is redundant and larger than cF . Autonomous vehicles guarantee the feasibility of vehicle routing even when i is absent in the payment computation. However, scalability is an issue. Since the new objective function with CI is a non-linear function, we cannot use the ILP based polynomial-time algorithm.
4 GreedyMechanisms
To address the issues with VCG mechanisms, we consider greedy mechanisms in this section. To this end, we first show that a naive greedy approach does not satisfy IC and we propose a general theory to design greedy DSIC mechanisms based on the concept of monotonicity. Then, we apply our theory to design a greedy DSIC ridesharing mechanism.

4.1 Monotonicty and Violation with Naive Greedy
[Myerson, 1981; Archer and Tardos, 2001] showed that, for single-valued domains, monotonicity of the allocation function π(γ) is a necessary and sufficient condition for the existence of payments x(π) satisfying DSIC. Using notation from our model, monotonicity is defined as follows:
where, in general, Vi : Π → R is the amount allocated, and referred to as work in [Archer and Tardos, 2001] and, for our setting, Vi = -Ti(π) corresponds to the negative travel time. Although monotonicity plays a key role in designing DSIC mechanism, finding appropriate monotone allocation functions π is non-trivial. Here, we show that a naive approach fails to implement a DSIC mechanism. We define a naive greedy allocation as follows. First, all riders are assigned to a taxi by default. Then, for each iteration it chooses rider i who minimizes the marginal social cost, given by ci - c0i + cF , without changing the allocation in riders allocated so far, and computes the best allocation for the current rider.
Proposition 3 Mechanisms based on the naive greedy allocation do not satisfy monotonicity or DSIC.
Proof. Figure 1 also shows a counterexample whereby a naive greedy allocation fails to satisfy monotonicity. Let γ2 = 4. If γ1 = 3, the naive greedy allocates vehicle 1 to rider 2 in the first iteration because the rider brings the lowest cost γ2T2 - (α + β + γ2)T 0 2 + cF = -5 (left figure). However, if γ1 = 1, the cost of the rider decreases as γ1T1 - (α + β + γ1)T 0 1 + cF = -6 and rider 1 is allocated first (right figure). Then, the lower γ1 results in the earlier allocation and larger V1 = -T1, which is the violation of the monotonicity (5). This violation of monotonicity means mechanisms with the naive greedy allocation also violate DSIC, since this is a necessary condition for DSIC.
4.2 Design of Monotone Greedy Allocation
To address the issue above, we propose a characterisation that is useful for designing monotone allocation functions for greedy mechanisms. As we saw, the naive greedy violates monotonicity by giving priority to the riders with lower γi. Instead, we allocate agents in descending order of their (reported) type γi. In what follows, we use the index to denote the order in which agents are allocated. I.e., j < i implies γj ≥ γi and that j is allocated before i. Let π≤i denote the allocation up to and including i (with remaining agents allocated arbitrarily or, e.g., in the context of ride sharing, allocated to a taxi). Also, let Π≤i(π≤i-1) or simply Π≤i denote the set of possible allocations given π≤i-1, keeping agents j < i fixed. Given this, we define a class of greedy allocations with decreasing choices (GADC) as follows:
subject to Π≤i ⊆ Π≤j if j < i. Here, J : Π → R is an objective function. In words, GADC captures allocation functions which compute the optimal allocation for each i individually given a set of possible allocations, and this set reduces as i reports a smaller γi (and so appears later in the sequence).
Theorem 1 Let π≤i(γa), π≤i(γb) denote i's allocation when reporting γa,γb respectively. A GADC satisfies monotonicity if and only if, ∀γa, γb, i ∈ N:
Intuitively, this means that, the more an agent contributes to decreasing the global objective (in our case, minimising the social cost), the better their allocation should be (in our case, the lower the travel time).
4.3 Monotonic Greedy RidesharingMechanism
We now apply Theorem 1 to our setting. First, we customize GADC from section 4.2 for our ridesharing problem. In particular, Π≤i(π) is redefined as follows:
This means that, when computing i's allocation, the allocation of the prior riders j < i are not changed. With this definition, the assumption Π≤i ⊆ Π≤j holds, because constraint (8) shrinks the set. Then, a greedy allocation for ridesharing is obtained by applying equation (6), with the objective function J(π) = ∑i∈N ci(π). In addition, to obtain monotonicity, (7) must be satisfied. To this end, we will show that we require an additional constraint whereby riders cannot be allocated to a taxi (i.e., their outside option). Although this constraint seems restrictive, we will relax this again later so that riders can use taxis if this is in their best interest (to satisfy IR). In the following, we refer to this setting as greedy allocation for ridesharing with no-taxi constraint or GARS-N. Formally:
Lemma 1 GARS-N satisfies monotonicity.
Briefly, this is because minimizing J coincides with minimizing ci for each rider i, since the constraints (8) and (9) do not allow i to change the allocations and costs of other riders. If riders do not use a taxi, Vi = -Ti is proportional to ci and the equivalent condition of monotonicity in Theorem 1 is satisfied. With the case in Figure 1, GARS-N allocates rider 1
first (right figure) when γ1 = 5 and γ2 = 4, and then T1 = 3. Meanwhile, if γ1 = 1, rider 2 is allocated first (left figure) and then T1 = 4. Contrary to the naive greedy, the higher γ1 results in the earlier allocation and larger V1, and this satisfies monotonicity. Note that, without the no-taxi constraint, monotonicity can be violated as follows. If a taxi is cheap (α = 1), then rider 1 uses a taxi when γ1 = 1, resulting in T1 = 1, which violates monotonicity. Also, note that the no-taxi constraint does not help naive greedy because nobody uses a taxi in the proof of Proposition 3.
Next, we consider the computation of the payment. Let ˆ Ti(π) = Ti(π) - T 0 i denote the normalized travel time. Following [Myerson, 1981], the unique payment satisfying DSIC is given by:
where x0i is a value which is independent of i's report. Solving the integral is challenging in general since it is necessary to recompute the allocations given all possible types of the rider whose payment we are computing. However, in our case, because ˆ Ti(π) only depends on the order of the allocation, it is sufficient to vary the position in the ordering. We refer to the GARS-N allocation with this payment as the GARS-N mechanism. Also, this mechanism can be computed in polynomial-time using the same technique in section 3.
Lemma 2 The GARS-N mechanism is DSIC and can be computed in polynomial-time.
To ensure BB, we compute the base payment x0i based on report independent parameters T0, ˆ T min and cF ub, where T 0 is a vector of T 0 i . Furthermore, ˆ Tmin is a vector of normalized minimal travel times, which is computed by solving the following allocation problem:
Finally, cFub is an upper bound on the fuel cost cF of GARS-N. We assume that this parameter is given (in the experimental section, we explain how this is computed in our experimental setting). The base payment is computed by splitting cFub among riders, proportional to each agent i's relative shortest travel time, T 0 i - ˆ Tmin,i - minj (T 0 j - ˆ Tmin,j ). Since this base payment covers cFub, GARS-N is BB.
Lemma 3 If cFub is given, the GARS-Nmechanism is budget balanced.
We now discuss IR. Since the no-taxi constraint restricts outside options, it can cause the violation of IR in some settings. To address this issue, we use the following lemma.
Lemma 4 The GARS-N mechanism satisfies IR if
Briefly, (12) shows the lower bound of the cost that satisfies IR. We can now define the GARS-N mechanism with individual rationality (GARS-NIR) as follows. Before executing
Algorithm 1 GARS-NIR
1: procedure π =GARS-NIR(γ,N) 2: NIR = [] 3: for i ∈ N 4: if i satisfies (12) then 5: NIR.append(i) 6: else 7:
B[t, i, k] = 0, ∀t ∈ T , ∀k ∈ K 8: Return GARS-N(γ,NIR)
Algorithm 2 GARS-N
1: procedure (π, x) =GARS-N(γ,N) 2: ˆN =Sorted N in descending order of γi 3: π = GREEDYALLOC(γ, ˆN) 4: ti = ˆ Ti(π), ∆xi = 0, ∀i ∈ N 5: for i ∈ N 6: for orderi ∈ [ ˆN.index(i), . . . ,N] 7: N ′ = ˆN, γ ′ = γ 8: j = ˆN[orderi] 9: N ′ .pop( ˆN.index(i)) 10: N ′ .insert(orderi, i) 11: γ ′ i = γj 12: π′ = GREEDYALLOC(γ ′ ,N ′ ) 13: ∆xi = ∆xi + ( ˆ Ti(π′ ) - ti)γj 14: ti = ˆ Ti(π′ ) 15: xi = ∆xi + x0i
GARS-N, riders that violate condition (12) are excluded from the mechanism, and are allocated to a taxi. This process is repeated until there is no violation. Then GARS-N is executed with the remaining riders. Since no riders violate (12), this mechanism satisfies IR.
Algorithm 1 shows the pseudocode of GARS-NIR (using Python-like list operations). It filters out riders who violate IR condition (12) in line 4 and allocates them to a taxi (line 7). Then, GARS-N in Algorithm 2 computes the allocation for riders who satisfy (12). First, it sorts riders in descending order of reported γi (line 2). Then it computes an allocation by GREEDYALLOC (line 3). From line 4 to 15, it computes the second term of xi in (11), by changing the order of riders. In line 4, variables are initialized. For each rider i (line 5), it changes the order of the rider (line 6 to 10) and the report with a consistent value γ ′ i (line 11), and computes an allocation with the new order N ′ (line 12). Thus, the integral term in (11) is computed (line 13), and the payment xi is given by adding the base payment x0i (line 15). The GREEDYALLOC function (Algorithm 3) computes the allocation for each rider one by one by solving (10) in line 3.
Now we have the following result.
Theorem 2 The GARS-NIR mechanism satisfies DSIC, IR, BB and can be computed in polynomial-time.
Although GARS-NIR is not optimal, also note that no mechanism can simultaneously achieve optimality, DSIC, IR and BB [Myerson and Satterthwaite, 1983]. Hence obtain-
Algorithm 3 Greedy Allocation
| 1: | procedure π =GREEDYALLOC(γ,N) |
| 2: | for i ∈ N |
| 3: | Compute π≤i by (10) |
| 4: | Return π≤i |
| Mechanism | OPT | DSIC | IR | BB | POLY |
|---|---|---|---|---|---|
| VCG | Y | Y | Y | N | Y |
| BVCG | N | Y | Y | Y | N |
| Hungarian | N | Y | Y | N | Y |
| GARS-NIR | N | Y | Y | Y | Y |
ing three of these properties is the best one can achieve. It is also difficult to bound the efficiency of GARS-NIR, because we cannot use the standard bounding technique with naive greedy allocations [Nemhauser et al., 1978], for the reason we discussed in Proposition 3. Determining theoretical efficiency bounds remains an open problem for future work.
5 Experimental Results
Given that we do not have formal efficiency bounds, we evaluate the mechanisms empirically using simulations using both synthetic and real data. For the former, we generate random road networks of 4 degrees maximum and average results over 32 simulations for each setting. For the latter, we use the New York taxi data set [NYC-OpenData, 2018]. We assume autonomous vehicles for all our experiments. We vary the taxi cost α and choose these loosely based on prices from London taxis. If we normalize the fuel cost to be β = 1, then α = 5 is considered a moderate value and α = 1 is cheap. As for the value of time, we set γi = γmax ∗ i/N to simulate heterogeneous riders. cFub is estimated by sampling solutions of GARS-N with different allocation orders, and multiplying the maximum fuel cost among the solutions with a constant coefficient. Further details are provided in the extended version.
In what follows we first compare the performance of all mechanisms on a small setting to enable comparison with non-scalable mechanisms such as BVCG. We then evaluate the scalability of the greedy mechanism to larger settings. Since GARS-NIR computes all possible ways for a rider to switch between vehicles, this turns out to be time consuming computationally. Also, in practice, such switches are often not desirable. Hence, for large settings, we modify the feasible set Π of GARS-NIR to allow a rider to use only a single vehicle (sGARS-NIR). This version still satisfies the same properties as GARS-NIR.
5.1 Small Setting
We compare VCG, BVCG, GARS-NIR, the Hungarian mechanism and the outside option (Table 1). The Hungarian mechanism computes an optimal 1-to-1 matching between riders and vehicles (including taxis) using the Hungarian algorithm, and then applies payments similar to VCG. The mechanism is also DSIC, BB and IR, but does not support multiple riders per vehicle. For BVCG, a brute force search is used to compute vehicle allocations. Figure 2 (top) shows the results for N = 3,K = 2, T = 4, V = 4 and α = 5 and the error bars show the 95% confidence intervals. Here, social cost is the ratio of CF (N, π) over the cost of the optimal allocation. Furthermore, IR cost refers to -ui(π)/c0i . If this value is above 1, it means that IR is violated. BB coverage shows (∑i∈N xi(π))/cF (π). A value less than 1 means BB is violated (however, a value close to 1 is preferred, as long as it is over 1, meaning that riders are not over paying). Share rate shows ∑k∈K Tk/ ∑i∈N Ti. A smaller value means ridesharing needs fewers vehicles to cover the trips of riders.

Here, BVCG is budget balanced without a large increase in social cost (a 6.4% increase). Meanwhile, VCG recovers only 52% of the fuel costs on average in payments. However, a disadvantage of BVCG is its computational complexity when using the brute force search. Instead, GARS-NIR (and sGARSNIR) can be computed efficiently while satisfying DSIC, IR and BB, and still keeping social cost near optimal (an 8.6% increase compared to optimal). Also, it shows that the performance of sGARS-NIR is close to GARS-NIR. Although the vehicle-switching behaviors of GARS-NIR are practical in suburban areas, it may not be so practical in urban areas. However, the result shows only 1 6 of riders switch vehicles. Besides, it is possible to extend the model to introduce a waiting time for switching vehicles, and this can reduce the number of the cases. Also, it is easy to extend the model by mixing GARS-NIR with the version without switching (sGARSNIR), and letting riders choose if they want to switch or not. In comparison, Figure 2 (bottom) shows the result when the outside option is cheap (α = 1). In this case, the IR cost comes closer to 1 for all mechanisms because of the incentive to opt out. BB coverage also decreases for some mechanisms because as more riders opt out, there is less opportunity to split the fuel cost. Meanwhile, the increase in social cost is not large in GARS-NIR (4.5%) because riders properly opt out if taxi is better. While 1.07 passengers ride on a vehicle on average in case of α = 1, it is 1.23 passengers in case of α = 5. This demonstrates that more expensive taxis lead to a higher usage of ridesharing, enabled by GARS-NIR satisfying IR of riders.


5.2 Scalability
Next, we evaluate the scalability of sGARS-NIR. Since other mechanisms such as BVCG are not scalable, we do not include them here. Figure 3 shows the runtime of the mechanism with different N using parallel computation with 16 cores. Since the payment computation consists of independent computations of allocations with different orders of riders, it can be easily parallelized. For other parameters we use K = N/2, T = 15, V = 10, α = 5, β = 1. sGARS-NIR takes less than 14 minutes when N = 40. Figure 4 shows that more than 99% of the computation time is spent constructing CPLEX LP objects. Hence, much of this can be precomputed and addressed with specalised implementation.

5.3 Experiments with Real-world Data
In addition to using synthetic data, we also conduct experiments using the New York taxi data set [NYC-OpenData, 2018]. We analyse the traffic demands in the central Manhattan area, which consists of 19 zones. A single trip data point includes the origin zone, the destination zone, departure and arrival time. We randomly generate trip demands with the trip distribution from February 2019. All riders are assumed to be picked up and dropped off at the center of their zones. We set K = 20, T = 15, V = 19, α = 5, β = 1 and vary N. Figure 5 shows the ratio of social cost compared to the taxi cost, IR cost, BB coverage and share rate of sGARS-NIR. The share rate is improved as N increases since this increases the chance of sharing vehicles. However, with K fixed, increasing N causes a lack of vehicles and thus an increase in the IR cost and the social cost. This can be solved by providing an appropriate number of vehicles. The BB coverage shows over payment of riders with large N, but they still save compared to taking a taxi.
6 Conclusions
We propose a flexible ridesharing model that includes autonomous vehicles. The goal is to find allocation and payment mechanisms which are dominant-strategy incentive compatible, budget balanced, individually rational, can be computed in polynomial time and achieve high social welfare. To this end, we show that both the VCG and naive greedy mechanisms do not meet these requirements. We then present a characterisation for monotone greedy allocations and use this to develop a novel greedy mechanism which satisfies all of the desirable properties. In addition, through numerical simulations we show that our monotone greedy mechanism achieves close to optimal allocations.
Future directions include envy-free mechanisms and improving the implementation of the algorithm so it scales to even larger settings, as well as providing theoretical performance bounds for our greedy approach.
Ethical Impact
Our work has positive ethical impacts on society. First, our mechanism provides a fair ridesharing service in the sense that people get compensated for their detour. Second, the incentive compatibility of our mechanism maximizes the utility of individuals. Third, our ridesharing mechanism can benefit society and the environment by meeting more traffic demand with fewer vehicles than existing taxi services or privatelyowned vehicles. A possible negative impact is that people might perceive the mechanism as unfair because the payments for a given service may differ depending on the other participants. We could address this by looking into envy-free mechanisms in future work.
@inproceedings{ijcai2021p38,
title = {A Polynomial-time, Truthful, Individually Rational and Budget Balanced Ridesharing Mechanism},
author = {Iwase, Tatsuya and Stein, Sebastian and Gerding, Enrico H.},
booktitle = {Proceedings of the Thirtieth International Joint Conference on
Artificial Intelligence, {IJCAI-21}},
publisher = {International Joint Conferences on Artificial Intelligence Organization},
editor = {Zhi-Hua Zhou},
pages = {268--275},
year = {2021},
month = {8},
note = {Main Track},
doi = {10.24963/ijcai.2021/38},
url = {https://doi.org/10.24963/ijcai.2021/38},
}
TY - CPAPER TI - A Polynomial-time, Truthful, Individually Rational and Budget Balanced Ridesharing Mechanism AU - Iwase, Tatsuya AU - Stein, Sebastian AU - Gerding, Enrico H. T2 - Proceedings of the Thirtieth International Joint Conference on Artificial Intelligence, IJCAI-21 PB - International Joint Conferences on Artificial Intelligence Organization PY - 2021 SP - 268 EP - 275 DO - 10.24963/ijcai.2021/38 UR - https://doi.org/10.24963/ijcai.2021/38 ER -Copied
Machine-readable versions of this paper, for tools and AI agents: