FitText: Evolving Agent Tool Ecologies via Memetic Retrieval

Kyle Zheng, Han Zhang, Renliang Sun, Chenchen Ye, Wei Wang
5/4/2026
cs.AIcs.IRcs.LG

No confident code implementation found for this paper.

Abstract

A semantic gap separates how users describe tasks from how tools are documented. As API ecosystems scale to tens of thousands of endpoints, static retrieval from the initial query alone cannot bridge this gap: the agent's understanding of what it needs evolves during execution, but its tool set does not. We introduce FitText, a training-free framework that makes retrieval dynamic by embedding it directly in the agent's reasoning loop. FitText generates natural-language pseudo-tool descriptions as retrieval probes, refines them iteratively using retrieval feedback, and explores diverse alternatives through stochastic generation. Memetic Retrieval adds evolutionary selection pressure over candidate descriptions, guided by a tool memory that avoids redundant search. On ToolRet (43k tools, 4 domains), FitText improves average retrieval rank from 8.81 to 2.78; on StableToolBench (16,464 APIs), it achieves a 0.73 average pass rate--a 24-point absolute gain over static query retrieval. The gains transfer across base models capable of acting as competent semantic operators; under weaker base models, Memetic's evolutionary search inverts--amplifying noise rather than refining signal--surfacing model capacity as a prerequisite for evolutionary tool exploration.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{zheng2026fittext,
  title  = {FitText: Evolving Agent Tool Ecologies via Memetic Retrieval},
  author = {Kyle Zheng and Han Zhang and Renliang Sun and Chenchen Ye and Wei Wang},
  year   = {2026},
  eprint = {2605.02411},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2605.02411v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2605.02411.svg)](https://codeofpaper.com/paper/2605.02411)

Discussion