TL;DR
STACKPLANNER is a novel hierarchical multi-agent framework that transforms memory from a passive log into an actively managed, learnable asset. By equipping a central coordinator with explicit task-level memory control (via a LIFO stack) and cross-task experience retrieval, and optimizing it using reinforcement learning, the system significantly mitigates context bloat and error propagation in long-horizon tasks.
What Problem Does This Paper Address?
Large Language Model-based multi-agent systems (LLM-MAS) excel at breaking down complex tasks. However, centralized architectures frequently stumble during long-horizon, information-intensive operations.
The core issue is passive memory accumulation. Traditional systems indiscriminately append every sub-agent response and tool output to the central agent's context window. This leads to:
- Context Bloat: The context window fills up with redundant or noisy information, degrading LLM reasoning performance (the "lost in the middle" phenomenon).
- Error Accumulation: Early mistakes in sub-tasks propagate unchecked, causing the central planner to deviate from the goal.
- Cold-Start Inefficiency: The system treats every new task as entirely novel, failing to reuse high-level coordination strategies learned from past experiences.
Methods
STACKPLANNER introduces a hierarchical multi-agent design that decouples high-level coordination from subtask execution through two primary memory mechanisms:
- Active Task Memory Management (Short-Term Stack): The central coordinator operates a Last-In-First-Out (LIFO) task memory stack ($M$). Instead of passively logging everything, the coordinator can execute explicit
REVISEactions: - Condensation (
SUMMARIZE): Compresses a contiguous segment of verbose history into a clean summary. - Pruning (
REFLECT): Removes erroneous or unproductive exploration paths from the stack while keeping a concise record of the failure cause. - Structured Experience Memory (Long-Term Bank): To enable cross-task generalization, the system maintains a persistent repository consisting of user profiles (stable preferences), semantic memory (factual knowledge), and procedural memory (Standard Operating Procedures, or SOPs, abstracted from past successes).
- Reinforcement Learning Formulation: The authors model the entire planning, delegation, and memory revision process as a learnable decision space. They optimize the coordinator policy using Group Relative Policy Optimization (GRPO), utilizing token-level rewards tied directly to final answer correctness and process-level memory efficiency.
Datasets
The framework was evaluated across a diverse suite of benchmarks:
- Multi-Hop QA: 2WikiMultiHopQA and MuSiQue.
- Agentic Benchmarks: GAIA (complex multi-step reasoning) and FRAMES (multi-source retrieval).
- Open-Ended Deep Research: DeepResearch Bench (100 expert-level report generation tasks) along with a custom-built Multi-Turn Refinement Extension to test human-in-the-loop interaction.
- Interactive Environments: ALFWorld (embodied text-based tasks) and WebShop (e-commerce web interaction).
- Code Tasks: SWE-bench-verified.
Key Insights and Ideas
- Memory as an Action Space: The defining insight is that memory management shouldn't be a hardcoded heuristic (like truncation or periodic summarization). Instead, deciding what to remember, what to compress, and what to forget should be an explicit choice made by the model, trained via reinforcement learning alongside standard planning actions.
- Cognitive Decoupling: By strictly separating the coordinator's memory from the raw, messy execution details of specialized sub-agents (Search, Report, and Human agents), the central planner maintains a clean, high-level strategic overview.
- Unified Human-Agent Interaction: Human feedback is treated elegantly as a privileged, high-priority memory update pushed directly onto the task stack, allowing the model to seamlessly handle multi-turn revisions without rewriting reports from scratch.
Key Results
STACKPLANNER achieved state-of-the-art results across multiple challenging setups:
- Multi-Hop & Agentic QA: On the highly demanding GAIA benchmark, STACKPLANNER achieved an F1 score of 7.71% (Qwen2.5-3B) and 9.45% (Qwen2.5-7B), whereas baseline multi-agent systems like MacNet failed to produce results due to a lack of memory control.
- Deep Research Report Generation: Evaluated on the DeepResearch Bench using Qwen3-32B and DeepSeek-V3.2 backbones, STACKPLANNER outperformed specialized baselines like STORM and WebWeaver, achieving the highest overall report quality (RACE score of 47.47 with DeepSeek-V3.2).
- System Efficiency: System-level analysis revealed that STACKPLANNER drastically reduced average token consumption (from 1597.09 down to 880.89) and response latency (from 30.49s down to 10.15s) compared to a standard ReAct baseline.
Limitations and Future Work
The authors note two primary limitations:
- Limited Human-in-the-Loop Complexity: While the framework successfully handles short follow-up refinement scenarios, its performance under long, ambiguous interaction chains or shifting user goals remains underexplored.
- Cold-Start Challenges: If the experience memory lacks sufficient prior trajectories (e.g., in entirely novel domains), the long-term retrieval benefits diminish significantly during early deployment stages.
Future directions include exploring latent representations for inter-agent communication to further reduce overhead, and designing more expressive yet compact task memory structures.
Summary updated