learning what works best when - simons institute for the ......simons institute, uc berkeley georgia...

125
Learning What Works Best When Swati Gupta Simons Institute, UC Berkeley Georgia Institute of Technology Joint work with Michel Goemans (MIT), Patrick Jaillet (MIT), Iain Dunning (Deepmind), John Silberholz (Ross School of Business) 05 + 02 + 2=01+8 Mathematical and Computational Challenges in Real-Time Decision Making

Upload: others

Post on 03-Sep-2020

1 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Learning What Works Best When - Simons Institute for the ......Simons Institute, UC Berkeley Georgia Institute of Technology Joint work with Michel Goemans (MIT), Patrick Jaillet (MIT),

Learning What Works Best When

Swati GuptaSimons Institute, UC BerkeleyGeorgia Institute of Technology

Joint work with Michel Goemans (MIT), Patrick Jaillet (MIT), Iain Dunning (Deepmind), John Silberholz (Ross School of Business)

05 + 02 + 2=01+8Mathematical and Computational Challenges in

Real-Time Decision Making

Page 2: Learning What Works Best When - Simons Institute for the ......Simons Institute, UC Berkeley Georgia Institute of Technology Joint work with Michel Goemans (MIT), Patrick Jaillet (MIT),

Three fundamental questions

2Learning What Works Best When | Swati Gupta | Research Fellow, Simons Institute

Page 3: Learning What Works Best When - Simons Institute for the ......Simons Institute, UC Berkeley Georgia Institute of Technology Joint work with Michel Goemans (MIT), Patrick Jaillet (MIT),

Three fundamental questions

(a) How to compute projections?

?

2Learning What Works Best When | Swati Gupta | Research Fellow, Simons Institute

Page 4: Learning What Works Best When - Simons Institute for the ......Simons Institute, UC Berkeley Georgia Institute of Technology Joint work with Michel Goemans (MIT), Patrick Jaillet (MIT),

Three fundamental questions

(a) How to compute projections?

(b) How far can we move along a direction while staying feasible?

2Learning What Works Best When | Swati Gupta | Research Fellow, Simons Institute

Page 5: Learning What Works Best When - Simons Institute for the ......Simons Institute, UC Berkeley Georgia Institute of Technology Joint work with Michel Goemans (MIT), Patrick Jaillet (MIT),

Three fundamental questions

(a) How to compute projections?

(b) How far can we move along a direction while staying feasible?

(c) Can we learn which algorithm works best on an unseen instance?

2Learning What Works Best When | Swati Gupta | Research Fellow, Simons Institute

Page 6: Learning What Works Best When - Simons Institute for the ......Simons Institute, UC Berkeley Georgia Institute of Technology Joint work with Michel Goemans (MIT), Patrick Jaillet (MIT),

Three fundamental questions

(b) How far can we move along a direction while staying feasible?

(c) Can we learn which algorithm works best on an unseen instance?

(a) How to compute projections?

2Learning What Works Best When | Swati Gupta | Research Fellow, Simons Institute

Page 7: Learning What Works Best When - Simons Institute for the ......Simons Institute, UC Berkeley Georgia Institute of Technology Joint work with Michel Goemans (MIT), Patrick Jaillet (MIT),

Why are projections important? Key step in many algorithms across

Online Learning Game Theory

Machine Learning Stochastic optimization

Robust optimization …

• Problem setup • Examples • Online Mirror Descent • Projection!

3Learning What Works Best When | Swati Gupta | Research Fellow, Simons Institute

Page 8: Learning What Works Best When - Simons Institute for the ......Simons Institute, UC Berkeley Georgia Institute of Technology Joint work with Michel Goemans (MIT), Patrick Jaillet (MIT),

Online Learning

4Learning What Works Best When | Swati Gupta | Research Fellow, Simons Institute

Page 9: Learning What Works Best When - Simons Institute for the ......Simons Institute, UC Berkeley Georgia Institute of Technology Joint work with Michel Goemans (MIT), Patrick Jaillet (MIT),

Online Learning

Select an action Or a decision

Historic Data Or Prior knowledge

Incur losses or gains in a dynamic environment

Repeats over time

4Learning What Works Best When | Swati Gupta | Research Fellow, Simons Institute

Page 10: Learning What Works Best When - Simons Institute for the ......Simons Institute, UC Berkeley Georgia Institute of Technology Joint work with Michel Goemans (MIT), Patrick Jaillet (MIT),

Online Learning

Select an action Or a decision

Historic Data Or Prior knowledge

Incur losses or gains in a dynamic environment

Repeats over time

How to perform well compared to best fixed decision in hindsight?

4Learning What Works Best When | Swati Gupta | Research Fellow, Simons Institute

Page 11: Learning What Works Best When - Simons Institute for the ......Simons Institute, UC Berkeley Georgia Institute of Technology Joint work with Michel Goemans (MIT), Patrick Jaillet (MIT),

Online Learning

5Learning What Works Best When | Swati Gupta | Research Fellow, Simons Institute

Page 12: Learning What Works Best When - Simons Institute for the ......Simons Institute, UC Berkeley Georgia Institute of Technology Joint work with Michel Goemans (MIT), Patrick Jaillet (MIT),

pages rank

Matchings

i j

Online Learning

5Learning What Works Best When | Swati Gupta | Research Fellow, Simons Institute

Page 13: Learning What Works Best When - Simons Institute for the ......Simons Institute, UC Berkeley Georgia Institute of Technology Joint work with Michel Goemans (MIT), Patrick Jaillet (MIT),

Permutations 1, 2, 3, 4, 2, 3, 1, 4, 3, 1, 4, 2, 4, 1, 3, 2, 2, 3, 4, 1…

pages rank

Matchings

i j

Online Learning

5Learning What Works Best When | Swati Gupta | Research Fellow, Simons Institute

Page 14: Learning What Works Best When - Simons Institute for the ......Simons Institute, UC Berkeley Georgia Institute of Technology Joint work with Michel Goemans (MIT), Patrick Jaillet (MIT),

Permutations 1, 2, 3, 4, 2, 3, 1, 4, 3, 1, 4, 2, 4, 1, 3, 2, 2, 3, 4, 1…

pages rank

Matchings

i j

Online Learning

5Learning What Works Best When | Swati Gupta | Research Fellow, Simons Institute

Page 15: Learning What Works Best When - Simons Institute for the ......Simons Institute, UC Berkeley Georgia Institute of Technology Joint work with Michel Goemans (MIT), Patrick Jaillet (MIT),

Permutations 1, 2, 3, 4, 2, 3, 1, 4, 3, 1, 4, 2, 4, 1, 3, 2, 2, 3, 4, 1…

s-t paths

pages rank

Matchings

i j

[Cohen, Gupta, Kalas, Perakis, ‘16]

Online Learning

5Learning What Works Best When | Swati Gupta | Research Fellow, Simons Institute

Page 16: Learning What Works Best When - Simons Institute for the ......Simons Institute, UC Berkeley Georgia Institute of Technology Joint work with Michel Goemans (MIT), Patrick Jaillet (MIT),

Permutations 1, 2, 3, 4, 2, 3, 1, 4, 3, 1, 4, 2, 4, 1, 3, 2, 2, 3, 4, 1…

s-t paths

pages rank

Matchings

i j

Spanning Trees

[Cohen, Gupta, Kalas, Perakis, ‘16]

Online Learning

5Learning What Works Best When | Swati Gupta | Research Fellow, Simons Institute

Page 17: Learning What Works Best When - Simons Institute for the ......Simons Institute, UC Berkeley Georgia Institute of Technology Joint work with Michel Goemans (MIT), Patrick Jaillet (MIT),

allow convex combinations, sample at random

Decision Space Permutations 1, 2, 3, 4, 2, 3, 1, 4, 3, 1, 4, 2, 4, 1, 3, 2, 2, 3, 4, 1…

Online Learning

6Learning What Works Best When | Swati Gupta | Research Fellow, Simons Institute

Page 18: Learning What Works Best When - Simons Institute for the ......Simons Institute, UC Berkeley Georgia Institute of Technology Joint work with Michel Goemans (MIT), Patrick Jaillet (MIT),

allow convex combinations, sample at random

Decision Space Permutations 1, 2, 3, 4, 2, 3, 1, 4, 3, 1, 4, 2, 4, 1, 3, 2, 2, 3, 4, 1…

Online Learning Framework

- learner chooses a decision,

