NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Incremental Updates of Generalized Hypertree Decompositions

Georg Gottlob, Matthias Lanzinger, Davide Mario Longo, Cem Okulmus

Abstract

Structural decomposition methods, such as generalized hypertree decompositions (GHDs), have been successfully used for solving constraint satisfaction problems (CSPs). As decompositions can be reused to solve CSPs with the same constraint scopes, investing resources in computing good decompositions is beneficial, even though the computation itself is hard. Unfortunately, current methods need to compute a completely new decomposition even if the scopes change only slightly. In this paper, we make the first steps toward solving the problem of updating the decomposition of a CSP $P$ so that it becomes a valid decomposition of a new CSP $P'$ produced by some modification of $P$. Even though the problem is hard in theory, we propose and implement a framework for effectively updating GHDs. The experimental evaluation of our algorithm strongly suggests practical applicability.

Introduction

Constraint Satisfaction Problems (CSPs) are fundamental to artificial intelligence, appearing in applications ranging from scheduling to database query optimization. While general CSPs are NP-hard to solve, they become tractable when their underlying hypergraph structure exhibits a low "width," typically measured by the Generalized Hypertree Width (ghw). However, computing a high-quality Generalized Hypertree Decomposition (GHD) is itself an NP-hard task.

Comparison of two CSP puzzles, $P$ and $P'$, where a single modification alters the constraint structure.

In current practice, even a minor modification to a CSP—such as adding a single constraint or variable—requires discarding the existing GHD and recomputing a new one from scratch. This paper addresses the SearchUpdateGHD problem: how to efficiently transform an existing GHD into a valid decomposition for a modified problem.

Theoretical Challenges and the Update Framework

The authors formally analyzed six classes of elementary modifications, including the addition or deletion of variables, constraints, and equality relations. They proved that for nearly all these classes, finding a new GHD of the same width is NP-hard, even when starting from a valid GHD of the original problem.

To overcome this theoretical barrier, the researchers developed a practical framework based on "local surgery." The core idea is to identify a $\delta$-mutable subtree—a specific segment of the decomposition tree that covers the parts of the hypergraph affected by the modification.

Structural representations of the decompositions for puzzles $P$ and $P'$, highlighting the localized nature of the update.

The framework utilizes a polynomial-time algorithm to find the unique minimal mutable subtree. By isolating the affected region, the algorithm preserves the majority of the original "outer" decomposition. A "scene" mapping technique then allows a standard decomposition solver to "replay" the valid portions of the old GHD, only performing expensive re-computation on the small, affected area.

Experimental Evaluation

The framework was tested using HyperBench, a library of 2,035 hypergraphs from real-world and synthetic benchmarks. The authors generated nearly 45,000 problem instances by applying synthetic modifications to 1,798 hypergraphs with known optimal widths.

Key findings include:

  • Significant Speedups: The incremental Update approach achieved mean speedups between 6x and 50x compared to recomputing from scratch.
  • Efficiency in Hard Instances: For complex problems requiring more than 15ms for a classic solver, the Update method was faster in 78.8% of cases.
  • Scalability: The benefits of incremental updates increased with the size of the hypergraph, as individual modifications represent a smaller fraction of the total structure in larger problems.
  • Modification Positivity: In over 91% of cases, minor modifications did not increase the problem's width, validating the potential for reusing existing decompositions.

Conclusion

This work demonstrates that despite theoretical NP-hardness, incremental updates of GHDs are highly effective in practice. By localizing the impact of structural changes, the proposed framework allows for significant computational savings in dynamic CSP environments. Future research will explore how different decomposition styles affect update performance and investigate special-case modifications that may be solvable in polynomial time.

Summary updated

BibTeX
@article{gottlob2022incremental,
  author = {Georg Gottlob and Matthias Lanzinger and Davide Mario Longo and Cem Okulmus},
  title = {{Incremental Updates of Generalized Hypertree Decompositions}},
  journal = {ACM J. Exp. Algorithmics},
  year = {2022},
  doi = {10.1145/3578266},
}

Loading related content...

Figure