mlsanityData to 7 Oct 2026

ReCode: Unify Plan and Action for Universal Granularity Control

arXiv 2510.23564 ↗First posted 27 Oct 2025cs.AI cs.CL cs.LGcited by 14

Not on the map. Why?

Abstract (arXiv)

Real-world tasks require decisions at varying granularities, and humans excel at this by leveraging a unified cognitive representation where planning is fundamentally understood as a high-level form of action. However, current Large Language Model (LLM)-based agents lack this crucial capability to operate fluidly across decision granularities. This limitation stems from existing paradigms that enforce a rigid separation between high-level planning and low-level action, which impairs dynamic adaptability and limits generalization. We propose ReCode (Recursive Code Generation), a novel paradigm that addresses this limitation by unifying planning and action within a single code representation. In this representation, ReCode treats high-level plans as abstract placeholder functions, which the agent then recursively decomposes into finer-grained sub-functions until reaching primitive actions. This recursive approach dissolves the rigid boundary between plan and action, enabling the agent to dynamically control its decision granularity. Furthermore, the recursive structure inherently generates rich, multi-granularity training data, enabling models to learn hierarchical decision-making processes. Extensive experiments show ReCode significantly surpasses advanced baselines in inference performance and demonstrates exceptional data efficiency in training, validating our core insight that unifying planning and action through recursive code generation is a powerful and effective approach to achieving universal granularity control. The code is available at https://github.com/FoundationAgents/ReCode.

Key facts. Cited by 14 papers in the map (data through 7 Oct 2026). Builds on 44 of its 50 references that are in the map. First posted on arXiv 27 Oct 2025.

Builds on

44 of 50 references.

References · 44

  1. 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,355
  2. 2023Direct Preference Optimization: Your Language Model is Secretly a Reward Modelcited by 7,916
  3. 2024Qwen2.5 Technical Reportcited by 4,713
  4. 2024GPT-4o System Cardcited by 4,467
  5. 2021Finetuned Language Models Are Zero-Shot Learnerscited by 3,747
  6. 2025Gemini 2.5: Pushing the Frontier with Advanced Reasoning, Multimodality, Long Context, and Next Generation Agentic Capabilitiescited by 3,655
  7. 2022Do As I Can, Not As I Say: Grounding Language in Robotic Affordancescited by 2,302
  8. 2024HybridFlow: A Flexible and Efficient RLHF Frameworkcited by 1,980
  9. 2023AutoGen: Enabling Next-Gen LLM Applications via Multi-Agent Conversationcited by 1,906
  10. 2023Improving Factuality and Reasoning in Language Models through Multiagent Debatecited by 1,739
  11. 2022WebShop: Towards Scalable Real-World Web Interaction with Grounded Language Agentscited by 1,197
  12. 2022Code as Policies: Language Model Programs for Embodied Controlcited by 1,172
32 more
  1. 2020ALFWorld: Aligning Text and Embodied Environments for Interactive Learningcited by 1,143
  2. 2022Inner Monologue: Embodied Reasoning through Planning with Language Modelscited by 1,057
  3. 2022STaR: Bootstrapping Reasoning With Reasoningcited by 895
  4. 2019ALFRED: A Benchmark for Interpreting Grounded Instructions for Everyday Taskscited by 773
  5. 2023RLAIF vs. RLHF: Scaling Reinforcement Learning from Human Feedback with AI Feedbackcited by 615
  6. 2023Plan-and-Solve Prompting: Improving Zero-Shot Chain-of-Thought Reasoning by Large Language Modelscited by 550
  7. 2024Executable Code Actions Elicit Better LLM Agentscited by 537
  8. 2024AFlow: Automating Agentic Workflow Generationcited by 395
  9. 2022ScienceWorld: Is your Agent Smarter than a 5th Grader?cited by 298
  10. 2023Auto-GPT for Online Decision Making: Benchmarks and Additional Opinionscited by 250
  11. 2023InterCode: Standardizing and Benchmarking Interactive Coding with Execution Feedbackcited by 229
  12. 2024ManiSkill3: GPU Parallelized Robotics Simulation and Rendering for Generalizable Embodied AIcited by 216
  13. 2024Trial and Error: Exploration-Based Trajectory Optimization for LLM Agentscited by 194
  14. 2023ART: Automatic multi-step reasoning and tool-use for large language modelscited by 193
  15. 2023AdaPlanner: Adaptive Planning from Feedback with Language Modelscited by 193
  16. 2023ADaPT: As-Needed Decomposition and Planning with Language Modelscited by 172
  17. 2025OWL: Optimized Workforce Learning for General Multi-Agent Assistance in Real-World Task Automationcited by 129
  18. 2025Advances and Challenges in Foundation Agents: From Brain-Inspired Intelligence to Evolutionary, Collaborative, and Safe Systemscited by 125
  19. 2024RAP: Retrieval-Augmented Planning with Contextual Memory for Multimodal LLM Agentscited by 80
  20. 2023Corex: Pushing the Boundaries of Complex Reasoning through Multi-Model Collaborationcited by 70
  21. 2024Agent Planning with World Knowledge Modelcited by 66
  22. 2023PEARL: Prompting Large Language Models to Plan and Execute Actions Over Long Documentscited by 61
  23. 2024RoboCodeX: Multimodal Code Generation for Robotic Behavior Synthesiscited by 55
  24. 2024Learning From Failure: Integrating Negative Examples when Fine-tuning Large Language Models as Agentscited by 49
  25. 2023Demo2Code: From Summarizing Demonstrations to Synthesizing Code via Extended Chain-of-Thoughtcited by 39
  26. 2025MPO: Boosting LLM Agents with Meta Plan Optimizationcited by 36
  27. 2024THREAD: Thinking Deeper with Recursive Spawningcited by 24
  28. 2024ReAct Meets ActRe: When Language Agents Enjoy Training Data Autonomycited by 22
  29. 2025SAND: Boosting LLM Agents with Self-Taught Action Deliberationcited by 14
  30. 2025Towards Reliable Code-as-Policies: A Neuro-Symbolic Framework for Embodied Task Planningcited by 10
  31. 2025PGPO: Enhancing Agent Reasoning via Pseudocode-style Planning Guided Preference Optimizationcited by 8
  32. 2024Interactive and Expressive Code-Augmented Planning with Large Language Modelscited by 6

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2025: 2; 2026: 12.

14 papers.

Sort:

By area: