<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta>
      <journal-title-group>
        <journal-title>Workshop Agents in Trafic and Transportation, July</journal-title>
      </journal-title-group>
    </journal-meta>
    <article-meta>
      <title-group>
        <article-title>Improving Zonal Fairness While Maintaining Eficiency in Rideshare Matching</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Ashwin Kumar</string-name>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Yevgeniy Vorobeychik</string-name>
        </contrib>
        <contrib contrib-type="author">
          <string-name>William Yeoh</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Washington University in St. Louis</institution>
          ,
          <addr-line>St. Louis, MO, USA 63130</addr-line>
          ,
          <country country="US">USA</country>
        </aff>
      </contrib-group>
      <pub-date>
        <year>2021</year>
      </pub-date>
      <volume>25</volume>
      <issue>2022</issue>
      <abstract>
        <p>Order dispatching algorithms, which match passenger requests with vehicles (agents) in ridesharing systems, are able to achieve high service rates (percentage of requests served) using deep reinforcement learning techniques to estimate the relative values of the diferent combinations of passenger-vehicle matches. While the goal of such algorithms is to maximize the service rate, this may lead to unintended fairness issues (e.g., high disparity between the service rates of geographic zones in a city). To remedy this limitation, researchers have recently proposed deep reinforcement learning based techniques that incorporates fairness components in the value function approximated. However, this approach sufers from the need to retrain should one wish to tune the degree of fairness or optimize for a diferent fairness function, which can be computationally expensive. Towards this end, we propose a simpler online approach that uses state-of-art deep reinforcement learning techniques and augments their value functions with fairness components during the matching optimization step. As no additional training is needed, this approach can be adapted to use any existing value function approximator and benefits from improved flexibility in evaluating diferent fairness objectives eficiently. In this paper, we describe several fairness functions that can be used by this approach and evaluate them against existing state-of-the-art deep RL based fairness techniques on standard ridesharing benchmarks. Our experiments show that our fairness functions outperform existing fairness techniques (i.e., it finds matching solutions that result in higher service rates and lower service rate disparity across zones), demonstrating the practical promise of this approach.</p>
      </abstract>
      <kwd-group>
        <kwd>eol&gt;Ridesharing</kwd>
        <kwd>Fairness</kwd>
        <kwd>Matching</kwd>
        <kwd>Transportation</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>Introduction</title>
      <p>
        On-demand ridesharing has been gaining traction over the past few years as a solution to the
growing need for urban mobility. Providing low cost rides to passengers at the expense of
small detours, higher earnings for drivers, and a way to reduce the number of vehicles on the
streets, it is a solution that benefits everyone. Consequently, there has been work on finding
eficient matches of passengers and vehicles to minimize delays and maximize system eficiency
for such ecosystems. Recent approaches have used concepts from dynamic programming
and deep reinforcement learning to learn policies for matching pools of passenger requests to
available drivers, achieving real-time performance capabilities. Some approaches, such as that
by Alonso-Mora et al. [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ], have also looked at this problem through the lens of managing fleets
of high-capacity autonomous vehicles. These advances have led to significant improvements
in the performance of these algorithms vis-a-vis the service rate (i.e., the fraction of passenger
requests served out of all requests made) as well as the total delay passengers have to experience
[
        <xref ref-type="bibr" rid="ref2 ref3 ref4">2, 3, 4</xref>
        ].
      </p>
      <p>
        Optimizing for such metrics, however, can have unintended efects on the fairness of such
systems. The issue of fairness in ridesharing has been discussed in various contexts, ranging
from passenger-side fairness in terms of delay and partner choice, driver-side fairness in terms
of equitable earning, and even sub-group level fairness [
        <xref ref-type="bibr" rid="ref5 ref6">5, 6</xref>
        ] for drivers and passengers. Sühr
et al. [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ] outlines the three stakeholders in the ridesharing ecosystem: (i) the taxis/drivers,
(ii) the customers, and (iii) the platform (Uber, Lyft, etc.). The platform takes on the job of
mediating between customers and drivers, a problem that is often cast as an Integer-Linear
Program (ILP) maximizing overall driver preferences over incoming requests. This central role
situates ridesharing platforms to enforce fairness via balancing it with eficiency. Most fairness
research in ridesharing aims to quantify this tradeof in one way or the other as part of the
objective function, by intervening in the matching process through a central mechanism.
      </p>
      <p>
        In our approach, we view the problem in the context of a fleet of autonomous vehicles
controlled by the platform. The optimization is formulated as a reinforcement learning problem,
drawing from state-of-art techniques [
        <xref ref-type="bibr" rid="ref2 ref5">2, 5</xref>
        ] to combine the best performing algorithms with
fairness approaches. Using zonal fairness as an example of sub-group fairness for passengers,
we propose an online approach to incorporate sub-group fairness into ILP-based matching
algorithms, without needing to retrain the pre-learned function approximators. Further, we
propose designating only a small fraction of the vehicles or requests as “fairness-aware” and
postulate that this solution is better at trading of eficiency and fairness compared to applying
the same modifications to all vehicles. We perform experiments to demonstrate the eficacy
of the approach, and perform a grid search over hyperparameters to qualitatively analyze
the fairness-eficiency tradeof. Our experimental results show that our methods outperforms
existing techniques (i.e., it finds matching solutions that result in higher service rates and lower
service rate disparity across zones), demonstrating the practical promise of this approach.
      </p>
      <p>Specifically, our contributions are as follows:
