Introduction
The divide between symbolic AI and connectionist models, such as Large Language Models (LLMs), has long defined the landscape of artificial intelligence. Symbolic planners are mathematically rigorous and reliable but require manual, expert-level domain modeling. Conversely, LLMs possess immense commonsense knowledge but struggle with the precise state tracking and long-horizon reasoning necessary for complex tasks.
This paper introduces PSALM (Predicting Semantics of Actions with Language Models), a framework that bridges this gap. PSALM enables AI agents to automatically induce symbolic action semantics—the "rules of the world"—through environmental interaction, combining the intuitive exploration of LLMs with the logical consistency of symbolic solvers.
The Challenge: Domain Induction
Symbolic planners operate on formal languages like PDDL (Planning Domain Definition Language), which specify the preconditions and effects of every action. Traditionally, these are hand-coded by humans. The domain induction problem asks: can an agent learn these rules autonomously?
While LLMs can generate natural language plans, they are often "brittle" in execution, proposing actions that are physically impossible in the current state. PSALM addresses this by using LLMs to infer formal symbolic rules from execution logs and error messages.
The PSALM Framework
PSALM utilizes an iterative loop to refine its understanding of the environment.
The framework consists of four primary components:
- Trajectory Sampler: An LLM proposes action sequences based on the goal and its current internal model.
- Environment Feedback: Actions are executed in a simulator. Successes and failures (with descriptive error messages) are recorded.
- Action Semantics Generator: An LLM analyzes these logs to infer preconditions and effects. For instance, if a "Pick-up" action fails with the message "hand is full," the model infers a
hand-emptyprecondition. - Memory & Symbolic Planner: Learned rules are stored in a probabilistic memory and passed to a symbolic planner (e.g., Fast Downward). If a valid plan is found, the task is solved.
A critical innovation is Prospection, where the agent simulates a proposed trajectory against its learned rules before execution, filtering out likely failures and improving sample efficiency.
Experimental Evaluation and Results
The researchers evaluated PSALM across seven diverse symbolic domains from the International Planning Competitions (IPC), including Blocksworld, Barman (cocktail preparation), and Tyreworld (changing tires).
PSALM demonstrated significant improvements over standalone LLMs and prior induction methods:
- 100% Success Rate: PSALM successfully reached goals in all seven domains. In comparison, direct plan generation by state-of-the-art models like Claude-3.5-Sonnet and OpenAI o1-preview averaged less than 40% success.
- Perfect Accuracy: The system recovered ground-truth action semantics with 100% accuracy, outperforming previous methods that typically achieved 40-80%.
- Efficiency: By leveraging LLM "intuition" for exploration, PSALM required fewer environment resets and steps than random or purely symbolic search methods.
Conclusion
PSALM demonstrates that LLMs are most effective when used as "intuitive explorers" and "semantic translators" rather than end-to-end planners. By grounding LLM reasoning in symbolic logic and environmental feedback, AI agents can autonomously learn complex world models. Future work aims to reduce dependency on text-based error messages, moving toward learning from raw state changes.
Summary updated