Hostname: page-component-77f85d65b8-fcw2g Total loading time: 0 Render date: 2026-03-26T08:36:16.844Z Has data issue: false hasContentIssue false

Automated Hybrid Grounding Using Structural and Data-Driven Heuristics

Published online by Cambridge University Press:  16 September 2025

ALEXANDER BEISER
Affiliation:
TU Wien, Vienna, Austria (e-mails: alexander.beiser@tuwien.ac.at, woltran@dbai.tuwien.ac.at)
STEFAN WOLTRAN
Affiliation:
TU Wien, Vienna, Austria (e-mails: alexander.beiser@tuwien.ac.at, woltran@dbai.tuwien.ac.at)
MARKUS HECHER
Affiliation:
CNRS, Computer Science Research Center of Lens (CRIL), Univ. Artois, Lens, France (e-mail: hecher@cril.fr)
Rights & Permissions [Opens in a new window]

Abstract

The grounding bottleneck poses one of the key challenges that hinders the widespread adoption of answer set programming in industry. Hybrid grounding is a step in alleviating the bottleneck by combining the strength of standard bottom-up grounding with recently proposed techniques where rule bodies are decoupled during grounding. However, it has remained unclear when hybrid grounding shall use body-decoupled grounding (BDG) and when to use standard bottom-up grounding. In this paper, we address this issue by developing automated hybrid grounding: we introduce a splitting algorithm based on data-structural heuristics that detects when to use BDG and when standard grounding is beneficial. We base our heuristics on the structure of rules and an estimation procedure that incorporates the data of the instance. The experiments conducted on our prototypical implementation demonstrate promising results, which show an improvement on hard-to-ground scenarios, whereas on hard-to-solve instances, we approach state-of-the-art performance.

Information

Type
Original Article
Creative Commons
Creative Common License - CCCreative Common License - BY
This is an Open Access article, distributed under the terms of the Creative Commons Attribution licence (https://creativecommons.org/licenses/by/4.0/), which permits unrestricted re-use, distribution and reproduction, provided the original article is properly cited.
Copyright
© The Author(s), 2025. Published by Cambridge University Press
Figure 0

Algorithm 1 Heur(r, MARKER) for Computing Data-Structural Heuristics

Figure 1

Fig 1. Variable graphs of $r_1$ (left), $r_2$ (center), and $r_3$ (right) for Example1.

Figure 2

Fig 2. Plot comparing the estimated (left) and actual (right) number of ground rules of $r_2$ of Example1. Comparison between SOTA and BDG. x-axis: number of vertices; y-axis: number of rules. Comparing different graph densities, shown as SOTA($x$) and BDG($x$) for density $x$.

Figure 3

Fig 3. Schematics of the software architecture of the newground3 prototype.

Figure 4

Fig 4. Solving-heavy (Figures 4a and 4c) and grounding-heavy (Figures 4b, and 4d) experiments. x-axis: instances; y-axis: time [s] or size [GB]. Measured idlv, gringo, newground3 with gringo (NG-G), and newground3 with idlv (NG-I). Timeout: 1800s; memout: 10 GB.

Figure 5

Fig 5. Solving profiles for grounding-heavy scenario 4-Clique for gringo (left) and newground3 with gringo (NG-G). One rectangle represents one grounded and solved instance. Timeout: 1800s; memout: 10 GB. Instance size on x-axis, instance density on y-axis.

Figure 6

Table 1. Experimental results showing all scenarios, those executable by Alpha, and those executable by ProASP, with differing number of instances (#I). We depict solved instances (#S), memouts (M), and timeouts (T) for gringo, idlv, NG-G, NG-I, ALPHA, andProASP

Supplementary material: File

Beiser et al. supplementary material

Beiser et al. supplementary material
Download Beiser et al. supplementary material(File)
File 2.7 MB