Abstract
This paper presents a significant generalization of the classic splitting set theorem for logic programs. By allowing for arbitrary splitting sets and introducing auxiliary atoms to handle broken dependencies (semi-loops), the authors enable the decomposition of programs that were previously considered monolithic. Experimental results demonstrate that this modular approach can lead to more than a 2x speedup in Answer Set Programming (ASP) solvers for complex, interconnected problems.
Introduction
Answer Set Programming (ASP) has become a dominant paradigm for solving complex combinatorial problems. However, as the size and complexity of logic programs grow, finding their stable models (answer sets) becomes increasingly computationally expensive. A natural strategy to manage this complexity is decomposition: splitting a large program into smaller, more manageable components that can be solved sequentially.
For decades, the gold standard for this process was the 1994 splitting set theorem by Lifschitz and Turner. While foundational, this theorem has a major limitation: it only applies if the chosen set of atoms (the "splitting set") has no "upward" dependencies. In many real-world applications, dependencies are circular and messy, rendering traditional splitting techniques ineffective. This research addresses that gap by providing a framework to split programs regardless of their dependency structure.
The Challenge of Circular Dependencies
In traditional splitting, a program is divided into a "bottom" part and a "top" part. The bottom part must be self-contained, meaning no atom in the bottom can depend on an atom in the top. If such a dependency exists, the theorem cannot be applied.
Consider the dependency graph in Figure 1. If we attempt to split the program by placing atom $c$ in the bottom and atoms $a$ and $d$ in the top, the dependency from $a$ back to $c$ violates the Lifschitz-Turner criteria. In practice, this often means that the only valid splitting sets are the empty set or the set of all atoms, providing no modularity benefits.
Proposed Methodology: Arbitrary Splitting and Semi-Loops
The authors introduce a new method that works for both Normal Logic Programs (NLP) and Disjunctive Logic Programs (DLP) by allowing splitting by any arbitrary set of atoms $U$.
1. Handling Broken Loops
When a program is split arbitrarily, cycles of dependencies (loops) are often broken. To maintain semantic correctness, the authors identify "semi-loops"—the portions of a loop that reside within the split set. They introduce new auxiliary atoms ($x_E$) in the "top" part of the program to represent the truth values of these broken dependencies. These atoms act as proxies, carrying the necessary logical information from the bottom to the top.
2. Optimization via Algorithm 1 ($dsl_U$)
Introducing auxiliary atoms can theoretically lead to an exponential explosion in program size. To mitigate this, the authors developed Algorithm 1 to identify "dominative" semi-loops. By focusing only on the largest sets that capture essential dependency information, the algorithm minimizes the number of new atoms required, keeping the decomposition efficient.
3. Generalization
Crucially, this method is a true generalization of the original theorem. If a user chooses a traditional Lifschitz-Turner splitting set, the new method produces the exact same result without introducing any auxiliary atoms.
Experimental Results
The researchers evaluated their approach using standard benchmarks, including Niemelä’s Hamiltonian Circuit (HC) encoding and synthetic "2-N" graphs. These 2-N graphs consist of two complete graphs connected by bidirectional arcs, specifically designed to mimic programs with latent modularity that are "un-splittable" by traditional means.
As shown in Figure 2, the performance gains are substantial. For the 2-50 node instance, solving the program as a single unit took 171.94 seconds. In contrast, the split approach (solving the bottom, then the top) took a total of only 81.70 seconds. This represents a more than 2x speedup, demonstrating that the overhead of introducing auxiliary atoms is far outweighed by the benefits of reduced search space in the solver.
Conclusion and Future Work
This work provides a powerful new tool for the ASP community, allowing for the modular analysis and solving of programs that were previously considered inseparable. While the theoretical worst-case complexity for auxiliary atoms remains a concern, empirical evidence suggests that for typical programs, the number of introduced atoms is small and the performance benefits are clear.
Future research directions include developing heuristics to automatically choose the optimal splitting set $U$ and applying these techniques to "forgetting" (simplifying programs by removing atoms) and incremental ASP solving, where programs are updated dynamically over time.
Summary updated