∙ We develop an online framework that uses of-the-shelf value function approximators and
user-defined fairness objectives to trade of eficiency for fairness using state-of-art matching
algorithms.
∙ We introduce new metrics for zonal fairness that consider fairness across source-destination
zone pairs.
∙ We provide real-time tuneable parameters for changing between diferent types and degrees of
fairness, allowing systems to adapt on the fly, and compare the results to existing benchmarks.</p>
    </sec>
    <sec id="sec-2">
      <title>Related work</title>
      <p>
        Order dispatching in ridesharing: Rideshare-matching has been extensively studied, and
researchers have introduced methods that improve the quality of the matches made in terms of
increasing the number of requests matched [
        <xref ref-type="bibr" rid="ref8 ref9">8, 9</xref>
        ], reducing the pickup and detour delays [
        <xref ref-type="bibr" rid="ref1 ref10">1, 10</xref>
        ],
and increasing drivers’ earnings [
        <xref ref-type="bibr" rid="ref11">11</xref>
        ]. The complexity of ridesharing algorithms increases with
the increase in vehicle capacity and fleet size. As the runtime of real-time algorithms need to
be relatively small, most existing work has either considered assigning one request at a time
(sequentially) to available drivers for high capacities [
        <xref ref-type="bibr" rid="ref12 ref9">9, 12</xref>
        ] or assigning all active requests
together in a batch for a small capacity [
        <xref ref-type="bibr" rid="ref13 ref14">13, 14</xref>
        ]. The sequential solution is faster to compute but
the solution quality is typically poor [
        <xref ref-type="bibr" rid="ref15">15</xref>
        ]. Alonso-Mora et al. [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ] proposes integer optimization
approaches for assigning all active requests together for high-capacity ridesharing. Shah et al.
[
        <xref ref-type="bibr" rid="ref2">2</xref>
        ] and Lowalekar et al. [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ] further improve these approaches by including information about
anticipated future requests while matching current batch of requests to available drivers.
Fairness in ridesharing: Researchers have evaluated ridesharing fairness from many
viewpoints. For passengers, there has been work on addressing lack of transparency [
        <xref ref-type="bibr" rid="ref16">16</xref>
        ], using
game-theoretic approaches to fairness [
        <xref ref-type="bibr" rid="ref17">17</xref>
        ], and benefit sharing by ensuring non-increasing
disutility [
        <xref ref-type="bibr" rid="ref18">18</xref>
        ]. Driver-side fairness has also been explored from the economic perspective, by
using a max-min approach to fairness to balance eficiency and fairness [
        <xref ref-type="bibr" rid="ref11">11</xref>
        ], and by looking at
fairness over longer periods of time by equalizing driver income proportional to the number of
hours spent on the platform [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ]. Fairness isn’t restricted to monetary benefits, however.
Motivated by demographic and geographic fairness concerns, recent work formulates a matching
problem with parameters to trade profit for fairness in terms of discriminatory cancellations,
looking at factors like start/end locations, race, gender, or age of passengers [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ] and drivers [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ].
      </p>
      <p>
        A work that is closest to ours is by Raman et al. [
        <xref ref-type="bibr" rid="ref19">19</xref>
        ], which looks at disparate treatment of
passengers and income disparity amongst drivers. While they also look at geographic zones to
quantify fairness for passengers, their approach requires the training of a neural network based
value function to include the fairness term in the objective, making it costly to change parameters
for fairness. Our approach presents an online way to address this problem, without retraining
existing value functions. Further, our approach ofers better tradeofs between eficiency and
fairness as compared to the existing approach, and we show this in our empirical evaluation.
      </p>
    </sec>
    <sec id="sec-3">
      <title>Matching using Reinforcement Learning</title>
      <p>A Ridesharing Matching Problem is a tuple   = ⟨ℛ, , , ⟩ consisting of the set of requests
ℛ, vehicles , road network , and constraints . The solution to this problem is an assignment
 that satisfies the constraints and provides a matching between vehicles and requests.</p>
      <p>Specifically, a request  = ⟨, , ⟩ contains the pickup location , dropof location 
and the arrival time of the request . The vehicle state  = ⟨, , , ⟩ includes its location
, current path , capacity  and the requests it is currently serving . The street network
 = ⟨ℒ, ℰ , ()⟩ is a graph containing locations ℒ connected by roads ℰ , with a cost function
 : ℰ → R+ that defines the cost () of each edge  ∈ ℰ in the graph. Intuitively, it corresponds
to the time needed by a taxi to traverse that edge on the graph. The matching algorithm then
needs to match requests to vehicles given some time and capacity constraints , while optimizing
some metric (e.g., maximizing the service rate).</p>
      <p>
        We now describe how NeurADP [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ], a state-of-the-art deep reinforcement learning based
method, solves this problem. (Our approach is based on NeurADP.) NeurADP learns a Value
Function Approximator (VFA) for a vehicle’s state, which approximates the expected future value
of being in that particular state, using a deep neural network. For each vehicle, it generates a
set of feasible trips [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ] and score them using the VFA. Then, it uses an Integer Linear Program
(ILP) to maximize the cumulative score over all vehicles.
      </p>
      <p>In typical reinforcement learning fashion, there is an agent and an environment. The
