AgentSpec: Understanding Embodied Agent Scaffolds Through Controlled Composition

Jixuan Chen, Jianzhi Shen, Haoqiang Kang, Zhi Hong, Qingyi Jiang, Soham Bose, Yiming Zhang, Leon Leng, Amit Vyas, Lingjun Mao, Siru Ouyang, Kun Zhou, Lianhui QinarXiv 2026

TL;DR

LLM agents are typically built as monolithic, tightly coupled pipelines, making it nearly impossible to isolate why they succeed or fail. This paper introduces AgentSpec, a modular framework that standardizes interfaces across perception, memory, reasoning, reflection, and action. Through extensive benchmarking, the authors demonstrate that an agent's success is driven by module compatibility and scaffold interactions rather than just raw model scale.

What Problem Does This Paper Address?

Modern Large Language Model (LLM) agents are rarely just single model calls; they are complex systems wrapped in "scaffolds" that handle state tracking, memory retrieval, multi-step reasoning, and self-correction.

However, current agent architectures are tightly coupled pipelines. If an agent performs well, it is difficult to attribute that success to a specific reasoning strategy, a particular memory format, or the underlying LLM backbone. This lack of standardization prevents researchers from systematically comparing alternative designs, isolating component-level contributions, or understanding how different modules interact. The field lacks principled answers to basic design questions: When is memory actually useful? Which reasoning strategies work best in which environments? How do reinforcement learning and inference-time scaffolds interact?

Methods

The authors propose AgentSpec, a Gym-compatible modular specification framework that treats an agent as an explicit, typed composition of reusable policy components. It enforces strict interface control via a standardized Perception–Memory–Reasoning–Reflection–Action loop:

  1. Perception ($U_t$): Converts raw multimodal observations into structured, JSON-like states.
  2. Memory ($M_t$): Stores and retrieves episodic (trajectories, logs) and semantic (maps, rules) knowledge.
  3. Reasoning ($R_t$): Proposes an initial action proposal and rationale (supporting ReAct, Chain-of-Thought, Plan-and-Solve, and Multi-Agent Debate).
  4. Reflection ($F_t$): Critiques and refines the proposal before execution (supporting Self-Refine and Reflexion).
  5. Action ($A_t$): Executes the finalized plan in the environment.

Crucially, AgentSpec also integrates an optional Learning/Policy Update module (supporting algorithms like GRPO and SUPO) to study how reinforcement learning interacts with these inference-time scaffolds.

AgentSpec Modular Framework Overview

Datasets

The framework is evaluated across four diverse embodied agent benchmarks that test different aspects of closed-loop decision-making:

  • DeliveryBench: A city-scale courier simulation testing long-horizon planning under strict resource, battery, and deadline constraints.
  • ALFRED: A 3D household instruction-following dataset requiring complex object manipulation and persistent task-state tracking.
  • MiniGrid: A 2D gridworld benchmark isolating symbolic navigation and reasoning under partial observability.
  • RoboTHOR: A photorealistic 3D indoor environment testing first-person object navigation.

Key Insights and Ideas

  • Scaffolding Narrows the Backbone Gap: Well-matched modular configurations allow smaller or open-source models to approach or even match the performance of much larger closed-source models. External scaffolding can compensate for weaker native long-horizon reasoning.
  • Memory Requires Structure and Alignment: Simply throwing a long context window or raw history at an agent can cause "context pollution." For instance, planning-oriented reasoners (like Plan-and-Solve) benefit significantly more from abstract, summarized narrative memory than from raw trajectory logs.
  • The Best Composition is Environment-Dependent: Shorter, symbolic tasks (like MiniGrid) rely heavily on per-step reasoning, whereas long-horizon embodied tasks (like ALFRED and DeliveryBench) are bottlenecked by state tracking and trajectory coherence.
  • RL and Scaffolds Must Be Jointly Optimized: Applying standard reinforcement learning (like GRPO) to a "bare" LLM improves local action selection but can cause a distribution shift mismatch when structured memory scaffolds are attached post-hoc at deployment time. Summary-based RL methods (like SUPO) align better with inference-time memory scaffolds.

Key Results

  • On DeliveryBench, replacing a basic episodic memory with a structured MemoryBank increased the performance of the ReAct reasoning strategy from an hourly profit of 8.54 to 30.67 using GPT-5 mini.
  • Reflection modules like Self-Refine yielded massive gains for weaker reasoning-memory pairs by catching and repairing local execution errors before they compounded over long horizons.
  • In reinforcement learning experiments, combining the summary-based training of SUPO with a DynamicCheatsheet memory scaffold achieved the highest overall performance, outperforming standard GRPO configurations which suffered when post-hoc memory modules were attached.

Limitations and Future Work

While AgentSpec provides a powerful diagnostic tool, the authors note several limitations:

  • The study focuses primarily on embodied and decision-making tasks, meaning the findings might not directly transfer to other domains like web navigation, software engineering, or open-ended human-AI interaction.
  • The modules evaluated represent standard implementations rather than exhaustively optimized variants; prompt design, retrieval policies, and context budgets could alter specific results.
  • Due to high computational costs, repeated trials and massive scale-ups across all model-module-environment combinations were constrained.
  • Future Direction: Future work should focus on jointly optimizing base policies alongside their modular scaffolds during training, rather than treating scaffolds purely as inference-time add-ons.

Summary updated

BibTeX
@misc{chen2026agentspec,
  author = {Jixuan Chen and Jianzhi Shen and Haoqiang Kang and Zhi Hong and Qingyi Jiang and Soham Bose and Yiming Zhang and Leon Leng and Amit Vyas and Lingjun Mao and Siru Ouyang and Kun Zhou and Lianhui Qin},
  title = {{AgentSpec: Understanding Embodied Agent Scaffolds Through Controlled Composition}},
  year = {2026},
  eprint = {2606.14674},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2606.14674},
}
Figure