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

Explanations for Answer Set Programming

Mario Alviano, Ly Ly T. Trieu, Tran Cao Son, Marcello Balduccini

TL;DR

This paper introduces xASP2, an enhanced system for generating explanations in Answer Set Programming (ASP). It addresses the challenge of understanding why certain atoms are true or false in ASP solutions by providing explanations as directed acyclic graphs (DAGs), supporting advanced ASP constructs like aggregates and constraints.

What Problem Does This Paper Address?

Answer Set Programming (ASP) is a powerful declarative programming paradigm used for knowledge representation and reasoning. However, the lack of transparency in ASP systems can make it difficult for users to understand and trust the computed "answer sets" (solutions). This is particularly problematic given the growing "right to explanation" in AI. Existing explanation systems for ASP often struggle with advanced language features like choice rules and aggregates, and some cannot explain why an atom is false. This paper aims to bridge this gap by providing a more comprehensive and understandable explanation system for ASP.

Methods

The core of this work is the development of xASP2, an extension of a previous system called xASP. xASP2 formalizes explainable AI for a significant fragment of ASP, focusing on generating explanations in the form of directed acyclic graphs (DAGs). The system aims to minimize the set of assumptions (atoms assumed to be false) required for an explanation. Key technical contributions include:

  • Formalization of Explanations: Explanations are defined in terms of directed acyclic graphs (DAGs) that illustrate why an atom is true or false in an answer set, originating from a minimal set of assumed false atoms.
  • Support for Advanced ASP Constructs: xASP2 extends previous work by supporting choice rules and various aggregate functions (like #sum, #min) and constraints, which are common in practical ASP applications.
  • Minimal Assumption Sets: The system computes minimal sets of atoms that must be assumed false to explain the truth or falsity of a query atom.
  • Well-Founded Derivations: The explanation process leverages well-founded derivations, a standard technique in ASP for computing interpretations.
  • Meta-Programming Approach: The implementation uses ASP itself to encode the explanation generation process, allowing for a flexible and extensible system.

Datasets

Not discussed in the paper. The paper focuses on a general ASP program and its answer sets, using examples like graph reachability and the Blocksworld problem for illustration and evaluation.

Key Insights and Ideas

  • DAGs as Intuitive Explanations: Representing explanations as DAGs provides a structured and visually intuitive way to understand the causal chain of reasoning in ASP, making complex derivations more accessible.
  • Explaining Falsity is Crucial: The ability to explain why an atom is false is as important as explaining why it's true, especially for debugging and understanding unexpected results.
  • Minimal Assumptions for Clarity: By focusing on minimal assumption sets, the system avoids overwhelming users with unnecessary details, presenting the most direct reasons for a particular outcome.
  • ASP for Explanations: Using ASP to implement the explanation generation itself is a powerful meta-programming technique, allowing the system to leverage ASP's own reasoning capabilities for explainability.

Key Results

  • xASP2 System: The paper presents xASP2, an implemented system that generates explanations for ASP.
  • Support for Aggregates and Constraints: xASP2 is highlighted as the first system to support explanations for ASP programs involving both aggregates and constraints.
  • Empirical Evaluation: The system was evaluated on a commercial ASP application with 420 rules and 651 facts. It computed a DAG for an unexpected true atom in an average of 14.85 seconds, involving only a fraction of the total rules and atoms, demonstrating efficiency.
  • Explainable Planning: xASP2 can also handle explainable planning, generating explanations for why actions might not occur.

Limitations and Future Work

  • Stratified Aggregates: The current system assumes aggregates are stratified and do not involve default negation or have a single atomic condition. Future work could extend support to more complex aggregate forms.
  • Uninterpreted Function Symbols and Conditional Literals: The paper notes that constructs like uninterpreted function symbols and conditional literals were omitted for presentation simplicity in Section 2 but are supported by the full xASP2 system. Further investigation into supporting other linguistic constructs is mentioned.
  • Cyclic Argumentation: While the paper aims for acyclic explanations, the DAG representation is guaranteed to be acyclic.
  • Interactive Representation: The authors mention an interactive representation available at a provided URL, suggesting ongoing development and user-facing features.

Summary updated

BibTeX
@inproceedings{alviano2023explanations,
  author = {Mario Alviano and Ly Ly T. Trieu and Tran Cao Son and Marcello Balduccini},
  title = {{Explanations for Answer Set Programming}},
  booktitle = {ICLP},
  year = {2023},
  url = {https://openreview.net/forum?id=9kwWlDOLoqV},
}

Loading related content...

Figure