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

Solving Decision Theory Problems with Probabilistic Answer Set Programming

Damiano Azzolini, Elena Bellodi, Rafael Kiesel, Fabrizio RiguzziarXiv 2024 · DOI

TL;DR

This paper introduces Decision Theory Probabilistic Answer Set Programming (DTPASP), a novel framework that brings automated decision-making under uncertainty to the highly expressive world of Answer Set Programming (ASP). By leveraging a new three-layer Algebraic Model Counting (3AMC) algorithm and advanced knowledge compilation techniques, the authors enable the efficient discovery of optimal strategies even under complex, multi-model credal semantics.

What Problem Does This Paper Address?

Decision theory helps autonomous agents choose a strategy (a set of actions) that maximizes their expected rewards in an uncertain environment. While frameworks like DTProbLog exist for Prolog-style logic programming, they lack the expressive power of ASP constructs like choice rules and aggregates, which are vital for solving hard combinatorial problems (e.g., optimizing a viral marketing campaign with limited product stock).

Furthermore, when you combine probability with ASP under credal semantics, things get complicated. A single uncertain "world" can result in multiple valid models (called answer sets). Because we don't know how probability is distributed among these multiple models, a single strategy doesn't yield a single expected reward—it yields a range bounded by a pessimistic (lower) and an optimistic (upper) expected utility.

Table 1: Worlds and corresponding answer sets for Example 2. The probabilities of the worlds sum up to 1.

Optimizing decisions across this double layer of uncertainty (uncertain worlds + multiple models per world) is a massive computational challenge that standard ASP optimization constructs cannot handle.

Methods

The authors introduce DTPASP by extending Probabilistic ASP with decision atoms (actions an agent can choose to take) and utility(a, r) attributes (rewards or costs associated with outcomes).

To find the strategies that maximize both the lower and upper expected rewards without resorting to an explicitly exponential brute-force search, they propose a Three-Layer Algebraic Model Counting (3AMC) framework:

  1. Innermost Layer ($A_i$): Fixes the strategy and the world, computing the minimum and maximum rewards across all possible answer sets using a minmax-plus semiring.
  2. Middle Layer ($A_m$): Fixes the strategy and calculates the probabilities of the worlds, aggregating them with the optimal rewards from the inner layer using a two-gradient semiring.
  3. Outer Layer ($A_o$): Evaluates the space of all possible strategies to identify which ones maximize the lower and upper expected utilities.

To implement this efficiently, they extended the tool aspmc into a new version (aspmc3). It compiles the logic program into a tractable circuit representation (Negation Normal Form). Crucially, they relax strict variable ordering constraints during compilation by exploiting definability—identifying variables whose truth values are logically determined by others—which keeps the compiled circuit sizes manageable.

Datasets

The authors evaluated their approach using six distinct synthetic datasets ($t1$ to $t6$) designed to stress-test the system across different structural complexities:

  • t1 & t2: Controlled scaling tests, fixing probabilistic facts while scaling decision atoms ($t1$), and vice versa ($t2$).
  • t3 & t4: Balanced scaling of both facts and decisions, placing utilities on both actions and outcomes ($t3$) or strictly on outcomes ($t4$).
  • t5: Programs featuring long conjunctive rules to test deep logical dependencies.
  • t6: A realistic viral marketing scenario based on targeting individuals under product stock constraints.

Key Insights and Ideas

  • Pessimism vs. Optimism: Under credal semantics, there is rarely a single "best" strategy. DTPASP explicitly provides two optimal strategies: one for the risk-averse planner (maximizing the guaranteed worst-case reward) and one for the risk-seeking planner (maximizing best-case potential).
  • Pushing Optimization into Circuits: By structuring the problem as a 3AMC task, the optimization step is pushed directly into the bottom-up evaluation of a compiled circuit, bypassing the need to explicitly generate millions of answer sets.
  • Decision Atoms vs. Probabilistic Facts: The experiments revealed an interesting asymmetry: increasing the number of choices (decision atoms) degrades performance significantly faster than increasing environmental uncertainty (probabilistic facts).

Key Results

The 3AMC algorithm (aspmc3) was compared against a naive baseline that enumerates answer sets using the PASTA solver:

  • Scalability Limits: The naive baseline failed to scale entirely, hitting time or memory walls on programs with more than 20 combined decision atoms and probabilistic facts.
  • Massive Speedups: aspmc3 successfully scaled to handle non-trivial instances. In the $t5$ dataset, it successfully solved instances containing 91 decision atoms and 91 probabilistic facts.
  • Complex Scenarios: In the viral marketing simulation ($t6$), aspmc3 managed instances of size 15 (15 people, 15 products, and 45 utility attributes) in roughly 360 seconds, whereas the baseline timed out.

Limitations and Future Work

  • Memory Bottlenecks: While computationally faster, knowledge compilation is highly memory-intensive. The aspmc3 tool still ran into memory limits on the largest, most highly connected graph structures in datasets $t3$, $t4$, and $t6$.
  • Alternative Semantics: This work focuses purely on credal semantics. The authors note that adapting this framework to other probabilistic ASP semantics (such as assuming a uniform distribution over a world's answer sets) is an open avenue.
  • Imprecise Probabilities: A natural next step is extending the framework to allow probabilistic facts to be annotated with interval ranges (e.g., a fact happening with a probability between 0.4 and 0.6) rather than fixed point values.

Summary updated

BibTeX
@misc{azzolini2024solving,
  author = {Damiano Azzolini and Elena Bellodi and Rafael Kiesel and Fabrizio Riguzzi},
  title = {{Solving Decision Theory Problems with Probabilistic Answer Set Programming}},
  year = {2024},
  eprint = {2408.11371},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2408.11371},
}
Figure