GATE: Graph-based Adaptive Tool Evolution Across Diverse Tasks

Jianwen Luo, Yiming Huang, Jinxiang Meng, Fangyu Lei, Shizhu He, Xiao Liu, Shanshan Jiang, Bin Dong, Jun Zhao, Kang Liu

TL;DR

GATE (Graph-based Adaptive Tool Evolution) is a novel framework that enables Large Language Models (LLMs) to autonomously build, organize, and refine a hierarchical library of reusable tools. By representing tools as nodes in a dynamic graph rather than a flat list, GATE achieves up to a 4.3x speedup in complex tasks like Minecraft tech-tree mastery and significantly outperforms existing tool-making agents across math and data analysis benchmarks.

What Problem Does This Paper Address?

While LLMs are excellent at generating code to solve specific problems, they often treat every task as an isolated event. Existing "tool-making" frameworks—where an agent writes a script to be reused later—suffer from two major flaws: redundancy and limited generalization.

Most current systems create "bloated" libraries where dozens of nearly identical scripts perform slightly different versions of the same task, making it difficult for the LLM to find the right tool later. Furthermore, these systems are usually "brittle," designed for a single environment (like Minecraft) but failing when moved to a different domain (like symbolic math). The authors of GATE set out to create a system that doesn't just make tools, but evolves a structured, efficient, and cross-domain toolset.

Methods

GATE introduces a collaborative two-agent architecture centered around an Adaptive Tool Graph:

  1. The Task Solver: This agent analyzes the current environment and goal, iteratively extracting specific tool requirements.
  2. The Tool Manager: This agent is the "librarian." It retrieves existing tools, assembles new ones from existing components, and refines the library through Pruning (removing unused tools) and Merging (combining structurally similar tools using the Smith-Waterman algorithm).
  3. GraphRank Retrieval: Instead of just searching for tools by name, GATE uses a modified PageRank algorithm. It combines semantic similarity (how well a tool's description matches the request) with graph structure (how often a tool is invoked by other successful tools) to find the most reliable and relevant code.
  4. Hierarchical Evolution: Tools are organized into layers. Basic tools (like "move" or "add") form the foundation, while "composed tools" (like "craft diamond pickaxe") sit at higher levels, explicitly calling the lower-level functions.

Datasets

The researchers evaluated GATE across three distinct categories of challenges:

  • Open-Ended Exploration: Minecraft (using the MineDojo environment), focusing on tech-tree progression from wood to diamond.
  • Agent-Based Tasks: TextCraft (a text-based crafting game) and DABench (a data analysis benchmark requiring complex Python operations).
  • Code Generation: MATH (algebra subsets), Date (date understanding from BigBenchHard), and TabMWP (tabular math word problems).

Key Insights and Ideas

  • Tools as a "Tech Tree": The most powerful insight is that tools shouldn't be a flat list. By modeling them as a graph, the system mimics human technological evolution—complex tools are built on the shoulders of simpler, verified ones.
  • Structural vs. Semantic Search: Finding a tool isn't just about keywords. By using GraphRank, the system recognizes that a tool's "importance" is defined by its utility to other tools, not just its documentation.
  • The Power of Pruning: A smaller, high-quality library is better than a massive, messy one. GATE’s ability to delete low-utility tools and merge redundant ones prevents the "context window bloat" that slows down other LLM agents.
  • Zero-Shot Generalization: Because GATE builds a hierarchical library, it can tackle "unseen" tasks in a new environment much faster than agents that have to learn everything from scratch.

Key Results

  • Minecraft Efficiency: GATE reached the "Diamond Tool" milestone 4.3x faster than Voyager (the previous state-of-the-art). It completed the task in roughly 29 iterations, whereas Voyager took 126.
  • Superior Accuracy: In closed-ended code generation tasks, GATE provided an average improvement of 9.23% over existing tool-making methods. In agent-based tasks (TextCraft/DABench), it saw a 10.03% boost.
  • Self-Improvement: When using GPT-4o as the backbone, GATE facilitated a 5% overall performance gain simply by allowing the model to "teach itself" better tools during the training phase.
  • Ablation Success: Removing the "Self-Check" module (which verifies code is bug-free) led to a massive 16.3% drop in accuracy on date-related tasks, proving that rigorous validation is as important as creative generation.

Limitations and Future Work

The authors acknowledge that while GATE excels at maintaining tool relationships, its ability to construct entire complex code projects from scratch (rather than individual functions) hasn't been fully validated.

Currently, the framework is optimized for text and code-based environments. The authors suggest that future research should explore applying GATE to multimodal tasks, such as GUI agents that need to navigate visual interfaces, to see if the graph-based tool evolution logic holds up in non-coding domains.

Summary updated

BibTeX
@inproceedings{luo2026gate,
  author = {Jianwen Luo and Yiming Huang and Jinxiang Meng and Fangyu Lei and Shizhu He and Xiao Liu and Shanshan Jiang and Bin Dong and Jun Zhao and Kang Liu},
  title = {{GATE: Graph-based Adaptive Tool Evolution Across Diverse Tasks}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2026},
  doi = {10.18653/v1/2026.acl-long.87},
}
Figure