- a linear loss revealed,

- the loss incurred for time t:

Online Learning

6Learning What Works Best When | Swati Gupta | Research Fellow, Simons Institute

Page 19: Learning What Works Best When - Simons Institute for the ......Simons Institute, UC Berkeley Georgia Institute of Technology Joint work with Michel Goemans (MIT), Patrick Jaillet (MIT),

Suppose xt = (2, 3 ,1, 4)

Online Learning Framework

- learner chooses a decision,

- a linear loss revealed,

- the loss incurred for time t:

Page 1 at rank 2 Page 2 at rank 3 Page 3 at rank 1 Page 4 at rank 4

Display: Page 3 Page 1 Page 2 Page 4

Permutations 1, 2, 3, 4, 2, 3, 1, 4, 3, 1, 4, 2, 4, 1, 3, 2, 2, 3, 4, 1…

Example

7Learning What Works Best When | Swati Gupta | Research Fellow, Simons Institute

Page 20: Learning What Works Best When - Simons Institute for the ......Simons Institute, UC Berkeley Georgia Institute of Technology Joint work with Michel Goemans (MIT), Patrick Jaillet (MIT),

Suppose xt = (2, 3 ,1, 4)

Online Learning Framework

- learner chooses a decision,

- a linear loss revealed,

- the loss incurred for time t:

Page 1 at rank 2 Page 2 at rank 3 Page 3 at rank 1 Page 4 at rank 4

Display: Page 3 Page 1 Page 2 Page 4

Observe user clicks:

20% 40% 30% 10%

Permutations 1, 2, 3, 4, 2, 3, 1, 4, 3, 1, 4, 2, 4, 1, 3, 2, 2, 3, 4, 1…

0.40 0.30 0.20 0.10

Example

7Learning What Works Best When | Swati Gupta | Research Fellow, Simons Institute

Page 21: Learning What Works Best When - Simons Institute for the ......Simons Institute, UC Berkeley Georgia Institute of Technology Joint work with Michel Goemans (MIT), Patrick Jaillet (MIT),

Suppose xt = (2, 3 ,1, 4)

Example Loss Function:

Online Learning Framework

- learner chooses a decision,

- a linear loss revealed,

- the loss incurred for time t:

Page 1 at rank 2 Page 2 at rank 3 Page 3 at rank 1 Page 4 at rank 4

Display: Page 3 Page 1 Page 2 Page 4

Observe user clicks:

20% 40% 30% 10%

Penalizes if a highly desired page is put later in the ranking

Loss for xt = 2*0.40 (page 1) + 3*0.30 (page 2) + 1*0.20 (page 3) + 4*0.10 (page 4).

Permutations 1, 2, 3, 4, 2, 3, 1, 4, 3, 1, 4, 2, 4, 1, 3, 2, 2, 3, 4, 1…

0.40 0.30 0.20 0.10

Example

7Learning What Works Best When | Swati Gupta | Research Fellow, Simons Institute

Page 22: Learning What Works Best When - Simons Institute for the ......Simons Institute, UC Berkeley Georgia Institute of Technology Joint work with Michel Goemans (MIT), Patrick Jaillet (MIT),

Bottleneck in First-Order Projection-Based Algorithms

[Zinkevich 2003], [Nemirovski, Yudin 1983]

Optimal regret in many cases [for e.g. Srebro, Sridharan, Tewari 2010]

But Computationally Slow!

Online Mirror Descent

8Learning What Works Best When | Swati Gupta | Research Fellow, Simons Institute

Page 23: Learning What Works Best When - Simons Institute for the ......Simons Institute, UC Berkeley Georgia Institute of Technology Joint work with Michel Goemans (MIT), Patrick Jaillet (MIT),

Bottleneck in First-Order Projection-Based Algorithms

constrained decision set

[Zinkevich 2003], [Nemirovski, Yudin 1983]

Optimal regret in many cases [for e.g. Srebro, Sridharan, Tewari 2010]

But Computationally Slow!

Online Mirror Descent

8Learning What Works Best When | Swati Gupta | Research Fellow, Simons Institute

Page 24: Learning What Works Best When - Simons Institute for the ......Simons Institute, UC Berkeley Georgia Institute of Technology Joint work with Michel Goemans (MIT), Patrick Jaillet (MIT),

Bottleneck in First-Order Projection-Based Algorithms

unconstrained gradient step

constrained decision set

[Zinkevich 2003], [Nemirovski, Yudin 1983]

Optimal regret in many cases [for e.g. Srebro, Sridharan, Tewari 2010]

But Computationally Slow!

Online Mirror Descent

8Learning What Works Best When | Swati Gupta | Research Fellow, Simons Institute

Page 25: Learning What Works Best When - Simons Institute for the ......Simons Institute, UC Berkeley Georgia Institute of Technology Joint work with Michel Goemans (MIT), Patrick Jaillet (MIT),

Bottleneck in First-Order Projection-Based Algorithms

project

unconstrained gradient step

constrained decision set

[Zinkevich 2003], [Nemirovski, Yudin 1983]

Optimal regret in many cases [for e.g. Srebro, Sridharan, Tewari 2010]

But Computationally Slow!

Online Mirror Descent

8Learning What Works Best When | Swati Gupta | Research Fellow, Simons Institute

Page 26: Learning What Works Best When - Simons Institute for the ......Simons Institute, UC Berkeley Georgia Institute of Technology Joint work with Michel Goemans (MIT), Patrick Jaillet (MIT),

Bottleneck in First-Order Projection-Based Algorithms

projectProjections are obtained by

minimizing a convex function (potentially in each time step)

unconstrained gradient step

constrained decision set

[Zinkevich 2003], [Nemirovski, Yudin 1983]

Optimal regret in many cases [for e.g. Srebro, Sridharan, Tewari 2010]

But Computationally Slow!

Online Mirror Descent

8Learning What Works Best When | Swati Gupta | Research Fellow, Simons Institute

Page 27: Learning What Works Best When - Simons Institute for the ......Simons Institute, UC Berkeley Georgia Institute of Technology Joint work with Michel Goemans (MIT), Patrick Jaillet (MIT),

1. Projections ▪ Motivation ▪ Problem setup ▪ Novel algorithm: Inc-Fix for separable convex minimization: ▪ Main Result: O(n) SFM or O(n) Line searches ▪ Exact computations, modulo solving a univariate equation

2. Line Searches ▪ Previous best known: Megiddo’s parametric search ▪ Using Newton’s Discrete Method: n2 + n log2n SFM (n6 improvement)

3. What works best when ▪ Problems with Max-Cut and QUBO heuristics comparative studies ▪ Our framework: Expanded instance library, Implementation of 37 heuristics,

Large-scale cloud computing on the cross product ▪ Hyper-heuristic: Map every instance to a feature space, learn

“performance” of heuristics

Outline 9

9Learning What Works Best When | Swati Gupta | Research Fellow, Simons Institute

Page 28: Learning What Works Best When - Simons Institute for the ......Simons Institute, UC Berkeley Georgia Institute of Technology Joint work with Michel Goemans (MIT), Patrick Jaillet (MIT),

10

(i) Which decision sets? Submodular Base Polytopes

Learning What Works Best When | Swati Gupta | Research Fellow, Simons Institute

Page 29: Learning What Works Best When - Simons Institute for the ......Simons Institute, UC Berkeley Georgia Institute of Technology Joint work with Michel Goemans (MIT), Patrick Jaillet (MIT),

10

(i) Which decision sets?Permutations 1, 2, 3, 2, 3, 1, 3, 1, 2…

Submodular Base Polytopes

Learning What Works Best When | Swati Gupta | Research Fellow, Simons Institute

Page 30: Learning What Works Best When - Simons Institute for the ......Simons Institute, UC Berkeley Georgia Institute of Technology Joint work with Michel Goemans (MIT), Patrick Jaillet (MIT),

10

(i) Which decision sets?Permutations 1, 2, 3, 2, 3, 1, 3, 1, 2…

B(f)

P(f)

(1,2,3)

(1,3,2)

(2,3,1)(3,2,1)

(3,1,2)

(2,1,3)

(3,0,2)

(3, 0, 0)

(0,0,3)

(3,2,0)

Submodular Base Polytopes

Learning What Works Best When | Swati Gupta | Research Fellow, Simons Institute

Page 31: Learning What Works Best When - Simons Institute for the ......Simons Institute, UC Berkeley Georgia Institute of Technology Joint work with Michel Goemans (MIT), Patrick Jaillet (MIT),

