PageRank; Facility Location CSC2556 - Nisarg Shah 1 Announcements - - PowerPoint PPT Presentation

pagerank facility location
SMART_READER_LITE
LIVE PREVIEW

PageRank; Facility Location CSC2556 - Nisarg Shah 1 Announcements - - PowerPoint PPT Presentation

CSC2556 Lecture 4 Impartial Selection; PageRank; Facility Location CSC2556 - Nisarg Shah 1 Announcements Proposal tentatively due around the end of Feb But it will help to decide the topic earlier, and start working. Ill put up


slide-1
SLIDE 1

CSC2556 Lecture 4 Impartial Selection; PageRank; Facility Location

CSC2556 - Nisarg Shah 1

slide-2
SLIDE 2

Announcements

CSC2556 - Nisarg Shah 2

  • Proposal tentatively due around the end of Feb

➢ But it will help to decide the topic earlier, and start

working.

  • I’ll put up a list of possible project ideas (in case

you cannot find something related to your research)

➢ Will also be available to have more meetings during the

next two months to help select projects

slide-3
SLIDE 3

CSC2556 - Nisarg Shah 3

Impartial Selection

slide-4
SLIDE 4

Impartial Selection

CSC2556 - Nisarg Shah 4

  • “How can we select 𝑙 people out of 𝑜 people?”

➢ Applications: electing a student representation committee,

selecting 𝑙 out of 𝑜 grant applications to fund using peer review, …

  • Model

➢ Input: a directed graph 𝐻 = (𝑊, 𝐹) ➢ Nodes 𝑊 = {𝑤1, … , 𝑤𝑜} are the 𝑜 people ➢ Edge 𝑓 = 𝑤𝑗, 𝑤𝑘 ∈ 𝐹: 𝑤𝑗 supports/approves of 𝑤𝑘

  • We do not allow or ignore self-edges (𝑤𝑗, 𝑤𝑗)

➢ Output: a subset 𝑊′ ⊆ 𝑊 with 𝑊′ = 𝑙 ➢ 𝑙 ∈ {1, … , 𝑜 − 1} is given

slide-5
SLIDE 5

Impartial Selection

CSC2556 - Nisarg Shah 5

  • Impartiality: A 𝑙-selection rule 𝑔 is impartial if 𝑤𝑗 ∈

𝑔(𝐻) does not depend on the outgoing edges of 𝑤𝑗

➢ 𝑤𝑗 cannot manipulate his outgoing edges to get selected ➢ Q: But the definition says 𝑤𝑗 can neither go from 𝑤𝑗 ∉ 𝑔(𝐻)

to 𝑤𝑗 ∈ 𝑔(𝐻), nor from 𝑤𝑗 ∈ 𝑔(𝐻) to 𝑤𝑗 ∉ 𝑔(𝐻). Why?

  • Societal goal: maximize the sum of in-degrees of

selected agents σ𝑤∈𝑔 𝐻 𝑗𝑜 𝑤

➢ 𝑗𝑜(𝑤) = set of nodes that have an edge to 𝑤 ➢ 𝑝𝑣𝑢 𝑤 = set of nodes that 𝑤 has an edge to ➢ Note: OPT will pick the 𝑙 nodes with the highest indegrees

slide-6
SLIDE 6

Optimal ≠ Impartial

CSC2556 - Nisarg Shah 6

  • An optimal 1-selecton rule must select 𝑤1 or 𝑤2
  • The other node can remove his edge to the winner,

and make sure the optimal rule selects him instead

  • This violates impartiality

𝑤1 𝑤2 𝑤3 𝑤𝑜

slide-7
SLIDE 7

Goal: Approximately Optimal

CSC2556 - Nisarg Shah 7

  • 𝛽-approximation: We want a 𝑙-selection system

that always returns a set with total indegree at least 𝛽 times the total indegree of the optimal set

  • Q: For 𝑙 = 1, what about the following rule?

Rule: “Select the lowest index vertex in 𝑝𝑣𝑢 𝑤1 . If 𝑝𝑣𝑢 𝑤1 = ∅, select 𝑤2.”

➢ A. Impartial + constant approximation ➢ B. Impartial + bad approximation ➢ C. Not impartial + constant approximation ➢ D. Not impartial + bad approximation

slide-8
SLIDE 8

