320 likes | 409 Views
Balance and Filtering in Structured Satisfiability Problems. Henry Kautz University of Washington joint work with Yongshao Ruan (UW), Dimitris Achlioptas (MSR), Carla Gomes (Cornell), Bart Selman (Cornell), Mark Stickel (SRI) CORE – UW, MSR, Cornell. Speedup Learning.
E N D
Balance and Filtering in Structured Satisfiability Problems Henry Kautz University of Washington joint work with Yongshao Ruan (UW), Dimitris Achlioptas (MSR), Carla Gomes (Cornell), Bart Selman (Cornell), Mark Stickel (SRI) CORE – UW, MSR, Cornell
Speedup Learning • Machine learning historically considered • Learning to classify objects • Learning to search or reason more efficiently • Speedup Learning • Speedup learning disappeared in mid-90’s • Last workshop in 1993 • Last thesis 1998 • What happened? • EBL (without generalization) “solved” • rel_sat (Bayardo), GRASP (Silva 1998), Chaff (Malik 2001) – 1,000,000 variable verification problems • EBG too hard • algorithmic advances outpaced any successes
Alternative Path • Predictive control of search and reasoning • Learn statistical model of behavior of a problem solver on a problem distribution • Use the model as part of a control strategy to improve the future performance of the solver • Synthesis of ideas from • Phase transition phenomena in problem distributions • Decision-theoretic control of reasoning • Bayesian modeling
control / policy dynamic features resource allocation / reformulation Big Picture runtime Solver Problem Instances Learning / Analysis static features Predictive Model
Case Study: Beyond 4.25 runtime Solver Problem Instances Learning / Analysis static features Predictive Model
Phase transitions & problem hardness • Large and growing literature on random problem distributions • Peak in problem hardness associated with critical value of some underlying parameter • 3-SAT: clause/variable ratio = 4.25 • Using measured parameter to predict hardness of a particular instance problematic! • Random distribution must be a good model of actual domain of concern • Recent progress on more realistic random distributions...
Quasigroup Completion Problem (QCP) • NP-Complete • Has structure is similar to that of real-world problems - tournament scheduling,classroom assignment, fiber optic routing, experiment design, ... • Start with empty grad, place colors randomly • Generates mix of sat and unsat instances
Complexity Graph 20% 20% 42% 42% 50% 50% Phase Transition Critically constrained area Underconstrained area Overconstrained area Phase transition Almost all solvable area Almost all unsolvable area Fraction of unsolvable cases Fraction of pre-assignment
Quasigroup With Holes (QWH) • Start with solved problem, then punch holes • Generates only SAT instances • Can use to test incomplete solvers • Hardness peak at phase transition in size of backbone • (Achlioptas, Gomes, & Kautz 2000)
New Phase Transition in Backbone % Backbone % of Backbone Computational cost % holes
Walksat Order 30, 33, 36 Easy-Hard-Easy pattern in local search Computational Cost Underconstrained area “Over” constrained area % holes
Are we ready to predict run times? • Problem: high variance log scale
Rectangular Pattern (Hall 1945) Aligned Pattern new result! Balanced Pattern Tractable Very hard Deep structural features Hardness is also controlled by structure of constraints, not just the fraction of holes
Random versus balanced Balanced Random
Random versus balanced Balanced Random
Random vs. balanced (log scale) Balanced Random
Morphing balanced and random order 33
Considering variance in hole pattern order 33
Time on log scale order 33
Effect of balance on hardness • Balanced patterns yield (on average) problems that are 2 orders of magnitude harder than random patterns • Expected run time decreases exponentially with variance in # holes per row or column • Same pattern (differ constants) for DPPL! • At extreme of high variance (aligned model) can prove no hard problems exist
Morphing random and rectangular order 36
Morphing random and rectangular artifact of walksat order 33
Morphing Balanced Random Rectangular 100 10 time (seconds) 1 0.1 0 5 10 15 20 order 33 variance
Intuitions • In unbalanced problems it is easier to identify most critically constrained variables, and set them correctly • Backbone variables
Are we done? Not yet... • Observation 1: While few unbalanced problems are hard, quite a few balanced problems are easy • To do: find additional structural features that predict hardness • Introspection • Machine learning (Horvitz et al. UAI 2001) • Ultimate goal: accurate, inexpensive prediction of hardness of real-world problems
Are we done? Not yet… • Observation 2: Significant differences in the SAT instances in hardest regions for the QCP and QWH generators QCP(sat only) QWH
Biases in Generators • An unbiased SAT-only generator would sample uniformly at random from the space of all SAT CSP problems • Practical CSP generators • Incremental arc-consistency introduces dependencies • Hard to formally model the distribution • QWH generator • Clean formal model • Slightly biased toward problems with many solutions • Adding balance makes small, hard problems
balanced QCP balanced QWH random QCP random QWH
balanced QCP balanced QWH random QCP random QWH
balanced QCP balanced QWH random QCP random QWH
balanced QCP balanced QWH random QCP random QWH
Conclusions • One small part of an exciting direction for improving power of search and reasoning algorithms • Hardness prediction can be used to control solver policy • Noise level (Patterson & Kautz 2001) • Restarts (Horvitz et al (CORE team ) UAI 2001) • Lots of opportunities for cross-disciplinary work • Theory • Machine learning • Experimental AI and OR • Reasoning under uncertainty • Statistical physics