Skip to main content
QUICK REVIEW

[Paper Review] Generating Weighted MAX-2-SAT Instances of Tunable Difficulty with Frustrated Loops

Yan Ru Pei, Haik Manukian|arXiv (Cornell University)|May 14, 2019
Formal Methods in VerificationComputer Science46 references18 citations
TL;DR

This paper proposes a novel algorithm to generate weighted MAX-2-SAT instances with tunable hardness by leveraging frustrated loops in bipartite graphs, inspired by quantum annealing techniques. The method uses a frustration index to control difficulty and demonstrates a double phase transition in hardness scaling, with improved performance in high-loop-density regimes via structured loop configurations.

ABSTRACT

Many optimization problems can be cast into the maximum satisfiability (MAX-SAT) form, and many solvers have been developed for tackling such problems. To evaluate a MAX-SAT solver, it is convenient to generate hard MAX-SAT instances with known solutions. Here, we propose a method of generating weighted MAX-2-SAT instances inspired by the frustrated-loop algorithm used by the quantum annealing community. We extend the algorithm for instances of general bipartite couplings, with the associated optimization problem being the minimization of the restricted Boltzmann machine (RBM) energy over the nodal values, which is useful for effectively pre-training the RBM. The hardness of the generated instances can be tuned through a central parameter known as the frustration index. Two versions of the algorithm are presented: the random- and structured-loop algorithms. For the random-loop algorithm, we provide a thorough theoretical and empirical analysis on its mathematical properties from the perspective of frustration, and observe empirically a double phase transition behavior in the hardness scaling behavior driven by the frustration index. For the structured-loop algorithm, we show that it offers an improvement in hardness over the random-loop algorithm in the regime of high loop density, with the variation of hardness tunable through the concentration of frustrated weights.

Motivation & Objective

  • To address the lack of efficient, controllable, and hard MAX-2-SAT instance generators with known optimal solutions for solver evaluation.
  • To extend the frustrated-loop method beyond quantum annealing to generate weighted MAX-2-SAT instances with tunable hardness.
  • To enable the generation of instances with known ground states (planted solutions) that are not necessarily optimal, avoiding common pitfalls in existing methods.
  • To provide a scalable and efficient method for generating hard instances across both low- and high-clause-density regimes.
  • To demonstrate that hardness can be tuned via the frustration index and loop structure, particularly in high-density configurations.

Proposed method

  • Adapts the frustrated-loop algorithm from quantum annealing to generate weighted MAX-2-SAT instances on bipartite graphs with tunable hardness.
  • Uses a frustration index as the central control parameter to modulate the difficulty of the optimization problem.
  • Introduces two variants: the random-loop algorithm for general hardness analysis and the structured-loop algorithm to enhance hardness in high-loop-density regimes.
  • Maps the weighted MAX-2-SAT problem to an energy minimization problem over restricted Boltzmann machine (RBM) configurations using the RBM energy function: $ E(oldsymbol{v},oldsymbol{h}) = -ig( extstyleigsum_{ij} W_{ij}v_i h_j + extstyleigsum_i a_i v_i + extstyleigsum_j b_j h_j ig) $.
  • Employs simulated annealing with an optimal sweep schedule to measure hardness, using the 95th percentile of total sweeps as a proxy for difficulty.
  • Uses log-normal fitting of sweep counts across multiple instances to estimate hardness scaling behavior and optimize annealing parameters.

Experimental results

Research questions

  • RQ1How can weighted MAX-2-SAT instances with known optimal solutions be generated efficiently and with tunable hardness?
  • RQ2What is the role of the frustration index in controlling the hardness of generated MAX-2-SAT instances?
  • RQ3Does the random-loop algorithm exhibit a double phase transition in hardness scaling as a function of the frustration index?
  • RQ4Can the structured-loop algorithm outperform the random-loop algorithm in terms of hardness, especially at high loop densities?
  • RQ5How can the optimal simulated annealing parameters be determined and extrapolated across different system sizes?

Key findings

  • The random-loop algorithm exhibits a double phase transition in hardness scaling behavior as a function of the frustration index, indicating distinct regimes of increasing difficulty.
  • The structured-loop algorithm achieves higher hardness than the random-loop algorithm in the high-loop-density regime, with tunable difficulty controlled by the concentration of frustrated weights.
  • The optimal simulated annealing sweep schedule scales as $ N_{ ext{sweep}} = (1.29n^2 - 33.1n + 1664) imes (41.4f^3 - 11.7f^2 + 1.06f - 0.018) $, with $ n $ and $ f $ representing system size and frustration index, respectively.
  • The 95th percentile of total sweeps required to find the solution is used as a robust estimator of hardness, with the distribution of sweep counts approximated as log-normal.
  • Two-iteration optimization of the annealing parameters yields converged scaling laws within mean-square error, enabling reliable extrapolation to harder instances.
  • The method successfully generates hard, controllable instances with planted solutions, overcoming limitations of prior methods in hardness control, structure flexibility, and computational cost.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.