10

(i) Which decision sets?Permutations 1, 2, 3, 2, 3, 1, 3, 1, 2…

Submodular set function Captures the property of diminishing returns

B(f)

P(f)

(1,2,3)

(1,3,2)

(2,3,1)(3,2,1)

(3,1,2)

(2,1,3)

(3,0,2)

(3, 0, 0)

(0,0,3)

(3,2,0)

Submodular Base Polytopes

Ground set E

Learning What Works Best When | Swati Gupta | Research Fellow, Simons Institute

Page 32: Learning What Works Best When - Simons Institute for the ......Simons Institute, UC Berkeley Georgia Institute of Technology Joint work with Michel Goemans (MIT), Patrick Jaillet (MIT),

10

(i) Which decision sets?Permutations 1, 2, 3, 2, 3, 1, 3, 1, 2…

Submodular set function Captures the property of diminishing returns

B(f)

P(f)

(1,2,3)

(1,3,2)

(2,3,1)(3,2,1)

(3,1,2)

(2,1,3)

Exp!

(3,0,2)

(3, 0, 0)

(0,0,3)

(3,2,0)

Submodular Base Polytopes

Ground set E

Learning What Works Best When | Swati Gupta | Research Fellow, Simons Institute

Page 33: Learning What Works Best When - Simons Institute for the ......Simons Institute, UC Berkeley Georgia Institute of Technology Joint work with Michel Goemans (MIT), Patrick Jaillet (MIT),

10

(i) Which decision sets?Permutations 1, 2, 3, 2, 3, 1, 3, 1, 2…

Submodular set function Captures the property of diminishing returns

B(f)

P(f)

(1,2,3)

(1,3,2)

(2,3,1)(3,2,1)

(3,1,2)

(2,1,3)

f(S) =

Choice of f(.) gives different structures

Exp!

(3,0,2)

(3, 0, 0)

(0,0,3)

(3,2,0)

Submodular Base Polytopes

Ground set E

Learning What Works Best When | Swati Gupta | Research Fellow, Simons Institute

Page 34: Learning What Works Best When - Simons Institute for the ......Simons Institute, UC Berkeley Georgia Institute of Technology Joint work with Michel Goemans (MIT), Patrick Jaillet (MIT),

10

(i) Which decision sets?Permutations 1, 2, 3, 2, 3, 1, 3, 1, 2…

Submodular set function Captures the property of diminishing returns

B(f)

P(f)

(1,2,3)

(1,3,2)

(2,3,1)(3,2,1)

(3,1,2)

(2,1,3)

f(S) =

Choice of f(.) gives different structures

Exp!

MANY MANY MORE INTERESTING EXAMPLES!!

(3,0,2)

(3, 0, 0)

(0,0,3)

(3,2,0)

Submodular Base Polytopes

Ground set E

Learning What Works Best When | Swati Gupta | Research Fellow, Simons Institute

Page 35: Learning What Works Best When - Simons Institute for the ......Simons Institute, UC Berkeley Georgia Institute of Technology Joint work with Michel Goemans (MIT), Patrick Jaillet (MIT),

(ii) Minimize what?▪ Bregman Divergences

Convex, non-negative, not symmetric

11

11Learning What Works Best When | Swati Gupta | Research Fellow, Simons Institute

Page 36: Learning What Works Best When - Simons Institute for the ......Simons Institute, UC Berkeley Georgia Institute of Technology Joint work with Michel Goemans (MIT), Patrick Jaillet (MIT),

(ii) Minimize what?▪ Bregman Divergences

Convex, non-negative, not symmetric

y

11

11Learning What Works Best When | Swati Gupta | Research Fellow, Simons Institute

Page 37: Learning What Works Best When - Simons Institute for the ......Simons Institute, UC Berkeley Georgia Institute of Technology Joint work with Michel Goemans (MIT), Patrick Jaillet (MIT),

(ii) Minimize what?▪ Bregman Divergences

Convex, non-negative, not symmetric

y

D(x, y)

x

11

11Learning What Works Best When | Swati Gupta | Research Fellow, Simons Institute

Page 38: Learning What Works Best When - Simons Institute for the ......Simons Institute, UC Berkeley Georgia Institute of Technology Joint work with Michel Goemans (MIT), Patrick Jaillet (MIT),

(ii) Minimize what?▪ Bregman Divergences

Convex, non-negative, not symmetric

y

D(x, y)

x

11

11Learning What Works Best When | Swati Gupta | Research Fellow, Simons Institute

Page 39: Learning What Works Best When - Simons Institute for the ......Simons Institute, UC Berkeley Georgia Institute of Technology Joint work with Michel Goemans (MIT), Patrick Jaillet (MIT),

(ii) Minimize what?▪ Bregman Divergences

Convex, non-negative, not symmetric

y

D(x, y)

x

11

11Learning What Works Best When | Swati Gupta | Research Fellow, Simons Institute

Page 40: Learning What Works Best When - Simons Institute for the ......Simons Institute, UC Berkeley Georgia Institute of Technology Joint work with Michel Goemans (MIT), Patrick Jaillet (MIT),

(ii) Minimize what?▪ Bregman Divergences

Convex, non-negative, not symmetric

12

Separable Strictly Convex Functions

12Learning What Works Best When | Swati Gupta | Research Fellow, Simons Institute

Page 41: Learning What Works Best When - Simons Institute for the ......Simons Institute, UC Berkeley Georgia Institute of Technology Joint work with Michel Goemans (MIT), Patrick Jaillet (MIT),

(ii) Minimize what?▪ Bregman Divergences

Convex, non-negative, not symmetric

12

Separable Strictly Convex Functions

Why do we need different divergences: convergence, regret bounds

12Learning What Works Best When | Swati Gupta | Research Fellow, Simons Institute

Page 42: Learning What Works Best When - Simons Institute for the ......Simons Institute, UC Berkeley Georgia Institute of Technology Joint work with Michel Goemans (MIT), Patrick Jaillet (MIT),

Algorithm Inc-Fix For Separable Strictly Convex Minimization Over Base Polytopes:

(b). Minimizing separable convex fns (sq. Euclidean distance, KL-divergence, ...)

(a). Which decision sets? Submodular Base Polytopes: B(f) (Permutations, k-subsets..)

13

13

Page 43: Learning What Works Best When - Simons Institute for the ......Simons Institute, UC Berkeley Georgia Institute of Technology Joint work with Michel Goemans (MIT), Patrick Jaillet (MIT),

(1,3,2)

(2,3,1)

(3,2,1)

(3,1,2)

(2,1,3)(1,2,3)

(3,0,2)

(3, 0, 0)

(0,0,3)

(3,2,0)

yB(f)

e3

e2

e1

-4

-1.4

-1

0.3

= x e

-ye

Project: y = (1.4, 4, 1)T

under Euclidean distance

“greedy in gradient space” – proof from first-order optimality conditions

14Inc-Fix Algorithm

[Gupta, Goemans, Jaillet]14

Learning What Works Best When | Swati Gupta | Research Fellow, Simons Institute

Page 44: Learning What Works Best When - Simons Institute for the ......Simons Institute, UC Berkeley Georgia Institute of Technology Joint work with Michel Goemans (MIT), Patrick Jaillet (MIT),

(1,3,2)

(2,3,1)

(3,2,1)

(3,1,2)

(2,1,3)(1,2,3)

(3,0,2)

(3, 0, 0)

(0,0,3)

(3,2,0)

yB(f)

e3

e2

e1

inc -4

-1.4

-1

0.3

= x e

-ye

Project: y = (1.4, 4, 1)T

under Euclidean distance

“greedy in gradient space” – proof from first-order optimality conditions

14Inc-Fix Algorithm

[Gupta, Goemans, Jaillet]14

Learning What Works Best When | Swati Gupta | Research Fellow, Simons Institute

Page 45: Learning What Works Best When - Simons Institute for the ......Simons Institute, UC Berkeley Georgia Institute of Technology Joint work with Michel Goemans (MIT), Patrick Jaillet (MIT),

(1,3,2)

(2,3,1)

(3,2,1)

(3,1,2)

(2,1,3)(1,2,3)

(3,0,2)

(3, 0, 0)

(0,0,3)

(3,2,0)

yB(f)

e3

e2

e1

inc -4

-1.4

-1

0.3

= x e

-ye

