Alita-G: Self-Evolving Generative Agent for Agent Generation

Jiahao Qiu, Xuan Qi, Hongru Wang, Xinzhe Juan, Yimin Wang, Zelin Zhao, Jiayi Geng, Jiacheng Guo, Peihang Li, Jingzhe Shi, Shilong Liu, Mengdi Wang

TL;DR

ALITA-G is a novel self-evolution framework that upgrades general-purpose LLM agents into domain experts by automatically generating, abstracting, and curating reusable tools via the Model Context Protocol (MCP). By pairing autonomous tool creation with retrieval-augmented generation (RAG), it achieves state-of-the-art accuracy on complex reasoning benchmarks like GAIA while simultaneously slashing computational token costs by 15%.

What Problem Does This Paper Address?

While large language models (LLMs) excel at general tasks, they frequently stumble when faced with complex, domain-specific problems that require multi-step reasoning and specialized tools. Existing "self-evolving" agent frameworks attempt to fix this, but their evolution is typically shallow—restricted to rewriting prompts or retrying tasks after a failure. They lack the ability to systematically build up a reusable toolkit of functional capabilities across an entire domain.

ALITA-G addresses this gap by enabling an agent to end-to-end adapt and expand its functional capabilities, transforming a generalist agent into a specialized domain expert without requiring manual human engineering.

Methods

The ALITA-G framework operates in two main phases: an offline evolution phase and an online inference phase.

  1. Task-Driven MCP Generation: A "Master Agent" tackles a suite of target-domain tasks multiple times ($K$ times). From successful trajectories, it distills raw Model Context Protocol (MCP) tools consisting of executable code and metadata (descriptions and use cases).
  2. MCP Abstraction & Box Construction: To ensure these tools are broadly applicable rather than hard-coded to a single task, a high-capacity LLM abstracts them. It generalizes parameters, removes task-specific context, standardizes the interface to FastMCP, and enhances documentation to form a curated "MCP Box."
  3. RAG-Enhanced MCP Selection & Execution: At inference time, when given a new query, the system uses semantic embeddings to match the query against the descriptions and use cases in the MCP Box. It filters the best tools (using threshold or top-$k$ selection) so the specialized agent can execute them via a CodeAct loop without overwhelming its context window.
Figure 1: Overall workflow of ALITA-G. The process begins with task-driven MCP generation, where a Master Agent repeatedly executes target tasks and distills a pool of raw MCPs from successful trajectories. These MCPs are then abstracted and refined through parameter generalization, context removal, interface standardization, and documentation enhancement to form a reusable MCP Box. At inference time, the MCP Box supports RAG-enhanced tool selection: user queries are matched against MCP descriptions, and threshold/top-k filtering yields a contextually relevant set of MCPs. Finally, a specialized agent—comprising a Manager Agent with a Task Analyzer, MCP Retriever, and MCP Executor—runs a CodeAct loop to retrieve and invoke the selected MCPs, thereby transforming a general-purpose agent into a domain specialist for end-to-end task solving.

Datasets

The authors evaluated ALITA-G on three diverse, highly challenging benchmarks:

  • GAIA (General AI Assistant): 466 real-world, multimodal questions requiring web browsing, tool usage, and complex reasoning. The full validation set was used.
  • PathVQA: A medical visual question answering dataset focused on pathology images, requiring deep domain knowledge (100 representative examples sampled).
  • HLE (Humanity's Last Exam): A hard academic benchmark designed to test complex, multi-modal reasoning and advanced problem-solving (100 examples sampled).

Key Insights and Ideas

  • The Efficiency-Accuracy Paradox Solved: Usually, giving agents more capabilities means stuffing more tools into the prompt, leading to "prompt bloat" and higher token costs. ALITA-G solves this by using RAG to dynamically fetch only the relevant tools, improving accuracy while reducing token usage.
  • Stochasticity is a Feature: Running the master agent multiple times ($K=3$) over the same training tasks surfaces vastly different and complementary tools due to LLM stochasticity, enriching the tool pool's coverage.
  • Diminishing Returns in Tool Scaling: Iterating past 3 generations leads to a performance plateau. The authors' similarity analysis showed that later iterations mostly generate near-duplicates or narrow variants rather than novel functional clusters.
  • Context Matters for Retrieval: When retrieving tools via RAG, embedding a concatenation of both the tool's functional description and its original use case yields significantly better results than using either alone.
Ablation study showing that RAG using both Description and Use Case achieves the highest average accuracy.

Key Results

  • State-of-the-Art on GAIA: ALITA-G ($3\times$ execution variant) achieved a new SOTA on the GAIA validation set with 83.03% pass@1 and 89.09% pass@3, a massive leap over the baseline agent (75.15% pass@1) and ODR-smolagents (55.15%).
  • Substantial Efficiency Gains: Despite the higher accuracy, ALITA-G reduced the average token consumption per task on GAIA by roughly 15% (dropping from 12,305 to 10,394 tokens) compared to the original baseline agent.
  • Consistent Domain Generalization: On PathVQA, accuracy jumped from 52% to 60%; on HLE, it improved from 24% to 33%, proving that the framework successfully generalizes across entirely different fields.
Performance comparison across GAIA, PathVQA, and HLE benchmarks showing ALITA-G outperforming baselines in both accuracy and token efficiency.

Limitations and Future Work

  • Inherent LLM Robustness: Even when the correct tool is successfully retrieved and provided, the agent can still make downstream reasoning errors during execution due to base LLM limitations.
  • Future Directions: The authors suggest expanding the self-evolution mechanisms to allow collaborative enhancement across multiple agent dimensions beyond just tool generation and curation.

Summary updated

BibTeX
@misc{qiu2025alita,
  author = {Jiahao Qiu and Xuan Qi and Hongru Wang and Xinzhe Juan and Yimin Wang and Zelin Zhao and Jiayi Geng and Jiacheng Guo and Peihang Li and Jingzhe Shi and Shilong Liu and Mengdi Wang},
  title = {{Alita-G: Self-Evolving Generative Agent for Agent Generation}},
  year = {2025},
  eprint = {2510.23601},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2510.23601},
}
Figure