Introduction
Generalized planning aims to find a single solution—often represented as a program with loops and branches—that solves an entire class of related problems. For instance, instead of finding a sequence of moves to sort one specific list, a generalized planner seeks a program that can sort any list of any size.
A significant hurdle in this field is the "feature gap." To make decisions (e.g., "should the loop continue?"), these programs require high-level state features, such as "is the current element smaller than the next?" Traditionally, these features have been hand-coded by domain experts. This research presents a novel method to automatically discover these abstractions by compiling the search for features and the search for the plan into a single classical planning problem.
Methodology: Planning Programs and Conjunctive Queries
The authors represent generalized plans as planning programs: sequences of instructions that include basic actions, conditional goto statements, and termination commands.
To automate feature discovery, the system defines features as conjunctive queries (CQ)—a subset of first-order logic. This allows the planner to represent relational concepts, such as identifying whether a specific iterator points to a certain memory address.
The core innovation is a compilation to classical planning. The problem of finding both the program structure and the necessary features is transformed into a standard planning task. The planner is given "programming actions" that allow it to:
- Allocate logic atoms into "slots" to construct a conjunctive query.
- Evaluate these queries against the state using "step actions."
By using the Fast Downward planner, the system effectively "writes" the generalized program and its required features simultaneously.
Evaluation and Results
The approach was tested on two distinct benchmarks: generalized planning domains (finding minimums in lists, summatory series) and relational classification tasks (Michalski’s Trains, logic gates).
The results demonstrate that the method is both efficient and effective. Most problems, including logic gates and list processing, were solved in under 1.5 seconds. More complex tasks like the Summatory series and Michalski’s Trains required 13 and 61 seconds, respectively. Notably, the generated programs were highly compact (typically 3–5 lines) and utilized features (like i == n) that mirrored those typically provided by human experts.
Key Insights
A major takeaway is the conceptual bridge between planning and classification. The authors demonstrate that learning a noise-free classifier is essentially a generalized planning problem where the "plan" is the decision logic required to categorize all training examples correctly.
Furthermore, by creating a unified search space, the authors avoid a separate learning phase. The planner discovers abstractions precisely because they are necessary to reach the goal. To maintain tractability, the search is bounded by the number of program lines and feature "slots," transforming an infinite search into a manageable combinatorial problem.
Limitations and Future Directions
While powerful, the current framework has limitations. It is restricted to conjunctive queries and cannot yet generate features involving transitive closures (e.g., the concept of "above" in a blocks world). Additionally, the system is designed for symbolic, noise-free environments and does not currently accommodate the probabilistic or noisy data typical of many machine learning contexts. Future work may focus on expanding the expressiveness of the generated features and improving scalability for more complex program structures.
Summary updated