Project: y = (1.4, 4, 1)T

under Euclidean distance

“greedy in gradient space” – proof from first-order optimality conditions

14Inc-Fix Algorithm

[Gupta, Goemans, Jaillet]14

Learning What Works Best When | Swati Gupta | Research Fellow, Simons Institute

Page 46: Learning What Works Best When - Simons Institute for the ......Simons Institute, UC Berkeley Georgia Institute of Technology Joint work with Michel Goemans (MIT), Patrick Jaillet (MIT),

(1,3,2)

(2,3,1)

(3,2,1)

(3,1,2)

(2,1,3)(1,2,3)

(3,0,2)

(3, 0, 0)

(0,0,3)

(3,2,0)

yB(f)

e3

e2

e1

inc

inc

-4

-1.4

-1

0.3

= x e

-ye

Project: y = (1.4, 4, 1)T

under Euclidean distance

“greedy in gradient space” – proof from first-order optimality conditions

14Inc-Fix Algorithm

[Gupta, Goemans, Jaillet]14

Learning What Works Best When | Swati Gupta | Research Fellow, Simons Institute

Page 47: Learning What Works Best When - Simons Institute for the ......Simons Institute, UC Berkeley Georgia Institute of Technology Joint work with Michel Goemans (MIT), Patrick Jaillet (MIT),

(1,3,2)

(2,3,1)

(3,2,1)

(3,1,2)

(2,1,3)(1,2,3)

(3,0,2)

(3, 0, 0)

(0,0,3)

(3,2,0)

yB(f)

e3

e2

e1

inc

incfix

-4

-1.4

-1

0.3

= x e

-ye

Project: y = (1.4, 4, 1)T

under Euclidean distance

“greedy in gradient space” – proof from first-order optimality conditions

14Inc-Fix Algorithm

[Gupta, Goemans, Jaillet]14

Learning What Works Best When | Swati Gupta | Research Fellow, Simons Institute

Page 48: Learning What Works Best When - Simons Institute for the ......Simons Institute, UC Berkeley Georgia Institute of Technology Joint work with Michel Goemans (MIT), Patrick Jaillet (MIT),

(1,3,2)

(2,3,1)

(3,2,1)

(3,1,2)

(2,1,3)(1,2,3)

(3,0,2)

(3, 0, 0)

(0,0,3)

(3,2,0)

yB(f)inc,

e3

e2

e1

inc

incfix

-4

-1.4

-1

0.3

= x e

-ye

Project: y = (1.4, 4, 1)T

under Euclidean distance

“greedy in gradient space” – proof from first-order optimality conditions

14Inc-Fix Algorithm

[Gupta, Goemans, Jaillet]14

Learning What Works Best When | Swati Gupta | Research Fellow, Simons Institute

Page 49: Learning What Works Best When - Simons Institute for the ......Simons Institute, UC Berkeley Georgia Institute of Technology Joint work with Michel Goemans (MIT), Patrick Jaillet (MIT),

(1,3,2)

(2,3,1)

(3,2,1)

(3,1,2)

(2,1,3)(1,2,3)

(3,0,2)

(3, 0, 0)

(0,0,3)

(3,2,0)

yB(f)inc,

e3

e2

e1

inc

inc

fix

fix

-4

-1.4

-1

0.3

= x e

-ye

Project: y = (1.4, 4, 1)T

under Euclidean distance

x(*)

“greedy in gradient space” – proof from first-order optimality conditions

14Inc-Fix Algorithm

[Gupta, Goemans, Jaillet]14

Learning What Works Best When | Swati Gupta | Research Fellow, Simons Institute

Page 50: Learning What Works Best When - Simons Institute for the ......Simons Institute, UC Berkeley Georgia Institute of Technology Joint work with Michel Goemans (MIT), Patrick Jaillet (MIT),

Running timeSquared Euclidean Distance, KL-Divergence: Movement along lines

In general: Piecewise smooth movement

y15

15Learning What Works Best When | Swati Gupta | Research Fellow, Simons Institute

Page 51: Learning What Works Best When - Simons Institute for the ......Simons Institute, UC Berkeley Georgia Institute of Technology Joint work with Michel Goemans (MIT), Patrick Jaillet (MIT),

Running timeSquared Euclidean Distance, KL-Divergence: Movement along lines

In general: Piecewise smooth movement

y15

15Learning What Works Best When | Swati Gupta | Research Fellow, Simons Institute

Page 52: Learning What Works Best When - Simons Institute for the ......Simons Institute, UC Berkeley Georgia Institute of Technology Joint work with Michel Goemans (MIT), Patrick Jaillet (MIT),

Running timeSquared Euclidean Distance, KL-Divergence: Movement along lines

In general: Piecewise smooth movement

y

Details: How to do this movement?

15

15Learning What Works Best When | Swati Gupta | Research Fellow, Simons Institute

Page 53: Learning What Works Best When - Simons Institute for the ......Simons Institute, UC Berkeley Georgia Institute of Technology Joint work with Michel Goemans (MIT), Patrick Jaillet (MIT),

Running timeSquared Euclidean Distance, KL-Divergence: Movement along lines

In general: Piecewise smooth movement

y

Details: How to do this movement? O(n) Line Searches + non-linear equations in a single variable

15

15Learning What Works Best When | Swati Gupta | Research Fellow, Simons Institute

Page 54: Learning What Works Best When - Simons Institute for the ......Simons Institute, UC Berkeley Georgia Institute of Technology Joint work with Michel Goemans (MIT), Patrick Jaillet (MIT),

Running timeSquared Euclidean Distance, KL-Divergence: Movement along lines

In general: Piecewise smooth movement

y

Details: How to do this movement?

Using structural properties, we show Inc-Fix can be implemented in, in general,

O(n) Submodular Function Minimizations*

O(n) Line Searches + non-linear equations in a single variable

Running time?

LSW’15: CLSW’16:*Require maximal minimizers, note that checking for feasibility itself requires a SFM.

15

15Learning What Works Best When | Swati Gupta | Research Fellow, Simons Institute

Page 55: Learning What Works Best When - Simons Institute for the ......Simons Institute, UC Berkeley Georgia Institute of Technology Joint work with Michel Goemans (MIT), Patrick Jaillet (MIT),

Setup: 100 Elements, Fixed cardinality-based submodular function, Projections of 10 randomly generated points

Frank-Wolfe

Inc-Fix

0 20 40 60 80 100 Elements

0 20 40 60 80 100 Elements

Gra

die

nt V

alu

es

Gra

die

nt V

alu

es

Inc-Fix Frank-WolfeGap from optimality

Computations for cardinality-based f(.)

For cardinality-based functions, Inc-Fix takes for exact, while vanilla FW takes for -approx. (O(n (log n + k)) for simplex, k-subsets, k-truncated-permutations)

16

16Learning What Works Best When | Swati Gupta | Research Fellow, Simons Institute

Page 56: Learning What Works Best When - Simons Institute for the ......Simons Institute, UC Berkeley Georgia Institute of Technology Joint work with Michel Goemans (MIT), Patrick Jaillet (MIT),

Setup: 100 Elements, Fixed cardinality-based submodular function, Projections of 10 randomly generated points

Frank-Wolfe

Inc-Fix

0 20 40 60 80 100 Elements

0 20 40 60 80 100 Elements

Gra

die

nt V

alu

es

Gra

die

nt V

alu

es

Inc-Fix Frank-WolfeGap from optimality

Computations for cardinality-based f(.)

For cardinality-based functions, Inc-Fix takes for exact, while vanilla FW takes for -approx. (O(n (log n + k)) for simplex, k-subsets, k-truncated-permutations)

16

16Learning What Works Best When | Swati Gupta | Research Fellow, Simons Institute

Page 57: Learning What Works Best When - Simons Institute for the ......Simons Institute, UC Berkeley Georgia Institute of Technology Joint work with Michel Goemans (MIT), Patrick Jaillet (MIT),

Setup: 100 Elements, Fixed cardinality-based submodular function, Projections of 10 randomly generated points

Frank-Wolfe

Inc-Fix

0 20 40 60 80 100 Elements

0 20 40 60 80 100 Elements

Gra

die

nt V

alu

es

Gra

die

nt V

alu

es

Inc-Fix Frank-WolfeGap from optimality

Computations for cardinality-based f(.)

For cardinality-based functions, Inc-Fix takes for exact, while vanilla FW takes for -approx. (O(n (log n + k)) for simplex, k-subsets, k-truncated-permutations)

