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

Plan reversals for recovery in execution monitoring

Thomas Eiter, Esra Erdem, Wolfgang FaberNMR 2004

Abstract

In automated planning, real-world execution often deviates from expected outcomes due to nondeterminism or unexpected events. This paper introduces a formal framework for "plan reversals," allowing agents to recover from failures by backtracking to a known valid state. By pre-computing reverse plan items offline and assembling them efficiently online, agents can resume their original missions without the high computational cost of full replanning.

Introduction

Autonomous agents operating in dynamic environments frequently encounter discrepancies between their internal model of the world and the actual state after performing an action. Traditionally, recovery involves either starting the planning process from scratch (replanning) or finding a new path from the current state to the goal (patch planning). Both methods can be computationally expensive and may discard valuable progress.

This research proposes an alternative: Backtracking. If an agent can identify the "point of failure"—the last state where the original plan was still valid—it can attempt to "undo" the effects of the failed actions. This paper formalizes the notion of "undoing" within a transition-based action representation, providing a robust mechanism for execution monitoring and recovery.

Formalizing Plan Reversals

The core of the proposed framework lies in defining how actions can be reversed. Unlike simple deterministic systems where every action might have a direct inverse, nondeterministic environments require a more nuanced approach.

Reverse Actions and Plans

A reverse action is a single action that negates the effect of a previous action, returning the environment to its prior state. A reverse plan is a sequence of such actions. Crucially, these must be "conformant," meaning they must succeed regardless of which nondeterministic outcome occurred during the initial failure.

State transition diagram illustrating actions and their effects on state variables like 'wet' and 'inWater'.

As shown in Figure 1, transitions between states like being dry and being wet can be managed through specific actions. For instance, if an agent accidentally becomes wet (state {-inWater, wet}), the action dryWithTowel serves as a reversal to return to the dry state ({-inWater, -wet}).

Conditional Reversals

The authors introduce conditional reversals, where the applicability of an "undo" sequence depends on specific conditions (phi) in the current state. For example, a "buy" action can only be reversed if the agent still possesses the receipt. This addition makes the framework applicable to complex, resource-constrained scenarios.

Methodology: Offline Library and Online Recovery

Finding reverse plans is computationally intensive. The authors prove that finding a reverse action is Sigma^p_2-complete, while finding a polynomial-length reverse plan is Sigma^p_3-complete. To mitigate this, they propose a two-phase approach:

  1. Offline Library Construction: Potential reversals for common actions or sequences are pre-calculated and stored as Reverse Plan Items (RPIs). This process is treated as a conformant planning problem.
  2. Online Recovery: When a failure is detected, the agent uses efficient algorithms to assemble a recovery sequence from the library.
  3. S-REVERSE: A simple algorithm for single-step reversals.
  4. REVERSE: A more sophisticated, trie-based algorithm that can stitch together multiple multi-step reversals from the library to bridge the gap back to the point of failure.

This strategy shifts the heavy lifting to an offline phase, allowing the online recovery to run in polynomial time relative to the library size and the length of the failed action sequence.

Evaluation and Insights

The framework was evaluated using classic AI benchmarks like the Blocks World (with nondeterministic "throwing" actions) and conceptual scenarios like a Shopping Agent.

Key insights include:

  • Efficiency: Online assembly of recovery plans is significantly faster than general replanning, which is often PSPACE-complete.
  • Correctness: The authors provide formal proofs that if a valid reversal can be constructed from the library, their algorithms are guaranteed to find it and return the agent to the exact state it was in before the failure.

Conclusion and Future Work

This paper provides a solid theoretical foundation for plan reversals in execution monitoring. While currently limited to propositional logic, future work aims to extend the framework to "STRIPS-style" predicate languages to handle objects and variables more naturally. Additionally, scaling the library generation and conducting extensive empirical testing remain key areas for development. By enabling agents to "undo" mistakes efficiently, this approach enhances the resilience of autonomous systems in unpredictable environments.

Summary updated

BibTeX
@inproceedings{eiter2004plan,
  author = {Thomas Eiter and Esra Erdem and Wolfgang Faber},
  title = {{Plan reversals for recovery in execution monitoring}},
  booktitle = {NMR},
  year = {2004},
  url = {https://openreview.net/forum?id=T5RTdKvHdU},
}

Loading related content...

Figure