environment simulates the motion of vehicles and the arrival of requests with the passage of
time. Each decision epoch, the agent takes the current state of vehicles and pending requests as
input and solves the RMP, matching requests to vehicles. The agent in our setting involves the
combination of a VFA for each vehicle, combined with the ILP that finds the optimal assignment
based on the values. Using the VFA in this fashion to predict expected returns allows it to make
non-myopic decisions that eventually improve the performance of the system.</p>
      <p>
        The VFA is learned based on TD-learning [
        <xref ref-type="bibr" rid="ref20">20</xref>
        ] using experience replay, techniques popularly
used in DQNs [
        <xref ref-type="bibr" rid="ref21">21</xref>
        ]. We observe transitions from the environment, which are stored in a bufer
and later sampled in mini-batches to learn from. All vehicles share the same value function,
allowing for eficient reuse of experiences. The training process and network architecture used
for the VFA is identical to the one used by Shah et al. [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ], and we refer the reader to that paper
for more details.
      </p>
      <p>We define an action as the matching of a set of requests to a vehicle. If vehicle  services
request  , we denote the reward for the vehicle as (,  ). If the set of available (feasible)
actions for vehicle  is , then, for each action  ∈ , the score is the corresponding
immediate rewards obtained for servicing those requests plus the expected future value of the
new vehicle state after being assigned those requests:
where  (· ) is the VFA and ′ is the new state of the vehicle  after accepting all requests
 ∈ . As a shorthand, overloading some notation, we can write the reward for an action as:
() =  (′) + ( )</p>
      <p>∑︁ (,  )
∈
(1)
(2)</p>
      <p>Let  be an indicator variable for whether action  was selected for vehicle . Then, we
can write the objective function of the ILP as follows:
subject to the constraints:
max ∑︁ ∑︁  × ()
∈||</p>
      <p>∈
∑︁</p>
      <p>∑︁
∈|| 
∈ s.t. ∈
∑︁  = 1, ∀ ∈ ||
∈</p>
      <p>≤ 1, ∀ ∈ ℛ</p>
      <p>∈ {0, 1}, ∀
(3)
(4)
(5)
(6)</p>
      <p>Intuitively, the constraints ensure that each vehicle is assigned exactly one action (Eq. 4) and
no request is assigned to more than one vehicle (Eq. 5). In each vehicle’s set of available actions,
there is always the null action (i.e., accepting no new requests), so that there is always a solution.
The final assignment  is a concatenation of all vehicle assignments at a given decision epoch.</p>
      <p>
        The objective function in NeurADP [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ] is to maximize the number of requests served.As the
reward for each request is uniform and the VFA’s predictions are a discounted estimate of the
number of requests the vehicle will pick up in the future, the eficiency can be measured using
the service rate, which is the fraction of requests assigned out of all requests that were made
over a given duration.
      </p>
    </sec>
    <sec id="sec-4">
      <title>Zonal Fairness</title>
      <p>As discussed in earlier sections, there has been interest in preserving fairness across sub-groups
of the passenger and driver populations. In our approach, we focus on the passengers, looking at
service rate fairness across zone pairs for pickup and dropof locations. The motivation to select
this metric is two-fold: (i) It is an intuitive metric and is consistent with other fairness objectives
that aims for equity in eficiency across sub-groups; and (ii) It is dificult to get information
about race, ethnicity, and other cultural factors from publicly-available ridesharing datasets.</p>
      <p>
        Zonal fairness becomes a concern with algorithms like NeurADP [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ], which aim to maximize
the number of passengers served. In such cases, if most of the demand is concentrated within a
certain area, the model will learn to prefer requests to/from that area. Areas with lesser demand
are ignored in favor of the overall maximization objective, resulting in the algorithm sending a
large proportion of the vehicle population towards regions of high demand. As we discuss in
the following sections, small steps towards fairness can go a long way, because serving only a
small number of requests in the less-serviced areas can improve the inequity, possibly at only a
marginal cost to the overall eficiency of the system.
      </p>
      <p>
        We define  zones as disjoint subsets of the locations ℒ in the city graph. Our sub-groups
of interest are people moving between pairs of zones. Recent work [
        <xref ref-type="bibr" rid="ref19">19</xref>
        ] aims to maximize
the minimum service rate by including variance in service rates across diferent zones in the
optimization objective. Specifically, they look at the service rate by source zone, which we
denote as  (i.e., the service rate for all requests originating in zone ).
      </p>
      <p>However, this metric does not take into account the destination of the requests, and there
may be a disparity between fairness based on source zones and fairness based on zone-pairs,
where some source-destination pairs may be severely under-served. To address this limitation,
we define zone-pair service rate  as the service rate for requests originating in zone  and
ending in zone . This gives us a grid Z of zone-pair service rates of size  × , in addition to
a vector Z of source-zone service rates of size .</p>
      <p>
        Given these two sub-group statistics, we can compute fairness metrics of interest, namely the
minimum service rate (by source zone or zone-pair) and the Gini coeficient for the service rates
(also by source zone or zone-pair). We treat each zone/zone-pair as an individual and fairness is
defined by how high the minimum service rate is [
        <xref ref-type="bibr" rid="ref11">11</xref>
        ] and by how low the Gini coeficient is.
We would like to note that these metrics and definitions of fairness are just examples, guided
by recent literature, and we do not claim that these are the only metrics that matter. Instead,
fairness is nuanced and subjective, and we aim to show how one can improve the fairness for
some particular definitions.
      </p>
      <p>Optimizing Zonal Fairness