16

16Learning What Works Best When | Swati Gupta | Research Fellow, Simons Institute

Page 58: Learning What Works Best When - Simons Institute for the ......Simons Institute, UC Berkeley Georgia Institute of Technology Joint work with Michel Goemans (MIT), Patrick Jaillet (MIT),

1. Projections ▪ Motivation ▪ Problem setup ▪ Novel algorithm: Inc-Fix for separable convex minimization: ▪ Main Result: O(n) SFM or O(n) Line searches ▪ Exact computations, modulo solving a univariate equation

2. Line Searches ▪ Previous best known: Megiddo’s parametric search ▪ Using Newton’s Discrete Method: n2 + n log2n SFM (n6 improvement)

3. What works best when ▪ Problems with Max-Cut and QUBO heuristics comparative studies ▪ Our framework: Expanded instance library, Implementation of 37 heuristics,

Large-scale cloud computing on the cross product ▪ Hyper-heuristic: Map every instance to a feature space, learn

“performance” of heuristics

Outline 17

17Learning What Works Best When | Swati Gupta | Research Fellow, Simons Institute

Page 59: Learning What Works Best When - Simons Institute for the ......Simons Institute, UC Berkeley Georgia Institute of Technology Joint work with Michel Goemans (MIT), Patrick Jaillet (MIT),

3. Feasibility along a Line

How much to move in a direction while staying feasible?

18

18Learning What Works Best When | Swati Gupta | Research Fellow, Simons Institute

Page 60: Learning What Works Best When - Simons Institute for the ......Simons Institute, UC Berkeley Georgia Institute of Technology Joint work with Michel Goemans (MIT), Patrick Jaillet (MIT),

3. Feasibility along a Line

How much to move in a direction while staying feasible?

18

18Learning What Works Best When | Swati Gupta | Research Fellow, Simons Institute

Page 61: Learning What Works Best When - Simons Institute for the ......Simons Institute, UC Berkeley Georgia Institute of Technology Joint work with Michel Goemans (MIT), Patrick Jaillet (MIT),

3. Feasibility along a Line

How much to move in a direction while staying feasible?

18

18Learning What Works Best When | Swati Gupta | Research Fellow, Simons Institute

Page 62: Learning What Works Best When - Simons Institute for the ......Simons Institute, UC Berkeley Georgia Institute of Technology Joint work with Michel Goemans (MIT), Patrick Jaillet (MIT),

3. Feasibility along a Line

How much to move in a direction while staying feasible?

Sub-problem in many methods: • Inc-Fix, of course

• Frank-Wolfe [Frank, Wolfe, Jaggi, Lacoste-Julien, Freund, Grigas, …]

• Caratheodory’s Theorem

18

18Learning What Works Best When | Swati Gupta | Research Fellow, Simons Institute

Page 63: Learning What Works Best When - Simons Institute for the ......Simons Institute, UC Berkeley Georgia Institute of Technology Joint work with Michel Goemans (MIT), Patrick Jaillet (MIT),

3. Feasibility along a Line

How much to move in a direction while staying feasible?

Sub-problem in many methods: • Inc-Fix, of course

• Frank-Wolfe [Frank, Wolfe, Jaggi, Lacoste-Julien, Freund, Grigas, …]

• Caratheodory’s Theorem

Others: ▪ Densest sub-graphs

[Nagano et al. 2011]

▪ Minimum Ratio Problems [Cunningham 1985]

18

18Learning What Works Best When | Swati Gupta | Research Fellow, Simons Institute

Page 64: Learning What Works Best When - Simons Institute for the ......Simons Institute, UC Berkeley Georgia Institute of Technology Joint work with Michel Goemans (MIT), Patrick Jaillet (MIT),

Line SearchInc-Fix uses only positive directions (well-understood) General: Megiddo’s parametric search: Õ(n8) SFM [Nagano 2011]

19

19Learning What Works Best When | Swati Gupta | Research Fellow, Simons Institute

Page 65: Learning What Works Best When - Simons Institute for the ......Simons Institute, UC Berkeley Georgia Institute of Technology Joint work with Michel Goemans (MIT), Patrick Jaillet (MIT),

Line SearchInc-Fix uses only positive directions (well-understood) General: Megiddo’s parametric search: Õ(n8) SFM [Nagano 2011]

Recall19

19Learning What Works Best When | Swati Gupta | Research Fellow, Simons Institute

Page 66: Learning What Works Best When - Simons Institute for the ......Simons Institute, UC Berkeley Georgia Institute of Technology Joint work with Michel Goemans (MIT), Patrick Jaillet (MIT),

Line SearchInc-Fix uses only positive directions (well-understood) General: Megiddo’s parametric search: Õ(n8) SFM [Nagano 2011]

Recall19

19Learning What Works Best When | Swati Gupta | Research Fellow, Simons Institute

Page 67: Learning What Works Best When - Simons Institute for the ......Simons Institute, UC Berkeley Georgia Institute of Technology Joint work with Michel Goemans (MIT), Patrick Jaillet (MIT),

Line SearchInc-Fix uses only positive directions (well-understood) General: Megiddo’s parametric search: Õ(n8) SFM [Nagano 2011]

Recall19

19Learning What Works Best When | Swati Gupta | Research Fellow, Simons Institute

Page 68: Learning What Works Best When - Simons Institute for the ......Simons Institute, UC Berkeley Georgia Institute of Technology Joint work with Michel Goemans (MIT), Patrick Jaillet (MIT),

Line SearchInc-Fix uses only positive directions (well-understood) General: Megiddo’s parametric search: Õ(n8) SFM [Nagano 2011]

Recall19

19Learning What Works Best When | Swati Gupta | Research Fellow, Simons Institute

Page 69: Learning What Works Best When - Simons Institute for the ......Simons Institute, UC Berkeley Georgia Institute of Technology Joint work with Michel Goemans (MIT), Patrick Jaillet (MIT),

Line SearchInc-Fix uses only positive directions (well-understood) General: Megiddo’s parametric search: Õ(n8) SFM [Nagano 2011]

Recall19

19Learning What Works Best When | Swati Gupta | Research Fellow, Simons Institute

Page 70: Learning What Works Best When - Simons Institute for the ......Simons Institute, UC Berkeley Georgia Institute of Technology Joint work with Michel Goemans (MIT), Patrick Jaillet (MIT),

Line SearchInc-Fix uses only positive directions (well-understood) General: Megiddo’s parametric search: Õ(n8) SFM [Nagano 2011]

Recall19

19Learning What Works Best When | Swati Gupta | Research Fellow, Simons Institute

Page 71: Learning What Works Best When - Simons Institute for the ......Simons Institute, UC Berkeley Georgia Institute of Technology Joint work with Michel Goemans (MIT), Patrick Jaillet (MIT),

Line SearchInc-Fix uses only positive directions (well-understood) General: Megiddo’s parametric search: Õ(n8) SFM [Nagano 2011]

Recall19

19Learning What Works Best When | Swati Gupta | Research Fellow, Simons Institute

Page 72: Learning What Works Best When - Simons Institute for the ......Simons Institute, UC Berkeley Georgia Institute of Technology Joint work with Michel Goemans (MIT), Patrick Jaillet (MIT),

Line SearchInc-Fix uses only positive directions (well-understood) General: Megiddo’s parametric search: Õ(n8) SFM [Nagano 2011]

Recall19

19Learning What Works Best When | Swati Gupta | Research Fellow, Simons Institute

Page 73: Learning What Works Best When - Simons Institute for the ......Simons Institute, UC Berkeley Georgia Institute of Technology Joint work with Michel Goemans (MIT), Patrick Jaillet (MIT),

Line SearchInc-Fix uses only positive directions (well-understood) General: Megiddo’s parametric search: Õ(n8) SFM [Nagano 2011]

Recall19

19Learning What Works Best When | Swati Gupta | Research Fellow, Simons Institute

Page 74: Learning What Works Best When - Simons Institute for the ......Simons Institute, UC Berkeley Georgia Institute of Technology Joint work with Michel Goemans (MIT), Patrick Jaillet (MIT),

Line SearchInc-Fix uses only positive directions (well-understood) General: Megiddo’s parametric search: Õ(n8) SFM [Nagano 2011]

Recall19

19Learning What Works Best When | Swati Gupta | Research Fellow, Simons Institute

