Skip to main content
QUICK REVIEW

[Paper Review] On Irrelevant Literals in Pseudo-Boolean Constraint Learning

Daniel Le Berre, Pierre Marquis|arXiv (Cornell University)|Dec 8, 2020
Constraint Satisfaction and OptimizationComputer Science32 references2 citations
TL;DR

This paper identifies that pseudo-Boolean (PB) solvers using cutting planes inference often generate constraints containing irrelevant literals—literals whose truth values do not affect the constraint’s satisfaction. The authors demonstrate these literals weaken inferred constraints, increase proof size, and degrade solver performance, despite being NP-hard to detect. They propose an efficient approximation algorithm to detect and remove such literals, showing practical impact on solvers like Sat4j and RoundingSat.

ABSTRACT

Learning pseudo-Boolean (PB) constraints in PB solvers exploiting cutting planes based inference is not as well understood as clause learning in conflict-driven clause learning solvers. In this paper, we show that PB constraints derived using cutting planes may contain \emph{irrelevant literals}, i.e., literals whose assigned values (whatever they are) never change the truth value of the constraint. Such literals may lead to infer constraints that are weaker than they should be, impacting the size of the proof built by the solver, and thus also affecting its performance. This suggests that current implementations of PB solvers based on cutting planes should be reconsidered to prevent the generation of irrelevant literals. Indeed, detecting and removing irrelevant literals is too expensive in practice to be considered as an option (the associated problem is NP-hard.

Motivation & Objective

  • To investigate the presence and impact of irrelevant literals in PB constraints derived via cutting planes inference.
  • To understand why irrelevant literals arise in current PB solvers and how they affect proof strength and solver efficiency.
  • To develop a practical, incomplete algorithm for detecting and removing irrelevant literals during constraint derivation.
  • To evaluate the real-world impact of irrelevant literals on proof size and performance in state-of-the-art PB solvers.
  • To advocate for revisiting the design of PB inference systems to prevent the generation of irrelevant literals from the start.

Proposed method

  • Propose a novel approximation algorithm based on subset sum problems with small prime numbers to detect irrelevant literals efficiently.
  • Use the slack of a constraint as a heuristic to guide the detection of irrelevant literals, leveraging their minimal contribution to the constraint’s satisfaction.
  • Integrate the detection algorithm into the constraint derivation pipeline of PB solvers, applying it at each inference step.
  • Apply the algorithm to real PB solvers—Sat4j and RoundingSat—during conflict analysis to identify and remove irrelevant literals.
  • Use the Chinese remainder theorem-inspired approach to reduce computational cost by splitting large subset sum problems into smaller ones with small primes.
  • Evaluate the impact of removal on proof size and solver behavior using benchmark instances, particularly vertex-cover-complete-graph families.

Experimental results

Research questions

  • RQ1To what extent do cutting planes-based PB solvers generate constraints with irrelevant literals during conflict analysis?
  • RQ2How do irrelevant literals affect the strength of inferred constraints and the size of the resulting proofs in PB solvers?
  • RQ3Can an efficient, incomplete algorithm detect and remove irrelevant literals in practice without prohibitive computational cost?
  • RQ4What is the practical impact of removing irrelevant literals on proof size and solver performance in real-world PB benchmarks?
  • RQ5Is it feasible to design a proof system that inherently avoids generating irrelevant literals during inference?

Key findings

  • Irrelevant literals are frequently generated in PB constraints by cutting planes inference, even in constraints that are logically equivalent to clauses or cardinality constraints.
  • The presence of irrelevant literals leads to weaker learned constraints, which results in exponentially larger proofs in some benchmark families, such as vertex-cover-complete-graph.
  • Experiments show that removing irrelevant literals after the first conflict analysis in the vertex-cover-complete-graph family reduces the number of cancellations exponentially.
  • The proposed approximation algorithm successfully detects and removes irrelevant literals in Sat4j and RoundingSat, demonstrating practical feasibility despite NP-hardness of exact detection.
  • The removal of irrelevant literals alters the VSIDS heuristic behavior, as variables associated with irrelevant literals are no longer bumped, potentially affecting search efficiency.
  • The impact of a few irrelevant literals—often only a few per constraint—can significantly degrade proof size and solver performance, highlighting their disproportionate effect.

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.