NBS NBS Experiment fMM Experiment Conclusion
NBS applied to Planning
Marvin Buff
University of Basel
11. February, 2019
Motivation
Foundation
Classical Planning: Devise a new efficient and competitive algorithm.
Inspiration
The introduction of a new and promising bidirectional search algorithm: Near-Optimal Bidirectional Search Algorithm (NBS).
Realization
Implementing NBS as planner.
Evaluating its performance on the IPC benchmark.
Analysing the results with fMM.
NBS NBS Experiment fMM Experiment Conclusion
Motivation
Foundation
Classical Planning: Devise a new efficient and competitive algorithm.
Inspiration
The introduction of a new and promising bidirectional search algorithm: Near-Optimal Bidirectional Search Algorithm (NBS).
Realization
Implementing NBS as planner.
Evaluating its performance on the IPC benchmark.
Analysing the results with fMM.
Motivation
Foundation
Classical Planning: Devise a new efficient and competitive algorithm.
Inspiration
The introduction of a new and promising bidirectional search algorithm: Near-Optimal Bidirectional Search Algorithm (NBS).
Realization
Implementing NBS as planner.
Evaluating its performance on the IPC benchmark.
Analysing the results with fMM.
NBS NBS Experiment fMM Experiment Conclusion
Outline
1 NBS
The Blocks Domain Sufficient Conditions NBS in Detail
2 NBS Experiment Running NBS
Results and Evaluation
3 fMM Experiment MM
fMM Properties fMM Experiment Case Study
Outline
NBS
NBS NBS Experiment fMM Experiment Conclusion
The Blocks Domain
Table Table
A B C A
B C
Actions Pick Up Put Down
The Blocks Domain
Transition System
A B C
A B
C A C
B B A
C B C
A A C
B A B
C
A B C
C B A
B A C
C A B
A C B
B C A
NBS NBS Experiment fMM Experiment Conclusion
Sufficient Conditions
Surely Expanded States: f (s) < C∗= 2
A B C
A B
C A C
B B A
C B C
A A C
B A B
C
A B C
C B A
B A C
C A B
A C B
B C A
NBS NBS Experiment fMM Experiment Conclusion
Sufficient Conditions
Bidirectional Search: ?
A B C
A B
C A C
B B A
C B C
A A C
B A B
C
A B
C A C
B B A
C B C
A A C
B A B
C A
B
C A C
B B A
C B C
A A C
B A B
C
A B C
A B C
C B A
B A C
C A B
A C B
B C A
NBS NBS Experiment fMM Experiment Conclusion
Sufficient Conditions
Bidirectional Search: ?
A B C
A B C
A B
C A C
B B A
C B C
A A C
B A B
C
A B
C A C
B B A
C B C
A A C
B A B
C
A B
C A C
B B A
C B C
A A C
B A B
C
A B C
A B C
C B A
B A C
C A B
A C B
B C A
NBS NBS Experiment fMM Experiment Conclusion
Sufficient Conditions
Bidirectional Search: ?
A B C
A B
C A C
B B A
C B C
A A C
B A B
C A
B
C A C
B B A
C B C
A A C
B A B
C
A B
C A C
B B A
C B C
A A C
B A B
C
A B C
A B C
C B A
B A C
C A B
A C B
B C A
NBS NBS Experiment fMM Experiment Conclusion
Sufficient Conditions
Unidirectional Search: Sufficient Condition g (s) + h(s) < C∗
s0 s sG
C∗
Bidirectional Search: Must-Expand Pairs
max {fF(u), fB(v ), g (u) + g (v )} < C∗
s0 u v sG
C∗
Sufficient Conditions
Unidirectional Search: Sufficient Condition g (s) + h(s) < C∗
s0 s sG
C∗ Bidirectional Search: Must-Expand Pairs
max {fF(u), fB(v ), g (u) + g (v )} < C∗
s0 u v sG
C∗
NBS NBS Experiment fMM Experiment Conclusion
Sufficient Conditions
Must-Expand Graph: GMX
A B C
?
?
?
A B C
A B C
?
?
? A B C
6x 6x
gF = 0
gF = 1
gF = 2
gB = 0
gB = 1
gB = 2
Sufficient Conditions
Minimal Vertex Cover of GMX (VC)
A B C
?
?
?
A B C
A B C
?
?
? A B C
6x 6x
gF = 0
gF = 1
gF = 2
gB = 0
gB = 1
gB = 2
NBS NBS Experiment fMM Experiment Conclusion
Sufficient Conditions
Bidirectional Search: Optimal Expansion
A B C
A B
C A C
B B A
C B C
A A C
B A B
C
A B C
C B A
B A C
C A B
A C B
B C A
NBS
Algorithm 1 NBS
1: Put s0 in OpenF and sG in OpenB
2: while OpenF and OpenB are not empty do
3: Among u ∈ OpenF and v ∈ OpenB 4: Select the pair (u, v ) with lowest lb(u, v )
5: if lb(u, v ) ≥ cost(U) then
6: return U
7: Expand both u and v
8: if new path from s0 to sG is found then
9: Update U if new path is better than previous
NBS NBS Experiment fMM Experiment Conclusion
NBS
Key Properties
Admissible DXBB Algorithm Optimal Worst-Case
Near-Optimal General Case
Key Difference to Search
Backward search is not a mirrored forward search.
Actions are not trivially reversible.
There are Secondary Initial States.
NBS
Key Properties
Admissible DXBB Algorithm Optimal Worst-Case
Near-Optimal General Case
Key Difference to Search
Backward search is not a mirrored forward search.
Actions are not trivially reversible.
There are Secondary Initial States.
NBS NBS Experiment fMM Experiment Conclusion
Outline
NBS Experiment
NBS Experiment
Goal
Evaluate performance of NBS compared to A∗. Parameters
Latest IPC Benchmark
Implementation in Fast Downward
Time limit: 30 minutes. Memory Limit: 3.5 GB.
Heuristics
Blind Heuristic Max Heuristic
Critical Path Heuristic (m = 2) Landmark-Cut Heuristic
NBS NBS Experiment fMM Experiment Conclusion
NBS Experiment
Goal
Evaluate performance of NBS compared to A∗. Parameters
Latest IPC Benchmark
Implementation in Fast Downward
Time limit: 30 minutes. Memory Limit: 3.5 GB.
Heuristics
Blind Heuristic Max Heuristic
Critical Path Heuristic (m = 2) Landmark-Cut Heuristic
Results and Evaluation
NBS > A∗
Domain Solved Problems (#) Algo h1 hmax hm hlmcut
Blocks A∗ 18 21 10 28
NBS 27 27 13 31
Similar Domains (∼ 10) Driverlog
Floortile-opt11-strips ..
NBS NBS Experiment fMM Experiment Conclusion
Results and Evaluation
NBS > A∗
Domain Solved Problems (#) Algo h1 hmax hm hlmcut
Blocks A∗ 18 21 10 28
NBS 27 27 13 31
Similar Domains (∼ 10) Driverlog
Floortile-opt11-strips ..
Results and Evaluation
NBS < A∗
Domain Solved Problems (#) Algo h1 hmax hm hlmcut
Storage A∗ 14 15 7 15
NBS 5 5 2 4
Similar Domains (∼ 20) Depot
Elevators-opt11-strips ..
NBS NBS Experiment fMM Experiment Conclusion
Results and Evaluation
NBS < A∗
Domain Solved Problems (#) Algo h1 hmax hm hlmcut
Storage A∗ 14 15 7 15
NBS 5 5 2 4
Similar Domains (∼ 20) Depot
Elevators-opt11-strips ..
Outline
fMM Experiment
NBS NBS Experiment fMM Experiment Conclusion
Meet-In-The-Middle
State Space
Dijkstra
MM MM
s0 sG
C ∗
2 C ∗
2 C∗
Fractional Meet-In-The-Middle
p = 0.5
Dijkstra
fMM fMM
s0 sG
p · C∗ (1 − p) · C∗
C∗
NBS NBS Experiment fMM Experiment Conclusion
Fractional Meet-In-The-Middle
p = 0.5
s0 sG
p · C∗ (1 − p) · C∗
p = 0.25
s0 sG
p · C∗ (1 − p) · C∗
Fractional Meet-In-The-Middle
Key Properties
Expands |VC| states given input p∗. Reflects the structure of the state space.
Experiment Goal
Inquire the relation between the state space structure and the performance of NBS.
Experiment Parameters
Same constraints as the NBS experiment.
Equidistant p-value from 0 to 1 with step size 0.1.
NBS NBS Experiment fMM Experiment Conclusion
Fractional Meet-In-The-Middle
Key Properties
Expands |VC| states given input p∗. Reflects the structure of the state space.
Experiment Goal
Inquire the relation between the state space structure and the performance of NBS.
Experiment Parameters
Same constraints as the NBS experiment.
Equidistant p-value from 0 to 1 with step size 0.1.
Fractional Meet-In-The-Middle
Key Properties
Expands |VC| states given input p∗. Reflects the structure of the state space.
Experiment Goal
Inquire the relation between the state space structure and the performance of NBS.
Experiment Parameters
Same constraints as the NBS experiment.
Equidistant p-value from 0 to 1 with step size 0.1.
NBS NBS Experiment fMM Experiment Conclusion
Results and Evaluation
Backward Forward
Results and Evaluation
Backward Forward
NBS NBS Experiment fMM Experiment Conclusion
Results and Evaluation
Overview
p∗ is informative of the overall structure of the state space.
The state space influences the performance of NBS.
The structure of the state space correlates with the domain.
How can we use that information?
Case Study: Blocks Domain
Results and Evaluation
Overview
p∗ is informative of the overall structure of the state space.
The state space influences the performance of NBS.
The structure of the state space correlates with the domain.
How can we use that information?
Case Study: Blocks Domain
NBS NBS Experiment fMM Experiment Conclusion
Case Study: Blocks Instance 6-1
Table Table
B C D E F
A
D F E A B C
Case Study: Blocks Instance 6-1
Backward Forward
NBS NBS Experiment fMM Experiment Conclusion
Case Study: Blocks Instance 6-0
Table Table
B E F
C A D
D F E A B C
Case Study: Blocks Instance 6-0
Backward Forward
NBS NBS Experiment fMM Experiment Conclusion
Case Study: Blocks Instance 6-2
Table Table
C E F B D A
D C B A F E
Case Study: Blocks Instance 6-2
Backward Forward
NBS NBS Experiment fMM Experiment Conclusion
Conclusion
Take Home Message
Using NBS in planning can compete with A∗.
The efficiency of NBS depends on the structure of the transition system.
The predisposition towards certain search approaches correlates with the domain.
Conclusion
Take Home Message
Using NBS in planning can compete with A∗.
The efficiency of NBS depends on the structure of the transition system.
The predisposition towards certain search approaches correlates with the domain.
NBS NBS Experiment fMM Experiment Conclusion
Conclusion
Take Home Message
Using NBS in planning can compete with A∗.
The efficiency of NBS depends on the structure of the transition system.
The predisposition towards certain search approaches correlates with the domain.
Questions?
Appendix
For Further Reading I
J. Chen, R. C. Holte, S. Zilles, N. Sturtevant
Front-to-end bidirectional heuristic search with near-optimal node expansions.
IJCAI 2017, pages: 489-495, AAAI Press.
J. Eckerle, J. Chen, R. C. Holte, S. Zilles
Sufficient conditions for node expansion in bidirectional heuristic search.
ICAPS 2017, pages: 79-87, AAAI Press.
Gripper Instance 06
Backward Forward
Appendix
Logistics00 Instance 4-0
Backward Forward
Openstacks-Strips Instance 01
Backward Forward
Appendix
Termes Instance 03
Backward Forward