The Phase Transition in Heuristic Search J. Christopher Beck - - PowerPoint PPT Presentation

the phase transition in heuristic search
SMART_READER_LITE
LIVE PREVIEW

The Phase Transition in Heuristic Search J. Christopher Beck - - PowerPoint PPT Presentation

The Phase Transition in Heuristic Search J. Christopher Beck Department of Mechanical & Industrial Engineering University of Toronto Canada jcb@mie.utoronto.ca PlanSOpt Workshop, ICAPS2017 University of Toronto June 19, 2017 Mechanical


slide-1
SLIDE 1

University of Toronto Mechanical & Industrial Engineering

The Phase Transition in Heuristic Search

  • J. Christopher Beck

Department of Mechanical & Industrial Engineering University of Toronto Canada jcb@mie.utoronto.ca

PlanSOpt Workshop, ICAPS2017 June 19, 2017

slide-2
SLIDE 2

University of Toronto Mechanical & Industrial Engineering 2

Nothing is as good as it used to be, and it never was. The “golden age of sports,” the golden age of anything, is the age of everyone’s childhood.

  • Ken Dryden, “The Game”

The lack of interest, the distain for history is what makes computing not-quite-a-field.

  • Alan Kay, Dr. Dobbs,

July 10, 2012 Corollary: The best papers are the ones we read during grad school.

slide-3
SLIDE 3

University of Toronto Mechanical & Industrial Engineering

Outline

  • The Phase Transition

– aka Flashback to the 1990s

  • The Phase Transition in Heuristic Search

– An abstract model and benchmark problems

  • The Effect of Operator Cost Ratio
  • Next Steps

– Heavy-Tails and Local Minima?

3

slide-4
SLIDE 4

University of Toronto Mechanical & Industrial Engineering

Where the Hard Problems Are

  • While NP problems are worst-case

exponential to solve, often typical instances are practically solvable

  • Q: What is the distribution of the

empirically hard instances?

4

slide-5
SLIDE 5

University of Toronto Mechanical & Industrial Engineering

Graph Coloring

5

[Cheeseman et al. 1991] IJCAI, 1991.

slide-6
SLIDE 6

University of Toronto Mechanical & Industrial Engineering

Graph Coloring

6

[Cheeseman et al. 1991] IJCAI, 1991.

slide-7
SLIDE 7

University of Toronto Mechanical & Industrial Engineering

Conjectures

  • All NP-complete problems have an “order

parameter” (TSP, CSP, SAT, HC, ...)

  • A critical value of the order

parameter separates regions

  • f under-constrained and
  • ver-constrained problem instances
  • The hard problem instances are found

around this critical value

7

[Cheeseman et al. 1991] IJCAI, 1991.

The Phase Transition

slide-8
SLIDE 8

University of Toronto Mechanical & Industrial Engineering

Random 3-SAT

8

[Crawford & Auton 1996] AIJ, 81, 31-57, 1996.

Clause/variable ratio % Solubility and Normalized difficulty

slide-9
SLIDE 9

University of Toronto Mechanical & Industrial Engineering

Why Do We Care?

  • A lot of recent interest in understanding

the difficulty of heuristic search problems

– i.e., “A*-style” state-based search

  • The phase transition has not (yet) been

shown for heuristic search problems

9

Does the phase transition phenomenon play a role in problem difficulty for heuristic search?

slide-10
SLIDE 10

University of Toronto Mechanical & Industrial Engineering

Some more background ...

10

slide-11
SLIDE 11

University of Toronto Mechanical & Industrial Engineering

State-Space Search (aka “Heuristic Search”)

11

s * Possible transitions h = 10 h = 5 h = 8 Path from node to goal (estimate): h = 5 Greedy Best-First Search (GBFS): choose node with minimum h

slide-12
SLIDE 12

University of Toronto Mechanical & Industrial Engineering

PT in Planning

  • Randomly generate planning problems

– operators, preconditions, effects, ...

  • Bylander [AIJ 1996]

– Bounds based on goals and atoms to

  • perators ratio
  • Rintanen [KR 2004]

– Gradual transition between soluble and insoluble based on operator/variable ratio – Hampered by lack of insolubility test

12

slide-13
SLIDE 13

University of Toronto Mechanical & Industrial Engineering

Quantified SAT (2-QSAT)

  • Gent & Walsh [AAAI 1999]

– apply theory of “constrainedness” from NP to PSPACE – PT and easy-hard-easy observed for 2-QSAT

  • nce trivially insoluble instances removed

– More convincing evidence of abrupt PT than in the planning work

13

slide-14
SLIDE 14

University of Toronto Mechanical & Industrial Engineering

Problem Difficulty for GBFS

  • Operator cost ratio

