Language Models Can Infer Action Semantics for Symbolic Planners from Environment Feedback

Wang Bill Zhu, Ishika Singh, Robin Jia, Jesse Thomason

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.

Symbolic planning components: domain definitions, problem instances, and generated plans.

The PSALM Framework

PSALM utilizes an iterative loop to refine its understanding of the environment.

The PSALM iterative loop for action semantics induction.

The framework consists of four primary components:

  1. Trajectory Sampler: An LLM proposes action sequences based on the goal and its current internal model.
  2. Environment Feedback: Actions are executed in a simulator. Successes and failures (with descriptive error messages) are recorded.
  3. 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-empty precondition.
  4. 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

BibTeX
@inproceedings{zhu2025language,
  author = {Wang Bill Zhu and Ishika Singh and Robin Jia and Jesse Thomason},
  title = {{Language Models Can Infer Action Semantics for Symbolic Planners from Environment Feedback}},
  booktitle = {Conference of the North American Chapter of the Association for Computational Linguistics},
  year = {2025},
  doi = {10.18653/v1/2025.naacl-long.440},
}
Figure