CoCoDA: Co-evolving Compositional DAG for Tool-Augmented Agents
Ziyang Yu, Qiyue Li, Liang Zhao

TL;DR
CoCoDA introduces a co-evolving, compositional DAG framework for tool-augmented language models, enabling efficient retrieval, structured tool management, and improved reasoning performance.
Contribution
It presents a novel code-native DAG structure for joint evolution of planner and tool library, reducing retrieval costs and enhancing compositional reasoning.
Findings
Achieves performance comparable to larger models on GSM8K and MATH benchmarks.
Reduces retrieval cost and time through symbolic signature unification.
Improves over existing tool-use baselines in various reasoning tasks.
Abstract
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…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
