mlsanityData to 14 Oct 2026

CoCoDA: Co-evolving Compositional DAG for Tool-Augmented Agents

arXiv 2605.08399 ↗First posted 8 May 2026cs.AIcited by 0

On the map: LLM agents and tool use → Tool learning and function calling

Abstract (arXiv)

Tool-augmented language models can extend small language models with external executable skills, but scaling the tool library creates a coupled challenge: the library must evolve with the planner as new reusable subroutines emerge, while retrieval from the growing library must remain within a fixed context budget. Existing tool-use and skill-library methods typically treat tools as flat or text-indexed memories, causing prompt cost to grow with library size and obscuring the typed, compositional structure of executable code. We propose CoCoDA, a framework that co-evolves the planner and tool library through a single code-native structure: a compositional code DAG. Nodes are primitive or composite tools, edges encode invocation dependencies, and each node stores a typed signature, description, pre/post-condition specification, and worked examples. At inference time, Typed DAG Retrieval prunes candidates by symbolic signature unification, ranks survivors by descriptions, filters them by behavioral specifications, and disambiguates with examples, keeping expensive context materialization on progressively smaller candidate sets. At training time, successful trajectories are folded into validated composite tools, while the planner is updated with a DAG-induced reward that credits composites by their primitive expansion size. We provide theoretical results showing retrieval cost reduction, sublinear retrieval time, compositional advantage under the shaped reward, monotone co-evolution under conservative updates, and DAG well-formedness. Across mathematical reasoning, tabular analysis, and code task benchmarks, CoCoDA enables an 8B student to match or exceed a 32B teacher on GSM8K and MATH and consistently improves over strong tool-use and library-learning baselines.

Key facts. No citing papers in the map yet (data through 14 Oct 2026). Placed in Tool learning and function calling, one of 16 directions in LLM agents and tool use. Builds on 35 of its 40 references that are in the map. First posted on arXiv 8 May 2026.

Builds on

35 of 40 references.

Closest ancestors · 6

Same direction, newest first

  1. 2024AnyTool: Self-Reflective, Hierarchical Agents for Large-Scale API Calls6 Feb
  2. 2023ToolLLM: Facilitating Large Language Models to Master 16000+ Real-world APIs31 Jul
  3. 2023ToolAlpaca: Generalized Tool Learning for Language Models with 3000 Simulated Cases8 Jun
  4. 2023Large Language Models as Tool Makers26 May
  5. 2023Gorilla: Large Language Model Connected with Massive APIs24 May
  6. 2023Toolformer: Language Models Can Teach Themselves to Use Tools9 Feb

Other references · 29

  1. 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,459
  2. 2021Training Verifiers to Solve Math Word Problemscited by 10,109
  3. 2024DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Modelscited by 9,379
  4. 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,695
  5. 2021Measuring Mathematical Problem Solving With the MATH Datasetcited by 5,371
  6. 2023Reflexion: Language Agents with Verbal Reinforcement Learningcited by 4,276
  7. 2021Program Synthesis with Large Language Modelscited by 3,637
  8. 2023Generative Agents: Interactive Simulacra of Human Behaviorcited by 3,568
  9. 2023Self-Refine: Iterative Refinement with Self-Feedbackcited by 3,442
  10. 2023Voyager: An Open-Ended Embodied Agent with Large Language Modelscited by 2,191
  11. 2023Is Your Code Generated by ChatGPT Really Correct? Rigorous Evaluation of Large Language Models for Code Generationcited by 1,391
  12. 2023MemGPT: Towards LLMs as Operating Systemscited by 1,389
17 more
  1. 2021FinQA: A Dataset of Numerical Reasoning over Financial Datacited by 562
  2. 2024RAPTOR: Recursive Abstractive Processing for Tree-Organized Retrievalcited by 532
  3. 2015Compositional Semantic Parsing on Semi-Structured Tablescited by 515
  4. 2025ReTool: Reinforcement Learning for Strategic Tool Use in LLMscited by 392
  5. 2025ToolRL: Reward is All Tool Learning Needscited by 362
  6. 2023CodeT5+: Open Code Large Language Models for Code Understanding and Generationcited by 333
  7. 2023Ghost in the Minecraft: Generally Capable Agents for Open-World Environments via Large Language Models with Text-based Knowledge and Memorycited by 289
  8. 2025ToRL: Scaling Tool-Integrated RLcited by 169
  9. 2023CRAFT: Customizing LLMs by Creating and Retrieving from Specialized Toolsetscited by 129
  10. 2023RLTF: Reinforcement Learning from Unit Test Feedbackcited by 114
  11. 2025Agentic Reasoning and Tool Integration for LLMs via Reinforcement Learningcited by 110
  12. 2023CREATOR: Tool Creation for Disentangling Abstract and Concrete Reasoning of Large Language Modelscited by 93
  13. 2024CodeRAG-Bench: Can Retrieval Augment Code Generation?cited by 91
  14. 2024TroVE: Inducing Verifiable and Efficient Toolboxes for Solving Programmatic Taskscited by 75
  15. 2022Top-Down Synthesis for Library Learningcited by 58
  16. 2023Experiential Co-Learning of Software-Developing Agentscited by 57
  17. 2024ReGAL: Refactoring Programs to Discover Generalizable Abstractionscited by 36

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2026ToolAtlas: Learning Once, Reusing Everywhere with Tool-Side Memory
  2. 2026Evoflux: Inference-Time Evolution of Executable Tool Workflows for Compact Agents
  3. 2026Looped Language Models Improve Compositional Tool Calling
  4. 2026JTPRO: A Joint Tool-Prompt Reflective Optimization Framework for Language Agents
  5. 2025Unifying Dynamic Tool Creation and Cross-Task Experience Sharing through Cognitive Memory Architecture
  6. 2025Generalizable End-to-End Tool-Use RL with Synthetic CodeGym
  7. 2025Adaptive Tool Generation with Models as Tools and Reinforcement Learning
  8. 2026From Cognitive Architectures to Language Agents: A Mechanism-Level Review of Lineage, Convergence, and Migration Gaps