automating the configuration of algorithms for solving
play

Automating the Configuration of Algorithms for Solving Hard - PowerPoint PPT Presentation

Automating the Configuration of Algorithms for Solving Hard Computational Problems Ph.D. Thesis Defence Frank Hutter Supervisory committee: Prof. Holger Hoos (supervisor) Prof. Kevin Leyton-Brown (co-supervisor) Prof. Kevin Murphy


  1. Simple manual approach for configuration Start with some parameter configuration Modify a single parameter 12

  2. Simple manual approach for configuration Start with some parameter configuration Modify a single parameter if results on benchmark set improve then keep new configuration 12

  3. Simple manual approach for configuration Start with some parameter configuration repeat Modify a single parameter if results on benchmark set improve then keep new configuration until no more improvement possible (or “good enough”) 12

  4. Simple manual approach for configuration Start with some parameter configuration repeat Modify a single parameter if results on benchmark set improve then keep new configuration until no more improvement possible (or “good enough”) � Manually-executed local search 12

  5. The ParamILS Framework Iterated Local Serach in parameter configuration space: Choose initial parameter configuration θ Perform subsidiary local search on θ 13

  6. The ParamILS Framework Iterated Local Serach in parameter configuration space: Choose initial parameter configuration θ Perform subsidiary local search on θ While tuning time left: | θ ′ := θ | | | Perform perturbation on θ | | Perform subsidiary local search on θ 13

  7. The ParamILS Framework Iterated Local Serach in parameter configuration space: Choose initial parameter configuration θ Perform subsidiary local search on θ While tuning time left: | θ ′ := θ | | | Perform perturbation on θ | | Perform subsidiary local search on θ | | | | Based on acceptance criterion , | keep θ or revert to θ := θ ′ | 13

  8. The ParamILS Framework Iterated Local Serach in parameter configuration space: Choose initial parameter configuration θ Perform subsidiary local search on θ While tuning time left: | θ ′ := θ | | | Perform perturbation on θ | | Perform subsidiary local search on θ | | | | Based on acceptance criterion , | keep θ or revert to θ := θ ′ | | | ⌊ With probability p restart randomly pick new θ � Performs biased random walk over local optima 13

  9. Instantiations of ParamILS Framework How to evaluate each configuration? ◮ BasicILS( N ): perform fixed number of N runs to evaluate a configuration θ – Blocking: use same N (instance, seed) pairs for each θ 14

  10. Instantiations of ParamILS Framework How to evaluate each configuration? ◮ BasicILS( N ): perform fixed number of N runs to evaluate a configuration θ – Blocking: use same N (instance, seed) pairs for each θ ◮ FocusedILS: adaptive choice of N ( θ ) – small N ( θ ) for poor configurations θ – large N ( θ ) only for good θ 14

  11. Instantiations of ParamILS Framework How to evaluate each configuration? ◮ BasicILS( N ): perform fixed number of N runs to evaluate a configuration θ – Blocking: use same N (instance, seed) pairs for each θ ◮ FocusedILS: adaptive choice of N ( θ ) – small N ( θ ) for poor configurations θ – large N ( θ ) only for good θ – typically outperforms BasicILS 14

  12. Empirical Comparison to Previous Configuration Procedure CALIBRA system [Adenso-Diaz & Laguna, ’06] ◮ Based on fractional factorial designs ◮ Limited to continuous parameters ◮ Limited to 5 parameters 15

  13. Empirical Comparison to Previous Configuration Procedure CALIBRA system [Adenso-Diaz & Laguna, ’06] ◮ Based on fractional factorial designs ◮ Limited to continuous parameters ◮ Limited to 5 parameters Empirical comparison ◮ FocusedILS typically did better, never worse ◮ More importantly, much more general 15

  14. Adaptive Choice of Cutoff Time ◮ Evaluation of poor configurations takes especially long 16

  15. Adaptive Choice of Cutoff Time ◮ Evaluation of poor configurations takes especially long ◮ Can terminate evaluations early ◮ Incumbent solution provides bound ◮ Can stop evaluation once bound is reached 16

  16. Adaptive Choice of Cutoff Time ◮ Evaluation of poor configurations takes especially long ◮ Can terminate evaluations early ◮ Incumbent solution provides bound ◮ Can stop evaluation once bound is reached ◮ Results – Provably never hurts – Sometimes substantial speedups (factor 10) 16

  17. Outline 1. Problem Definition & Intuition 2. Model-Free Search for Algorithm Configuration ParamILS: Iterated Local Search in Configuration Space “Real-World” Applications of ParamILS 3. Model-Based Search for Algorithm Configuration 4. Conclusions 17

  18. Configuration of ILOG CPLEX ◮ Recall: 63 parameters, 1 . 78 × 10 38 possible configurations ◮ Ran FocusedILS for 2 days on 10 machines 18

  19. Configuration of ILOG CPLEX ◮ Recall: 63 parameters, 1 . 78 × 10 38 possible configurations ◮ Ran FocusedILS for 2 days on 10 machines ◮ Compared against default “A great deal of algorithmic development effort has been devoted to establishing default ILOG CPLEX parameter settings that achieve good performance on a wide variety of MIP models.” [CPLEX 10.0 user manual, page 247] 18

  20. Configuration of ILOG CPLEX ◮ Recall: 63 parameters, 1 . 78 × 10 38 possible configurations ◮ Ran FocusedILS for 2 days on 10 machines ◮ Compared against default “A great deal of algorithmic development effort has been devoted to establishing default ILOG CPLEX parameter settings that achieve good performance on a wide variety of MIP models.” [CPLEX 10.0 user manual, page 247] 4 10 3 10 2 10 Auto−tuned 1 10 0 10 −1 10 −2 10 −2 10 −1 10 0 1 2 3 4 10 10 10 10 10 Default Combinatorial auctions: 7-fold speedup 18

  21. Configuration of ILOG CPLEX ◮ Recall: 63 parameters, 1 . 78 × 10 38 possible configurations ◮ Ran FocusedILS for 2 days on 10 machines ◮ Compared against default “A great deal of algorithmic development effort has been devoted to establishing default ILOG CPLEX parameter settings that achieve good performance on a wide variety of MIP models.” [CPLEX 10.0 user manual, page 247] 4 4 10 10 3 3 10 10 2 2 10 10 Auto−tuned Auto−tuned 1 1 10 10 0 0 10 10 −1 −1 10 10 −2 −2 10 10 −2 10 −1 10 −2 10 −1 10 0 1 2 3 4 0 1 2 3 4 10 10 10 10 10 10 10 10 10 10 Default Default Combinatorial auctions: 7-fold speedup Mixed integer knapsack: 23-fold speedup 18

  22. Configuration of SAT Solver for Verification SAT (propositional satisfiability problem) – Prototypical NP -hard problem – Interesting theoretically and in practical applications 19

  23. Configuration of SAT Solver for Verification SAT (propositional satisfiability problem) – Prototypical NP -hard problem – Interesting theoretically and in practical applications Formal verification – Bounded model checking – Software verification – Recent progress based on SAT solvers 19

  24. Configuration of SAT Solver for Verification SAT (propositional satisfiability problem) – Prototypical NP -hard problem – Interesting theoretically and in practical applications Formal verification – Bounded model checking – Software verification – Recent progress based on SAT solvers Spear, tree search solver for industrial SAT instances – 26 parameters, 8 . 34 × 10 17 configurations 19

  25. Configuration of SAT Solver for Verification ◮ Ran FocusedILS for 2 days on 10 machines 20

  26. Configuration of SAT Solver for Verification ◮ Ran FocusedILS for 2 days on 10 machines ◮ Compared to manually-engineered default – 1 week of performance tuning – competitive with the state of the art 20

  27. Configuration of SAT Solver for Verification ◮ Ran FocusedILS for 2 days on 10 machines ◮ Compared to manually-engineered default – 1 week of performance tuning – competitive with the state of the art SPEAR, optimized for IBM−BMC (s) 4 10 3 10 2 10 1 10 0 10 −1 10 −2 10 −2 10 −1 10 0 10 1 10 2 10 3 10 4 10 SPEAR, original default (s) IBM Bounded Model Checking: 4 . 5-fold speedup 20

  28. Configuration of SAT Solver for Verification ◮ Ran FocusedILS for 2 days on 10 machines ◮ Compared to manually-engineered default – 1 week of performance tuning – competitive with the state of the art SPEAR, optimized for IBM−BMC (s) 4 10 4 SPEAR, optimized for SWV (s) 10 3 10 3 10 2 2 10 10 1 1 10 10 0 0 10 10 −1 −1 10 10 −2 −2 10 10 −2 10 −1 10 0 10 1 10 2 10 3 10 −2 10 −1 10 0 10 1 10 2 10 3 10 4 4 10 10 SPEAR, original default (s) SPEAR, original default (s) IBM Bounded Model Checking: Software verification: 500-fold speedup 4 . 5-fold speedup � won 2007 SMT competition 20

  29. Other Fielded Applications of ParamILS ◮ SAPS, local search for SAT � 8-fold and 130-fold speedup 21

  30. Other Fielded Applications of ParamILS ◮ SAPS, local search for SAT � 8-fold and 130-fold speedup ◮ SAT4J, tree search for SAT � 11-fold speedup 21

  31. Other Fielded Applications of ParamILS ◮ SAPS, local search for SAT � 8-fold and 130-fold speedup ◮ SAT4J, tree search for SAT � 11-fold speedup ◮ GLS + for Most Probable Explanation (MPE) problem � > 360-fold speedup 21

  32. Other Fielded Applications of ParamILS ◮ SAPS, local search for SAT � 8-fold and 130-fold speedup ◮ SAT4J, tree search for SAT � 11-fold speedup ◮ GLS + for Most Probable Explanation (MPE) problem � > 360-fold speedup ◮ Applications by others – Protein folding [Thatchuk, Shmygelska & Hoos ’07] – Time-tabling [Fawcett, Hoos & Chiarandini ’09] – Local Search for SAT [Khudabukhsh, Xu, Hoos, & Leyton-Brown ’09] 21

  33. Other Fielded Applications of ParamILS ◮ SAPS, local search for SAT � 8-fold and 130-fold speedup ◮ SAT4J, tree search for SAT � 11-fold speedup ◮ GLS + for Most Probable Explanation (MPE) problem � > 360-fold speedup ◮ Applications by others – Protein folding [Thatchuk, Shmygelska & Hoos ’07] – Time-tabling [Fawcett, Hoos & Chiarandini ’09] – Local Search for SAT [Khudabukhsh, Xu, Hoos, & Leyton-Brown ’09] � demonstrates versatility & maturity 21

  34. Outline 1. Problem Definition & Intuition 2. Model-Free Search for Algorithm Configuration 3. Model-Based Search for Algorithm Configuration State of the Art Improvements for Stochastic Blackbox Optimization Beyond Stochastic Blackbox Optimization 4. Conclusions 22

  35. Model-Based Optimization: Motivation Fundamentally different approach for algorithm configuration ◮ So far: discussed local search approach ◮ Now: alternative choice, based on predictive models 23

  36. Model-Based Optimization: Motivation Fundamentally different approach for algorithm configuration ◮ So far: discussed local search approach ◮ Now: alternative choice, based on predictive models – Model-based optimization was less well developed � emphasis on methodological improvements 23

  37. Model-Based Optimization: Motivation Fundamentally different approach for algorithm configuration ◮ So far: discussed local search approach ◮ Now: alternative choice, based on predictive models – Model-based optimization was less well developed � emphasis on methodological improvements ◮ In then end: state-of-the-art configuration tool 23

  38. Outline 1. Problem Definition & Intuition 2. Model-Free Search for Algorithm Configuration 3. Model-Based Search for Algorithm Configuration State of the Art Improvements for Stochastic Blackbox Optimization Beyond Stochastic Blackbox Optimization 4. Conclusions 24

  39. Model-Based Deterministic Blackbox Optimization (BBO) EGO algorithm [Jones, Schonlau & Welch ’98] 30 . . 25 True function . . 20 response y 15 10 5 0 −5 0 0.2 0.4 0.6 0.8 1 parameter x 25

  40. Model-Based Deterministic Blackbox Optimization (BBO) EGO algorithm [Jones, Schonlau & Welch ’98] 1. Get response values at initial design points 30 . 25 True function Function evaluations . 20 response y 15 10 5 0 −5 0 0.2 0.4 0.6 0.8 1 parameter x 25

  41. Model-Based Deterministic Blackbox Optimization (BBO) EGO algorithm [Jones, Schonlau & Welch ’98] 1. Get response values at initial design points 30 . . 25 . Function evaluations . 20 response y 15 10 5 0 −5 0 0.2 0.4 0.6 0.8 1 parameter x 25

  42. Model-Based Deterministic Blackbox Optimization (BBO) EGO algorithm [Jones, Schonlau & Welch ’98] 1. Get response values at initial design points 2. Fit a model to the data 30 DACE mean prediction DACE mean +/− 2*stddev 25 . Function evaluations . 20 response y 15 10 5 0 −5 0 0.2 0.4 0.6 0.8 1 parameter x 25

  43. Model-Based Deterministic Blackbox Optimization (BBO) EGO algorithm [Jones, Schonlau & Welch ’98] 1. Get response values at initial design points 2. Fit a model to the data 3. Use model to pick most promising next design point 30 DACE mean prediction DACE mean +/− 2*stddev 25 . Function evaluations EI (scaled) 20 response y 15 10 5 0 −5 0 0.2 0.4 0.6 0.8 1 parameter x 25

  44. Model-Based Deterministic Blackbox Optimization (BBO) EGO algorithm [Jones, Schonlau & Welch ’98] 1. Get response values at initial design points 2. Fit a model to the data 3. Use model to pick most promising next design point 4. Repeat 2. and 3. until time is up 30 DACE mean prediction DACE mean +/− 2*stddev 25 True function Function evaluations EI (scaled) 20 response y 15 10 5 0 −5 0 0.2 0.4 0.6 0.8 1 parameter x 25

  45. Model-Based Deterministic Blackbox Optimization (BBO) EGO algorithm [Jones, Schonlau & Welch ’98] 1. Get response values at initial design points 2. Fit a model to the data 3. Use model to pick most promising next design point 4. Repeat 2. and 3. until time is up 30 30 DACE mean prediction DACE mean prediction DACE mean +/− 2*stddev DACE mean +/− 2*stddev 25 True function 25 True function Function evaluations Function evaluations EI (scaled) EI (scaled) 20 20 response y response y 15 15 10 10 5 5 0 0 −5 −5 0 0.2 0.4 0.6 0.8 1 0 0.2 0.4 0.6 0.8 1 parameter x parameter x First step Second step 25

  46. Stochastic Blackbox Optimization (BBO): State of the Art Extensions of EGO algorithm for stochastic case – Sequential Parameter Optimization (SPO) [Bartz-Beielstein, Preuss, Lasarczyk, ’05-’09] – Sequential Kriging Optimization (SKO) [Huang, Allen, Notz & Zeng, ’06] 26

  47. Stochastic Blackbox Optimization (BBO): State of the Art Extensions of EGO algorithm for stochastic case – Sequential Parameter Optimization (SPO) [Bartz-Beielstein, Preuss, Lasarczyk, ’05-’09] – Sequential Kriging Optimization (SKO) [Huang, Allen, Notz & Zeng, ’06] Application domain for stochastic BBO ◮ Randomized algorithms with continuous parameters ◮ Optimization for single instances 26

  48. Stochastic Blackbox Optimization (BBO): State of the Art Extensions of EGO algorithm for stochastic case – Sequential Parameter Optimization (SPO) [Bartz-Beielstein, Preuss, Lasarczyk, ’05-’09] – Sequential Kriging Optimization (SKO) [Huang, Allen, Notz & Zeng, ’06] Application domain for stochastic BBO ◮ Randomized algorithms with continuous parameters ◮ Optimization for single instances Empirical Evaluation ◮ SPO more robust 26

  49. Outline 1. Problem Definition & Intuition 2. Model-Free Search for Algorithm Configuration 3. Model-Based Search for Algorithm Configuration State of the Art Improvements for Stochastic Blackbox Optimization Beyond Stochastic Blackbox Optimization 4. Conclusions 27

  50. Improvements for stochastic BBO I: Studied SPO components ◮ Improved component: “intensification mechanism” – Increase N ( θ ) similarly as in FocusedILS – Improved robustness 28

  51. Improvements for stochastic BBO I: Studied SPO components ◮ Improved component: “intensification mechanism” – Increase N ( θ ) similarly as in FocusedILS – Improved robustness II: Better Models ◮ Compared various probabilistic models – Model SPO uses – Approximate Gaussian process (GP) – Random forest (RF) 28

  52. Improvements for stochastic BBO I: Studied SPO components ◮ Improved component: “intensification mechanism” – Increase N ( θ ) similarly as in FocusedILS – Improved robustness II: Better Models ◮ Compared various probabilistic models – Model SPO uses – Approximate Gaussian process (GP) – Random forest (RF) ◮ New models much better – Resulting configuration procedure: ActiveConfigurator – Improved state of the art for model-based stochastic BBO 28

  53. Improvements for stochastic BBO I: Studied SPO components ◮ Improved component: “intensification mechanism” – Increase N ( θ ) similarly as in FocusedILS – Improved robustness II: Better Models ◮ Compared various probabilistic models – Model SPO uses – Approximate Gaussian process (GP) – Random forest (RF) ◮ New models much better – Resulting configuration procedure: ActiveConfigurator – Improved state of the art for model-based stochastic BBO – Randomized algorithm with continuous parameters – Optimization for single instances 28

  54. Outline 1. Problem Definition & Intuition 2. Model-Free Search for Algorithm Configuration 3. Model-Based Search for Algorithm Configuration State of the Art Improvements for Stochastic Blackbox Optimization Beyond Stochastic Blackbox Optimization 4. Conclusions 29

  55. Extension I: Categorical Parameters Models that can handle categorical inputs ◮ Random forests: out of the box ◮ Extended (approximate) Gaussian processes – new kernel based on weighted Hamming distance 30

  56. Extension I: Categorical Parameters Models that can handle categorical inputs ◮ Random forests: out of the box ◮ Extended (approximate) Gaussian processes – new kernel based on weighted Hamming distance Application domain ◮ Algorithms with categorical parameters ◮ Single instances 30

  57. Extension I: Categorical Parameters Models that can handle categorical inputs ◮ Random forests: out of the box ◮ Extended (approximate) Gaussian processes – new kernel based on weighted Hamming distance Application domain ◮ Algorithms with categorical parameters ◮ Single instances Empirical evaluation ◮ ActiveConfigurator outperformed FocusedILS 30

  58. Extension II: Multiple Instances Models incorporating multiple instances ◮ Can still learn probabilistic models of algorithm performance ◮ Model inputs: ◮ algorithm parameters ◮ instance features 31

  59. Extension II: Multiple Instances Models incorporating multiple instances ◮ Can still learn probabilistic models of algorithm performance ◮ Model inputs: ◮ algorithm parameters ◮ instance features General algorithm configuration ◮ Algorithms with categorical parameters ◮ Multiple instances 31

  60. Extension II: Multiple Instances Models incorporating multiple instances ◮ Can still learn probabilistic models of algorithm performance ◮ Model inputs: ◮ algorithm parameters ◮ instance features General algorithm configuration ◮ Algorithms with categorical parameters ◮ Multiple instances Empirical evaluation ◮ ActiveConfigurator never worse than FocusedILS ◮ Overall: model-based approaches very promising 31

  61. Outline 1. Problem Definition & Intuition 2. Model-Free Search for Algorithm Configuration 3. Model-Based Search for Algorithm Configuration 4. Conclusions 32

  62. Conclusions Algorithm configuration ◮ Is a high-dimensional optimization problem – Can be solved by automated approaches – Sometimes much better than by human experts 33

  63. Conclusions Algorithm configuration ◮ Is a high-dimensional optimization problem – Can be solved by automated approaches – Sometimes much better than by human experts ◮ Can cut development time & improve results 33

  64. Conclusions Algorithm configuration ◮ Is a high-dimensional optimization problem – Can be solved by automated approaches – Sometimes much better than by human experts ◮ Can cut development time & improve results Scaling to very complex problems allows us to ◮ Build very flexible algorithm frameworks ◮ Apply automated tool to instantiate framework � Generate custom algorithms for different problem types 33

  65. Conclusions Algorithm configuration ◮ Is a high-dimensional optimization problem – Can be solved by automated approaches – Sometimes much better than by human experts ◮ Can cut development time & improve results Scaling to very complex problems allows us to ◮ Build very flexible algorithm frameworks ◮ Apply automated tool to instantiate framework � Generate custom algorithms for different problem types Blackbox approaches ◮ Very general ◮ Can be used to optimize your parameters 33

  66. Main Contribution of this thesis Comprehensive study of the algorithm configuration problem 34

  67. Main Contribution of this thesis Comprehensive study of the algorithm configuration problem ◮ Empirical analysis of configuration scenarios ◮ Two fundamentally different solution approaches ◮ Demonstrated practical relevance of algorithm configuration 34

  68. Main Contribution of this thesis Comprehensive study of the algorithm configuration problem ◮ Empirical analysis of configuration scenarios ◮ Two fundamentally different solution approaches ◮ Demonstrated practical relevance of algorithm configuration 34

  69. Main Contribution of this thesis Comprehensive study of the algorithm configuration problem ◮ Empirical analysis of configuration scenarios ◮ Two fundamentally different solution approaches – Model-free Iterated Local Search approach ◮ Demonstrated practical relevance of algorithm configuration 34

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend