πŸ€–
CS4261 Algorithmic Mechanism Design
  • Nash Equilibria
  • Auctions and Routing Games
  • Cooperative Games
  • Axiomatic Approach to Fairness
  • Stable Matchings
  • Nash Bargaining Solution
  • Fair Allocation of Indivisible Goods
  • Cake Cutting
  • Rent Division
  • Committee Voting
  • Tournaments
Powered by GitBook
On this page
  • Properties of a Fair Approach
  • The Shapley Value
  • Shapley Value in Induced Subgraph Games

Axiomatic Approach to Fairness

We’re trying to define what is β€œfair” by coming up with some reasonable and desire properties we would like this definition to have.

Fairness considerations include the discussion on Shapley value, Nash bargaining solution, and the fair allocation of goods.

That is, we’re trying to answer the question: given a cooperative game v:2Nβ†’R+v : 2^N \to R_{+}v:2Nβ†’R+​, how should the revenue v(N)v(N)v(N) be divided fairly?

Properties of a Fair Approach

These are properties that we would like our method to have. Note that these aren’t some random mathemtical formulae. They reflect our goals β€” we’re trying to encode our beliefs of what an ideal-world algorithm should look like, in the form of mathematical equations.

  1. Efficiency β†’ βˆ‘i∈NΟ•i=v(N)\sum_{i \in N} \phi_i = v(N)βˆ‘i∈N​ϕi​=v(N). That is, there is no loss in the value generated and what is paid out to the people. Everything is distributed. Again, this is a notion of economic efficiency β€” we can’t make someone better off without making someone else worse off.

  2. Symmetry β†’ Symmetric players are paid equally. Two players iii and jjj are said to be symmetric iff when added to any set of players (excluding themselves), they contribute the same marginal value. That is, βˆ€SβŠ†Nβˆ–β€‰{i,j},Β v(Sβˆͺ{i})=v(Sβˆͺ{j})\forall S \subseteq N \setminus \, \{i, j\}, \ v(S \cup \{i\}) = v(S \cup \{j\})βˆ€SβŠ†Nβˆ–{i,j},Β v(Sβˆͺ{i})=v(Sβˆͺ{j}).

    This property is also called equal treatment of equals.

  3. Dummy players aren’t paid. A player is said to be β€œdummy” if he does not contribute any value to any set of players. That is, βˆ€SβŠ†Nβˆ–{i},Β v(Sβˆͺ{i})=v(S)\forall S \subseteq N \setminus \{i\}, \ v(S \cup \{i\}) = v(S)βˆ€SβŠ†Nβˆ–{i},Β v(Sβˆͺ{i})=v(S)

  4. Our β€œpayoff division” function Ο•\phiΟ•, must be linear. That is,

    1. Ο•i(G1)+Ο•(G2)=Ο•(G1+G2)\phi_i(G_1) + \phi(G_2) = \phi(G_1 + G_2)Ο•i​(G1​)+Ο•(G2​)=Ο•(G1​+G2​). Here, G1G_1G1​ and G2G_2G2​ are two games, and β€œadding” the two games simply means that we’re considering the combined game now. And then, the payoff that each player gets in G1G_1G1​ and G2G_2G2​ should add up to the same if we combined both the games into one.

    2. Ο•i(aβ‹…G1)=aβ‹…Ο•i(G1)\phi_i(a \cdot G_1) = a \cdot \phi_i(G_1)Ο•i​(aβ‹…G1​)=aβ‹…Ο•i​(G1​). Scaling a game by a factor of aaa should just scale each player’s payoff by aaa. e.g. if everyone is producing 2x more value, they should all be paid 2x more β€” scaling shouldn’t change the ratio in which people are being paid.

In the above discussion, we were just stating our wishes for the ideal payment function. But there is no reason to believe that such an ideal function exists in the first place (and it’s not at all obvious why there must be a function that satisfies all these criteria).

However, it turns out that such a payment function Ο•\phiΟ• does exist. And it’s called the…