No Finite Approximation 

CSC2556 - Nisarg Shah 8

  • Theorem [Alon et al. 2011]

For every 𝑙 ∈ {1, … , 𝑜 − 1}, there is no impartial 𝑙- selection rule with a finite approximation ratio.

  • Proof:

➢ For small 𝑙, this is trivial. E.g., consider 𝑙 = 1.

  • What if 𝐻 has two nodes 𝑤1 and 𝑤2 that point to each other, and

there are no other edges?

  • For finite approximation, the rule must choose either 𝑤1 or 𝑤2
  • Say it chooses 𝑤1. If 𝑤2 now removes his edge to 𝑤1, the rule must

choose 𝑤2 for any finite approximation.

  • Same argument as before. But applies to any “finite approximation

rule”, and not just the optimal rule.

slide-9
SLIDE 9

No Finite Approximation 

CSC2556 - Nisarg Shah 9

  • Theorem [Alon et al. 2011]

For every 𝑙 ∈ {1, … , 𝑜 − 1}, there is no impartial 𝑙- selection rule with a finite approximation ratio.

  • Proof:

➢ Proof is more intricate for larger 𝑙. Let’s do 𝑙 = 𝑜 − 1.

  • 𝑙 = 𝑜 − 1: given a graph, “eliminate” a node.

➢ Suppose for contradiction that there is such a rule 𝑔. ➢ W.l.o.g., say 𝑤𝑜 is eliminated in the empty graph. ➢ Consider a family of graphs in which a subset of

{𝑤1, … , 𝑤𝑜−1} have edges to 𝑤𝑜.

slide-10
SLIDE 10

No Finite Approximation 

CSC2556 - Nisarg Shah 10

  • Proof (𝑙 = 𝑜 − 1 continued):

➢ Consider star graphs in which a non-empty

subset of {𝑤1, … , 𝑤𝑜−1} have edge to 𝑤𝑜, and there are no other edges

  • Represented by bit strings 0,1 𝑜−1\{0}

➢ 𝑤𝑜 cannot be eliminated in any star graph

  • Otherwise we have infinite approximation

➢ 𝑔 maps 0,1 𝑜−1\{0} to {1, … , 𝑜 − 1}

  • “Who will be eliminated?”

➢ Impartiality: 𝑔 Ԧ

𝑦 = 𝑗 ⇔ 𝑔 Ԧ 𝑦 + Ԧ 𝑓𝑗 = 𝑗

  • Ԧ

𝑓𝑗 has 1 at 𝑗𝑢ℎ coordinate, 0 elsewhere

  • In words, 𝑗 cannot prevent elimination by adding
  • r removing his edge to 𝑤𝑜

𝑤1 𝑤2 𝑤3 𝑤𝑜 𝑤𝑜−1 𝑤4 𝑤1 𝑤2 𝑤3 𝑤𝑜 𝑤𝑜−1 𝑤4

slide-11
SLIDE 11

No Finite Approximation 

CSC2556 - Nisarg Shah 11

  • Proof (𝑙 = 𝑜 − 1 continued):

➢ 𝑔: 0,1 𝑜−1\{0} → {1, … , 𝑜 − 1} ➢ 𝑔 Ԧ

𝑦 = 𝑗 ⇔ 𝑔 Ԧ 𝑦 + Ԧ 𝑓𝑗 = 𝑗

  • Ԧ

𝑓𝑗 has 1 only in 𝑗𝑢ℎ coordinate

➢ Pairing implies…

  • The number of strings on which 𝑔 outputs 𝑗 is

even, for every 𝑗.

  • Thus, total number of strings in the domain

must be even too.

  • But total number of strings is 2𝑜−1 − 1 (odd)

➢ So impartiality must be violated for some

pair of Ԧ 𝑦 and Ԧ 𝑦 + Ԧ 𝑓𝑗

𝑤1 𝑤2 𝑤3 𝑤𝑜 𝑤𝑜−1 𝑤4 𝑤1 𝑤2 𝑤3 𝑤𝑜 𝑤𝑜−1 𝑤4

slide-12
SLIDE 12

Back to Impartial Selection

CSC2556 - Nisarg Shah 12

  • Question: So what can we do to select impartially?
  • Answer: Randomization!

➢ Impartiality now requires that the probability of an agent