The key idea of our approach is that the score function in Equation 1 can be modified to
encourage particular request-vehicle matches by adding a bonus to particular vehicles servicing
requests that would improve fairness. This bonus can be tuned to suit the need for fairness,
and the original score function can be used otherwise. This gives us the flexibility of using the
best value functions for general operation to maintain eficiency, and using the bonus to guide
the system towards fairer decisions. It is important to note that we do not retrain the value
function, only using predictions from an existing one.</p>
      <p>Specifically, we define two fairness scores for source-zone ( ) and zone-pair () fairness.
Here,  is the request of interest, and  and  are the source and destination zones of the
request. Intuitively, each score captures how much worse the request’s source zone (zone-pair)
is, compared to the average score. A positive score means it is worse. For ease of representation,
we also overload this function when used for an action  as:
(7)
(8)
(9)
(10)</p>
      <p>We propose a few methods that use the fairness score in conjunction with the ILP in diferent
ways to improve fairness. Each approach modifies the score function (Eq. 1), and can be used
with either  or , but we find that  is empirically stronger.</p>
      <p>() = ||Z||1 − 
() = ||Z||1</p>
      <p>2 − 
() = ∑︁ ()</p>
      <p>∈
() = ∑︁ ()</p>
      <p>∈
In this method, we designate a random fraction  of the vehicles as “fairness-aware,” and these
vehicles receive the fairness bonus. The identity of the fairness-aware vehicles does not change
over time. Intuitively, this lets some dedicated vehicles improve fairness while most vehicles
continue to improve the eficiency objective. Let  denote the set of fairness-aware vehicles.
We then have the following two variants:
•  -fair vehicles ( -Veh): The fairness bonus is added to the existing score function for
 with weight  . In other words, Equation 1 is replaced with:
