Abstract
LAWALY is a pioneering 1973 robot planner that bridges the gap between general-purpose logic systems and specialized, hand-coded programs. By automatically generating its own LISP procedures for every robot action and employing a strict hierarchy of subtasks, it achieves near-linear scaling, solving complex problems with hundreds of steps that would have paralyzed contemporary planners like STRIPS.
Introduction: The "Middle Way" in Robot Planning
In the early 1970s, robot planning research was divided into two distinct paradigms. General-purpose planners, such as STRIPS, utilized theorem proving to derive solutions. While versatile, these systems were computationally expensive and often encountered "practical limitations" when faced with problems requiring more than a handful of steps. Conversely, specialized planners like Winograd’s SHRDLU offered high performance but required manual programming for every specific environment, limiting their adaptability.
Siklossy and Dreussi proposed a "middle way" with LAWALY. Their objective was to create a system that maintained the generality of a universal planner while achieving the execution speed of a specialized one. The core innovation was a planner that writes its own specialized code based on the specific world model it is provided.
Methodology: Procedure Generation and Hierarchies
The LAWALY system, implemented in LISP, introduced three primary innovations to overcome the bottlenecks of its predecessors.
1. Automatic Procedure Generation
Rather than searching through a database of logic axioms at runtime, LAWALY "compiles" axiomatic descriptions of robot capabilities—defined by preconditions, add sets, and delete sets—into specialized LISP functions (EXPRs). This transformation effectively converts a general planning problem into the execution of a specialized program, significantly reducing search overhead.
2. Subtask Hierarchies
To manage complexity, LAWALY partitions goals into ranked hierarchical groups. It prioritizes high-ranking tasks (e.g., "turn on light") before addressing lower-ranking ones (e.g., "go to room"). This hierarchical approach prevents the robot from "undoing" critical progress to satisfy minor requirements, a common failure mode in earlier planners.
3. Non-Destructive Backtracking
When a plan fails, LAWALY avoids a full restart. Instead, it employs a mechanism to permute subtasks and "learns" from the failure, jumping back to the last successful state. This targeted backtracking preserves the work done on successful sub-goals.
Experimental Setup: The Superworld and STRIPS Benchmarks
The system was rigorously evaluated across several environments to test its scalability and robustness.
- STRIPS Worlds: Standard benchmark environments involving boxes, interconnected rooms, and light switches.
- The "Superworld": A complex "robot janitor" environment featuring 120 predicates and 26 operators. Tasks included watering terrariums (requiring the robot to fill a pail at a faucet first), emptying trash, and navigating through doors.
- Impossible Tasks: LAWALY was challenged with logically impossible goals, such as being in two places simultaneously, to evaluate its efficiency in proving non-existence of solutions.
Results: Performance and Scaling
LAWALY demonstrated a significant performance leap over contemporary state-of-the-art systems:
- Execution Speed: In the standard "light switch" task, STRIPS required 46.5 seconds to find a solution, whereas LAWALY completed the task in just 1.6 seconds.
- Problem Scale: While other planners struggled with tasks exceeding 15 steps, LAWALY successfully solved "Superworld" problems requiring up to 275 steps.
- Computational Efficiency: The system averaged between 0.4 and 2 seconds of computation per node in the search space, maintaining performance even in worlds with hundreds of predicates.
- Linear Scaling: By utilizing hierarchies to prune the search space, the time required to find a solution grew roughly linearly with the number of steps, avoiding the exponential growth typical of raw logic engines.
Discussion: Freedom and Procedural Learning
The authors introduced the "Freedom Principle" to explain the logic behind their hierarchies. They argued that hierarchies are naturally tied to a robot's degrees of freedom. For instance, pushing a box is ranked higher than moving the robot because pushing a box leaves the robot free to move anywhere, whereas climbing onto a box restricts the robot's ability to move that box.
Furthermore, the paper frames the automatic generation of code as a form of "procedural learning." By analyzing its environment and capabilities to generate specialized functions, the robot learns to interact with the world more efficiently than a static logic engine.
Limitations and Future Work
Despite its successes, LAWALY has several limitations. The current version relies on static subtask hierarchies; the authors noted that extremely complex or dynamic worlds might require hierarchies to be generated on the fly. Additionally, the internal representation of the dynamic world as a simple list became a memory bottleneck as the number of facts increased.
The authors also identified a "stubbornness" problem, where LAWALY’s focus on one subtask might prevent it from switching to another necessary task (e.g., refusing to open a door because it already satisfied a "door is closed" goal). Future work aimed to automate the derivation of subtask hierarchies from operator descriptions using heuristic programs.
Summary updated