Introduction
Generalized Linear Integer Numeric Planning (GLINP) represents a significant advancement in the field of AI planning, enabling agents to tackle complex problems characterized by multiple numeric variables and intricate conditional logic. Traditional "classical" planning models often rely on binary logic, which proves insufficient for real-world applications involving continuous or discrete quantities like fuel levels, inventory counts, or spatial coordinates. While Numeric Planning and Generalized Planning (GP) were developed to address these limitations, they frequently encounter theoretical hurdles—either being mathematically undecidable or overly restrictive in their modeling capabilities.
The preceding state-of-the-art, Qualitative Numeric Planning (QNP), attempted to find a middle ground but suffered from three primary drawbacks: low expressiveness (inability to handle conditional effects), unintuitive solutions (large, unreadable state-action policies), and complex termination requirements. GLINP bridges these gaps by utilizing linear integer arithmetic and synthesizing structured, algorithmic "planning programs."
Methodology: The RegexSkeleton Framework
The core contribution of this work is RegexSkeleton, an automated system designed to synthesize planning programs. Unlike traditional planners that output a sequence of actions for a specific instance, RegexSkeleton generates a generalized algorithm capable of solving any instance within a domain.
The synthesis process follows three distinct phases:
- Generation of State-Plan Pairs: The system identifies representative initial states and employs a standard numeric planner (such as Metric-FF) to generate specific action sequences for these cases.
- Inference of Skeletons (InfSkeleton): By treating action sequences as strings, the system applies regular expression (regex) inference to detect patterns. Repeated sequences are generalized into
whileloops, while divergent paths are transformed intoif-then-elsebranches. - Completion of Planning Programs: The final step involves determining the logical conditions that trigger these control structures. A formula synthesis algorithm, SynFormula, analyzes data traces to derive the exact conditions (e.g.,
num_packages > 0) required for the program to function correctly.
Experimental Evaluation
The authors evaluated RegexSkeleton across 22 benchmark domains, including classic puzzles (Gripper, Spanner), logistics tasks (Delivery, VisitAll), and numeric-intensive problems (Arith, NestVar). Many of these domains were specifically modified to include multiple numeric variables and conditional effects, challenging the limits of existing qualitative models.
The results demonstrate a clear advantage for the GLINP approach:
- Coverage: RegexSkeleton successfully solved all 22 domains, whereas the leading QNP competitor, QNP2FOND, could only resolve 9. This disparity is largely due to QNP's inability to handle complex numeric interactions.
- Efficiency: In the "Delivery" domain, GLINP synthesized a solution in approximately 5 seconds, compared to over 65 seconds for QNP2FOND.
- Succinctness: The resulting planning programs are significantly more compact. For instance, in the "Gripper" domain, the GLINP program was only 31 lines long, whereas the corresponding QNP policy required 201 lines.
- Scalability: Because GLINP learns the underlying logic from small examples, the time required for synthesis remains stable regardless of the problem scale (e.g., the number of objects or the magnitude of numeric constants).
Key Insights and Future Directions
The shift from state-action policies to algorithmic planning programs offers several conceptual benefits. By using regex as a bridge to identify loops, GLINP creates solutions that are not only more readable for humans but also inherently generalizable to infinite state spaces.
However, challenges remain. The high expressiveness of GLINP makes it generally undecidable, and future research will focus on identifying decidable fragments of the framework. Additionally, while the system excels at problems where goals involve decreasing numeric variables, more complex numeric goal constraints require further refinement. Finally, the authors are working toward fully automated verification to prove the correctness of synthesized programs across all possible initial states.
Summary updated