– higher ratio ≈ more effort

  • (but see Fan et al. ICAPS2017)
  • Uninformative Heuristic Regions (UHRs)

– plateaux and local minima ≈ more effort

  • Correlation between heuristic and distance

– lower correlation ≈ more effort

14

Does the phase transition phenomenon play a role in problem difficulty for heuristic search? GBFS?

slide-15
SLIDE 15

University of Toronto Mechanical & Industrial Engineering

Outline

  • The Phase Transition

– aka Flashback to the 1990s

  • The Phase Transition in Heuristic Search

– An abstract model and benchmark problems

  • The Effect of Operator Cost Ratio
  • Next Steps

– Heavy-Tails and Local Minima?

15

slide-16
SLIDE 16

University of Toronto Mechanical & Industrial Engineering

Abstract Model

16

[Cohen & B. 2017] AAAI, 780-786, 2017.

slide-17
SLIDE 17

University of Toronto Mechanical & Industrial Engineering

Control Parameter

17

slide-18
SLIDE 18

University of Toronto Mechanical & Industrial Engineering

Solubility

18

Is this surprising?

Solubility: 0.1% to 99.9%

slide-19
SLIDE 19

University of Toronto Mechanical & Industrial Engineering

# Nodes Expanded

19

slide-20
SLIDE 20

University of Toronto Mechanical & Industrial Engineering

Effect of the Heuristic

20

True cost to goal

A new question: What is the impact of systematically stronger heuristics?

slide-21
SLIDE 21

University of Toronto Mechanical & Industrial Engineering

Effect of the Heuristic

21

Soluble instances only

slide-22
SLIDE 22

University of Toronto Mechanical & Industrial Engineering

Abstract Model

  • Solubility phase transition
  • Easy-hard-easy pattern

associated with PT

  • New results on the impact
  • f heuristics across PT

22

Standard PT work (CP, SAT) uses an abstract model on random problems analogous to ours. What about benchmark problems?

slide-23
SLIDE 23

University of Toronto Mechanical & Industrial Engineering

Benchmarks

  • Given an existing benchmark problem, we

can generate relaxed/restricted instances by adding/removing transitions

23

slide-24
SLIDE 24

University of Toronto Mechanical & Industrial Engineering

Benchmarks

24

slide-25
SLIDE 25

University of Toronto Mechanical & Industrial Engineering

The Pancake Problem

25

[Helmert 2010] SoCS, 109-110, 2010.

Action Fk: flip top k

Solution: F5, F6, F3, F4, F5

slide-26
SLIDE 26

University of Toronto Mechanical & Industrial Engineering

The Pancake Problem

26

slide-27
SLIDE 27

University of Toronto Mechanical & Industrial Engineering

The Grid Navigation Problem

27

G S

slide-28
SLIDE 28

University of Toronto Mechanical & Industrial Engineering

The Grid Navigation Problem

28

slide-29
SLIDE 29

University of Toronto Mechanical & Industrial Engineering

Similar Results

  • TopSpin
  • Towers of Hanoi
  • Interesting differences

with 8 Sliding Tile Puzzle due to disconnected search space

29

slide-30
SLIDE 30

University of Toronto Mechanical & Industrial Engineering

Effect of Heuristic (8-Pancake)

30

slide-31
SLIDE 31

University of Toronto Mechanical & Industrial Engineering

So ...

  • Phase transition and easy-hard-easy

patterns exist in GBFS for both abstract model and benchmark problems

  • Heuristics of systematically increasing

strengths show radically different performance across the phase transition

– Lowest improvement on hardest problems

31

What about existing ideas about problem difficulty in heuristic search?

slide-32
SLIDE 32

University of Toronto Mechanical & Industrial Engineering

Outline

  • The Phase Transition

– aka Flashback to the 1990s

  • The Phase Transition in Heuristic Search

– An abstract model and benchmark problems

  • The Effect of Operator Cost Ratio
  • Next Steps

– Heavy-Tails and Local Minima?

32

slide-33
SLIDE 33

University of Toronto Mechanical & Industrial Engineering

Operator Cost Ratio

  • [Wilt & Ruml 2011]

– Instances are far more difficult with non-unit costs despite the same connection structure

  • [Cushing et al. 2011]

– Cost variance fundamentally misleads heuristic search

  • [Fan et al. 2017]

– No Free Lunch Theorem for Dijkstra’s Alg.

  • Negative effects are balanced by positive effects in
  • ther cost functions

33

slide-34
SLIDE 34

University of Toronto Mechanical & Industrial Engineering

Operator Cost Ratio and the PT

34

[Cohen & B. 2017] SoCS, in press, 2017.

