IBM Labs in Haifa © Copyright IBM SVRH: Non-local stochastic CSP solver with learning of high-level topography characteristics Yehuda Naveh Simulation.

Slides:



Advertisements
Similar presentations
MINERVA: an automated resource provisioning tool for large-scale storage systems G. Alvarez, E. Borowsky, S. Go, T. Romer, R. Becker-Szendy, R. Golding,
Advertisements

Constraint Satisfaction Problems Russell and Norvig: Chapter
Interactive Configuration
1 Constraint Satisfaction Problems A Quick Overview (based on AIMA book slides)
1 Finite Constraint Domains. 2 u Constraint satisfaction problems (CSP) u A backtracking solver u Node and arc consistency u Bounds consistency u Generalized.
Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License:
1 University of Southern California Keep the Adversary Guessing: Agent Security by Policy Randomization Praveen Paruchuri University of Southern California.
IBM Labs in Haifa Generation Core: IBM's Systematic Constraint Solver.
IBM Labs in Haifa © 2005 IBM Corporation Adaptive Application of SAT Solving Techniques Ohad Shacham and Karen Yorav Presented by Sharon Barner.
1 Restart search techniques for Employee Timetabling Problems Amnon Meisels And Eliezer Kaplansky Ben-Gurion University.
Planning under Uncertainty
CPSC 322, Lecture 16Slide 1 Stochastic Local Search Variants Computer Science cpsc322, Lecture 16 (Textbook Chpt 4.8) February, 9, 2009.
02/01/11CMPUT 671 Lecture 11 CMPUT 671 Hard Problems Winter 2002 Joseph Culberson Home Page.
1 Refining the Basic Constraint Propagation Algorithm Christian Bessière and Jean-Charles Régin Presented by Sricharan Modali.
Ryan Kinworthy 2/26/20031 Chapter 7- Local Search part 1 Ryan Kinworthy CSCE Advanced Constraint Processing.
Implicit Hitting Set Problems Richard M. Karp Harvard University August 29, 2011.
Algorithms in Exponential Time. Outline Backtracking Local Search Randomization: Reducing to a Polynomial-Time Case Randomization: Permuting the Evaluation.
Constraint Satisfaction Problems
Solving the Protein Threading Problem in Parallel Nocola Yanev, Rumen Andonov Indrajit Bhattacharya CMSC 838T Presentation.
Jan 6-10th, 2007VLSI Design A Reduced Complexity Algorithm for Minimizing N-Detect Tests Kalyana R. Kantipudi Vishwani D. Agrawal Department of Electrical.
© P. Pongcharoen ISA/1 Applying Designed Experiments to Optimise the Performance of Genetic Algorithms for Scheduling Capital Products P. Pongcharoen,
Stochastic greedy local search Chapter 7 ICS-275 Spring 2007.
1 Abstraction Refinement for Bounded Model Checking Anubhav Gupta, CMU Ofer Strichman, Technion Highly Jet Lagged.
Knowledge Representation II (Inference in Propositional Logic) CSE 473 Continued…
Sampling Combinatorial Space Using Biased Random Walks Jordan Erenrich, Wei Wei and Bart Selman Dept. of Computer Science Cornell University.
Logic - Part 2 CSE 573. © Daniel S. Weld 2 Reading Already assigned R&N ch 5, 7, 8, 11 thru 11.2 For next time R&N 9.1, 9.2, 11.4 [optional 11.5]
Using Simulated Annealing and Evolution Strategy scheduling capital products with complex product structure By: Dongping SONG Supervisors: Dr. Chris Hicks.
Radial Basis Function Networks
Metaheuristics The idea: search the solution space directly. No math models, only a set of algorithmic steps, iterative method. Find a feasible solution.
Elements of the Heuristic Approach
Constraint Satisfaction Problems
Copyright R. Weber Search in Problem Solving Search in Problem Solving INFO 629 Dr. R. Weber.
Building “ Problem Solving Engines ” for Combinatorial Optimization Toshi Ibaraki Kwansei Gakuin University (+ M. Yagiura, K. Nonobe and students, Kyoto.
Design of an Evolutionary Algorithm M&F, ch. 7 why I like this textbook and what I don’t like about it!
Stocs – A Stochastic CSP Solver Bella Dubrov IBM Haifa Research Lab © Copyright IBM.
Week 10Complexity of Algorithms1 Hard Computational Problems Some computational problems are hard Despite a numerous attempts we do not know any efficient.
Computational Complexity Jang, HaYoung BioIntelligence Lab.
CP Summer School Modelling for Constraint Programming Barbara Smith 2. Implied Constraints, Optimization, Dominance Rules.
CSCI 3160 Design and Analysis of Algorithms Tutorial 10 Chengyu Lin.
Resource Mapping and Scheduling for Heterogeneous Network Processor Systems Liang Yang, Tushar Gohad, Pavel Ghosh, Devesh Sinha, Arunabha Sen and Andrea.
FORS 8450 Advanced Forest Planning Lecture 5 Relatively Straightforward Stochastic Approach.
Variable and Value Ordering for MPE Search Sajjad Siddiqi and Jinbo Huang.
Kanpur Genetic Algorithms Laboratory IIT Kanpur 25, July 2006 (11:00 AM) Multi-Objective Dynamic Optimization using Evolutionary Algorithms by Udaya Bhaskara.
Schreiber, Yevgeny. Value-Ordering Heuristics: Search Performance vs. Solution Diversity. In: D. Cohen (Ed.) CP 2010, LNCS 6308, pp Springer-
Boolean Satisfiability Present and Future
Stochastic greedy local search Chapter 7 ICS-275 Spring 2009.
Implicit Hitting Set Problems Richard M. Karp Erick Moreno Centeno DIMACS 20 th Anniversary.
1 1 Slide Simulation Professor Ahmadi. 2 2 Slide Simulation Chapter Outline n Computer Simulation n Simulation Modeling n Random Variables and Pseudo-Random.
Balance and Filtering in Structured Satisfiability Problems Henry Kautz University of Washington joint work with Yongshao Ruan (UW), Dimitris Achlioptas.
Heuristics for Efficient SAT Solving As implemented in GRASP, Chaff and GSAT.
Chapter 5 Team Teaching AI (created by Dewi Liliana) PTIIK Constraint Satisfaction Problems.
Lecture 5: Constraint Satisfaction Problems
AAAI of 20 Deconstructing Planning as Satisfiability Henry Kautz University of Rochester in collaboration with Bart Selman and Jöerg Hoffmann.
Inference in Propositional Logic (and Intro to SAT) CSE 473.
Tommy Messelis * Stefaan Haspeslagh Burak Bilgin Patrick De Causmaecker Greet Vanden Berghe *
© P. Pongcharoen CCSI/1 Scheduling Complex Products using Genetic Algorithms with Alternative Fitness Functions P. Pongcharoen, C. Hicks, P.M. Braiden.
Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License:
The Search for Systems of Diagonal Latin Squares Using the Project Oleg Zaikin, Stepan Kochemazov Matrosov Institute for System Dynamics and Control.
Solving Weakened Cryptanalysis Problems for the Bivium Keystream Generator in the Volunteer Computing Project Oleg Zaikin, Alexander Semenov,
On the Relation Between Simulation-based and SAT-based Diagnosis CMPE 58Q Giray Kömürcü Boğaziçi University.
CMPT 463. What will be covered A* search Local search Game tree Constraint satisfaction problems (CSP)
© 2012 IBM Corporation Perfect Hashing and CNF Encodings of Cardinality Constraints Yael Ben-Haim Alexander Ivrii Oded Margalit Arie Matsliah SAT 2012.
Inference in Propositional Logic (and Intro to SAT)
Better Algorithms for Better Computers
CSCI1600: Embedded and Real Time Software
Multi-Objective Optimization
Artificial Intelligence
CSCI1600: Embedded and Real Time Software
Presentation transcript:

IBM Labs in Haifa © Copyright IBM SVRH: Non-local stochastic CSP solver with learning of high-level topography characteristics Yehuda Naveh Simulation Based Verification Technologies System Verification and Modeling

IBM Labs in Haifa Copyright IBM 2 CSP for simulation-based hardware verification  CSP is a fundamental technology for Simulation-Based Verification  The basis of all our generators: X-Gen, GenesysPro, Piparazzi, DeepTrans, FPgen  The Generation Core (GEC) provides a tool-box for stimuli generation  With focus on CSP: modeling, representation, solution  Octopus provides an umbrella for non-GEC activities  SVRH  …

IBM Labs in Haifa Copyright IBM 3 This Presentation  CSP for test generation (brief)  The stochastic solver (using SVRH algorithm)  Future considerations

IBM Labs in Haifa Copyright IBM 4 Constraints in test case generation EA: 0x????????_???????? Huge Domains (2 64 ) RA: 0x????????_???????? Quality of solution: Random uniformity  Architecture: Effective address translates into real address in a complex way.  Testing knowledge:Contention on cache row.  Verification task:Real address in some corner memory space, Effective address aligned to 64K. EA: 0x0002FF00_ RA: 0x0002FF00_ Correct, but worthless! (e.g., Dechter et. al., 2002) EA: 0x????????_????0000 Huge Domains (2 64 ) RA: 0x0002FF??_???????? Quality of solution: Random uniformity EA: 0x????????_????0000 Huge Domains (2 64 ) RA: 0x0002FF??_??A4D??? Quality of solution: Random uniformity EA: 0x0B274FAB_0DBC0000 Huge Domains (2 64 ) RA: 0x0002FFC5_90A4D000 Quality of solution: Random uniformity

IBM Labs in Haifa Copyright IBM 5 Systematic Methods (DPLL, MAC, k-consistency, …) EA-RA Translation RA EA User: Special RA’s User: Aligned EA X X 1.Reach a level of consistency through successive reductions of sets 2.Choose an assignment for a variable, and maintain the consistency

IBM Labs in Haifa Copyright IBM 6 Systematic Methods RA EA User: Special RA’s User: Aligned EA X EA-RA Translation X X X X X

IBM Labs in Haifa Copyright IBM 7 Limitations of Systematic Methods: An example Only solution: Local consistency at onset: Choose randomly with probability 1/N of being correct (Solution reached at 600 million years)

IBM Labs in Haifa Copyright IBM 8 Limitations of Systematic Methods: Another example Already a single reduction of domains is hard

IBM Labs in Haifa Copyright IBM 9 Stochastic approaches: defining the metrics  State: a tuple representing a single assignment to each variable  (a, b, c) out of 2 64x3 states  Cost: A function from the set of states to {0} U R +  Cost = 0 iff all constraints are satisfied by the state.  Simulated Annealing  GSAT  ….. All are local search

IBM Labs in Haifa Copyright IBM 10 SVRH: Simulated variable range hopping  Non-local search  If a state is represented by bits, many bits may be flipped in a single step.  Check states on all length-scales in the problem. Hop to a new state if better.  Learn the topography  Get domain-knowledge as input strategies

IBM Labs in Haifa Copyright IBM 11 SVRH: Learning  Cost normalization  Topography parameters  Length scales  Preferred directions (rigidity, correlations between variables)  Decision-making parameters (“learning the heuristics”)  Should the next hop be domain-knowledge-based or stochastic?  Should it rely on step-size learning?  Should it rely on correlation learning? Never abandon totally stochastic trials!

IBM Labs in Haifa Copyright IBM 12 SVRH: Domain-knowledge strategies Variables:a, b, c : 128 bit integers Constraints: a = b = c a = … b = … c = … Strategy: Check all bits, one at a time. Solution guaranteed in 384 steps.

IBM Labs in Haifa Copyright IBM 13 SVRH: Domain-knowledge strategies Variables:a, b, c : 128 bit integers Constraints: a = b = c a = … b = … c = … Strategy: Check all bits, one at a time. Solution guaranteed in 384 steps.

IBM Labs in Haifa Copyright IBM 14 SVRH: Domain-knowledge strategies Variables:a, b, c : 128 bit integers Constraints: a = b = c a = … b = … c = … Strategy: Check all bits, one at a time. Solution guaranteed in 384 steps.

IBM Labs in Haifa Copyright IBM 15 SVRH: Domain-knowledge strategies Variables:a, b, c : 128 bit integers Constraints: c = (a * b) msb, number of 1’s in c = 5 a = … b = … c = … Strategy: Flip simultaneously all permutations of adjacent bits

IBM Labs in Haifa Copyright IBM 16 SVRH: Decision algorithm Decide type (‘random’, ‘learned’, ‘user-defined’) according to previous successes If ‘random’ Choose a random step-size create a random attempt with chosen step-size If ‘learned’: decide learn-type (‘step-size’, ‘direction’, ‘…’) according to previous successes if ‘step-size’: Choose a step-size which was previously successful (weighted) create a random attempt with chosen step size. if ‘direction’ Choose a direction which was previously successful (weighted) create a random attempt with chosen direction etc. If ‘user-defined’ Get next user-defined attempt

IBM Labs in Haifa Copyright IBM 17 SVRH: Usage  Variables  A set of bits  Constraints  Cost function  Suggest initialization: random but consistent  Remove fully constrained bits from problem  Domain-Knowledge Strategies  User provides sets of bits to be flipped. Engine decides when to use Commonly used constraints and strategies are provided as building blocks See also: Nareyek ’01, Michel and Van Hentenryck ’02, ’03.

IBM Labs in Haifa Copyright IBM 18 Local consistency at onset: Choose randomly with probability 1/N of being correct (Solution reached at 600 million years) SVRH: Solution reached in less then a second (similarly for N = ) Results: toy example Only solution:

IBM Labs in Haifa Copyright IBM 19 Results: FP-Gen Comparison with ZChaff for floating-point multiply benchmark (133 solvable tasks) ZChaffSVRH Max length64 bit128 bit Average time200.5 sec0.97 sec Best ratio2861 sec0.3 sec Worst ratio25 sec5.7 sec Quality (extreme case)0p0=0x43F p1=0xB p0=0x070E FFA 0p1=0x9560F399ECF4E191 Reports UNSATYesNo

IBM Labs in Haifa Copyright IBM 20 Results: FP-Gen Comparison with all engines for all-instructions benchmark (150 tasks) LionZChaffMixedSVRH Number of successes Average time per success (seconds)

IBM Labs in Haifa Copyright IBM 21 Results: Low Autocorrelation Binary Sequence (LABS)  Hard combinatorial problem, well known optimization benchmark  Objective: minimize the autocorrelation on a string of N 1’s and -1’s  CLS is a special-purpose algorithm designed for this problem NCLS backtracksSVRH attemptsCLS hoursSVRH hours X X > 5.00

IBM Labs in Haifa Copyright IBM 22 Future  Basic  Input language  Static learning  More on next slide  Test Generation  Piparazzi  G-Pro  X-Gen  Formal verification  Bounded model checking, SAT  FormalSim

IBM Labs in Haifa Copyright IBM 23 Future – more basic aspects  Pruning steps in an overall SVRH (stochastic) framework  Hybrid algorithm – extensive literature  Report UNSAT (holy grail)  First experiments on SAT: somewhat encouraging, but only at infancy  More sophisticated learning  Correlations (bayesian?), dynamics, other…  Nothing done yet, cannot predict usefulness