being selected be independent of his outgoing edges.

  • Examples: Randomized Impartial Mechanisms

➢ Choose 𝑙 nodes uniformly at random

  • Sadly, this still has arbitrarily bad approximation.
  • Imagine having 𝑙 special nodes with indegree 𝑜 − 1, and all other

nodes having indegree 0.

  • Mechanism achieves

Τ 𝑙 𝑜 ∗ 𝑃𝑄𝑈 ⇒ approximation = 𝑜/𝑙

  • Good when 𝑙 is comparable to 𝑜, but bad when 𝑙 is small.
slide-13
SLIDE 13

Random Partition

CSC2556 - Nisarg Shah 13

  • Idea:

➢ What if we partition 𝑊 into 𝑊

1 and 𝑊 2, and select 𝑙 nodes

from 𝑊

1 based only on edges coming to them from 𝑊 2?

  • Mechanism:

➢ Assign each node to 𝑊

1 or 𝑊 2 i.i.d. with probability ½

➢ Choose 𝑊

𝑗 ∈ 𝑊 1, 𝑊 2 at random

➢ Choose 𝑙 nodes from 𝑊

𝑗 that have most incoming edges

from nodes in 𝑊

3−𝑗

slide-14
SLIDE 14

Random Partition

CSC2556 - Nisarg Shah 14

  • Analysis:

➢ Goal: approximate 𝐽 = # edges incoming to 𝑃𝑄𝑈.

  • 𝐽1 = # edges 𝑊

2 → 𝑃𝑄𝑈 ∩ 𝑊 1, 𝐽2 = # edges 𝑊 1 → 𝑃𝑄𝑈 ∩ 𝑊 2

➢ Note: 𝐹 𝐽1 + 𝐽2 = 𝐽/2. (WHY?) ➢ W.p. ½, we pick 𝑙 nodes in 𝑊

1 with the most incoming

edges from 𝑊

2 ⇒ # incoming edges ≥ 𝐽1 (WHY?)

  • 𝑃𝑄𝑈 ∩ 𝑊

1 ≤ 𝑙; 𝑃𝑄𝑈 ∩ 𝑊 1 has 𝐽1 incoming edges from 𝑊 2

➢ W.p. ½, we pick 𝑙 nodes in 𝑊

2 with the most incoming

edges from 𝑊

1 ⇒ # incoming edges ≥ 𝐽2

