A Logic-based Explanation Generation Framework for Classical and Hybrid Planning Problems (Extended Abstract)

Stylianos Loukas Vasileiou, William Yeoh, Son Tran, Ashwin Kumar, Michael Cashmore, Daniele Magazzeni

Abstract

This work introduces a novel logic-based framework for the Model Reconciliation Problem (MRP) in AI planning. By shifting the perspective from traditional automated planning search to knowledge representation and reasoning, the proposed approach provides a unified method for generating explanations in both classical and complex hybrid systems. Experimental results demonstrate that this logic-based formulation often outperforms state-of-the-art methods, particularly when explanations are long or complex, and successfully handles hybrid dynamics involving continuous processes.

1. Introduction: The Model Reconciliation Problem

In human-aware AI, planning agents must often justify their decisions to human users. When a user perceives an agent's plan as impossible or suboptimal, the agent must resolve the discrepancy between its internal model and the human's mental model. This is known as the Model Reconciliation Problem (MRP). Traditionally, MRP is treated as a search problem within the space of model updates. However, search-based methods often struggle with scalability as the model gap grows and are typically limited to discrete, classical planning domains.

2. Methodology: A Logic-Based Approach

The authors propose a framework that treats explanation as a problem of logical entailment rather than state-space search.

2.1 Logical Encoding and Entailment

The agent's knowledge ($KB_a$) and the human's knowledge ($KB_h$) are encoded as logical formulas. For classical planning, SAT encodings are used, while hybrid planning (PDDL+) utilizes SMT encodings. An explanation $\epsilon$ is defined as a subset of the agent's knowledge that, when integrated into the human's knowledge base, ensures the human's model supports the agent's plan (either its validity or optimality).

2.2 Optimization and Solvers

To find the "Most Preferred Explanation" (e.g., the minimum number of model updates), the framework incorporates cost functions. The system leverages the z3 solver and the SMTPLAN framework to handle the iterative encoding required for hybrid systems involving durative actions and continuous changes.

3. Evaluation and Results

The framework was tested across standard benchmarks, including classical IPC domains (Blocks-World, Rover) and hybrid PDDL+ domains (Linear Generator, Torricelli).

3.1 Classical Planning Performance

The logic-based approach (LOGIC) was compared against the state-of-the-art CSZK baseline. While CSZK is efficient for short explanations, the LOGIC framework exhibits significantly better scalability and robustness.

Comparison of the LOGIC framework against the CSZK baseline across classical planning domains.

As seen in the table above, LOGIC remains stable in Scenarios 3 and 4 where explanation length $|\epsilon|$ increases. Notably, LOGIC successfully handles Scenario 5 (initial state discrepancies), which the baseline fails to process.

3.2 Hybrid Planning Performance

A key advantage of the logic-based formulation is its natural generalization to hybrid systems. Traditional XAIP methods often struggle with the continuous dynamics of PDDL+.

Performance of the LOGIC framework on hybrid planning (PDDL+) domains across various scenarios.

The results in the hybrid domains show that the framework maintains sub-second runtimes for the majority of instances, proving its viability for real-world systems with complex dynamics like battery drainage or spontaneous events.

4. Discussion and Key Insights

  • Logic vs. Search: The runtime of the logic-based approach is primarily determined by the size of the knowledge base rather than the length of the explanation. This makes it more robust for complex reconciliations where search-based methods would face exponential state-space explosions.
  • Generality: Relying on logical entailment allows the framework to handle hybrid systems (PDDL+) without requiring domain-specific heuristics.
  • Handling Inconsistency: The framework includes mechanisms to resolve contradictions that may arise when updating a human's model with new information.

5. Limitations and Future Work

While the framework is powerful, several challenges remain. Proving plan optimality in hybrid systems remains computationally intensive due to the nature of user-specified costs in SMT. Furthermore, the current output consists of raw logical formulas; future work must focus on translating these proofs into human-friendly natural language or visual explanations.

Summary updated

BibTeX
@inproceedings{vasileiou2023logic,
  author = {Stylianos Loukas Vasileiou and William Yeoh and Son Tran and Ashwin Kumar and Michael Cashmore and Daniele Magazzeni},
  title = {{A Logic-based Explanation Generation Framework for Classical and Hybrid Planning Problems (Extended Abstract)}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2023},
  doi = {10.24963/ijcai.2023/795},
}
Figure