Introduction
In the field of artificial intelligence, modeling how actions transform the state of the world—known as transition systems—is a fundamental challenge. Traditionally, these models are either manually engineered, learned as "black-box" neural networks, or represented using symbolic languages like STRIPS. However, each approach has significant drawbacks: manual coding is labor-intensive, neural networks lack interpretability, and STRIPS is limited by its inability to handle "unbounded" domains where a single action affects a variable number of objects.
This paper introduces a novel framework for the automatic synthesis of "white-box" procedural models. By representing transition systems as structured programs for a Random-Access Machine (RAM), the authors demonstrate a method to synthesize compact, human-readable models that generalize across problem sizes and incorporate latent variables to track internal state changes.
The RAM-Based Procedural Framework
The core of the proposed approach is the representation of state transitions as programs executed on a Random-Access Machine (RAM). This model provides several advantages for representing complex logic:
- Register-Based Architecture: The machine utilizes registers to store the "pre-state" (the world before an action), the "post-state" (the world after), and comparison flags. Crucially, it includes latent registers for auxiliary calculations, such as loop counters or pointers.
- Well-Structured Programs: To ensure the synthesized code is both readable and the search space is manageable, the framework restricts synthesis to "well-structured" programs. These programs utilize standard control flow—such as
if-thenconditionals andforloops—rather than arbitrary jumps. - Target Language Flexibility: The system is not tied to a single representation. By adjusting the grammar used during the search, the framework can be constrained to output different target languages, including STRIPS or Cellular Automata rules.
Synthesis via Combinatorial Search
To find the correct program for a given transition system, the authors employ a Frontier Best-First Search (BFS). This search navigates the space of possible instruction sequences to find a program that correctly maps input states to output states.
To make this search efficient, the authors implement several key strategies:
- Heuristic Guidance: The search is guided by evaluation functions that prioritize candidate programs minimizing the discrepancy between predicted and actual post-states.
- Pruning Rules: A specific pruning rule, $R1$, is used to immediately reject any instruction that sets a state variable to a value inconsistent with the provided training examples.
- Incremental Learning: The system processes examples progressively. If a candidate program fails on a new training instance, that instance serves as a counter-example to further refine and narrow the search.
Experimental Evaluation
The researchers evaluated the framework across a diverse set of discrete systems to test its versatility:
- Classic Benchmarks: 49 action schemes from 13 STRIPS domains (e.g., Gripper, Logistics) and Quantified STRIPS domains requiring conditional effects (e.g., Elevators).
- Cellular Automata: Synthesizing the underlying update rules for complex patterns like Rules 30, 90, 110, and 184.
- Pancake Sorting: This domain served as a primary test for unbounded object handling. In pancake sorting, a "flip" action affects a variable number of pancakes depending on the spatula's position. The system successfully synthesized the
flipprocedure, which requires loops and internal pointers.
Key Results and Insights
The experimental results highlight the efficiency and robustness of the procedural synthesis approach:
- Performance and Scalability: Synthesis proved remarkably fast. In approximately 50% of the test cases, the model was found in less than one second. All models across all domains were synthesized in under one minute.
- Perfect Generalization: Because the system synthesizes procedural logic (loops and conditionals) rather than memorizing state mappings, models learned on small instances (e.g., a 9-pancake stack) achieved a 100% success rate when validated on much larger instances (e.g., a 50-pancake stack).
- The Power of Latent Variables: The inclusion of auxiliary registers allowed the system to discover "hidden" concepts not explicitly present in the raw data, such as the movement of a pointer through a stack.
- Interpretability: Unlike black-box models, the output is a human-readable program. This "white-box" nature allows developers to verify the logic and understand exactly how the model determines action effects.
Conclusion and Future Work
This research demonstrates that combinatorial search over structured RAM programs is a viable and highly efficient method for learning transition models. By moving beyond the fixed-variable constraints of STRIPS, the framework can model complex, unbounded domains with high precision.
While currently limited to deterministic systems with full observability, the authors identify several promising avenues for future research. These include extending the framework to handle non-deterministic outcomes, discovering actions when labels are not provided, and increasing robustness to noisy or partially observable data.
Summary updated