Plan Explanation through Recommendations

Sarath Sreedharan, Trisha Ghali, David E. SmithHAXP @ ICAPS 2025

TL;DR

This paper introduces "X-REC," a novel approach to plan explanation that goes beyond simply identifying why a plan failed. Instead, it recommends specific modifications to the user's proposed plan to make it executable, empowering users to correct their own mistakes. The authors demonstrate how this problem can be reformulated as a planning problem itself, tested on numeric planning benchmarks.

What Problem Does This Paper Address?

Traditional explainable AI (XAI) often focuses on transparency – explaining why a system made a decision or why a plan failed. While this builds trust, it doesn't always help users improve their own actions. This paper tackles the gap in helping users actively correct their incorrect or incomplete plans. Imagine a user proposing a sequence of actions for a robot, but the robot can't execute it. Instead of just saying "this plan fails," X-REC aims to tell the user, "try changing action X to Y" or "insert action Z here" to make the plan work. This is particularly relevant in complex domains like numeric planning, where human intuition can easily lead to errors.

Methods

The core contribution is the formulation of "X-REC" (Explanation through Recommendation). When a user provides a failing plan prefix, X-REC identifies a counterfactual plan – a minimally modified version that is executable. The key innovation is converting this "plan repair" problem into a new planning problem.

This is achieved by:

  • Compiling a new planning problem: The original planning domain, initial state, and goal are transformed into a new problem (Mk). This new problem includes:
  • Modified fluents: New fluents are introduced to track the "budget" of edits allowed, whether the original failing action is now executable ("am-done"), and to manage the sequence of actions.
  • Augmented actions: The action set is expanded to include:
  • Copies of the original plan's actions, modified to enforce sequence and track progress.
  • "Insertion" actions that can add new steps to the plan, consuming the edit budget.
  • "Deletion" actions that can remove steps from the plan, also consuming the budget.
  • Modified initial state and goal: The initial state is set up with the initial budget and the "not-done" state for the failing action. The goal is to reach the "done" state for the failing action while staying within the edit budget and respecting any user-defined constraints on which actions can be modified.
  • Budgeted Edits: The approach uses an "edit budget" (k) to limit the number of insertions and deletions, making it more practical for complex numeric domains where finding optimal solutions is difficult. Users can iteratively increase the budget if an initial attempt fails.
  • Subsuming Excuse Generation: The paper notes that X-REC can subsume "excuse generation" methods, which typically focus on modifying the initial state to make a plan valid. By constraining X-REC to disallow plan modifications, it effectively becomes an excuse generation problem.

Datasets

The paper evaluates its approach on a set of standard numeric planning benchmarks from various International Planning Competition (IPC) domains. These include:

  • blocks-strips-typed
  • driverlog-strips-automatic
  • elevator-strips-simple-typed
  • gripper-round-1-strips
  • logistics-strips-typed

The authors created modified versions of these problems by introducing a numeric fluent that would cause the last action of a given plan prefix to fail.

Key Insights and Ideas

  • Actionable Explanations are Crucial: Simply knowing why a plan failed isn't as helpful as knowing how to fix it. This shifts the focus from passive understanding to active problem-solving.
  • Plan Repair as Planning: The clever reformulation of plan repair into a planning problem is a significant methodological contribution, allowing existing planning solvers to be leveraged for explanation.
  • Numeric Planning is a Rich Ground: The choice of numeric planning is insightful, as it's a domain where human intuition often falters, making actionable explanations particularly valuable.
  • User Control is Key: The framework allows users to guide the recommendation process, ensuring that the suggested modifications align with their underlying intentions.

Key Results

The paper presents a table summarizing the time taken to correct failing plan prefixes across various domains with a budget of 10.

  • Feasibility: The approach successfully found corrected plans for many benchmark problems.
  • Plan Length Impact: The length of the failing plan prefix was a significant factor influencing computation time, with longer prefixes generally taking longer.
  • Timeouts and Budget: Some timeouts occurred, but increasing the edit budget (e.g., from 10 to 50) dramatically reduced the time to find a solution in one case, suggesting that timeouts might be due to insufficient budget rather than inherent intractability.
  • Qualitative Success: The formulation successfully subsumes excuse generation by appropriately constraining the edit budget and action sets.

Limitations and Future Work

  • Single Instance of Failing Action: The current compilation assumes only one instance of the failing action (am) in the plan prefix. Extending this to handle multiple instances is a suggested future work.
  • Total Ordering Assumption: The current approach assumes a total ordering of actions. Investigating explanations for partially ordered plans, considering causal links, is another promising direction.
  • Incorporating User Feedback: While the framework allows for basic feedback (disallowing edits), more sophisticated ways to incorporate user preferences and constraints are needed.
  • Beyond Numeric Planning: While the paper focuses on numeric planning, extending the approach to classical planning is straightforward.
  • Combining with Other Explanations: X-REC can be combined with other explanation methods (e.g., causal explanations, model reconciliation) for richer user understanding.
  • User Utility: Incorporating user utility functions to balance the cost of edits against the value of the outcome is a potential extension, framing the problem as oversubscription planning.

Summary updated

BibTeX
@inproceedings{sreedharan2025plan,
  author = {Sarath Sreedharan and Trisha Ghali and David E. Smith},
  title = {{Plan Explanation through Recommendations}},
  booktitle = {HAXP @ ICAPS},
  year = {2025},
  url = {https://openreview.net/forum?id=qfgi8aPbTU},
}
Figure