Abstract
We study the characterization and computation of general policies for families of problems that share a structure characterized by a common reduction into a single abstract problem. Policies $\mu$ that solve the abstract problem $P$ have been shown to solve all problems $Q$ that reduce to $P$ provided that $\mu$ terminates in $Q$. In this work, we shed light on why this termination condition is needed and how it can be removed. The key observation is that the abstract problem $P$ captures the common structure among the concrete problems $Q$ that is local (Markovian) but misses common structure that is global. We show how such global structure can be captured by means of trajectory constraints that in many cases can be expressed as LTL formulas, thus reducing generalized planning to LTL synthesis. Moreover, for a broad class of problems that involve integer variables that can be increased or decreased, trajectory constraints can be compiled away, reducing generalized planning to fully observable non-deterministic planning.
Introduction
In classical AI planning, the objective is typically to find a sequence of actions to solve a specific problem instance. However, generalized planning aims for a more robust solution: a single policy capable of solving an entire class of problems. For example, instead of planning to clear a specific stack of blocks, a generalized policy would be able to clear any block regardless of the number of blocks stacked above it.
Previous approaches leveraged abstractions to map multiple "concrete" problems into a single "abstract" non-deterministic problem. While this allowed for finding a policy once and applying it broadly, it introduced a significant limitation. These abstractions were inherently "Markovian," capturing local step-by-step transitions but losing global structural information. This often resulted in policies that appeared valid in the abstraction but failed in practice by entering infinite loops—such as decrementing a counter that the abstraction doesn't "know" must eventually reach zero. Consequently, these methods required manual proofs of termination for every instance, creating a substantial bottleneck.
Bridging the Gap with Trajectory Constraints
The authors propose a framework to eliminate the manual termination requirement by enriching abstract models with trajectory constraints. These constraints capture global properties that local transitions miss.
1. LTL Synthesis for General Problems
For a wide range of problems, these trajectory constraints can be expressed using Linear-time Temporal Logic (LTL). By specifying constraints on infinite sequences of actions and observations (e.g., "if variable $X$ is decreased infinitely often, it must eventually be zero"), the generalized planning problem is reduced to an LTL synthesis task. This allows the use of formal verification methods, such as building Deterministic Parity Word automata, to synthesize policies that are guaranteed to terminate.
2. Compiling QNPs to FOND Planning
A particularly important class of problems is Qualitative Numerical Problems (QNPs). These involve non-negative integer variables that can be incremented or decremented. The authors demonstrate that for QNPs, trajectory constraints can be "compiled away."
By introducing auxiliary boolean variables to track whether a variable is currently being reduced, the complex constrained problem is transformed into a standard Fully Observable Non-Deterministic (FOND) planning problem. This is a significant practical contribution, as it enables the use of efficient, off-the-shelf FOND planners to solve generalized planning tasks.
Key Insights
- Global vs. Local Structure: The failure of previous abstractions stems from their local nature. Restoring global properties via trajectory constraints is essential for guaranteed termination.
- Beyond Standard Fairness: Standard fairness assumptions in non-deterministic planning (assuming all outcomes eventually occur) are insufficient for generalized planning. Constraints must be explicitly tied to the problem's variables.
- Practicality through Compilation: While general LTL synthesis is computationally expensive (2EXPTIME-complete), the compilation of QNPs into FOND planning provides a scalable path for many symbolic planning domains.
Results and Complexity
The authors establish a Generalization Theorem, proving that a policy solving an abstract problem with appropriate trajectory constraints is guaranteed to solve all corresponding concrete instances. They also show that while generalized planning with LTL is 2EXPTIME-complete, their method is "complete" for the class of QNPs—meaning it will find a general solution if one exists.
Conclusion
This work provides a solid mathematical foundation for generalized planning by connecting it to LTL synthesis and formal verification. By identifying the need for global trajectory constraints and providing a practical compilation method for numerical problems, the authors move closer to the goal of automatically discovering robust, general-purpose policies from abstract problem descriptions.
Summary updated