The Shapley Value

Given each payer iii and a set SβŠ†NS \subseteq NSβŠ†N, the marginal contribution of iii to SSS is given by:

mi(S)=v(Sβˆͺ{i})βˆ’v(S)m_i(S) = v(S \cup \{i\}) - v(S)mi​(S)=v(Sβˆͺ{i})βˆ’v(S)

That is, how much does iii contribute by joining SSS ?

It seems natural that each player should be paid their marginal contribution to the group, right? It quite literally is the value they’re bringing to the table.

But the issue is: which group do we consider? By joining different groups, you might contribute different values β€” so what should you be paid?

One possible idea is to pay the average value you would contribute (where the average is taken across all possible sets SβŠ†Nβˆ–{i}S \subseteq N \setminus \{i\}SβŠ†Nβˆ–{i}). If we did this, it would satisfy ALL the desired properties except efficiency, i.e., the total value we pay everyone is exactly equal to the total value generated as a group. (So, we have the right idea, but the β€œscaling factor” of 2nβˆ’12^{n-1}2nβˆ’1 is not correct because the total value of a set SSS is NOT equal to the βˆ‘i∈Smi(S)\sum_{i \in S} m_i(S)βˆ‘i∈S​mi​(S), but instead we’ve to consider the order in which elements are added in SSS, and then look at the marginal contributions of each element only considering the elements before it).

So, the Shapley value is almost that, except that it takes the average over all permutations of preceding people who are in the group before iii. The reason we need to do this is that the probability of joining a set of players should depend on the size of the set β€” think of it this way: there are 6 ways for the group {1,2,3}\{1, 2, 3\}{1,2,3} to be β€œformed” (the 6 permutations indicating who came first), but only 1 way for the group {1}\{1\}{1} to be formed. So, your probability of joining the group with 3 members is more than that of joining the group with only 1 member. (We’re assuming here that the groups are formed in a way that people form a queue, with random positions, and then each person joins the group formed by everyone before them.)

Formally, given a permutation ΟƒβˆˆΞ (N)\sigma \in \Pi(N)ΟƒβˆˆΞ (N) of players, let the predecessors of iii in Οƒ\sigmaΟƒ be:

Pi(Οƒ)={j∈Nβˆ£Οƒ(j)<Οƒ(i)}P_i(\sigma) = \{j \in N | \sigma(j) < \sigma(i) \}Pi​(Οƒ)={j∈Nβˆ£Οƒ(j)<Οƒ(i)}

Basically, the set of players who are before iii in the permutation Οƒ\sigmaΟƒ (visualize it as people standing in a line β€” then everyone to the right of iii is considered to be β€œpredecessors of iii”).

We write mi(Οƒ)=mi(Pi(Οƒ))m_i(\sigma) = m_i(P_i(\sigma))mi​(Οƒ)=mi​(Pi​(Οƒ)) β†’ how much does iii contribute (marginally) if iii is added to the set of her predecessors in Οƒ\sigmaΟƒ.

Suppose that we choose an ordering of the players uniformly at random. Then, the shapley value of player iii is:

Shi=E[mi(Οƒ)]=1n!βˆ‘ΟƒβˆˆΞ (N)mi(Οƒ)Sh_i = E[m_i(\sigma)] = \frac{1}{n!} \sum_{\sigma \in \Pi(N)} m_i(\sigma)Shi​=E[mi​(Οƒ)]=n!1β€‹ΟƒβˆˆΞ (N)βˆ‘β€‹mi​(Οƒ)

πŸ’‘ The Shapley Value satisfies all of the 4 properties above: efficiency, symmetry, dummy, and linearity.

In fact, (and this is a much stronger claim), the Shapley value is THE ONLY value satisfying efficiency, linearity, dummy and symmetry! That is, these 4 properties are a characterization of the Shapley value (so, if you want all of these 4 properties, you literally have no choice but to use the Shapley value)

