comparing beliefs, surveys, and random walks for 3-sat

20
Comparing Beliefs, Surveys, and Random Walks for 3-SAT Scott Kirkpatrick, Hebrew University Joint work with Erik Aurell and Uri Gordon (see cond-mat/0406217 v1 9 June 2004)

Upload: jens

Post on 31-Jan-2016

19 views

Category:

Documents


0 download

DESCRIPTION

Comparing Beliefs, Surveys, and Random Walks for 3-SAT. Scott Kirkpatrick, Hebrew University Joint work with Erik Aurell and Uri Gordon (see cond-mat/0406217 v1 9 June 2004). Main Results. Rederive SP as a special case of BP Permits interesting generalizations - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Comparing Beliefs, Surveys, and Random Walks for 3-SAT

Comparing Beliefs, Surveys, and Random Walks for 3-SAT

Scott Kirkpatrick, Hebrew University

Joint work with Erik Aurell and Uri Gordon(see cond-mat/0406217 v1 9 June 2004)

Page 2: Comparing Beliefs, Surveys, and Random Walks for 3-SAT

Main Results Rederive SP as a special case of BP

Permits interesting generalizations Visualize decimation guided by SP as a flow

Study the depth of decimation achieved WSAT as a measure of formula complexity

Depends on details of “tricks” employed Shows SP produces renormalization out of hard-SAT

With today’s codes, WSAT outperforms SP! Except in regime where 1-RSB is stable

WSAT has an endpoint at 4.15

Page 3: Comparing Beliefs, Surveys, and Random Walks for 3-SAT

Beliefs and Surveys: BP: evaluate the probability that variable x

is TRUE in a solution SP: evaluate the probability that variable x

is TRUE in all solutions This leaves a third case, x is “free” to be

sometimes TRUE sometimes FALSE

Page 4: Comparing Beliefs, Surveys, and Random Walks for 3-SAT

Transports and Influences To calculate the beliefs, or the slightly more

complicated surveys, we introduce quantities associated with the directed links of the hypergraph: (transport) T(ia) = fraction of solutions s.t. variable

i satisfies clause a (influence) I(ai) = fraction of solutions s.t. clause a

is satisfied by variables other than I

I(ai) T(ja) + T(ka) – T(ja)T(ka) Same iteration for BP, SP

Page 5: Comparing Beliefs, Surveys, and Random Walks for 3-SAT

Closing the loop introduces a one parameter family of belief schemes

Calculate new T’s from the I’s, and normalize… (PPT is equation-challenged – do this on the board)

Iterative equations for SP differ from BP in one term Interpolation formula seems useful in between:

Rho = 0 BP Rho = 1 SP 0 < Rho < 1 BP SP 1 < Rho SP unknown

Interpret effects of Rho in flow diagram:

Page 6: Comparing Beliefs, Surveys, and Random Walks for 3-SAT

Visualize decimation as flows in the SP space

Decimate variables closest to the corners

Origin is the “paramagnetic phase”

Page 7: Comparing Beliefs, Surveys, and Random Walks for 3-SAT

BP, SP, hybrids differ in their “depth of decimation”

These results are for SP only

Page 8: Comparing Beliefs, Surveys, and Random Walks for 3-SAT

Depth of decimation achieved by BP, hybrids…

Page 9: Comparing Beliefs, Surveys, and Random Walks for 3-SAT

What is accomplished by decimation?

A form of renormalization transform Simplify the formula by eliminating variables,

moving out of the hard-SAT regime 3.92 < alpha < 4.267

We use WSAT (from H. Kautz, B. Selman, B. Cohen) as a standard measure of complexity

Page 10: Comparing Beliefs, Surveys, and Random Walks for 3-SAT

Results of SP + decimation:

Upper curves:

WSAT cost/spin

Lower curves:

WSAT cost/spin after decimation

(two normalizations)

Page 11: Comparing Beliefs, Surveys, and Random Walks for 3-SAT

Where does this pay off?

Using today’s programs, with local updates to recalculate surveys after each decimation step

N = 10,000, alpha = 4.1, 100 formulas WSAT only 9.2 sec each WSAT after decimation 0.3 sec each But SP cost 62 sec each

N = 10,000, alpha = 4.2, 100 formulas WSAT only 278 sec each WSAT after decimation 3 sec each SP cost 101 sec each

Page 12: Comparing Beliefs, Surveys, and Random Walks for 3-SAT

Investigate WSAT more carefully

WSAT evolved by trial and error, not subject to any “physical” prejudices or intuitions Central trick is to always choose an unsat clause at random Totally focussed on “break count” – number of sat clauses

which depend on the spin chosen, become unsat WSAT has one trick not included in the Weigt, Monasson

studies: Always check first for “free” moves, those with zero

breakcount If no free moves, then take random or greedy move with

equal probability

Page 13: Comparing Beliefs, Surveys, and Random Walks for 3-SAT

Cost per spin is well-defined (linear)

Page 14: Comparing Beliefs, Surveys, and Random Walks for 3-SAT

WSAT cost/spin variance shrinks with N

Examination of distributions shows that cost/spin is concentrated as N infty up to alpha = 4.15!

Page 15: Comparing Beliefs, Surveys, and Random Walks for 3-SAT

Cumulative distribution of cost/spin alpha = 3.9

Page 16: Comparing Beliefs, Surveys, and Random Walks for 3-SAT

Cumulative distribution of cost/spinalpha = 4.1

Page 17: Comparing Beliefs, Surveys, and Random Walks for 3-SAT

Cumulative distribution of cost/spinalpha = 4.15

Page 18: Comparing Beliefs, Surveys, and Random Walks for 3-SAT

Cumulative distribution of cost/spin alpha = 4.18

Page 19: Comparing Beliefs, Surveys, and Random Walks for 3-SAT

SP, like rule-based decimation, has an end-point

Page 20: Comparing Beliefs, Surveys, and Random Walks for 3-SAT

Conclusions SP a special case of BP

Permits interesting generalizations Visualize decimation guided by SP as a flow

Study the depth of decimation achieved WSAT as a measure of formula complexity

Depends on details of “tricks” employed Shows SP produces renormalization out of hard-SAT

With today’s codes, WSAT outperforms SP! Except in regime where 1-RSB is stable

WSAT has an endpoint at 4.15