NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

SPIRAL: Symbolic LLM Planning via Grounded and Reflective Search

Yifan Zhang, Giridhar Ganapavarapu, Srideepika Jayaraman, Bhavna Agrawal, Dhaval Patel, Achille Fokoue

TL;DR

SPIRAL introduces a novel framework that embeds a tri-agent cognitive architecture (Planner, Simulator, and Critic) directly into a Monte Carlo Tree Search (MCTS) loop to tackle complex, multi-step tool-use planning. By replacing traditional brute-force rollouts with grounded simulations and dense semantic rewards, SPIRAL enables LLMs to intelligently backtrack and self-correct, substantially outperforming linear prompting methods and state-of-the-art search agents while maintaining high token efficiency.

What Problem Does This Paper Address?

Large Language Models (LLMs) excel at simple text generation but frequently falter when executing complex, goal-oriented plans that require interacting with external tools and APIs. Standard approaches like Chain-of-Thought (CoT) rely on autoregressive, linear reasoning. If the model makes a single logical error early in the sequence, it lacks a structured mechanism to deliberate or backtrack, causing the entire plan to derail.

To introduce structured exploration, researchers have turned to tree search algorithms like MCTS. However, standard MCTS implementations treat the LLM as a black-box policy and suffer from sparse rewards (feedback is only given at the very end of a plan). Furthermore, without a way to ground the search in realistic environment responses, agents often explore paths that are syntactically valid but practically nonsensical.

Figure 1: A comparison of a Vanilla Agent and the SPI- RAL Agent on a conditional planning task. The Vanilla Agent follows a linear but flawed plan, while SPIRAL uses its grounded and reflective search to correctly handle the weather-based constraint before acting.

Methods

The authors introduce SPIRAL (Symbolic LLM Planning via Grounded and Reflective Search), which decomposes the planning problem into three specialized agentic roles working in concert within an MCTS loop:

  1. The Planner ($\pi_{\text{planner}}$): Drives the Expansion phase by proposing creative and contextually relevant next actions to grow the search tree.
  2. The Simulator ($W_{\text{sim}}$): Acts as a learned world model during the Simulation & Reflection phase. It predicts a plausible natural language observation that would result from executing the Planner's action, grounding the search in realistic consequences.
  3. The Critic ($C_{\text{critic}}$): Serves as a logical evaluator, providing immediate, dense feedback by generating a quantitative reflection score ($\rho_{\text{ref}}$) on the strategic merit of a partial plan.

Reflection-Driven Reward Shaping

To solve the sparse reward problem, SPIRAL bypasses expensive or noisy random rollouts. Instead, it calculates a immediate composite reward at each expanded node: $$R_t = \alpha R_{\text{base}}(a_t) + (1 - \alpha)\rho_{\text{ref}}$$ This formula blends a basic validity heuristic ($R_{\text{base}}$) with the Critic's semantic reflection score ($\rho_{\text{ref}}$). This dense scalar reward is then backpropagated up the tree, allowing the Upper Confidence Bound for Trees (UCT) formula to accurately prioritize promising paths and prune flawed ones.

Figure 2: An overview of the SPIRAL framework, where a tri-LLM symbolic architecture drives the MCTS loop. (1) Expan- sion: The Planner proposes a new action (a2) to expand the search from the current state (s2). (2) Simulation & Reflection: The Simulator provides a grounded observation (o3) for the action, while the Critic generates a strategic reflection score (ρref) evaluating the action’s merit. (3) Backpropagation: A composite reward, calculated using the Critic’s score, is then propagated up the tree to update node values and intelligently guide future selections.

Datasets

SPIRAL was evaluated using two multi-step tool utilization benchmarks from the TaskBench suite:

  • DailyLifeAPIs: Focuses on daily planning tasks utilizing web-like APIs.
  • HuggingFace: Focuses on constructing machine learning pipelines by chaining together distinct model types.

To rigorously test advanced error recovery, the authors evaluated the frameworks on a "residual" dataset consisting exclusively of tasks that a baseline CoT ($k=1$) agent failed to solve.

Key Insights and Ideas

  • Decomposition Prevents Cognitive Overload: Rather than forcing a single LLM prompt to simultaneously generate actions, predict environment changes, and self-critique, separating these tasks into specialized personas yields far more robust planning.
  • Semantic Feedback Can Be Scaled: SPIRAL successfully translates qualitative, semantic critiques from an LLM into numerical scalars that plug directly into classical MCTS backpropagation equations.
  • Focused Search is Resource Efficient: Brute-forcing accuracy via self-consistency (e.g., CoT $k=5$) generates long, redundant text paths that consume massive amounts of tokens. SPIRAL uses more individual API calls, but because they are short, targeted, and guided by the search tree, it is significantly more token-efficient.

Key Results

SPIRAL consistently outperformed both default planners and state-of-the-art search frameworks across multiple open and closed-source models (including DeepSeek-V2.5, Llama 3.3 70B, Llama 4 Maverick 17B, Phi 4, and Qwen 2.5 72B):

  • Accuracy Boost: On the challenging DailyLifeAPIs residual dataset using Llama 4 Maverick 17B, SPIRAL achieved an overall cascaded accuracy of 83.61%, outperforming the next-best search framework, LATS (67.39%), by over 16 percentage points, and beating Tree of Thoughts (~61%).
  • Complex Task Mastery: On Qwen 2.5 72B, SPIRAL achieved a perfect 100% accuracy on complex, multi-step tasks within the DailyLifeAPIs dataset.
  • Efficiency Gains: Resource metrics confirmed that SPIRAL achieved the highest final accuracy per 10,000 tokens consumed, validating that its performance stems from structural intelligence rather than compute brute-force.

Limitations and Future Work

Despite its strong performance, the authors highlight several failure modes:

  • API Substitution & Parameter Hallucination: The Planner can still be misled by semantically similar tool descriptions, or it may hallucinate generic parameters (e.g., using movie.mp4 instead of the user-specified example.mp4) which the Simulator and Critic fail to catch without ground-truth validation.
  • Budget Exhaustion on Long Horizons: For highly complex tasks requiring numerous independent subtasks, a fixed MCTS budget (e.g., 50 iterations) can cause the search tree to become too wide and shallow, leading to premature termination.
  • DAG Ordering Constraints: SPIRAL builds linear action chains, meaning it struggles to reason about parallel dependencies inherent in Directed Acyclic Graph (DAG) tasks.

Future Directions: The authors propose exploring adaptive search budgets based on task complexity, integrating real-world tool rollouts to validate the simulator, and building a self-improvement loop where successful SPIRAL plans are used to fine-tune the underlying LLM.

Summary updated

BibTeX
@inproceedings{zhang2026spiral,
  author = {Yifan Zhang and Giridhar Ganapavarapu and Srideepika Jayaraman and Bhavna Agrawal and Dhaval Patel and Achille Fokoue},
  title = {{SPIRAL: Symbolic LLM Planning via Grounded and Reflective Search}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2026},
  doi = {10.1609/aaai.v40i43.40975},
}
Figure