Diminution: On Reducing the Size of Grounding ASP Programs

HuanYu Yang, Fengming Zhu, YangFan Wu, Jianmin JiarXiv 2025 · DOI

Introduction

Answer Set Programming (ASP) is a prominent declarative logic programming paradigm widely used for solving complex combinatorial problems in fields like robotics, planning, and logistics. However, ASP faces a significant hurdle known as the "grounding bottleneck." Before a solver can find a solution, it must translate a program with variables into a "ground" program consisting of specific instances. In large-scale domains—such as a robot navigating a house with hundreds of objects—the number of possible combinations can explode exponentially, leading to massive files that exhaust memory or take prohibitive amounts of time to process.

This paper introduces diminution, a formal framework designed to mitigate this bottleneck by strategically selecting a subset of the Herbrand universe (the set of all constants) before the grounding phase begins.

The Diminution Framework

Diminution formally defines the process of selecting a subset of constants ($D$) from the full universe ($HU(P)$) to create a smaller grounded program ($P|_D$). The authors establish two primary categories of diminution:

  • Admissible Diminution: Guarantees that any solution found in the reduced program can be extended to a valid solution in the original program. This is often sufficient for practical applications where finding any valid solution is the goal.
  • Safe Diminution: A stricter condition guaranteeing that every solution in the original program has a corresponding representative in the reduced version.
Figure 1: Conceptual illustration of subsetting constants within a graph-based problem domain.

As illustrated in Figure 1, diminution allows the solver to focus on a relevant sub-structure of the problem space. By identifying a subset of nodes (constants) and their immediate relationships, the complexity of the resulting ground program is drastically reduced without sacrificing the ability to find a solution.

Implementation and Heuristics

Since determining the optimal subset of constants is computationally hard (coNP-hard), the authors propose several heuristics for selecting $D$. These include:

  1. LLM-Guided Skeletons: Using Large Language Models to suggest relevant objects for a specific task (e.g., in robotic planning).
  2. Graph Neighborhoods: Restricting the search to local neighborhoods within a graph structure.
  3. D-Guarded Programs: A method to "guard" existing programs by injecting domain predicates. This allows standard grounders like Clingo or DLV2 to implement diminution without requiring modifications to the underlying solver engines.

Experimental Evaluation

The approach was evaluated across five benchmarks: VirtualHome (VH), Automated Warehouse (AWS), 2D Gridworld (GW), Hamiltonian Circuit (HC), and Stable Marriage (SM). The results demonstrate that diminution effectively "breaks" the grounding bottleneck.

Figure 2: Performance comparison between heuristic diminution (Heu) and the full Herbrand universe (HU) across various domains and solvers.

As shown in Figure 2, the heuristic approach (Heu) consistently outperforms the full universe (HU) grounding. Key highlights include:

  • Grounding Time: Reductions of up to 70% on average.
  • File Size: Grounding files were reduced by up to 85%.
  • Solving Success: In the VirtualHome domain, the timeout rate dropped from 61.65% to just 4.91% when using diminution with the Clingo solver.
  • Scalability: In domains like Hamiltonian Circuit, diminution reduced program sizes by orders of magnitude, making previously "unsolvable" instances trivial for the solver.

Conclusion and Future Work

Diminution provides a rigorous mathematical foundation for the common practice of limiting search spaces in ASP. By formalizing "admissible" and "safe" reductions, the authors enable more aggressive pruning of constants while maintaining solution integrity. Future work aims to automate the selection of constant subsets using neural network modules that can iteratively refine the diminution based on solver feedback, moving toward a fully automated, learned grounding strategy.

Summary updated

BibTeX
@misc{yang2025diminution,
  author = {HuanYu Yang and Fengming Zhu and YangFan Wu and Jianmin Ji},
  title = {{Diminution: On Reducing the Size of Grounding ASP Programs}},
  year = {2025},
  eprint = {2508.08633},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2508.08633},
}
Figure