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, Shilong Liu, Mengdi Wang · Submission to ICLR 2026 · Desk rejected

TL;DR

ALITA-G is a self-evolution framework that turns general-purpose LLM agents into domain specialists by harvesting, abstracting, and curating reusable tools. By pairing task-driven Model Context Protocol (MCP) synthesis with retrieval-augmented generation (RAG) at inference time, it boosts reasoning accuracy while cutting token consumption by roughly 15%—achieving a new state of the art (83.03% pass@1) on the GAIA benchmark.

What Problem Does This Paper Address?

While large language model (LLM) agents can plan, use tools, and iterate with feedback, existing self-evolving agents remain heavily constrained:

  1. Narrow in scope: Most adaptation methods optimize for a single, isolated task rather than elevating an agent into an expert across a broad domain.
  2. Shallow in mechanism: Self-evolution typically boils down to prompt rewriting, failure-driven retries, or tuning narrow heuristic submodules, rather than end-to-end, task-conditioned architectural adaptation.

When real-world tasks require coordinated planning, complex data processing, and custom execution logic, ad-hoc prompt tweaks fall short. The authors aim to bridge this gap by enabling an agent to systematically convert its transient, successful problem-solving trajectories into modular, reusable programmatic tools.

Methods

ALITA-G introduces a pipeline that extracts, refines, and dynamically retrieves tools formatted under Anthropic’s Model Context Protocol (MCP):

[Target Tasks] 
       │
       ▼ (Multi-execution runs by Master Agent)
[Raw MCP Pool (Successful Trajectories)]
       │
       ▼ (LLM Abstraction: generalize params, FastMCP formatting)
[MCP Box (Curated Tool Repository)]
       │
       ▼ (RAG-based Selection: Query vs. Tool Descriptions & Use Cases)
[Specialized Agent (Task Analyzer + MCP Retriever + MCP Executor)]
  • Task-Driven MCP Generation: A generalist Master Agent runs target tasks multiple times ($K$ runs). When an execution succeeds, any custom programmatic sub-solutions generated along the trajectory are logged into a raw pool along with their functional descriptions and triggering use cases.
  • MCP Abstraction & Box Construction: Raw MCP code is often hardcoded to a specific instance. An abstraction LLM transforms these routines into modular, parameterized primitives compatible with the FastMCP specification, removing narrow task context and adding standardized type annotations and docstrings. These are consolidated into a persistent domain toolkit called the MCP Box.
  • RAG-Enhanced MCP Selection: At inference time, presenting all tools at once causes context bloat and distraction. ALITA-G embeds incoming user queries and matches them against each MCP's composite metadata (description ⊕ use_case) using an embedding model (text-embedding-3-large). It then applies threshold-based selection (default $\tau = 0.70$) or top-$k$ filtering to retrieve only task-relevant tools.
  • Specialized Agent Execution: A Manager Agent orchestrates a CodeAct loop, invoking selected MCPs via an MCP Executor to resolve the query end-to-end.

Datasets

The authors evaluate ALITA-G across three distinct domain-heavy benchmarks:

  • GAIA (General AI Assistant): Evaluated on the complete validation set (466 multimodal, complex reasoning and tool-use tasks across three difficulty levels).
  • PathVQA: A specialized medical visual question answering benchmark of pathology images (100 sampled examples evaluated due to compute constraints).
  • Humanity’s Last Exam (HLE): A challenging benchmark spanning multi-modal, cross-disciplinary academic reasoning (100 sampled examples evaluated).

No new public benchmarks were introduced; the focus was on validating out-of-the-box domain adaptation across multimodal reasoning, medicine, and generalist web assistance.

Key Insights and Ideas

  • Tool Synthesis as Memory & Specialization: Instead of keeping knowledge in long context prompts or fine-tuning weights, distilling procedural experience into executable MCPs provides a clean, modular way for agents to "remember" and reuse problem-solving strategies.
  • RAG Over Tool Definitions Prevents Prompt Bloat: Supplying an agent with a large catalog of tools degrades reasoning. Dynamic retrieval based on both what the tool does (description) and when it was previously useful (use case context) consistently outperforms description-only retrieval.
  • Diminishing Returns from Discovery Redundancy: Analyzing MCP generation across 1 to 5 iterations revealed that diversity plateaus around $k=3$ iterations. Beyond this point, new tools largely duplicate existing functionality (the ratio of unique tool clusters to total MCPs drops from 1.00 at $k=1$ to 0.51 at $k=5$).
  • Efficiency Gains via Targeted Capability: Counterintuitively, giving the agent access to dynamically retrieved specialized tools lowered overall inference token counts by ~15.5%. When the right tool is available immediately, the agent avoids meandering search and trial-and-error reasoning steps.

Key Results

  • GAIA Benchmark:
  • Pass@1: ALITA-G ($3\times$ iteration) reached 83.03% accuracy (Level 1: 86.80%, Level 2: 83.72%, Level 3: 73.08%), outperforming the original master agent baseline (75.15%) and open baselines like ODR-smolagents (55.15%).
  • Pass@3: Reached 89.09%, setting a new state-of-the-art result.
  • Token Efficiency: Reduced average token usage on GAIA from 12,305 tokens (baseline) to 10,394 tokens per task.
  • Specialized Benchmarks:
  • PathVQA: Pass@1 accuracy increased from 52% (original baseline) to 60% (ALITA-G $3\times$).
  • HLE: Pass@1 accuracy increased from 24% to 33% (ALITA-G $3\times$).
  • Tool Filtering Strategy: Threshold-based filtering ($\tau = 0.70$) achieved 84.0% accuracy on a GAIA test subset, beating fixed top-$k$ strategies (which peaked at 80.0% for $k=2, 3$).

Limitations and Future Work

  • Sampling-Based Evaluation: Due to computational resource limits, evaluations on PathVQA and Humanity’s Last Exam were conducted on 100-sample subsets rather than the full datasets.
  • Scope of Evolution: The evolutionary loop currently targets external tool generation, standardization, and retrieval; other agentic dimensions (such as prompt decomposition strategies, agent network topologies, or model weight updates) are not co-evolved.
  • LLM Robustness Failures: Rare regression cases (where the baseline was correct but the tool-equipped agent erred) were tracked back to intrinsic LLM reasoning hallucinations during execution rather than faulty tool invocations.
  • Future Directions: Expanding the self-evolution loop into multi-agent collaborative generation and exploring richer, cross-agent capability transfers beyond single-agent toolkits.

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 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