() =
{︃ (′) + ( ) +  .(), if  ∈</p>
      <p>(′) + (),
otherwise
•  -exclusive-fair vehicles (X -Veh):  use only the reward and the fairness score,
but not the estimated future value from the neural network. Thus, the fairness-aware
vehicles are not concerned with maximizing the long-term value, just the fairness.
() =
{︃( ) +  .(), if  ∈</p>
      <p>(′) + (),
otherwise
(11)
(12)
(13)
Request-based Fairness:
While having designated vehicles trying to enforce fairness is one solution, it is possible that
those vehicles aren’t in the right place at the right time and are thus unable to help improve
the inequity. To combat this, we can instead look at fairness on a per-request basis, adding the
fairness bonus to the rewards of certain requests. Thus, vehicles will be incentivized to pick up
requests that have the fairness bonus, even if the value function gives it a lower score. For this
approach, we modify the reward ( ). Let ℛ denote the set of requests with the fairness

bonus. We then have the following new reward function to replace Equation 2:</p>
      <p>∑︀∈ (,  ),
{︃∑︀∈ ((,  ) +  .( )) ,  ∈ ℛ
otherwise
To select which requests get the fairness bonus, we propose two methods:
•  -subset of requests ( -Req): Using a pair of hyperparameters (,  ) similar to the two
used for fairness-aware vehicles, this approach selects requests by ranking all requests by
decreasing .() and selecting the top  fraction of requests.
• Positive fairness score requests (+Req): In this approach, after ranking requests (as in
 -Req), we select all the requests that have a positive .(). It amounts to assigning a
bonus to all requests going between zones whose service rate is worse than the average
service rate.</p>
      <p>We can vary  and  to change the degree of fairness we expect to see in the system. Each
method may have a diferent response to the exact values, but in general, we expect larger
values of  and  to improve the fairness objective, while causing a decrease in the overall
service rate.</p>
    </sec>
    <sec id="sec-5">
      <title>Experimental Setup</title>
      <p>
        To evaluate the eficacy of the diferent approaches, we evaluate the performance and fairness
metrics after running the matching algorithm over a 24-hour period on the island of Manhattan
using demand data from the NY Yellow Taxi dataset [
        <xref ref-type="bibr" rid="ref22">22</xref>
        ]. The locations in the road network
correspond to street intersections, with edges as roads connecting them. We define zones as all
intersections falling within neighborhoods on Manhattan island.1
      </p>
      <p>
        We use pre-trained NeurADP models [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ] as the base value function. We use the method
proposed by Raman et al. [
        <xref ref-type="bibr" rid="ref19">19</xref>
        ] as a baseline for fairness, using their passenger-side fairness
implementation, which we call FairNN. FairNN uses one hyper-parameter ( ) to trade of profit
and fairness. In the original paper, experiments were performed for 50 and 200 vehicles with a
capacity of 4, for  ∈ {108, 109, 1010}. We use the same parameter settings for our experiments
for a fair comparison to the baseline.
      </p>
      <p>
        However, even with 200 vehicles, the demand from requests saturates the fleet’s capacity. To
simulate a more realistic scenario, we run the experiments with 1000 vehicles as well, similar to
the work by [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ]. For this setting, we also run FairNN with a wider range of  (103 − 1011), to
more clearly see the trend. Note that each setting of  requires retraining the value function for
FairNN, which is costly.
      </p>
      <p>For the methods discussed in this paper ( -Veh, X -Veh,  -Req, +Req), we perform a
logarithmic grid-search over the hyperparameters  (0-1) and  (0-50). We run this search using both 
and  as the fairness scores, independently. For each setting, we find the overall service rate,
the Gini coeficient of the service rate by source zone (Gini( Z)) and by zone-pair (Gini(Z)),
and the minimum service rate for any source zone (min(Z)) or zone-pair (min(Z )).</p>
    </sec>
    <sec id="sec-6">
      <title>Experimental Results</title>
      <p>In this section, we go over the key results from our experiments. The full set of experiments
had over 900 runs;2 we thus present selected results that illustrate the overall trend. We discuss
1https://github.com/erikgregorywebb/nyc-housing/blob/ master/Data/nyc-zip-codes.csv
2The complete results can be found at https://github.com/ashwinkwashu/ATT22ZonalFairness
the results from the analysis of the 1000 vehicle case here, though the trends hold for 200 and
50 vehicles as well.</p>
      <p>Pickup-only vs. pickup/dropof-pair fairness: Figure 3 shows the Pareto frontiers that
represent the overall service rate and fairness tradeof.</p>
      <p>Solid lines are associated with our approaches in which groups are defined with respect to
pickup-only locations (), while dashed lines correspond to approaches that define groups
based on pickup-dropof location pairs ().</p>
      <p>Our first observation is that in nearly every instance the dashed lines (our approaches
using zone-pairs) Pareto dominate solid lines (our approaches using source zones only), even
when we use source zones (Z) for evaluation. This observation demonstrates the usefulness
of the additional observation provided by the latter in improving geographic fairness, and is
particularly noteworthy given that the prior FairNN approach defined zones using only pickup
locations. Due to this observation, the remaining analysis focuses on pickup-dropof variants of
our approaches.</p>
      <p>Baseline comparisons: Figure 3 compares the proposed approaches (consider only the dashed
lines henceforth) with two baselines: NeurADP and FairNN. For FairNN, we construct the Pareto
frontier by considering many values of  and omitting any that were Pareto dominated (in some
cases, there was only a single Pareto dominant result for FairNN, in which we plotted just this
point). First, observe that our approaches Pareto dominate FairNN by a considerable margin.
Thus, in addition to computational benefits (we do not have to retrain the value function), the
proposed methods can achieve both higher service rate and greater fairness than FairNN. We also
observe that the proposed methods can yield considerable fairness improvement over NeurADP,
with relatively minor degradation in service rate. This is further illustrated in Table 1. Consider
comparison between NeurADP, FairNN( = 107), the best parameter value we identified, and
+Req( = 15) in this table. +Req yields nearly the same overall service rate as NeurADP, but
with a dramatic increase in the minimum service rate and a dramatic reduction in the Gini
coeficient. It also outperforms FairNN on all of these metrics, in several cases by a large margin.
Fairness-eficiency tradeof: Figure 2 shows how the various metrics change with changing
hyperparameters for  -Veh, using the zone-pair fairness score .  controls the weight of the
fairness score and  is the fraction of fairness-aware vehicles. We see that as  and  increase
(stronger fairness), overall service rate decreases and the fairness objective used in the fairness
score (here, Gini(Z)) improves. Other fairness metrics like the min(Z) also improve, but the
change is not monotonic, as can be seen in the third heatmap. This trend is seen across all
diferent methods and both fairness scores. This suggests that there is a direct tradeof between
eficiency and the selected fairness metric, and it is possible to use the other metrics to select a
suitable value for the hyperparameters.</p>
      <p>Further, this shows that there is merit in applying the fairness score to a subset of the vehicle
population, as the change in service rate along the  axis is slower, while still giving gains for
fairness. This is also shown by the fact that min(Z) is maximized when half the vehicles are
fair. Specifically, it does not lie at  = 1. We also observe that there are diminishing returns
with respect to the fairness utility as  increases. As shown in Figure 2, doubling the number of
fair vehicles does not double the fairness gain.</p>
      <p>Relative performance of our methods: We can observe from Figure 3 that request-based
methods ( -Req and +Req) tend to outperform vehicle-based methods ( -Veh and X -Veh)
across the board, with the only exception coming for very low Gini coeficients with respect to
pickup-dropof-based zones (leftmost plot). This is likely because vehicle-based methods require
the fairness-aware vehicles to be in the right place in order to have an impact on fairness (e.g., in
order for the requests coming from underserved zones to be feasible for these). Request-based
methods have comparable performance, but having the additional parameter in  -Req helps it
achieve lower Gini coeficients than +Req.</p>
      <p>Driver fairness: While fairness in the distribution of driver profits is not our primary focus, it
is an important additional consideration in ridesharing. We thus consider how the proposed
methods compare to NeurADP and FairNN in terms of the distribution of number of requests
served (equivalent to income in our setting, as we assume identical costs per trip for all trips)
by the drivers for the scenarios in Table 1.</p>
      <p>Figure 4 shows the distribution of the trips each driver served in one day. Interestingly,
NeurADP exhibits a relatively low variance in the number of requests served, particularly
compared to FairNN that uses fairness of requests in the objective, perhaps suggesting a significant
tradeof between achieving these two types of equity. What is particularly noteworthy is that
our vehicle-based methods yield considerable unfairness in requests served among drivers – not
only is variance high, but the distribution itself becomes bimodal. In contrast, our request-based
methods exhibit variance comparable to NeurADP, suggesting that it may be possible to achieve
high overall service rate, and both a high level of rider and driver fairness.</p>
    </sec>
    <sec id="sec-7">
      <title>Conclusions</title>
      <p>As the demand for cutting edge algorithms for urban mobility increases, their efect on the
underlying fairness of these systems needs to be studied, and measures taken to ensure that our
algorithms do not inherit the implicit biases that result from pure optimization. In this work, we
discussed the issue of zonal fairness in ridesharing systems, introducing new fairness metrics
for zone-pair fairness. Through four simple methods that build on existing solutions for order
dispatching, we showed how simple techniques can be used to trade of eficiency for fairness.
Our methods outperform existing approaches to zonal fairness via an online modification to
state-of-art techniques in ridesharing, with the added advantage of not needing any extra
training and the ability to be used with any VFA. The tradeofs proposed in this work can be
dynamically adjusted to have increased fairness at minimal cost to eficiency. Our experiments
showed that it is better to apply fairness incentives to a subset of the driver or request population
for maximum results, as opposed to a blanket approach to fairness.</p>
      <p>Our work leaves some interesting avenues open for future work:
∙ The generalizability of our approach needs to be evaluated. While it can theoretically be
applied with any VFA, experiments are needed to verify that. Similarly, this approach needs
to be tested with diferent sub-group fairness measures apart from zonal fairness.
∙ Our approach is limited by the need to find the right hyperparameter setting for a desired
fairness level, but this problem is shared across other solutions for fairness. A potential
solution to this problem may involve learning to adapt the hyperparameters to the current
state of the world. Such an approach would automatically be able to tune the fairness based
on the changes in demand and supply.
∙ It is of interest to prove theoretical bounds on the expected gains such an approach can
provide, given a particular method to improve fairness. We provide general intuition on why
we expect our approaches to work, and to explain the results we see. Future work may find
mathematical guarantees that confirm our empirical results.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <given-names>J.</given-names>
            <surname>Alonso-Mora</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Samaranayake</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Wallar</surname>
          </string-name>
          ,
          <string-name>
            <given-names>E.</given-names>
            <surname>Frazzoli</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Rus</surname>
          </string-name>
          ,
          <article-title>On-demand high-capacity ride-sharing via dynamic trip-vehicle assignment</article-title>
          ,
          <source>Proceedings of the National Academy of Sciences</source>
          <volume>114</volume>
          (
          <year>2017</year>
          )
          <fpage>462</fpage>
          -
          <lpage>467</lpage>
          . URL: http://dx.doi.org/10.1073/pnas.1611675114. doi:
          <volume>10</volume>
          . 1073/pnas.1611675114.
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <given-names>S.</given-names>
            <surname>Shah</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Lowalekar</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P.</given-names>
            <surname>Varakantham</surname>
          </string-name>
          ,
          <article-title>Neural approximate dynamic programming for on-demand ride-pooling</article-title>
          ,
          <source>Proceedings of the AAAI Conference on Artificial Intelligence</source>
          <volume>34</volume>
          (
          <year>2020</year>
          )
          <fpage>507</fpage>
          -
          <lpage>515</lpage>
          . URL: http://dx.doi.org/10.1609/aaai.v34i01.5388. doi:
          <volume>10</volume>
          .1609/aaai. v34i01.
          <fpage>5388</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <given-names>M.</given-names>
            <surname>Lowalekar</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P.</given-names>
            <surname>Varakantham</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P.</given-names>
            <surname>Jaillet</surname>
          </string-name>
          ,
          <article-title>Zac: A zone path construction approach for efective real-time ridesharing</article-title>
          ,
          <source>in: Proceedings of the International Conference on Automated Planning and Scheduling</source>
          , volume
          <volume>29</volume>
          ,
          <year>2019</year>
          , pp.
          <fpage>528</fpage>
          -
          <lpage>538</lpage>
          . URL: https: //aaai.org/ojs/index.php/ICAPS/article/view/3519.
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <given-names>M.</given-names>
            <surname>Li</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Z.</given-names>
            <surname>Qin</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Y.</given-names>
            <surname>Jiao</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Y.</given-names>
            <surname>Yang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Wang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>C.</given-names>
            <surname>Wang</surname>
          </string-name>
          , G. Wu,
          <string-name>
            <given-names>J.</given-names>
            <surname>Ye</surname>
          </string-name>
          ,
          <article-title>Eficient ridesharing order dispatching with mean field multi-agent reinforcement learning</article-title>
          ,
          <source>in: The World Wide Web Conference</source>
          , WWW '19,
          <string-name>
            <surname>Association</surname>
          </string-name>
          for Computing Machinery, New York, NY, USA,
          <year>2019</year>
          , p.
          <fpage>983</fpage>
          -
          <lpage>994</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <given-names>V.</given-names>
            <surname>Nanda</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P.</given-names>
            <surname>Xu</surname>
          </string-name>
          ,
          <string-name>
            <given-names>K. A.</given-names>
            <surname>Sankararaman</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Dickerson</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Srinivasan</surname>
          </string-name>
          ,
          <article-title>Balancing the tradeof between profit and fairness in rideshare platforms during high-demand hours</article-title>
          ,
          <source>Proceedings of the AAAI Conference on Artificial Intelligence</source>
          <volume>34</volume>
          (
          <year>2020</year>
          )
          <fpage>2210</fpage>
          -
          <lpage>2217</lpage>
          . URL: http://dx.doi. org/10.1609/aaai.v34i02.5597. doi:
          <volume>10</volume>
          .1609/aaai.v34i02.
          <fpage>5597</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <given-names>Y.</given-names>
            <surname>Xu</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P.</given-names>
            <surname>Xu</surname>
          </string-name>
          ,
          <article-title>Trade the system eficiency for the income equality of drivers in rideshare</article-title>
          ,
          <source>in: Proceedings of the Twenty-Ninth International Joint Conference on Artificial Intelligence</source>
          ,
          <source>International Joint Conferences on Artificial Intelligence Organization</source>
          ,
          <year>2020</year>
          . URL: http: //dx.doi.org/10.24963/ijcai.
          <year>2020</year>
          /580. doi:
          <volume>10</volume>
          .24963/ijcai.
          <year>2020</year>
          /580.
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <given-names>T.</given-names>
            <surname>Sühr</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A. J.</given-names>
            <surname>Biega</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Zehlike</surname>
          </string-name>
          ,
          <string-name>
            <given-names>K. P.</given-names>
            <surname>Gummadi</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Chakraborty</surname>
          </string-name>
          ,
          <article-title>Two-sided fairness for repeated matchings in two-sided markets</article-title>
          ,
          <source>in: Proceedings of the 25th ACM SIGKDD International Conference on Knowledge Discovery &amp; Data Mining, ACM</source>
          ,
          <year>2019</year>
          . URL: http://dx.doi.org/10.1145/3292500.3330793. doi:
          <volume>10</volume>
          .1145/3292500.3330793.
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          [8]
          <string-name>
            <given-names>M.</given-names>
            <surname>Lowalekar</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P.</given-names>
            <surname>Varakantham</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P.</given-names>
            <surname>Jaillet</surname>
          </string-name>
          ,
          <article-title>Zone path construction (zac) based approaches for efective real-time ridesharing</article-title>
          , arXiv:
          <year>2009</year>
          .
          <volume>06051</volume>
          (
          <year>2020</year>
          ). URL: https://arxiv.org/abs/
          <year>2009</year>
          .06051.
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          [9]
          <string-name>
            <given-names>S.</given-names>
            <surname>Ma</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Y.</given-names>
            <surname>Zheng</surname>
          </string-name>
          ,
          <string-name>
            <given-names>O.</given-names>
            <surname>Wolfson</surname>
          </string-name>
          ,
          <article-title>Real-time city-scale taxi ridesharing</article-title>
          ,
          <source>IEEE Transactions on Knowledge and Data Engineering</source>
          <volume>27</volume>
          (
          <year>2015</year>
          )
          <fpage>1782</fpage>
          -
          <lpage>1795</lpage>
          . URL: http://dx.doi.org/10.1109/ TKDE.
          <year>2014</year>
          .
          <volume>2334313</volume>
          . doi:
          <volume>10</volume>
          .1109/tkde.
          <year>2014</year>
          .
          <volume>2334313</volume>
          .
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          [10]
          <string-name>
            <given-names>Y.</given-names>
            <surname>Huang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>F.</given-names>
            <surname>Bastani</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R.</given-names>
            <surname>Jin</surname>
          </string-name>
          ,
          <string-name>
            <given-names>X. S.</given-names>
            <surname>Wang</surname>
          </string-name>
          ,
          <article-title>Large scale real-time ridesharing with service guarantee on road networks</article-title>
          ,
          <source>Proceedings of the VLDB Endowment</source>
          <volume>7</volume>
          (
          <year>2014</year>
          )
          <fpage>2017</fpage>
          -
          <lpage>2028</lpage>
          . URL: http://dx.doi.org/10.14778/2733085.2733106. doi:
          <volume>10</volume>
          .14778/2733085.2733106.
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          [11]
          <string-name>
            <given-names>N. S.</given-names>
            <surname>Lesmana</surname>
          </string-name>
          ,
          <string-name>
            <given-names>X.</given-names>
            <surname>Zhang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>X.</given-names>
            <surname>Bei</surname>
          </string-name>
          ,
          <article-title>Balancing eficiency and fairness in ondemand ridesourcing</article-title>
          , in: H.
          <string-name>
            <surname>Wallach</surname>
            ,
            <given-names>H.</given-names>
          </string-name>
          <string-name>
            <surname>Larochelle</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          <string-name>
            <surname>Beygelzimer</surname>
          </string-name>
          , F.
          <string-name>
            <surname>d'Alché- Buc</surname>
          </string-name>
          , E. Fox, R. Garnett (Eds.),
          <source>Advances in Neural Information Processing Systems</source>
          <volume>32</volume>
          ,
          <string-name>
            <surname>Curran</surname>
            <given-names>Associates</given-names>
          </string-name>
          , Inc.,
          <year>2019</year>
          , pp.
          <fpage>5309</fpage>
          -
          <lpage>5319</lpage>
          . URL: http://papers.nips.cc/paper/ 8772-balancing
          <article-title>-eficiency-and-fairness-in-on-demand-ridesourcing</article-title>
          .pdf.
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          [12]
          <string-name>
            <given-names>Y.</given-names>
            <surname>Tong</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Y.</given-names>
            <surname>Zeng</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Z.</given-names>
            <surname>Zhou</surname>
          </string-name>
          ,
          <string-name>
            <given-names>L.</given-names>
            <surname>Chen</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Ye</surname>
          </string-name>
          ,
          <string-name>
            <given-names>K.</given-names>
            <surname>Xu</surname>
          </string-name>
          ,
          <article-title>A unified approach to route planning for shared mobility</article-title>
          ,
          <source>Proceedings of the VLDB Endowment</source>
          <volume>11</volume>
          (
          <year>2018</year>
          )
          <fpage>1633</fpage>
          -
          <lpage>1646</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          [13]
          <string-name>
            <given-names>X.</given-names>
            <surname>Yu</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Shen</surname>
          </string-name>
          ,
          <article-title>An integrated decomposition and approximate dynamic programming approach for on-demand ride pooling</article-title>
          ,
          <source>IEEE Transactions on Intelligent Transportation Systems</source>
          (
          <year>2019</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref14">
        <mixed-citation>
          [14]
          <string-name>
            <given-names>L.</given-names>
            <surname>Zheng</surname>
          </string-name>
          ,
          <string-name>
            <given-names>L.</given-names>
            <surname>Chen</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Ye</surname>
          </string-name>
          ,
          <article-title>Order dispatch in price-aware ridesharing</article-title>
          ,
          <source>Proceedings of the VLDB Endowment</source>
          <volume>11</volume>
          (
          <year>2018</year>
          )
          <fpage>853</fpage>
          -
          <lpage>865</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref15">
        <mixed-citation>
          [15]
          <string-name>
            <surname>Uber</surname>
          </string-name>
          , Uber matching solution, https://marketplace.uber.com/matching,
          <year>2018</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref16">
        <mixed-citation>
          [16]
          <string-name>
            <given-names>O.</given-names>
            <surname>Wolfson</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Lin</surname>
          </string-name>
          ,
          <article-title>Fairness versus optimality in ridesharing</article-title>
          ,
          <source>in: 2017 18th IEEE International Conference on Mobile Data Management (MDM)</source>
          , IEEE,
          <year>2017</year>
          . URL: http: //dx.doi.org/10.1109/MDM.
          <year>2017</year>
          .
          <volume>25</volume>
          . doi:
          <volume>10</volume>
          .1109/mdm.
          <year>2017</year>
          .
          <volume>25</volume>
          .
        </mixed-citation>
      </ref>
      <ref id="ref17">
        <mixed-citation>
          [17]
          <string-name>
            <given-names>L.</given-names>
            <surname>Foti</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Lin</surname>
          </string-name>
          ,
          <string-name>
            <given-names>O.</given-names>
            <surname>Wolfson</surname>
          </string-name>
          ,
          <article-title>Optimum versus nash-equilibrium in taxi ridesharing</article-title>
          ,
          <source>GeoInformatica</source>
          (
          <year>2019</year>
          ). URL: http://dx.doi.org/10.1007/s10707-019-00379-6. doi:
          <volume>10</volume>
          .1007/ s10707-019-00379-6.
        </mixed-citation>
      </ref>
      <ref id="ref18">
        <mixed-citation>
          [18]
          <string-name>
            <given-names>R.</given-names>
            <surname>Gopalakrishnan</surname>
          </string-name>
          ,
          <string-name>
            <given-names>K.</given-names>
            <surname>Mukherjee</surname>
          </string-name>
          , T. Tulabandhula,
          <article-title>The costs and benefits of ridesharing: Sequential individual rationality and sequential fairness</article-title>
          ,
          <source>CoRR abs/1607</source>
          .07306 (
          <year>2016</year>
          ). URL: http://arxiv.org/abs/1607.07306. arXiv:
          <volume>1607</volume>
          .
          <fpage>07306</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref19">
        <mixed-citation>
          [19]
          <string-name>
            <given-names>N.</given-names>
            <surname>Raman</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Shah</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Dickerson</surname>
          </string-name>
          ,
          <article-title>Data-driven methods for balancing fairness and eficiency in ride-pooling</article-title>
          ,
          <source>in: Proceedings of the Thirtieth International Joint Conference on Artificial Intelligence, IJCAI-21</source>
          ,
          <year>2021</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref20">
        <mixed-citation>
          [20]
          <string-name>
            <given-names>R. S.</given-names>
            <surname>Sutton</surname>
          </string-name>
          ,
          <article-title>Learning to predict by the methods of temporal diferences</article-title>
          ,
          <source>Machine learning 3</source>
          (
          <year>1988</year>
          )
          <fpage>9</fpage>
          -
          <lpage>44</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref21">
        <mixed-citation>
          [21]
          <string-name>
            <given-names>V.</given-names>
            <surname>Mnih</surname>
          </string-name>
          ,
          <string-name>
            <given-names>K.</given-names>
            <surname>Kavukcuoglu</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Silver</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Graves</surname>
          </string-name>
          ,
          <string-name>
            <given-names>I.</given-names>
            <surname>Antonoglou</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Wierstra</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Riedmiller</surname>
          </string-name>
          ,
          <article-title>Playing atari with deep reinforcement learning</article-title>
          ,
          <source>arXiv preprint arXiv:1312.5602</source>
          (
          <year>2013</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref22">
        <mixed-citation>
          [22]
          <string-name>
            <given-names>NYC</given-names>
            <surname>Taxi &amp; Limousine Commission</surname>
          </string-name>
          ,
          <source>Tlc triprecord data - tlc</source>
          ,
          <year>2020</year>
          . URL: https://www1. nyc.gov/site/tlc/about/tlc
          <article-title>-trip-record-data</article-title>
          .
          <source>page.</source>
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>