Functional Cache Grafting: Robust and Rapid Code-Policy Synthesis for Embodied Agents
On the map: LLM agents and tool use → Multimodal and embodied agents
Abstract (arXiv)
Code-writing large language models (CodeLLMs) generate executable code policies for embodied agents by translating natural language goals and environmental constraints into structured control programs. However, policy generation in open-domain embodied environments suffers from two fundamental limitations: (i) delayed decoding caused by repetitive prefill computation over long prompts, and (ii) limited robustness due to fully generative decoding, which often produces API mismatches, missing safety guards, and unstable control logic. To address these limitations, we present FCGraft, a Functional Cache Grafting framework. FCGraft maintains a library of function-level validated code skeletons and their associated prompt-level Transformer key-value (KV) caches, and synthesizes new policies by retrieving relevant functions and grafting their KV caches when a new task is provided. Given retrieved function caches, FCGraft performs cache grafting via stitching, which composes cached function segments into a composite policy, and patching, which locally adapts only the necessary code regions to satisfy task-specific parameters and constraints with minimal additional decoding. By eliminating redundant prefill computation, this approach reduces generation latency, while reusing validated control structures improves robustness over prompt-level caching methods RAGCache, achieving 18.31% higher task success rate and 2.3x faster policy synthesis.
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Placed in Multimodal and embodied agents, one of 16 directions in LLM agents and tool use. Builds on 49 of its 61 references that are in the map. First posted on arXiv 11 Jun 2026.
Builds on
49 of 61 references.
Closest ancestors · 4
Same direction, newest first
- 2024HELPER-X: A Unified Instructable Embodied Agent to Tackle Four Interactive Vision-Language Domains with Memory-Augmented Language Models29 Apr
- 2023Open-Ended Instructable Embodied Agents with Memory-Augmented Large Language Models23 Oct
- 2022LLM-Planner: Few-Shot Grounded Planning for Embodied Agents with Large Language Models8 Dec
- 2022Language Models as Zero-Shot Planners: Extracting Actionable Knowledge for Embodied Agents18 Jan
Other references · 45
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,459
- 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,695
- 2021Evaluating Large Language Models Trained on Codecited by 8,320
- 2023Reflexion: Language Agents with Verbal Reinforcement Learningcited by 4,276
- 2022Do As I Can, Not As I Say: Grounding Language in Robotic Affordancescited by 2,348
- 2019HuggingFace's Transformers: State-of-the-art Natural Language Processingcited by 2,218
- 2023Code Llama: Open Foundation Models for Codecited by 2,139
- 2017Gradient Episodic Memory for Continual Learningcited by 1,898
- 2022Code as Policies: Language Model Programs for Embodied Controlcited by 1,210
- 2024Qwen2.5-Coder Technical Reportcited by 1,203
- 2024DeepSeek-Coder: When the Large Language Model Meets Programming -- The Rise of Code Intelligencecited by 1,181
- 2022Inner Monologue: Embodied Reasoning through Planning with Language Modelscited by 1,081
33 more
- 2025A-MEM: Agentic Memory for LLM Agentscited by 1,063
- 2022CodeGen: An Open Large Language Model for Code with Multi-Turn Program Synthesiscited by 885
- 2019ALFRED: A Benchmark for Interpreting Grounded Instructions for Everyday Taskscited by 783
- 2023VoxPoser: Composable 3D Value Maps for Robotic Manipulation with Language Modelscited by 750
- 2019RLBench: The Robot Learning Benchmark & Learning Environmentcited by 689
- 2023Language Agent Tree Search Unifies Reasoning Acting and Planning in Language Modelscited by 574
- 2018Data-Efficient Hierarchical Reinforcement Learningcited by 455
- 2024DeepSeek-Coder-V2: Breaking the Barrier of Closed-Source Models in Code Intelligencecited by 331
- 2023Prompt Cache: Modular Attention Reuse for Low-Latency Inferencecited by 268
- 2022Efficient Training of Language Models to Fill in the Middlecited by 255
- 2023Large Language Models as Commonsense Knowledge for Large-Scale Task Planningcited by 231
- 2024CacheBlend: Fast Large Language Model Serving for RAG with Cached Knowledge Fusioncited by 223
- 2015Contextual Markov Decision Processescited by 220
- 2021TEACh: Task-driven Embodied Agents that Chatcited by 197
- 2025OmniDrive: A Holistic Vision-Language Dataset for Autonomous Driving with Counterfactual Reasoningcited by 143
- 2023Structured Chain-of-Thought Prompting for Code Generationcited by 138
- 2024RAGCache: Efficient Knowledge Caching for Retrieval-Augmented Generationcited by 98
- 2024RAP: Retrieval-Augmented Planning with Contextual Memory for Multimodal LLM Agentscited by 80
- 2024TurboRAG: Accelerating Retrieval-Augmented Generation with Precomputed KV Caches for Chunked Textcited by 63
- 2024RoboCodeX: Multimodal Code Generation for Robotic Behavior Synthesiscited by 58
- 2024EPIC: Efficient Position-Independent Caching for Serving Large Language Modelscited by 47
- 2024Don't Do RAG: When Cache-Augmented Generation is All You Need for Knowledge Taskscited by 38
- 2024Lifelong Robot Library Learning: Bootstrapping Composable and Generalizable Skills for Embodied Control with Language Modelscited by 27
- 2025Optimus-2: Multimodal Minecraft Agent with Goal-Observation-Action Conditioned Policycited by 25
- 2022Residual Skill Policies: Learning an Adaptable Skill-based Action Space for Reinforcement Learning for Roboticscited by 24
- 2025NeSyC: A Neuro-symbolic Continual Learner For Complex Embodied Tasks In Open Domainscited by 15
- 2024Let the Code LLM Edit Itself When You Edit the Codecited by 10
- 2025Mell: Memory-Efficient Large Language Model Serving via Multi-GPU KV Cache Managementcited by 8
- 2025MPIC: Position-Independent Multimodal Context Caching System for Efficient MLLM Servingcited by 8
- 2024Is Functional Correctness Enough to Evaluate Code Language Models? Exploring Diversity of Generated Codescited by 5
- 2024MCCoder: Streamlining Motion Control with LLM-Assisted Code Generation and Rigorous Verificationcited by 5
- 2024Textualized Agent-Style Reasoning for Complex Tasks by Multiple Round LLM Generationcited by 3
- 2025EFIM: Efficient Serving of LLMs for Infilling Tasks with Improved KV Cache Reusecited by 1
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2026CaP-X: A Framework for Benchmarking and Improving Coding Agents for Robot Manipulation
- 2026TypeGo: An OS Runtime for Embodied Agents
- 2026AgenticCache: Cache-Driven Asynchronous Planning for Embodied AI Agents
- 2026CEDAR: Automata as Verifiable Interfaces for Language-Guided Embodied Action
- 2025HyCodePolicy: Hybrid Language Controllers for Multimodal Monitoring and Decision in Embodied Agents
- 2026Embodied Turing Machines: Stateful Code for Robot Recursive Self-Improvement
- 2025Runaway is Ashamed, But Helpful: On the Early-Exit Behavior of Large Language Model-based Agents in Embodied Environments
- 2026TurnCost: Turns, Not Observations: Cache-Aware Loop Engineering for Coding Agents