Graduate AI Lecture 8: Integer Programming Applications - - PowerPoint PPT Presentation

graduate ai
SMART_READER_LITE
LIVE PREVIEW

Graduate AI Lecture 8: Integer Programming Applications - - PowerPoint PPT Presentation

Graduate AI Lecture 8: Integer Programming Applications Instructors: Nihar B. Shah (this time) J. Zico Kolter A PPLICATION : R EVIEWER ASSIGNMENT IN P EER R EVIEW d papers, n reviewers Each reviewer can review at most papers Each


slide-1
SLIDE 1

Graduate AI

Lecture 8: Integer Programming Applications

Instructors: Nihar B. Shah (this time)

  • J. Zico Kolter
slide-2
SLIDE 2

15780 Spring 2019: Lecture 2

APPLICATION: REVIEWER ASSIGNMENT IN PEER REVIEW

  • d papers, n reviewers
  • Each reviewer can review at most μ papers
  • Each paper must be reviewed by at least λ

reviewers

  • Given: Similarity scores between every paper-

reviewer pair:

  • For every pair (Paper !, Reviewer "), similarity score #$% ∈ [(, *]
  • Higher similarity score ⇒ Better envisaged quality of review

2

slide-3
SLIDE 3

15780 Spring 2019: Lecture 2

MAXIMIZING SUM SIMILARITIES

  • Assignment in many conferences aims to
  • ptimize the “sum similarity”
  • Maximize sum of similarities of all assigned

(reviewer, paper) pairs

Nihar B. Shah, CMU 3

Note: There are other constraints such as conflicts of interest, but these are easy to incorporate and we will ignore them here.

slide-4
SLIDE 4

15780 Spring 2019: Lecture 2

MAXIMIZING SUM SIMILARITIES

maximize '

( ∈ *+,-./

'

0 ∈1-23-4-./

5(0 6 paper i assigned to reviewer j

subject to every paper gets at least λ reviewers every reviewer gets at most μ papers

Nihar B. Shah, CMU 4

slide-5
SLIDE 5

15780 Spring 2019: Lecture 2

INTEGER PROGRAM

maximize

' ∈)* × ,

  • . ∈[0]
  • 2 ∈[3]

4.2 5.2

subject to ∑ .∈[3] 5.2 ≤ 8 ∀ : ∑. ∈[3] 5.2 ≥ < ∀ = 5.2 ∈ 0,1 ∀ =, :

Nihar B. Shah, CMU 5

slide-6
SLIDE 6

15780 Spring 2019: Lecture 2

TOTALLY UNIMODULAR MATRICES

Nihar B. Shah, CMU 6

Definition: A matrix is called a Totally Unimodular Matrix (TUM) if every square submatrix has a determinant -1, 0, or 1.

slide-7
SLIDE 7

15780 Spring 2019: Lecture 2

TOTALLY UNIMODULAR MATRICES

Nihar B. Shah, CMU 7

Theorem: Consider a linear program with constraint Ax ≤ b. If A is TUM and b has integer entries then all vertices of the feasible set are integers.

Intuition: Recall Cramer’s rule. The system of equations Ax = b for square, non-singular A has solution !" = $%&(( ) )

$%&(() where + " is the

matrix obtained by replacing the ith column of A with b.

Definition: A matrix is called a Totally Unimodular Matrix (TUM) if every square submatrix has a determinant -1, 0, or 1.

slide-8
SLIDE 8

15780 Spring 2019: Lecture 2

HOMEWORK

8

maximize

' ∈)* × ,

  • . ∈[0]
  • 2 ∈[3]

4.2 5.2

subject to ∑ .∈[3] 5.2 ≤ 8 ∀ : ∑. ∈[3] 5.2 ≥ < ∀ = 5.2 ∈ 0,1 ∀ =, :

Is the constraint in the following problem TUM?

slide-9
SLIDE 9

15780 Spring 2019: Lecture 2

BACK TO REVIEWER ASSIGNMENT

A concern with current popular approach: (lack of) Fairness

9

Paper 1 Paper 2 Reviewer 1 1 0.01 Reviewer 2 0.7 0.5 Reviewer 3 0.1 0.01 Reviewer 4 0.1 0.01 Suppose ! = 1, % = 2 Similarities:

  • Assigns Reviewers 1, 2 to Paper 1; Reviewers 3,4 to Paper 2
  • Quite bad for paper 2!
  • Better solution: Reviewers 2, 4 to Paper 2
slide-10
SLIDE 10

15780 Spring 2019: Lecture 2

A MORE FAIR APPROACH

maximize '

( ∈ *+,-./

'

0 ∈1-23-4-./

5(0 6 paper i assigned to reviewer j

Nihar B. Shah, CMU 10

maximize min

( ∈ *+,-./

'

0 ∈1-23-4-./

5(0 6 paper i assigned to reviewer j

[Stelmakh et al. 2019]

slide-11
SLIDE 11

15780 Spring 2019: Lecture 2

A MORE FAIR APPROACH

Nihar B. Shah, CMU 11

maximize

' ∈)* × , min . ∈[0] 2 3 ∈[4]

5.3 6.3

such that ∑ .∈[4] 6.3 ≤ 9 ∀ ; ∑. ∈[4] 6.3 ≥ = ∀ > 6.3 ∈ 0,1 ∀ >, ;

This requires maximization of a minimum. Can we still use integer programming?

slide-12
SLIDE 12

15780 Spring 2019: Lecture 2

A MORE FAIR APPROACH

Nihar B. Shah, CMU 12

maximize

' ∈)* × ,

  • such that

∑/ ∈[1] 34/ 54/ ≥ - ∀ 8 ∑ 4∈[1] 54/ ≤ : ∀ ; ∑4 ∈[1] 54/ ≥ < ∀ 8 54/ ∈ 0,1 ∀ 8, ;

slide-13
SLIDE 13

15780 Spring 2019: Lecture 2

APPLICATION: SUDOKU

13

4 6 7 4 6 5 8 1 3 7 2 7 8 1 3 5 9 4 8 9 2 9 5 5 2 1 3

slide-14
SLIDE 14

15780 Spring 2019: Lecture 2

SUDOKU

  • For each !, #, $ ∈ [9], binary variable )*

+, s.t. )* +, = 1

iff we put $ in entry (!, #)

  • For t = 1, … , 27, 56 is a row, column, or 3×3 square

14

find )>

>>, … , )? ??

s.t. ∀C ∈ 27 , ∀$ ∈ [9], ∀!, #, $ ∈ [9], )*

+, ∈ {0,1}

∑ +,, ∈HI )*

+, = 1

∀!, # ∈ 9 , ∑*∈[?] )*

+, = 1

slide-15
SLIDE 15

15780 Spring 2019: Lecture 2

15

Note: If you have a hard time expressing something as an IP, try using binary variables.

slide-16
SLIDE 16

15780 Spring 2019: Lecture 2

APPLICATION: ENVY-FREENESS

  • Players ! = {1, … , '} and items ) = {1, … , *}
  • Player + has value ,-. for item /
  • Partition items to bundles 01, … , 02
  • 01, … , 02 is envy-free iff ∀+, +4, ∑.∈78 ,-. ≥ ∑.∈78: ,-.

16

$30 $50 $2 $5 $5 $3 $5 $2 $10 $5 $20 $20 $3 $40

1 2 1 2

slide-17
SLIDE 17

15780 Spring 2019: Lecture 2

ENVY-FREENESS

  • Variables: !"# ∈ 0,1 , !"# = 1 iff ) ∈ *"
  • ENVY-FREE as an IP:

17

find !//, … , !12 s.t. ∀7 ∈ 8, ∀79 ∈ 8, ∀) ∈ :, ∀7 ∈ 8, ) ∈ :, !"# ∈ {0,1} ∑#∈> ?"#!"# ≥ ∑#∈> ?"#!"A# ∑"∈B !"# = 1

slide-18
SLIDE 18

15780 Spring 2019: Lecture 2

PHASE TRANSITION

  • Imagine the !"# are drawn independently and

uniformly at random from [0,1]

  • Question 1: If ) = +/2, what is the

probability that an envy-free allocation exists?

1. 2.

2/+

3.

1/2

4.

1

18

slide-19
SLIDE 19

15780 Spring 2019: Lecture 2

PHASE TRANSITION

  • Imagine the !"# are drawn independently and

uniformly at random from [0,1]

  • Question 1: If ) = +/2, what is the

probability that an envy-free allocation exists?

1. 2.

2/+

3.

1/2

4.

1

19

slide-20
SLIDE 20

15780 Spring 2019: Lecture 2

PHASE TRANSITION

  • Imagine the !"# are drawn independently and

uniformly at random from [0,1]

  • Question 2: If ) ≫ +, what is the probability

that an envy-free allocation exists?

1.

Close to 0

2.

Close to 1/3

3.

Close to 1/2

4.

Close to 1

20

slide-21
SLIDE 21

15780 Spring 2019: Lecture 2

PHASE TRANSITION

  • Imagine the !"# are drawn independently and

uniformly at random from [0,1]

  • Question 2: If ) ≫ +, what is the probability

that an envy-free allocation exists?

1.

Close to 0

2.

Close to 1/3

3.

Close to 1/2

4.

Close to 1

21

slide-22
SLIDE 22

15780 Spring 2019: Lecture 2

SHARP TRANSITION

22

[Dickerson et al., AAAI 2014]

slide-23
SLIDE 23

15780 Spring 2019: Lecture 2

SHARP TRANSITION

23

[Cheeseman et al., IJCAI 1993]

slide-24
SLIDE 24

15780 Spring 2019: Lecture 2

APPLICATION: KIDNEY EXCHANGE

24

Donor 2 Patient 2 Donor 1 Patient 1

slide-25
SLIDE 25

15780 Spring 2019: Lecture 2

KIDNEY EXCHANGE

  • CONSTRUCT DIRECTED GRAPH:

EACH NODE IS A (DONOR, PATIENT) PAIR

  • Edge from one node to another

if donor of first can donate to patient of second

25

UNOS pool, Dec 2010 [Courtesy John Dickerson]

slide-26
SLIDE 26

15780 Spring 2019: Lecture 2

KIDNEY EXCHANGE

  • CYCLE-COVER: Given a

directed graph ! and " ∈ ℕ, find a collection of disjoint cycles of length ≤ " in ! that maximizes the number of covered vertices

  • The problem is:
  • Easy for " = 2 (why?)
  • Easy for unbounded "
  • NP-hard for a constant

" ≥ 3

26

slide-27
SLIDE 27

15780 Spring 2019: Lecture 2

KIDNEY EXCHANGE

  • Variables: For each cycle ! of length

ℓ# ≤ %, variable &# ∈ {0,1}, &# = 1 iff cycle ! is included in the cover

  • CYCLE-COVER as an IP:

27

max ∑# &#ℓ# s.t. ∀6 ∈ 7, ∀!, &# ∈ {0,1} ∑#:9∈# &# ≤ 1

slide-28
SLIDE 28

15780 Spring 2019: Lecture 2

SUMMARY

  • IP tricks:
  • TUM
  • Binary variables
  • Max min and min max
  • Big ideas:
  • IP representation can lead to “efficient” solutions
  • Can prove theoretical guarantees by w.l.o.g.

relaxation to LP in some cases

28