➢ E[#incoming edges] ≥ 𝐹

1 2 ⋅ 𝐽1 + 1 2 ⋅ 𝐽2 = 𝐽 4

slide-15
SLIDE 15

Random Partition

CSC2556 - Nisarg Shah 16

  • Generalization

➢ Divide into ℓ parts, and pick 𝑙/ℓ nodes from each part

based on incoming edges from all other parts.

  • Theorem [Alon et al. 2011]:

➢ ℓ = 2 gives a 4-approximation. ➢ For 𝑙 ≥ 2, ℓ~𝑙1/3 gives 1 + 𝑃

1 𝑙1/3 approximation.

slide-16
SLIDE 16

Better Approximations

CSC2556 - Nisarg Shah 17

  • Alon et al. [2011] conjectured that for randomized

impartial 1-selection…

➢ (For which their mechanism is a 4-approximation) ➢ It should be possible to achieve a 2-approximation. ➢ Recently proved by Fischer & Klimm [2014] ➢ Permutation mechanism:

  • Select a random permutation (𝜌1, 𝜌2, … , 𝜌𝑜) of the vertices.
  • Start by selecting 𝑧 = 𝜌1 as the “current answer”.
  • At any iteration 𝑢, let 𝑧 ∈ {𝜌1, … , 𝜌𝑢} be the current answer.
  • From {𝜌1, … , 𝜌𝑢}\{𝑧}, if there are more edges to 𝜌𝑢+1 than to 𝑧,

change the current answer to 𝑧 = 𝜌𝑢+1.

slide-17
SLIDE 17

Better Approximations

CSC2556 - Nisarg Shah 18

  • 2-approximation is tight.

➢ In an 𝑜-node graph, fix 𝑣 and 𝑤, and suppose no other

nodes have any incoming/outgoing edges.

➢ Three cases: only 𝑣 → 𝑤 edge, only 𝑤 → 𝑣, or both.

  • The best impartial mechanism selects 𝑣 and 𝑤 with probability ½

in every case, and achieves 2-approximation.

  • But this is because 𝑜 − 2 nodes are not voting!

➢ What if every node must have an outgoing edge? ➢ Fischer & Klimm [2014]:

  • Permutation mechanism gives between Τ

12 7 and Τ 3 2

approximation.

  • No mechanism gives better than 4/3 approximation.
slide-18
SLIDE 18

CSC2556 - Nisarg Shah 19

PageRank Axiomatization

slide-19
SLIDE 19

PageRank

CSC2556 - Nisarg Shah 20

  • An extension of the impartial selection problem

➢ Instead of selecting 𝑙 nodes, we want to rank all nodes

  • The PageRank Problem: Given a directed graph,

rank all nodes by their “importance”.

➢ Think of the web graph, where nodes are webpages, and

a directed (𝑣, 𝑤) edge means 𝑣 has a link to 𝑤.

  • Questions:

➢ What properties do we want from such a rule? ➢ What rule satisfies these properties?

slide-20
SLIDE 20

PageRank

CSC2556 - Nisarg Shah 21

  • Here is the PageRank Algorithm:

➢ Start from any node 𝑗 in the graph. ➢ At each iteration, choose an outgoing edge 𝑗 → 𝑘,

uniformly at random among all outgoing edges of 𝑗.

➢ Move to the neighbor node 𝑘. ➢ In the long run, measure the fraction of time the random

walk visits each node.

➢ Rank the nodes by these “stationary probabilities”.

  • Google uses (a version of) this algorithm
slide-21
SLIDE 21

PageRank

CSC2556 - Nisarg Shah 22

  • In a formal sense…

➢ Let 𝑞𝑗 = stationary probability of visiting 𝑗. ➢ Let 𝑂 𝑗 = set of nodes to which 𝑗 has an edge ➢ Then, 𝑞𝑗 = σ𝑘:𝑗∈𝑂(𝑘)

𝑞𝑘 𝑂 𝑘

  • 𝑜 equations, 𝑜 variables
  • Another way to do this:

➢ Matrix 𝐵: 𝐵𝑗,𝑘 =

Τ 1 𝑂 𝑗 if 𝑗, 𝑘 ∈ 𝐹 and 0 otherwise

➢ We are searching for a solution 𝑤 such that 𝐵𝑤 = 𝑤. ➢ Start from any 𝑤0, and compute lim

𝑙→∞ 𝐵𝑙𝑤0

slide-22
SLIDE 22

Axioms

CSC2556 - Nisarg Shah 23

  • Axiom 1 (Isomorphism)

➢ Permuting node names permutes the final

ranking.

  • Axiom 2 (Vote by Committee)

➢ Voting through intermediate fake nodes

cannot change the ranking.

  • Axiom 3 (Self Edge)

➢ 𝑤 adding a self edge cannot change the

  • rdering of the other nodes.
  • Axiom 4 (Collapsing)

➢ Merging identically voting nodes cannot change the

  • rdering of the other nodes.
  • Axiom 5 (Proxy)

➢ If 𝑙 nodes with equal score vote for 𝑙 other nodes

through a proxy, it should be no different than a direct 1-1 voting.

𝑏 𝑏

slide-23
SLIDE 23

PageRank

CSC2556 - Nisarg Shah 24

  • Theorem [Altman and Tennenholtz, 2005]:

An algorithm satisfies these five axioms if and only if it is PageRank.

slide-24
SLIDE 24

CSC2556 - Nisarg Shah 25

Facility Location

slide-25
SLIDE 25

Apprx Mechanism Design

CSC304 - Nisarg Shah 26

  • 1. Define the problem: agents, outcomes, values
  • 2. Fix an objective function (e.g., maximizing sum of

values)

  • 3. Check if the objective function is maximized

through a strategyproof mechanism

  • 4. If not, find the strategyproof mechanism that

provides the best worst-case approximation ratio

  • f the objective function
slide-26
SLIDE 26

Facility Location

CSC2556 - Nisarg Shah 27

  • Set of agents 𝑂
  • Each agent 𝑗 has a true location 𝑦𝑗 ∈ ℝ
  • Mechanism 𝑔

➢ Takes as input reports ෤

𝑦 = (෤ 𝑦1, ෤ 𝑦2, … , ෤ 𝑦𝑜)

➢ Returns a location 𝑧 ∈ ℝ for the new facility

  • Cost to agent 𝑗 : 𝑑𝑗 𝑧 = 𝑧 − 𝑦𝑗
  • Social cost 𝐷 𝑧 = σ𝑗 𝑑𝑗 𝑧 = σ𝑗 𝑧 − 𝑦𝑗
slide-27
SLIDE 27

Facility Location

CSC2556 - Nisarg Shah 28

  • Social cost 𝐷 𝑧 = σ𝑗 𝑑𝑗 𝑧 = σ𝑗 𝑧 − 𝑦𝑗
  • Q: Ignoring incentives, what choice of 𝑧 would

minimize the social cost?

  • A: The median location med(𝑦1, … , 𝑦𝑜)

➢ 𝑜 is odd → the unique “(n+1)/2”th smallest value ➢ 𝑜 is even → “n/2”th or “(n/2)+1”st smallest value ➢ Why?

slide-28
SLIDE 28

Facility Location

CSC2556 - Nisarg Shah 29

  • Social cost 𝐷 𝑧 = σ𝑗 𝑑𝑗 𝑧 = σ𝑗 𝑧 − 𝑦𝑗
  • Median is optimal (i.e., 1-approximation)
  • What about incentives?

➢ Median is also strategyproof (SP)! ➢ Irrespective of the reports of other agents, agent 𝑗 is best

  • ff reporting 𝑦𝑗
slide-29
SLIDE 29

Median is SP

CSC2556 - Nisarg Shah 30

No manipulation can help

slide-30
SLIDE 30

Max Cost

CSC2556 - Nisarg Shah 31

  • A different objective function 𝐷 𝑧 = max

𝑗

𝑧 − 𝑦𝑗

  • Q: Again ignoring incentives, what value of 𝑧

minimizes the maximum cost?

  • A: The midpoint of the leftmost (min

𝑗

𝑦𝑗) and the rightmost (max

𝑗

𝑦𝑗) locations

  • Q: Is this optimal rule strategyproof?
  • A: No!
slide-31
SLIDE 31

Max Cost

CSC2556 - Nisarg Shah 32

  • 𝐷 𝑧 = max𝑗 𝑧 − 𝑦𝑗
  • We want to use a strategyproof mechanism.
  • Question: What is the approximation ratio of

median for maximum cost?

  • 1. ∈ 1,2
  • 2. ∈ 2,3
  • 3. ∈ 3,4
  • 4. ∈ 4, ∞
slide-32
SLIDE 32

Max Cost

CSC2556 - Nisarg Shah 33

  • Answer: 2-approximation
  • Other SP mechanisms that are 2-approximation

➢ Leftmost: Choose the leftmost reported location ➢ Rightmost: Choose the rightmost reported location ➢ Dictatorship: Choose the location reported by agent 1 ➢ …

slide-33
SLIDE 33

Max Cost

CSC2556 - Nisarg Shah 34

  • Theorem [Procaccia & Tennenholtz, ‘09]

No deterministic SP mechanism has approximation ratio < 2 for maximum cost.

  • Proof:
slide-34
SLIDE 34

Max Cost + Randomized

CSC2556 - Nisarg Shah 35

  • The Left-Right-Middle (LRM) Mechanism

➢ Choose min

𝑗

𝑦𝑗 with probability ¼

➢ Choose max

𝑗

𝑦𝑗 with probability ¼

➢ Choose (min

𝑗

𝑦𝑗 + max

𝑗

𝑦𝑗)/2 with probability ½

  • Question: What is the approximation ratio of LRM

for maximum cost?

  • At most

(1/4)∗2𝐷+(1/4)∗2𝐷+(1/2)∗𝐷 𝐷

=

3 2

slide-35
SLIDE 35

Max Cost + Randomized

CSC2556 - Nisarg Shah 36

  • Theorem [Procaccia & Tennenholtz, ‘09]:

The LRM mechanism is strategyproof.

  • Proof:

1/4 1/4 1/2 1/4 1/4 1/2 2𝜀 𝜀

slide-36
SLIDE 36

Max Cost + Randomized

CSC2556 - Nisarg Shah 37

  • Exercise for you!

Try showing that no randomized SP mechanism can achieve approximation ratio < 3/2.