Threshold Treewidth and Hypertree Width

Robert Ganian, André Schidler, Manuel Sorge, Stefan Szeider

Threshold Treewidth and Hypertree Width: Bridging Structure and Data in CSPs

Introduction

Constraint Satisfaction Problems (CSPs) are fundamental in artificial intelligence and operations research. While theoretically solvable in polynomial time when the underlying graph structure has a bounded treewidth ($k$), the practical running time $O(d^k \cdot n)$ becomes prohibitive when the domain size $d$ is large. Traditional width measures are "oblivious" to data costs, treating all variables equally regardless of their domain size. This paper introduces threshold treewidth and threshold hypertree width, structural parameters that distinguish between "heavy" (large domain) and "light" (small domain) variables to maintain fixed-parameter tractability (FPT) even with massive domains.

The Threshold Framework

The core innovation lies in a "loaded" approach to graph decompositions. Variables are classified as light (domain size $\le d$) or heavy (domain size $> d$). A decomposition is considered to have a load-$c$ if every bag contains at most $c$ heavy components. By bounding the number of heavy variables per bag, the exponential complexity is confined to the width of the light variables, effectively decoupling structural complexity from data scale.

Methods and Implementation

The authors developed both theoretical and practical tools for this framework:

  • Exact Solvers: Utilizing SAT and SMT encodings, the researchers created algorithms to find optimal load-$c$ decompositions.
  • Heuristics: Two variants of the classic "Min-Degree" heuristic were introduced: WL (Width-first, Load-second) and LW (Load-first, Width-second). These heuristics aim to balance the trade-off between bag size and the count of heavy variables.

Experimental Evaluation

The methods were tested on standard benchmarks (twlib and hyperbench), with 30% of nodes randomly designated as "heavy."

Figure 2: Comparison of load achieved by width-optimal (TW-X-W -> L) versus oblivious (TW-X-Obl) treewidth decompositions. Points above the diagonal indicate instances where the load-aware method successfully reduced the number of heavy variables in bags.

The results demonstrate a significant "Width-Load Trade-off." Often, a substantial reduction in load can be achieved with only a marginal increase in width. For treewidth, the exact solvers successfully processed high-width instances within a 2-hour window.

Figure 4: Comprehensive results for hypertree width (HT), showing (a) load reduction in exact solvers, (b) width overhead for load optimization, (c) internal trade-offs, and (d) the effectiveness of the WL heuristic in reducing load compared to oblivious methods.

For hypertree width, the HT-H-WL heuristic was particularly impressive, reducing the load with zero overhead in width. This provides a "free" optimization for subsequent dynamic programming solvers.

Conclusion

Threshold width measures offer a robust path forward for solving complex combinatorial problems like Sum-of-Products and Integer Programming. By making structural parameters data-aware, this research bridges the gap between theoretical FPT results and the practical needs of high-performance CSP solvers. Future work will focus on integrating these decompositions into end-to-end solvers to measure real-world wall-clock speedups.

Summary updated

BibTeX
@inproceedings{ganian2020threshold,
  author = {Robert Ganian and André Schidler and Manuel Sorge and Stefan Szeider},
  title = {{Threshold Treewidth and Hypertree Width}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2020},
  doi = {10.24963/ijcai.2020/263},
}
Figure