A Dynamic MaxSAT-based Approach to Directed Feedback Vertex Sets

Rafael Kiesel, André Schidler

TL;DR

Researchers from TU Wien have developed DAGer, a state-of-the-art solver for the Directed Feedback Vertex Set Problem (DFVSP) that won the PACE 2022 challenge. By combining advanced graph data reductions—cleverly "lifted" from the Vertex Cover problem—with a novel "cycle propagation" technique integrated directly into a MaxSAT solver's inner loop, they’ve significantly pushed the boundaries of what’s solvable in practice.

What Problem Does This Paper Address?

The Directed Feedback Vertex Set Problem (DFVSP) is a classic NP-complete challenge: given a directed graph, find the smallest set of vertices whose removal makes the graph acyclic (a Directed Acyclic Graph, or DAG).

It’s a problem with high stakes in the real world, appearing in deadlock detection, program verification, and VLSI chip design. While theoretical computer scientists have found "fixed-parameter tractable" algorithms for it, these often fall apart in practice when the "minimum set" isn't tiny. Existing solvers usually rely on integer linear programming or standard SAT encodings, but these often struggle with the sheer number of possible cycles in a large graph—encoding every cycle as a constraint can lead to an exponential explosion in formula size.

Methods

The authors attack the problem from two directions: preprocessing and dynamic solving.

1. Lifting Data Reductions

Data reductions are rules that shrink a graph while preserving the optimal solution. The authors realized that the Vertex Cover Problem (VCP) is actually a special case of DFVSP. They developed a theoretical framework to "lift" sophisticated reductions used for VCP and apply them to DFVSP.

  • The Insight: Even if a graph isn't a VCP instance globally, it might behave like one locally.
  • The Result: They implemented generalized versions of rules like MANYFOLD, 4PATH, and UNCONFINED, which allow the solver to bypass complex subgraphs before the heavy computation even begins.

2. MaxSAT with Cycle Propagation

Instead of listing every cycle upfront (which is impossible for large graphs), most solvers use a "lazy" approach called CEGAR (Counter-Example Guided Abstraction Refinement). They solve a simplified version, find a cycle in the result, add a constraint to break that cycle, and repeat.

The authors propose a faster alternative: Cycle Propagation. Instead of waiting for the MaxSAT solver to finish a full run, they integrated cycle detection directly into the CDCL (Conflict-Driven Clause Learning) loop of the SAT solver. As the solver makes partial assignments, a specialized data structure checks for cycles in real-time. If a cycle is formed, the solver immediately treats it as a "conflict," learns a new clause, and backtracks. This "intervene-immediately" strategy prevents the solver from wasting time exploring infeasible branches of the search tree.

Datasets

The authors evaluated their solver, DAGer, against three main benchmarks:

  1. PACE 2022: 200 instances from the premier competition for DFVSP solvers.
  2. ICCMA: 137 instances derived from argumentation frameworks (ranging from 50 to 1,000 vertices).
  3. Random Graphs: 1,140 generated instances with varying densities and sizes (up to 10,000 vertices).

Key Insights and Ideas

  • Locality is Key: You don't need a perfect mathematical match to use a reduction. By identifying "boundary reductions," the authors proved that VCP-style logic works on any subgraph that "locally" looks like a set of bi-edges (two-way connections).
  • Integration > Abstraction: Moving cycle detection from an "outer loop" (CEGAR) to an "inner loop" (Propagation) significantly reduces the number of iterations. The solver "feels" the constraints of the graph topology much more acutely during its search.
  • Structure Matters: The data reductions are incredibly powerful on "structured" instances (like those from real-world applications) but provide almost no benefit on purely random graphs. This highlights the gap between theoretical worst-case performance and practical utility.

Key Results

  • Competition Winner: DAGer won the PACE 2022 challenge, solving 186 out of 200 instances, compared to 165 by the runner-up.
  • Reduction Power: On many ICCMA instances, the data reductions were so effective they solved the problem directly without even needing the MaxSAT solver.
  • Speedup: The "Cactus Plot" (a standard visualization in the field) shows that DAGer is consistently faster and solves more instances than both the runner-up and a baseline SAT encoding.
  • Scaling: The solver handles sparse graphs with up to 10,000 vertices, though performance drops as edge density increases.

Limitations and Future Work

The primary limitation remains graph density. On high-density random graphs, the current data reductions find very little to prune, and the number of cycles becomes overwhelming even for dynamic propagation.

The authors suggest several promising paths forward:

  • Non-local Reductions: Adapting even more complex VCP reductions (like CROWN or LP-based reductions) that aren't strictly local.
  • Inprocessing: Developing heuristics that allow the solver to simplify the graph during the search, not just at the beginning.
  • Implicit Hitting Sets: Testing if cycle propagation can be integrated into "implicit hitting set" MaxSAT solvers, which use a different underlying logic than the core-guided approach used here.

Summary updated

BibTeX
@inproceedings{kiesel2023dynamic,
  author = {Rafael Kiesel and André Schidler},
  title = {{A Dynamic MaxSAT-based Approach to Directed Feedback Vertex Sets}},
  booktitle = {ALENEX},
  year = {2023},
  doi = {10.1137/1.9781611977561.ch4},
}
Figure