Page 75: Learning What Works Best When - Simons Institute for the ......Simons Institute, UC Berkeley Georgia Institute of Technology Joint work with Michel Goemans (MIT), Patrick Jaillet (MIT),

Line SearchInc-Fix uses only positive directions (well-understood) General: Megiddo’s parametric search: Õ(n8) SFM [Nagano 2011]

Recall19

19Learning What Works Best When | Swati Gupta | Research Fellow, Simons Institute

Page 76: Learning What Works Best When - Simons Institute for the ......Simons Institute, UC Berkeley Georgia Institute of Technology Joint work with Michel Goemans (MIT), Patrick Jaillet (MIT),

Line SearchInc-Fix uses only positive directions (well-understood) General: Megiddo’s parametric search: Õ(n8) SFM [Nagano 2011]

Discrete Newton Method for Parametric Line Search

Recall19

19Learning What Works Best When | Swati Gupta | Research Fellow, Simons Institute

Page 77: Learning What Works Best When - Simons Institute for the ......Simons Institute, UC Berkeley Georgia Institute of Technology Joint work with Michel Goemans (MIT), Patrick Jaillet (MIT),

Line SearchInc-Fix uses only positive directions (well-understood) General: Megiddo’s parametric search: Õ(n8) SFM [Nagano 2011]

Discrete Newton Method for Parametric Line Search

Recall19

19Learning What Works Best When | Swati Gupta | Research Fellow, Simons Institute

Page 78: Learning What Works Best When - Simons Institute for the ......Simons Institute, UC Berkeley Georgia Institute of Technology Joint work with Michel Goemans (MIT), Patrick Jaillet (MIT),

Line SearchInc-Fix uses only positive directions (well-understood) General: Megiddo’s parametric search: Õ(n8) SFM [Nagano 2011]

Discrete Newton Method for Parametric Line Search

Recall19

19Learning What Works Best When | Swati Gupta | Research Fellow, Simons Institute

Page 79: Learning What Works Best When - Simons Institute for the ......Simons Institute, UC Berkeley Georgia Institute of Technology Joint work with Michel Goemans (MIT), Patrick Jaillet (MIT),

Line SearchInc-Fix uses only positive directions (well-understood) General: Megiddo’s parametric search: Õ(n8) SFM [Nagano 2011]

Discrete Newton Method for Parametric Line Search

Recall19

19Learning What Works Best When | Swati Gupta | Research Fellow, Simons Institute

Page 80: Learning What Works Best When - Simons Institute for the ......Simons Institute, UC Berkeley Georgia Institute of Technology Joint work with Michel Goemans (MIT), Patrick Jaillet (MIT),

Line SearchInc-Fix uses only positive directions (well-understood) General: Megiddo’s parametric search: Õ(n8) SFM [Nagano 2011]

Discrete Newton Method for Parametric Line Search

Open question to bound the no. of iterations!

Recall19

19Learning What Works Best When | Swati Gupta | Research Fellow, Simons Institute

Page 81: Learning What Works Best When - Simons Institute for the ......Simons Institute, UC Berkeley Georgia Institute of Technology Joint work with Michel Goemans (MIT), Patrick Jaillet (MIT),

Line Search

We show a quadratic bound on the number of Newton’s iterations: <= n2 + o(n log2n) SFM (n6 improvement) [Goemans, Gupta, Jaillet, IPCO 2017]

Inc-Fix uses only positive directions (well-understood) General: Megiddo’s parametric search: Õ(n8) SFM [Nagano 2011]

Discrete Newton Method for Parametric Line Search

Open question to bound the no. of iterations!

Recall

Strongly Polynomial

19

19Learning What Works Best When | Swati Gupta | Research Fellow, Simons Institute

Page 82: Learning What Works Best When - Simons Institute for the ......Simons Institute, UC Berkeley Georgia Institute of Technology Joint work with Michel Goemans (MIT), Patrick Jaillet (MIT),

Sequence of subsetsConsider any submodular function a sequence of sets

20

We show a quadratic bound on the number of Newton’s iterations: <= n2 + o(n log2n) SFM (n6 improvement) [Goemans, Gupta, Jaillet, IPCO 2017]

20Learning What Works Best When | Swati Gupta | Research Fellow, Simons Institute

Page 83: Learning What Works Best When - Simons Institute for the ......Simons Institute, UC Berkeley Georgia Institute of Technology Joint work with Michel Goemans (MIT), Patrick Jaillet (MIT),

Sequence of subsetsConsider any submodular function a sequence of sets How large

can q be?

20

We show a quadratic bound on the number of Newton’s iterations: <= n2 + o(n log2n) SFM (n6 improvement) [Goemans, Gupta, Jaillet, IPCO 2017]

20Learning What Works Best When | Swati Gupta | Research Fellow, Simons Institute

Page 84: Learning What Works Best When - Simons Institute for the ......Simons Institute, UC Berkeley Georgia Institute of Technology Joint work with Michel Goemans (MIT), Patrick Jaillet (MIT),

Sequence of subsetsConsider any submodular function a sequence of sets How large

can q be?

using submodularity of

20

We show a quadratic bound on the number of Newton’s iterations: <= n2 + o(n log2n) SFM (n6 improvement) [Goemans, Gupta, Jaillet, IPCO 2017]

20Learning What Works Best When | Swati Gupta | Research Fellow, Simons Institute

Page 85: Learning What Works Best When - Simons Institute for the ......Simons Institute, UC Berkeley Georgia Institute of Technology Joint work with Michel Goemans (MIT), Patrick Jaillet (MIT),

Sequence of subsetsConsider any submodular function a sequence of sets How large

can q be?

using submodularity of

using Birkhoff’s representation theorem

20

We show a quadratic bound on the number of Newton’s iterations: <= n2 + o(n log2n) SFM (n6 improvement) [Goemans, Gupta, Jaillet, IPCO 2017]

20Learning What Works Best When | Swati Gupta | Research Fellow, Simons Institute

Page 86: Learning What Works Best When - Simons Institute for the ......Simons Institute, UC Berkeley Georgia Institute of Technology Joint work with Michel Goemans (MIT), Patrick Jaillet (MIT),

Sequence of subsetsConsider any submodular function a sequence of sets How large

can q be?

using submodularity of

using Birkhoff’s representation theorem

20

We show a quadratic bound on the number of Newton’s iterations: <= n2 + o(n log2n) SFM (n6 improvement) [Goemans, Gupta, Jaillet, IPCO 2017]

20Learning What Works Best When | Swati Gupta | Research Fellow, Simons Institute

Page 87: Learning What Works Best When - Simons Institute for the ......Simons Institute, UC Berkeley Georgia Institute of Technology Joint work with Michel Goemans (MIT), Patrick Jaillet (MIT),

1. Projections ▪ Motivation ▪ Problem setup ▪ Novel algorithm: Inc-Fix for separable convex minimization: ▪ Main Result: O(n) SFM or O(n) Line searches ▪ Exact computations, modulo solving a univariate equation

2. Line Searches ▪ Previous best known: Megiddo’s parametric search ▪ Using Newton’s Discrete Method: n2 + n log2n SFM (n6 improvement)

3. What works best when ▪ Problems with Max-Cut and QUBO heuristics comparative studies ▪ Our framework: Expanded instance library, Implementation of 37 heuristics,

Large-scale cloud computing on the cross product ▪ Hyper-heuristic: Map every instance to a feature space, learn

“performance” of heuristics.

Outline 21

21

Page 88: Learning What Works Best When - Simons Institute for the ......Simons Institute, UC Berkeley Georgia Institute of Technology Joint work with Michel Goemans (MIT), Patrick Jaillet (MIT),

What works best when

Image from: https://www.dreamstime.com/stock-illustration-octopus-tools-illustration-image47507762

Page 89: Learning What Works Best When - Simons Institute for the ......Simons Institute, UC Berkeley Georgia Institute of Technology Joint work with Michel Goemans (MIT), Patrick Jaillet (MIT),

What works best when

Image from: https://www.dreamstime.com/stock-illustration-octopus-tools-illustration-image47507762

Encounter problem in practice

Find out what isknown

Run the “best” knownalgorithm/heuristic

for the data

Page 90: Learning What Works Best When - Simons Institute for the ......Simons Institute, UC Berkeley Georgia Institute of Technology Joint work with Michel Goemans (MIT), Patrick Jaillet (MIT),

What works best when

Image from: https://www.dreamstime.com/stock-illustration-octopus-tools-illustration-image47507762