What is the impact of the operator cost ratio on problem difficulty across relaxed/ restricted benchmark problems?

slide-35
SLIDE 35

University of Toronto Mechanical & Industrial Engineering

Grid Navigation

35

slide-36
SLIDE 36

University of Toronto Mechanical & Industrial Engineering

Grid Navigation

36

slide-37
SLIDE 37

University of Toronto Mechanical & Industrial Engineering

Pancake Problem

37

[Helmert 2010] SoCS, 109-110, 2010.

Action Fk: flip top k

  • Cost = zm

– z: size of the bottom pancake in flipped sub-pile

  • For the 8-Pancake problem the operator

cost ratio is 8m

slide-38
SLIDE 38

University of Toronto Mechanical & Industrial Engineering

Pancake Problem

38

slide-39
SLIDE 39

University of Toronto Mechanical & Industrial Engineering

TopSpin

39

[Wilt & Ruml 2014] for TopSpin, sometimes higher operator cost ratio is better

slide-40
SLIDE 40

University of Toronto Mechanical & Industrial Engineering

Operator Cost Ratio and the PT

  • Impact of higher operator cost ratio follows

a low-high-low pattern, peaking in the PT

40

slide-41
SLIDE 41

University of Toronto Mechanical & Industrial Engineering

Outline

  • The Phase Transition

– aka Flashback to the 1990s

  • The Phase Transition in Heuristic Search

– An abstract model and benchmark problems

  • The Effect of Operator Cost Ratio
  • Next Steps

– Heavy-Tails and Local Minima?

41

slide-42
SLIDE 42

University of Toronto Mechanical & Industrial Engineering

The Pancake Problem

42

slide-43
SLIDE 43

University of Toronto Mechanical & Industrial Engineering

Pancake Problem (Median)

43

slide-44
SLIDE 44

University of Toronto Mechanical & Industrial Engineering

Pancake Problem

44

“Exceptionally hard problems (ehps)” [Gent & Walsh 1994]

slide-45
SLIDE 45

University of Toronto Mechanical & Industrial Engineering

Exceptionally Hard Problems

  • Very hard problems in underconstrained

regions of the PT

  • Not inherently hard problems

– Combination of problem structure and algorithm details

  • Heavy-tailed distributions

– Performance of randomized heuristic follows a heavy-tailed distribution

45

[Smith & Grant 1997] CP, 182-195, 1997. [Gomes et al. 2005] Constraints, 10, 317-337, 2005.

slide-46
SLIDE 46

University of Toronto Mechanical & Industrial Engineering

Heavy-Tailed Runtime Distributions

46

log frequency

  • f a

solution log of a search effort

[Gomes et al. 1998] AAAI, 431–437, 1998.

slide-47
SLIDE 47

University of Toronto Mechanical & Industrial Engineering

Failed Sub-trees and Local Minima

  • Failed sub-tree (CSP)

– A sub-tree with no solutions – If entered (e.g. by depth-first search) needs to be exhaustively searched

  • Local Minima (heuristic search)

– [Wilt & Ruml 2014] – A region that does not contain the goal but that the search will have to exhaust if it enters – Connected with difficulty due to higher

  • perator cost ratio

47

Heavy-tails occurs when depths of failed sub-trees are exponentially distributed [Gomes et al. 2005]

slide-48
SLIDE 48

University of Toronto Mechanical & Industrial Engineering

Problem Difficulty for GBFS

  • Operator cost ratio

– higher ratio ≈ more effort

  • (but see Fan et al. ICAPS2017)
  • Uninformative

Heuristic Regions (UHRs)

– plateaux and local minima ≈ more effort

  • Correlation between heuristic and distance

– lower correlation ≈ more effort

48

Associated with size/extent of local minima [Wilt & Ruml 2014] Impacted by phase transition Connection with exceptionally hard problems and heavy tails? Connection between local minima and PT?

slide-49
SLIDE 49

University of Toronto Mechanical & Industrial Engineering

So What Have We Done?

  • Showed that the phase transition

phenomenon from combinatorial search can be observed in heuristic search

  • Showed an (empirical) relation between

PT and problem hardness

– Both unit-cost problems and when varying operator cost ratio

  • Showed the existence of ehps for GBFS

49

slide-50
SLIDE 50

University of Toronto Mechanical & Industrial Engineering

Conjectures

  • The size and extend of local minima is

effected by the phase transition

  • The analysis of problem difficulty based on

heavy-tailed distributions (in CSPs) can be imported into heuristic search

50

slide-51
SLIDE 51

University of Toronto Mechanical & Industrial Engineering 51

Science requires a society because even people who are trying to be good thinkers love their own thoughts and theories – much

  • f the debugging has to be done by others.