Abstract
Generalized planning aims to discover high-level policies capable of solving every instance within a planning domain, regardless of its size or initial configuration. We present D2L, a novel framework that synthesizes these policies from a few small examples without requiring human-provided sample plans or supervision. By framing policy search as a Weighted Max-SAT optimization problem over a space of features generated via description logic, D2L identifies the simplest rules that guarantee progress toward a goal. Our evaluation across standard benchmarks demonstrates that D2L learns compact, non-deterministic policies that generalize from tiny training instances (e.g., 5 blocks) to much larger problems (e.g., 30+ blocks) with high efficiency.
Introduction
In classical AI planning, solvers typically find a sequence of actions for a specific problem instance. However, generalized planning seeks a single "general policy"—a set of rules that works for any instance in a domain, such as "Blocksworld" or "Gripper." The primary challenges in this field are finding a representation that scales across different object counts and learning these policies without a human teacher providing demonstrations.
Previous methods often relied on supervised learning from sample plans or complex intermediate abstractions like Qualitative Numerical Planning (QNP), which are computationally intensive. D2L overcomes these hurdles by treating policy learning as a self-supervised combinatorial optimization problem.
The D2L Framework
The D2L (Description Logic to Learning) system operates in three distinct phases:
- Feature Generation: The system uses a description logic grammar to automatically generate a vast pool of potential features (e.g., "number of blocks above the target") from the domain's basic predicates.
- Weighted Max-SAT Optimization: This is the core of the approach. The search for a policy is formulated as a propositional theory. A Weighted Max-SAT solver is used to find the simplest set of features and rules that distinguish goal states, ensure every action moves the agent closer to the goal (via a Lyapunov-like distance function), and avoid dead-ends.
- Non-deterministic Policy Synthesis: Unlike rigid deterministic rules, D2L can learn non-deterministic policies. This flexibility allows the agent to choose any action that decreases the distance to the goal, making the search for a valid policy more tractable.
Experimental Evaluation
We evaluated D2L on nine classic AI planning benchmarks, including variants of Blocksworld, Gripper, and Miconic. A critical aspect of our methodology is training on minimal instances—often just one or two small examples—and testing for generalization on significantly larger, randomly generated instances.
As shown in the table above, D2L successfully synthesizes policies for complex domains like Qdeliv and Qspan using very few training instances ($|P_i|$). The total synthesis time ($t_{all}$) is remarkably low for most domains, often completing in seconds. The resulting policies are highly compact, as indicated by the low complexity scores ($c_{\Phi}$) and the small number of rules ($|\Phi|$).
Key Results and Discussion
- Generalization through Simplicity: By penalizing feature complexity in the Max-SAT solver, D2L adheres to Occam’s Razor. The simplest rules found on small instances (e.g., a 5-block Blocksworld) were found to solve instances with 30+ blocks perfectly.
- Unsupervised Learning: D2L does not require expert plans. It explores the state space of small training examples and autonomously discovers the underlying logic required to reach the goal.
- Computational Efficiency: Moving from specialized QNP planners to standard SAT solvers reduced the size of the propositional theories by an order of magnitude, significantly speeding up the synthesis process compared to prior state-of-the-art methods.
Conclusion and Future Work
D2L represents a significant advancement in generalized planning, demonstrating that powerful, general-purpose policies can be learned from minimal data without supervision. While the current approach requires expanding the full state space of training instances—limiting it to problems where small representative instances exist—future work will explore more efficient state-space sampling and formal verification to prove the absolute correctness of the learned policies across all possible instances.
Summary updated