Abstract
Large language models (LLMs) demonstrate impressive performance on a wide variety of tasks, but they often struggle with tasks that require multi-step reasoning or goal-directed planning. To address this, we take inspiration from the human brain, in which planning is accomplished via the recurrent interaction of specialized modules in the prefrontal cortex (PFC). These modules perform functions such as conflict monitoring, state prediction, state evaluation, task decomposition, and task coordination. We find that LLMs are sometimes capable of carrying out these functions in isolation, but struggle to autonomously coordinate them in the service of a goal. Therefore, we propose a black box architecture with multiple LLM-based (GPT-4) modules. The architecture improves planning through the interaction of specialized PFC-inspired modules that break down a larger problem into multiple brief automated calls to the LLM. We evaluate the combined architecture on three challenging planning tasks — graph traversal, Tower of Hanoi, and logistics — finding that it yields significant improvements over standard LLM methods (e.g., zero-shot prompting, in-context learning, and chain-of-thought). These results demonstrate the benefit of utilizing knowledge from cognitive neuroscience to improve planning in LLMs.
Introduction
While Large Language Models (LLMs) are powerful general-purpose tools, they frequently struggle with multi-step planning and sequential decision-making. In complex puzzles or navigation tasks, monolithic LLMs often "hallucinate" invalid paths, violate task constraints, or fall into repetitive loops. Research suggests the primary bottleneck is not a lack of domain knowledge, but a lack of coordination. While a single LLM can predict a next state or evaluate a move in isolation, it often fails to integrate these functions into a coherent, goal-directed strategy.
To address this, we introduce the Modular Agentic Planner (MAP), a multi-agent architecture inspired by the functional organization of the human prefrontal cortex (PFC).
The Modular Agentic Planner (MAP) Architecture
Instead of relying on a single prompt, MAP distributes the planning workload across several specialized LLM modules, each implemented with specific instructions to mimic a cognitive function:
- Task Decomposer: Breaks high-level goals into manageable subgoals.
- Actor: Proposes potential actions to achieve a subgoal.
- Monitor: Acts as a "sanity check," filtering out actions that violate task rules.
- Predictor: Functions as a world model, predicting the next state resulting from an action.
- Evaluator: Estimates the "value" or distance to the goal for a given state.
- Orchestrator: Tracks progress and determines when subgoals or the final goal have been reached.
These modules interact recurrently. For example, the Actor and Monitor engage in a feedback loop to ensure proposed actions are valid before they are passed to the Tree Search component. This search then uses the Predictor and Evaluator to explore potential future states at an abstract, natural-language level, rather than at the token level.
Experimental Evaluation
We evaluated MAP across four diverse and challenging domains:
- Graph Traversal (CogEval): Navigation through community-structured graphs, including "Detour" and "Reward Revaluation" scenarios.
- Tower of Hanoi (ToH): A classic puzzle using a text-based isomorphic version to ensure the model could not rely on memorized solutions.
- PlanBench: Rigorous automated planning benchmarks, specifically the "Logistics" and "Mystery BlocksWorld" domains.
- StrategyQA: A natural language task requiring multi-step reasoning to answer complex questions.
Key Results and Insights
MAP consistently outperformed competitive baselines, including Chain-of-Thought (CoT), Multi-Agent Debate (MAD), and Tree-of-Thought (ToT).
- Superior Planning Performance: On the 3-disk Tower of Hanoi, MAP solved 74% of problems, significantly higher than GPT-4 Zero-shot (11%) and ToT (6%).
- Out-of-Distribution (OOD) Generalization: On the more complex 4-disk ToH—which was not included in the prompt examples—MAP achieved a 24% success rate, while all other baselines effectively failed (0-5%).
- The Critical Role of Monitoring: Ablation studies revealed that the Monitor was the most essential component. Without it, the rate of invalid moves in ToH jumped from 0% to 31%, proving that explicit error-checking is vital for staying on track.
- Efficiency: By implementing prompt caching for redundant calls, we reduced the computational cost of MAP by over 60% without sacrificing performance.
Conclusion
The success of the MAP architecture validates the utility of neuro-mimicry in improving LLM planning. By mapping modules to specific brain regions—such as the Monitor to the Anterior Cingulate Cortex and the Predictor/Evaluator to the Orbitofrontal Cortex—we provide a powerful inductive bias for complex reasoning. Future work will focus on jointly fine-tuning smaller, open-source models to specialize in these modular roles, potentially lowering costs and enabling local deployment of sophisticated planning agents.
Summary updated