e.g. Given a weighted voting game where w1=1,w2=1,w3=3,w4=4w_1 = 1, w_2 = 1, w_3 = 3, w_4 = 4w1​=1,w2​=1,w3​=3,w4​=4 and the threshold is q=5q=5q=5. Compute the shapley values of all players.

In a WVG (weighted voting game), there is only 1 pivotal player in any permutation β€” the player that β€œpushes” the coalition from losing to winning. All players before that player were part of a losing coalition and they didn’t do anything about it, and all players after that player were already part of a winning coalition so they didn’t have to do anything.

Here, observe that player 4 is only pivotal if he is second or third β€” and this happens with probability 0.5, so his shapley value is 12\frac 1 221​ (i.e, in half the permutations, he is pivotal and in those cases, his marginal contribution is 1, and in the rest, he contributes nothing).

Player 1 is pivotal in only 4 out of 4! permutations (when he is preceded by players {2,3} or {4}) and so, his shapley value is 16\frac 1 661​.

By symmetry, player 2 also gets 16\frac 1 661​.

By efficiency, player 3 gets 1βˆ’(16+16+12)=161 - (\frac 1 6 + \frac 1 6 + \frac 1 2)=\frac 1 61βˆ’(61​+61​+21​)=61​.

Note that Sh1=Sh2=Sh3Sh_1 = Sh_2 = Sh_3Sh1​=Sh2​=Sh3​ even though w3=3>w1=w2w_3 = 3 > w_1 = w_2w3​=3>w1​=w2​. So, having a higher weight does not necessarily result in higher payoff.

Shapley Value in Induced Subgraph Games

πŸ’‘ Theorem: In an induced subgraph game, Ο•=12βˆ‘j∈Nw(i,j)\phi = \frac 1 2 \sum_{j \in N} w(i, j)Ο•=21β€‹βˆ‘j∈N​w(i,j) β€” that is each player gets half of the β€œsynergy” value in each relationship (marginally) with each of the other players.

This theorem makes it much easier to calculate the shapley value since we don’t have to look at the n!n!n! permutations β€” we can just look at the graph!

Let’s prove the theorem.

For each player iii, her marginal contribution to a set SβŠ†Nβˆ–{i}S \subseteq N \setminus \{i\}SβŠ†Nβˆ–{i} equals βˆ‘j∈Sw(i,j)\sum_{j \in S} w(i, j)βˆ‘j∈S​w(i,j). This is true by definition of induced subgraph games (and the definition of marginal contribution).

For every player jβ‰ ij \neq ijξ€ =i, let I(j∈Pi(Οƒ))I(j \in P_i(\sigma))I(j∈Pi​(Οƒ)) be an indicator random variable that equals 1 if jjj appears before iii in Οƒ\sigmaΟƒ, and 0 otherwise.

Then, the shapley vlaue is:

SHi=EΟƒ[v(Pi(Οƒ)βˆͺ{i})βˆ’v(Pi(Οƒ))]=EΟƒ[βˆ‘j∈Pi(Οƒ)w(i,j)]SH_i =E_\sigma[v(P_i(\sigma) \cup \{i\}) - v(P_i(\sigma))] = E_\sigma \left[\sum_{j \in P_i(\sigma)} w(i, j) \right]SHi​=Eσ​[v(Pi​(Οƒ)βˆͺ{i})βˆ’v(Pi​(Οƒ))]=Eσ​​j∈Pi​(Οƒ)βˆ‘β€‹w(i,j)​

And we can write it as

=EΟƒ[βˆ‘j∈Nβˆ–{i}I(j∈Pi(Οƒ))β‹…w(i,j)]= E_\sigma\left[\sum_{j \in N \setminus \{i\}} I(j \in P_i(\sigma)) \cdot w(i, j)\right]=Eσ​​j∈Nβˆ–{i}βˆ‘β€‹I(j∈Pi​(Οƒ))β‹…w(i,j)​

