concurrent clause strengthening
play

Concurrent Clause Strengthening Siert Wieringa and Keijo Heljanko - PowerPoint PPT Presentation

Concurrent Clause Strengthening Siert Wieringa and Keijo Heljanko Department of Information and Computer Science Aalto University, School of Science and Technology siert.wieringa@aalto.fi July 10, 2013 Introduction Modern SAT solvers rely


  1. Concurrent Clause Strengthening Siert Wieringa and Keijo Heljanko Department of Information and Computer Science Aalto University, School of Science and Technology siert.wieringa@aalto.fi July 10, 2013

  2. Introduction ◮ Modern SAT solvers rely on many techniques outside the core CDCL search procedure. ◮ For example preprocessing and inprocessing, but also conflict clause strengthening. ◮ The solver must decide when, and to what extent, it should apply such techniques. ◮ Instead of interleaving additional reasoning with search, both can be executed concurrently. Concurrent Clause Strengthening July 10, 2013 2/21

  3. Using concurrency ◮ Avoids difficult to design heuristics for deciding when to switch between tasks. ◮ Exploits the availability of multi-core hardware. ◮ Provides a true division of work without dividing the search space. ◮ Concurrent clause strengthening yields surprisingly consistent performance improvements. Concurrent Clause Strengthening July 10, 2013 3/21

  4. Clause strengthening ◮ Strengthening a clause means removing redundant literals. Given: A clause such that F | = c c c ′ ⊆ c Find: A subclause such that F | = c ′ ◮ Finding c ′ such that it is of minimal length is an NP-hard problem. ◮ MiniSAT minimizes all conflict clauses with respect to the clauses used in their derivation. Concurrent Clause Strengthening July 10, 2013 4/21

  5. The solver-reducer architecture work set solver reducer result queue ◮ Two concurrently executing threads. ◮ The SOLVER is a conventional CDCL solver. ◮ The REDUCER provides a clause strengthening algorithm. ◮ Communication solely by passing clauses through the work set and the result queue. Concurrent Clause Strengthening July 10, 2013 5/21

  6. Basic operation work set solver reducer result queue ◮ Whenever the SOLVER learns a clause it writes a copy of that clause to the work set. ◮ The REDUCER reads its input clauses from the work set, and writes clauses it has strengthened to the result queue. ◮ The SOLVER frequently introduces clauses from the result queue to its learnt clause database. ◮ The REDUCER has its own copy of the problem clauses as well as its own learnt clause database. Concurrent Clause Strengthening July 10, 2013 6/21

  7. The REDUCER ’s algorithm work set solver reducer result queue ◮ Assign a literal of input clause c to false , then perform unit propagation. ◮ Remove from c literals that became assigned false during unit propagation. ◮ Repeat until all literals of c are assigned false , or a conflict arises. ◮ If a conflict arises then analyze, learn, and return the subclause c ′ ⊆ c containing literals “causing” the conflict. ◮ Otherwise, add c to the learnt clause database, return c . Concurrent Clause Strengthening July 10, 2013 7/21

  8. The work set work set solver reducer result queue ◮ As the REDUCER learns, it becomes stronger but slower. ◮ The REDUCER can usually not keep up with the supply of clauses from the SOLVER . ◮ How to implement the work set? ◮ FIFO - Tends to deliver clauses to the REDUCER that are old, and often no longer interesting. ◮ LIFO - Strong clauses may never be delivered as they shift backwards in the queue quickly. Concurrent Clause Strengthening July 10, 2013 8/21

  9. Sorting the work set work set solver reducer result queue ◮ We can use clause length or LBD as an approximation for clause quality. ◮ As the average length changes clauses that were relatively long when learnt may seem short when they are old. ◮ Solution: Limit the capacity. ◮ If the SOLVER adds a clause to a full work set then this clause replaces the oldest clause. ◮ If the REDUCER requests a clause from a non-empty work set it receives the best clause. Concurrent Clause Strengthening July 10, 2013 9/21

  10. Keeping it simple work set solver reducer result queue ◮ The REDUCER only returns clauses that are strict subclauses of its inputs. ◮ The REDUCER does not share its learnt clauses. ◮ The REDUCER assigns literals in the order they appear in the input clause. ◮ The SOLVER does not have a mechanism for deleting clauses for which a subclause is found in the result queue. ◮ The result queue is a simple unbounded FIFO queue. Concurrent Clause Strengthening July 10, 2013 10/21

  11. Implementation work set solver reducer result queue ◮ MiniRed based on MiniSAT 2.2.0. ◮ GlucoRed based on Glucose 2.1 / 2.2. ◮ Base solvers modified as little as possible. ◮ The code added to both solvers is identical, except: ◮ MiniRed sorts its work set by clause length. ◮ GlucoRed sorts its work set by LBD. Concurrent Clause Strengthening July 10, 2013 11/21

  12. Average clause length experiment 34 . 6 % discarded from workset 91 . 3 56 . 8 38 . 1 reducer work set solver 27 . 6 32 . 9 32 . 9 result queue reduced? 15 . 3 ◮ Average over 367 benchmarks. 30 . 2 % not reduced ◮ MiniRed with default settings. ◮ work set capacity 1000 clauses. Concurrent Clause Strengthening July 10, 2013 12/21

  13. Average clause length experiment 34 . 6 % discarded from workset 91 . 3 56 . 8 38 . 1 reducer work set solver 27 . 6 32 . 9 32 . 9 result queue reduced? 15 . 3 ◮ Average over 367 benchmarks. 30 . 2 % not reduced ◮ MiniRed with default settings. ◮ work set capacity 1000 clauses. Concurrent Clause Strengthening July 10, 2013 12/21

  14. Average clause length experiment 34 . 6 % discarded from workset 91 . 3 56 . 8 38 . 1 reducer work set solver 27 . 6 32 . 9 32 . 9 result queue reduced? 15 . 3 ◮ Average over 367 benchmarks. 30 . 2 % not reduced ◮ MiniRed with default settings. ◮ work set capacity 1000 clauses. Concurrent Clause Strengthening July 10, 2013 12/21

  15. Average clause length experiment 34 . 6 % discarded from workset 91 . 3 56 . 8 38 . 1 reducer work set solver 27 . 6 32 . 9 32 . 9 result queue reduced? 15 . 3 ◮ Average over 367 benchmarks. 30 . 2 % not reduced ◮ MiniRed with default settings. ◮ work set capacity 1000 clauses. Concurrent Clause Strengthening July 10, 2013 12/21

  16. Average clause length experiment 34 . 6 % discarded from workset 91 . 3 56 . 8 38 . 1 reducer work set solver 27 . 6 32 . 9 32 . 9 result queue reduced? 15 . 3 ◮ Average over 367 benchmarks. 30 . 2 % not reduced ◮ MiniRed with default settings. ◮ work set capacity 1000 clauses. Concurrent Clause Strengthening July 10, 2013 12/21

  17. Performance testing ◮ The set Competition contains 547 application track benchmarks (Competition 2011/Challenge 2012). ◮ The set Simplified contains 501 benchmarks resulting from running SatElite on the Competition set. ◮ In these slides we will only present results for the Simplified set. ◮ 900 second wall clock time limit. ◮ 1800 second CPU time limit. Concurrent Clause Strengthening July 10, 2013 13/21

  18. MiniRed scatter plot x/2 unsatisfiable x/4 satisfiable 1000 MiniRed - wall clock time (s) 100 10 1 1 10 100 1000 MiniSAT - wall clock time (s) Concurrent Clause Strengthening July 10, 2013 14/21

  19. GlucoRed scatter plot x/2 unsatisfiable x/4 satisfiable 1000 GlucoRed - wall clock time (s) 100 10 1 1 10 100 1000 Glucose - wall clock time (s) Concurrent Clause Strengthening July 10, 2013 15/21

  20. UNSAT benchmarks - wall clock time cactus 900 MiniSAT (#164) MiniRed (#222) 800 Glucose (#220) GlucoRed (#237) 700 wall clock time (s) 600 500 400 300 200 100 0 60 80 100 120 140 160 180 200 220 240 instances solved Concurrent Clause Strengthening July 10, 2013 16/21

  21. UNSAT benchmarks - CPU time cactus 1800 MiniSAT (#191) MiniRed (#222) 1600 Glucose (#232) GlucoRed (#237) 1400 1200 CPU time (s) 1000 800 600 400 200 0 60 80 100 120 140 160 180 200 220 240 instances solved Concurrent Clause Strengthening July 10, 2013 17/21

  22. SAT benchmarks - wall clock time cactus 900 MiniSAT (#150) MiniRed (#159) 800 Glucose (#155) GlucoRed (#147) 700 wall clock time (s) 600 500 400 300 200 100 0 100 110 120 130 140 150 160 instances solved Concurrent Clause Strengthening July 10, 2013 18/21

  23. Results discussion ◮ Concurrent clause strengthening is strong on unsatisfiable benchmarks. GlucoRed PeneLoPe 2-core 2-core 4-core 8-core UNSAT Wall clock 237 227 231 247 CPU 237 227 221 217 SAT Wall clock 147 142 160 164 CPU 149 142 154 149 ◮ Portfolio solvers expose orthogonal behavior. ◮ The two approaches can be combined! Concurrent Clause Strengthening July 10, 2013 19/21

  24. Conclusions ◮ Concurrent clause strengthening is a simple technique, providing significant performance improvements. ◮ Particularly strong on unsatisfiable benchmarks. ◮ Using concurrency to aid CDCL search, rather than to parallelize it. ◮ The basic idea can be exploited in many ways, e.g. concurrent inprocessing. Concurrent Clause Strengthening July 10, 2013 20/21

  25. Availability ◮ Source code for MiniRed and GlucoRed is available from: http://bitbucket.org/siert ◮ MiniRed and GlucoRed have been integrated in ZZ: http://bitbucket.org/niklaseen ◮ The ZZ-framework by Niklas Eén provides the Bip model checker, including e.g. PDR and BMC algorithms. Concurrent Clause Strengthening July 10, 2013 21/21

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