Encounter problem in practice

Find out what isknown

Run the “best” knownalgorithm/heuristic

for the data

From learning decisions, to learning performance of algorithms

Page 91: Learning What Works Best When - Simons Institute for the ......Simons Institute, UC Berkeley Georgia Institute of Technology Joint work with Michel Goemans (MIT), Patrick Jaillet (MIT),

Max-Cut: An NP-Hard Problem

Given an edge-weighted graph, partition nodes into two sets to maximize the weight of the edges between the sets

Equivalence with Quadratic Unconstrained Binary Optimization Problem (QUBO)

A lot of applications, and a lot of research! ◇ >32 published papers since 2010.

Computational experiments key to heuristic evaluation!

But hard to find which heuristic works best when

23Learning What Works Best When | Swati Gupta | Research Fellow, Simons Institute

Page 92: Learning What Works Best When - Simons Institute for the ......Simons Institute, UC Berkeley Georgia Institute of Technology Joint work with Michel Goemans (MIT), Patrick Jaillet (MIT),

Max-Cut: An NP-Hard Problem

Given an edge-weighted graph, partition nodes into two sets to maximize the weight of the edges between the sets

Equivalence with Quadratic Unconstrained Binary Optimization Problem (QUBO)

A lot of applications, and a lot of research! ◇ >32 published papers since 2010.

Computational experiments key to heuristic evaluation!

But hard to find which heuristic works best when

23Learning What Works Best When | Swati Gupta | Research Fellow, Simons Institute

Page 93: Learning What Works Best When - Simons Institute for the ......Simons Institute, UC Berkeley Georgia Institute of Technology Joint work with Michel Goemans (MIT), Patrick Jaillet (MIT),

Max-Cut: An NP-Hard Problem

Given an edge-weighted graph, partition nodes into two sets to maximize the weight of the edges between the sets

Equivalence with Quadratic Unconstrained Binary Optimization Problem (QUBO)

A lot of applications, and a lot of research! ◇ >32 published papers since 2010.

Computational experiments key to heuristic evaluation!

But hard to find which heuristic works best when

23Learning What Works Best When | Swati Gupta | Research Fellow, Simons Institute

Page 94: Learning What Works Best When - Simons Institute for the ......Simons Institute, UC Berkeley Georgia Institute of Technology Joint work with Michel Goemans (MIT), Patrick Jaillet (MIT),

Max-Cut: An NP-Hard Problem

Given an edge-weighted graph, partition nodes into two sets to maximize the weight of the edges between the sets

Equivalence with Quadratic Unconstrained Binary Optimization Problem (QUBO)

A lot of applications, and a lot of research! ◇ >32 published papers since 2010.

Computational experiments key to heuristic evaluation!

But hard to find which heuristic works best when

23Learning What Works Best When | Swati Gupta | Research Fellow, Simons Institute

Page 95: Learning What Works Best When - Simons Institute for the ......Simons Institute, UC Berkeley Georgia Institute of Technology Joint work with Michel Goemans (MIT), Patrick Jaillet (MIT),

Problems with standard testbedHomogeneous Test Bed: Max-Cut (105 graphs), QUBO (126 matrices)

Max-Cut Instances QUBO instances

24Learning What Works Best When | Swati Gupta | Research Fellow, Simons Institute

Page 96: Learning What Works Best When - Simons Institute for the ......Simons Institute, UC Berkeley Georgia Institute of Technology Joint work with Michel Goemans (MIT), Patrick Jaillet (MIT),

Problems with standard testbedHomogeneous Test Bed: Max-Cut (105 graphs), QUBO (126 matrices)

Max-Cut Instances QUBO instances

Which Max-Cut heuristic works best for high density graphs? Which QUBO heuristic works best for sparse matrices?

24Learning What Works Best When | Swati Gupta | Research Fellow, Simons Institute

Page 97: Learning What Works Best When - Simons Institute for the ......Simons Institute, UC Berkeley Georgia Institute of Technology Joint work with Michel Goemans (MIT), Patrick Jaillet (MIT),

Problems with status-quo

Same runtime limit?

Same hardware?

No Yes

No 55% 4%

Yes 31% 10%

◇ few published source code ◇ reimplementation uncommon ◇ different testing criteria ◇ comparison with small no. of heuristics…

25Learning What Works Best When | Swati Gupta | Research Fellow, Simons Institute

Page 98: Learning What Works Best When - Simons Institute for the ......Simons Institute, UC Berkeley Georgia Institute of Technology Joint work with Michel Goemans (MIT), Patrick Jaillet (MIT),

Our Approach

26Learning What Works Best When | Swati Gupta | Research Fellow, Simons Institute

Page 99: Learning What Works Best When - Simons Institute for the ......Simons Institute, UC Berkeley Georgia Institute of Technology Joint work with Michel Goemans (MIT), Patrick Jaillet (MIT),

Our Approach

26Learning What Works Best When | Swati Gupta | Research Fellow, Simons Institute

Page 100: Learning What Works Best When - Simons Institute for the ......Simons Institute, UC Berkeley Georgia Institute of Technology Joint work with Michel Goemans (MIT), Patrick Jaillet (MIT),

Expanded Instance Library◇ Heterogeneous instances, capture instances in real instances ◇ Real World Instances (tsplib, steinlib, dimacs, road networks, …) ◇ Network science generators (ER, NWS, BA, …) ◇ Sampled weights from 65 prob. distributions (uniform, weibull, …)

27Learning What Works Best When | Swati Gupta | Research Fellow, Simons Institute

Page 101: Learning What Works Best When - Simons Institute for the ......Simons Institute, UC Berkeley Georgia Institute of Technology Joint work with Michel Goemans (MIT), Patrick Jaillet (MIT),

Heterogeneity: 58 Metrics

◇ 10 global metrics: ◇ nodes, edges, 1st and 2nd eigenvalues of Laplacian, chromatic number, …

◇ 48 local metrics from summary statistics of edge/node attributes: ◇ degree, avg. neighbor degree, clustering coefficient, core…

◇ Fast to compute – at most

◇ Coverage (for normalized metrics in [0,1]): union over all instances of a small interval around the metric value for each instance ◇ average metric coverage for new test bed: 0.88 (interval +-0.05) ◇ 0.31 for 95 std Max-Cut v/s 0.71 (0.69-0.77) for ~ 95 random new ◇ 0.38 for 56 std QUBO v/s 0.64 (0.59-0.68) for ~56 random new

28Learning What Works Best When | Swati Gupta | Research Fellow, Simons Institute

Page 102: Learning What Works Best When - Simons Institute for the ......Simons Institute, UC Berkeley Georgia Institute of Technology Joint work with Michel Goemans (MIT), Patrick Jaillet (MIT),

29

Page 103: Learning What Works Best When - Simons Institute for the ......Simons Institute, UC Berkeley Georgia Institute of Technology Joint work with Michel Goemans (MIT), Patrick Jaillet (MIT),

Our Approach

30Learning What Works Best When | Swati Gupta | Research Fellow, Simons Institute

Page 104: Learning What Works Best When - Simons Institute for the ......Simons Institute, UC Berkeley Georgia Institute of Technology Joint work with Michel Goemans (MIT), Patrick Jaillet (MIT),

Our Approach

30Learning What Works Best When | Swati Gupta | Research Fellow, Simons Institute

Page 105: Learning What Works Best When - Simons Institute for the ......Simons Institute, UC Berkeley Georgia Institute of Technology Joint work with Michel Goemans (MIT), Patrick Jaillet (MIT),

Implementation + Evaluation

◇ We did what one would expect◇ thorough lit review (810 papers)◇ selected 95 papers (new heuristics)◇ implemented 37 heuristics from 19 highly cited papers

31Learning What Works Best When | Swati Gupta | Research Fellow, Simons Institute

Page 106: Learning What Works Best When - Simons Institute for the ......Simons Institute, UC Berkeley Georgia Institute of Technology Joint work with Michel Goemans (MIT), Patrick Jaillet (MIT),

Implementation + Evaluation

◇ We did what one would expect◇ thorough lit review (810 papers)◇ selected 95 papers (new heuristics)◇ implemented 37 heuristics from 19 highly cited papers

◇ Minor modifications to standardize: ◇ added random restarts◇ shared common code – data structures and subroutines◇ no parameter tuning

31Learning What Works Best When | Swati Gupta | Research Fellow, Simons Institute