Notice this is kind of a double sum β€” for each permutation, we’re looking at the nodes and checking whether they are a predecessor of iii or not (and then deciding whether to contribute w(i,j)w(i,j)w(i,j) or not).

for sigma in permutations
	for j in N \ {i}
		...
for j in N \ {i}
	for sigma in permutations
		...

What if… we change the order of the β€œloop”, and think of it as: for each node, look at all the permutations and check whether the node is a predecessor of iii or not.

The reason we prefer this is because it’s much easier to find the probability of any node being a predecessor of iii or not, in a random permutation β€” it’s just 12\frac 1 221​.. Because in any random permtuation, iii is equally likely to be before jjj or vice versa, and so the probability that a node jjj is a predecessor of iii is 0.5.

Okay, let’s get back to the math now.

We have (by linearity of expectation):

=βˆ‘j∈Nβˆ–{i}EΟƒ[I(j∈Pi(Οƒ))β‹…w(i,j)]= \sum_{j \in N \setminus \{i\}} E_\sigma[I(j \in P_i(\sigma)) \cdot w(i, j)]=j∈Nβˆ–{i}βˆ‘β€‹Eσ​[I(j∈Pi​(Οƒ))β‹…w(i,j)]

and since w(i,j)w(i,j)w(i,j) is a constant that does not depend on σ\sigmaσ, we can pull it out (again by linearity):

=βˆ‘j∈Nβˆ–{i}w(i,j)β‹…EΟƒ[I(j∈Pi(Οƒ))]= \sum_{j \in N \setminus \{i\}} w(i, j) \cdot E_\sigma[I(j \in P_i(\sigma))]=j∈Nβˆ–{i}βˆ‘β€‹w(i,j)β‹…Eσ​[I(j∈Pi​(Οƒ))]

And, as we talked about earlier, by symmetry, it’s equally likely for iii to be before jjj or jjj to be before iii. So, in half the permutations Οƒ\sigmaΟƒ, I(j∈Pi(Οƒ))I(j \in P_i(\sigma))I(j∈Pi​(Οƒ)) will be 1, and in the remaining half, it will be 0 β€” yielding an average value of 12\frac 1 221​ (an easier way to think of this is that the expectation of any random variable is just its probability of it being 1).

So, we get:

=βˆ‘j∈Nβˆ–{i}w(i,j)β‹…12=12βˆ‘j∈Nβˆ–{i}w(i,j)= \sum_{j \in N \setminus \{i\}} w(i, j) \cdot \frac 1 2 = \frac 1 2 \sum_{j \in N \setminus \{i\}} w(i, j)=j∈Nβˆ–{i}βˆ‘β€‹w(i,j)β‹…21​=21​j∈Nβˆ–{i}βˆ‘β€‹w(i,j)

which is exactly what we claimed.

πŸ’‘ Note that the β€œcore” and β€œshapley value” measure different things. So, a payoff vector in the core might not be the shapley value, and the shapley value might not even be in the core. An example is to consider the following game:

  • v(1)=v(2)=v(3)=0v(1) = v(2) = v(3)= 0v(1)=v(2)=v(3)=0

  • v(1,2)=0,v(1,3)=1,v(2,3)=1v(1,2)=0, v(1,3)=1, v(2,3)=1v(1,2)=0,v(1,3)=1,v(2,3)=1

  • v(1,2,3)=1v(1,2,3)=1v(1,2,3)=1

Clearly, since player 3 is a veto player (you cannot win without her), the core contains only the vector (0, 0, 1).

BUT we can find the Shapley value to be (16,16,23)(\frac 1 6, \frac 1 6, \frac 2 3)(61​,61​,32​) β€” intuitively, we give some payoff to players 1 and 2 because even though player 3 is a veto player, she cannot win by herself. She needs at least one of the players 1 or 2 to support her to win.

Core measures whether any set of players can benefit by deviating. Shapley value measures whether everyone is being paid their average marginal contribution.

PreviousCooperative GamesNextStable Matchings

Last updated 6 months ago