portfolio based algorithm selection for sat
play

Portfolio-based Algorithm Selection for SAT Holger H. Hoos BETA Lab - PowerPoint PPT Presentation

Portfolio-based Algorithm Selection for SAT Holger H. Hoos BETA Lab Department of Computer Science University of British Columbia Canada based on joint work with Lin Xu, Frank Hutter and Kevin Leyton-Brown ECAI 2012 CoCoMile Workshop


  1. Portfolio-based Algorithm Selection for SAT Holger H. Hoos BETA Lab Department of Computer Science University of British Columbia Canada based on joint work with Lin Xu, Frank Hutter and Kevin Leyton-Brown ECAI 2012 CoCoMile Workshop Montpellier, France, 2012/08/27

  2. What is SAT? Given: A formula F in propositional logic Objective: Determine whether F is satisfiable ( i.e. , can be made true by assigning truth values to the variables in F ) Why SAT? I Drosophila problem for computing science (and beyond) I prototypical NP-hard problem I prominent in various areas of CS and beyond I important applications I conceptual simplicity aids solver design / development I hotbed for the kind of research discussed here Holger Hoos: Portfolio-based Algorithm Selection for SAT 2

  3. What fuels progress in SAT solving? I Insights into SAT (theory) I Creativity of algorithm designers heuristics I Advanced debugging techniques fuzz testing, delta-debugging I Principled experimentation statistical techniques, experimentation platforms I SAT competitions Holger Hoos: Portfolio-based Algorithm Selection for SAT 3

  4. 2009: 5 of 27 medals 2011: 28 of 54 medals Holger Hoos: Portfolio-based Algorithm Selection for SAT 4

  5. 2012 SAT Challenge Rank Application Hard Combinatorial Random (SAT only) 1 SATzilla2012 App SATzilla2012 COMB CCASat 2 SATzilla2012 ALL SATzilla2012 ALL SATzilla2012 RAND 3 Industrial SAT Solver ppfolio2012 SATzilla2012 ALL 4 lingeling (2011) interactSAT_c Sparrow (2011) 5 interactSAT pfolioUZK EagleUP (2011) 6 glucose aspeed-crafted sattime2012 7 SINN Clasp-crafted ppfolio2012 2/3 first, 3/3 second, 3/3 third places Holger Hoos: Portfolio-based Algorithm Selection for SAT 5

  6. Meta-algorithmic techniques I algorithms that operate upon other algorithms (SAT solvers) 6 = meta-heuristics I here: algorithms whose inputs include one or more SAT solvers I configurators ( e.g. , ParamILS, GGA, SMAC) I selectors ( e.g. , SATzilla, 3S) I schedulers ( e.g. , aspeed; also: 3S, SATzilla) I (parallel) portfolios ( e.g. , ManySAT, ppfolio) I run-time predictors I experimentation platforms ( e.g. , EDACC, HAL) Holger Hoos: Portfolio-based Algorithm Selection for SAT 6

  7. Why are meta-algorithmic techniques important? I no one knows how to best solve SAT (or any other NP-hard problem) no single dominant solver I state-of-the-art performance often achieved by combinations of various heuristic choices ( e.g. , pre-processing; variable/value selection heuristic; restart rules; data structures; . . . ) complex interactions, unexpected behaviour I performance can be tricky to assess due to I di ff erences in behaviour across problem instances I stochasticity potential for suboptimal choices in solver development, applications Holger Hoos: Portfolio-based Algorithm Selection for SAT 7

  8. Why are meta-algorithmic techniques important? I human intuitions can be misleading, abilities are limited substantial benefit from augmentation with computational techniques I use of fully specified procedures (rather than intuition / ad hoc choices) can improve reproducibility, facilitate scientific analysis / understanding Holger Hoos: Portfolio-based Algorithm Selection for SAT 8

  9. Outline 1. Introduction 2. Portfolio-based Algorithm Selection 3. SATzilla 4. Beyond Algorithm Selection for SAT 5. Conclusions & Outlook Holger Hoos: Portfolio-based Algorithm Selection for SAT 9

  10. Instance-based algorithm selection (Rice 1976): I Given: set S of algorithms for a problem, problem instance π I Objective: select from S the algorithm expected to solve π most e ffi ciently , based on (cheaply computable) features of π Note: Best case performance bounded by oracle, which selects the best s 2 S for each π = virtual best solver (VBS) Holger Hoos: Portfolio-based Algorithm Selection for SAT 10

  11. Instance-based algorithm selection algorithms Holger Hoos: Portfolio-based Algorithm Selection for SAT 11

  12. Instance-based algorithm selection selector component algorithms Holger Hoos: Portfolio-based Algorithm Selection for SAT 11

  13. Instance-based algorithm selection selector component algorithms Holger Hoos: Portfolio-based Algorithm Selection for SAT 11

  14. Instance-based algorithm selection feature extractor selector component algorithms Holger Hoos: Portfolio-based Algorithm Selection for SAT 11

  15. Instance-based algorithm selection feature extractor selector component algorithms Holger Hoos: Portfolio-based Algorithm Selection for SAT 11

  16. Key components: I set of (state-of-the-art) solvers I set of cheaply computable, informative features I e ffi cient procedure for mapping features to solvers ( selector ) I training data I procedure for building good selector based on training data ( selector builder ) Holger Hoos: Portfolio-based Algorithm Selection for SAT 12

  17. Methods for instance-based selection: I classification-based: predict the best solver, using: I decision trees (Guerri & Milano 2004) I case-based reasoning (Gebruers, Guerri, Hnich, Milano 2004; OMahony, Hebrard, Holland, Nugent, OSullivan 2008) I (weighted) k -nearest neighbours (Malitsky, Sabharwal, Samulowitz, Sellmann 2011; Kadioglu, Malitsky, Sabharwal, Samulowitz, Sellmann 2011) I pairwise cost-sensitive decision forests + voting (Xu, Hutter, HH, Leyton-Brown 2012) I regression-based: predict running time for each solver, select the one predicted to be fastest (Leyton-Brown, Nudelman, Shoham 2003; Xu, Hutter, HH, Leyton-Brown 2007–9) Holger Hoos: Portfolio-based Algorithm Selection for SAT 13

  18. Instance features: I Use generic and problem-specific features that correlate with performance and can be computed (relatively) cheaply: I number of clauses, variables, . . . I constraint graph features I local & complete search probes I Use as features statistics of distributions, e.g. , variation coe ffi cient of node degree in constraint graph I Consider combinations of features ( e.g. , pairwise products quadratic basis function expansion). Holger Hoos: Portfolio-based Algorithm Selection for SAT 14

  19. SATzilla 2007–9 (Xu, Hutter, HH, Leyton-Brown): I use state-of-the-art complete (DPLL/CDCL) and incomplete (local search) SAT solvers I extract (up to) 84 polytime-computable instance features I use ridge regression on selected features to predict solver run-times from instance features (one model per solver) I run solver with best predicted performance Holger Hoos: Portfolio-based Algorithm Selection for SAT 15

  20. Some bells and whistles: I use pre-solvers to solve ‘easy’ instances quickly I build run-time predictors for various types of instances, use classifier to select best predictor based on instance features. I predict time required for feature computation; if that time is too long (or error occurs), use back-up solver I use method by Schmee & Hahn (1979) to deal with censored run-time data prizes in 5 of the 9 main categories of the 2009 SAT Solver Competition (3 gold, 2 silver medals) Holger Hoos: Portfolio-based Algorithm Selection for SAT 16

  21. The problem with standard classification approaches Crucial assumption: solvers behave similarly on instances with similar features But do they really? I uninformative features I correlated features I feature normalisation (tricky!) I cost of misclassification Holger Hoos: Portfolio-based Algorithm Selection for SAT 17

  22. SATzilla 2011–12 (Xu, Hutter, HH, Leyton-Brown 2012): I uses cost-based decision forests to directly select solver based on features I one predictive model for each pair of solvers (which is better?) I majority voting (over pairwise predictions) to select solver to be run Holger Hoos: Portfolio-based Algorithm Selection for SAT 18

  23. 2011 SAT Competition Data (Inst. Solved) Solver Application Crafted Random Oracle (VBS) 84.7% 76.3% 82.2% SATzilla 2011 75.3% 66.0% 80.8% SATzilla 2009 70.3% 63.0% 80.3% Gold medalist (SBS) 71.7% 54.3% 68.0% (SATzilla assessed by 10-fold cross-validation) Holger Hoos: Portfolio-based Algorithm Selection for SAT 19

  24. 2012 SAT Challenge Results Rank Application Hard Combinatorial Random (SAT only) 1 SATzilla2012 App SATzilla2012 COMB CCASat 2 SATzilla2012 ALL SATzilla2012 ALL SATzilla2012 RAND 3 Industrial SAT Solver ppfolio2012 SATzilla2012 ALL 4 lingeling (2011) interactSAT_c Sparrow (2011) 5 interactSAT pfolioUZK EagleUP (2011) 6 glucose aspeed-crafted sattime2012 7 SINN Clasp-crafted ppfolio2012 SATzilla: 2/3 first, 3/3 second, 2/3 third places Holger Hoos: Portfolio-based Algorithm Selection for SAT 20

  25. 2012 SAT Challenge: Single best solver vs SATzilla SATzilla2012 APP runtime [CPU sec] 2 10 1 10 0 10 0 1 2 10 10 10 lingeling2011 runtime [CPU sec] Holger Hoos: Portfolio-based Algorithm Selection for SAT 21

  26. Hydra: Automatically Configuring Algorithms for Portfolio-Based Selection Xu, HH, Leyton-Brown (2010) Note: I SATzilla builds algorithm selector based on given set of SAT solvers but: success entirely depends on quality of given solvers I Automated algorithm configuration produces solvers that work well on average on a given set of SAT instances ( e.g. , SATenstein – KhudaBukhsh, Xu, HH, Leyton-Brown 2009) but: may have to settle for compromises for broad, heterogenous sets Idea: Combine the two approaches portfolio-based selection from set of automatically constructed solvers Holger Hoos: Portfolio-based Algorithm Selection for SAT 22

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