Page 107: Learning What Works Best When - Simons Institute for the ......Simons Institute, UC Berkeley Georgia Institute of Technology Joint work with Michel Goemans (MIT), Patrick Jaillet (MIT),

Implementation + Evaluation

◇ We did what one would expect◇ thorough lit review (810 papers)◇ selected 95 papers (new heuristics)◇ implemented 37 heuristics from 19 highly cited papers

◇ Minor modifications to standardize: ◇ added random restarts◇ shared common code – data structures and subroutines◇ no parameter tuning

◇ Cloud Computing – Amazon EC2◇ Instance specific runtime limit computation◇ too low: miss performance ◇ too high: waste computational budget

◇ any new heuristic can be tested for $32.5 (20.6 CPU days/heuristic)

31Learning What Works Best When | Swati Gupta | Research Fellow, Simons Institute

Page 108: Learning What Works Best When - Simons Institute for the ......Simons Institute, UC Berkeley Georgia Institute of Technology Joint work with Michel Goemans (MIT), Patrick Jaillet (MIT),

https://github.com/MQLib/MQLibOpen Source Code available at

32Learning What Works Best When | Swati Gupta | Research Fellow, Simons Institute

Page 109: Learning What Works Best When - Simons Institute for the ......Simons Institute, UC Berkeley Georgia Institute of Technology Joint work with Michel Goemans (MIT), Patrick Jaillet (MIT),

Our Approach

33Learning What Works Best When | Swati Gupta | Research Fellow, Simons Institute

Page 110: Learning What Works Best When - Simons Institute for the ......Simons Institute, UC Berkeley Georgia Institute of Technology Joint work with Michel Goemans (MIT), Patrick Jaillet (MIT),

Our Approach

33Learning What Works Best When | Swati Gupta | Research Fellow, Simons Institute

Page 111: Learning What Works Best When - Simons Institute for the ......Simons Institute, UC Berkeley Georgia Institute of Technology Joint work with Michel Goemans (MIT), Patrick Jaillet (MIT),

Results

◇ No heuristic dominated all the others ◇ 30/37 heuristics strictly best on at least one

instance ◇ No heuristic matched the best performance on

more than 22.9% of the testbed

◇ Standard test beds do not capture performance ◇ Example: GLS heuristic (Merz, Freisleben 1999) ◇ Strictly best on no instances in the std test bed ◇ Sole best-performing on 6.9% expanded test bed

instances!

34Learning What Works Best When | Swati Gupta | Research Fellow, Simons Institute

Page 112: Learning What Works Best When - Simons Institute for the ......Simons Institute, UC Berkeley Georgia Institute of Technology Joint work with Michel Goemans (MIT), Patrick Jaillet (MIT),

35

Page 113: Learning What Works Best When - Simons Institute for the ......Simons Institute, UC Berkeley Georgia Institute of Technology Joint work with Michel Goemans (MIT), Patrick Jaillet (MIT),

Can we predict which heuristic would work best on an unseen data instance?

36

“the algorithm selection problem is to learn the mapping from instance features

to the best algorithm to run on an instance”

— Rice (1976)

Learning What Works Best When | Swati Gupta | Research Fellow, Simons Institute

Page 114: Learning What Works Best When - Simons Institute for the ......Simons Institute, UC Berkeley Georgia Institute of Technology Joint work with Michel Goemans (MIT), Patrick Jaillet (MIT),

37

… Phase transitions (Cheeseman et al. 1991,

Hartman and Weigt, 2006)

… Landscape analysis(Stadler and Schnabl

1992, Krzkakala et al. 2004, Hartman and Weigt

2003, Gent and Walsh 1996,

Smith-miles et al. 2010, Wang et al. 2013… )

Page 115: Learning What Works Best When - Simons Institute for the ......Simons Institute, UC Berkeley Georgia Institute of Technology Joint work with Michel Goemans (MIT), Patrick Jaillet (MIT),

Interpreting Heuristic Performance

38Learning What Works Best When | Swati Gupta | Research Fellow, Simons Institute

[… “algorithmic footprints” Smith-Miles et al. 2014]

Page 116: Learning What Works Best When - Simons Institute for the ......Simons Institute, UC Berkeley Georgia Institute of Technology Joint work with Michel Goemans (MIT), Patrick Jaillet (MIT),

Interpreting Heuristic Performance

38

Conjecture Generation?

Learning What Works Best When | Swati Gupta | Research Fellow, Simons Institute

[… “algorithmic footprints” Smith-Miles et al. 2014]

Page 117: Learning What Works Best When - Simons Institute for the ......Simons Institute, UC Berkeley Georgia Institute of Technology Joint work with Michel Goemans (MIT), Patrick Jaillet (MIT),

Comparing Heuristic Performance

39

Page 118: Learning What Works Best When - Simons Institute for the ......Simons Institute, UC Berkeley Georgia Institute of Technology Joint work with Michel Goemans (MIT), Patrick Jaillet (MIT),

Heuristic Class Performance

40Learning What Works Best When | Swati Gupta | Research Fellow, Simons Institute

Page 119: Learning What Works Best When - Simons Institute for the ......Simons Institute, UC Berkeley Georgia Institute of Technology Joint work with Michel Goemans (MIT), Patrick Jaillet (MIT),

Our Approach

41Learning What Works Best When | Swati Gupta | Research Fellow, Simons Institute

Page 120: Learning What Works Best When - Simons Institute for the ......Simons Institute, UC Berkeley Georgia Institute of Technology Joint work with Michel Goemans (MIT), Patrick Jaillet (MIT),

Our Approach

41Learning What Works Best When | Swati Gupta | Research Fellow, Simons Institute

Page 121: Learning What Works Best When - Simons Institute for the ......Simons Institute, UC Berkeley Georgia Institute of Technology Joint work with Michel Goemans (MIT), Patrick Jaillet (MIT),

Algorithm Portfolio or Hyper-heuristic

◇ Random Forest Model for each heuristic ◇ Predicts if it will obtain the best solution using 58 features ◇ Final heuristic selected has maximum predicted probability ◇ Small fraction of runtime budget to select heuristic and then run the

selected heuristic on remaining time

◇ Represents state-of-the-art Max-Cut and QUBO heuristic! ◇ Improves significantly over best single heuristic (BUR02): ◇ Probability of obtaining best solution: increased from 15% to 37% ◇ Avg. deviation from best solution reduced from 0.34% to 0.09% ◇ Running 8 heuristics in parallel: 48% best solution, 0.05% avg. dev.

42Learning What Works Best When | Swati Gupta | Research Fellow, Simons Institute

(joint work with Iain Dunning, John Silberholz. INFORMS Journal on Computing, 2017)

[… SAT solvers (Xu et al 2008), constrained prog (O’ Mahoney et al. 2008)]

Page 122: Learning What Works Best When - Simons Institute for the ......Simons Institute, UC Berkeley Georgia Institute of Technology Joint work with Michel Goemans (MIT), Patrick Jaillet (MIT),

1. Projections ▪ Motivation ▪ Problem setup ▪ Novel algorithm: Inc-Fix for separable convex minimization: ▪ Main Result: O(n) SFM or O(n) Line searches ▪ Exact computations, modulo solving a univariate equation

2. Line Searches ▪ Previous best known: Megiddo’s parametric search ▪ Using Newton’s Discrete Method: n2 + n log2n SFM (n6 improvement)

3. What works best when ▪ Problems with Max-Cut and QUBO heuristics comparative studies ▪ Our framework: Expanded instance library, Implementation of 37 heuristics,

Large-scale cloud computing on the cross product ▪ Hyper-heuristic: Map every instance to a feature space, learn

“performance” of heuristics

Outline 43

[email protected] swatigupta.tech

Learning What Works Best When | Swati Gupta | Research Fellow, Simons Institute43

Page 123: Learning What Works Best When - Simons Institute for the ......Simons Institute, UC Berkeley Georgia Institute of Technology Joint work with Michel Goemans (MIT), Patrick Jaillet (MIT),

44

Page 124: Learning What Works Best When - Simons Institute for the ......Simons Institute, UC Berkeley Georgia Institute of Technology Joint work with Michel Goemans (MIT), Patrick Jaillet (MIT),

45

Page 125: Learning What Works Best When - Simons Institute for the ......Simons Institute, UC Berkeley Georgia Institute of Technology Joint work with Michel Goemans (MIT), Patrick Jaillet (MIT),

46