LLM Agents Factory: Retrieval of Domain-Specific LLM Agents

Vitalii Belov, Artyom Sosedka, Andrey Sakhovskiy, Elizaveta Kovtun, Artyom Boyarskikh +1 more
5/20/2026
cs.CLcs.AI

No confident code implementation found for this paper.

Abstract

Large language model (LLM) agents improve task performance by decomposing problems into role-specialized behaviors. However, their practical deployment is often limited by the computational cost and instability associated with the on-the-fly agent design for each user request.

Show full abstract

To address this, we present LLM Agents Factory, a retrieval-based framework that constructs domain-specific and Wikipedia-grounded agents on demand using a base of over 20K predetermined agent profiles. Our framework supports two modes: (1) agent profile retrieval via semantic search and (2) distillation into a compact model fine-tuned for direct agent generation. Experiments on MMLU, BIG-bench, and BIG-bench Hard in a single-agent scenario demonstrate that our retrieval-based agent construction surpasses non-agent baselines in accuracy while matching AutoGen generation quality with a 120B backbone at a substantially lower inference cost. Our work reveals that retrieval from a structured agent repository provides a cost-efficient, accurate, and controllable alternative to dynamic agent generation, responding to the strict demands of industrial applications. We provide the implementation code and the agent base in https://huggingface.co/frontier-ai/llm-agent-factory.

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{belov2026agents,
  title  = {LLM Agents Factory: Retrieval of Domain-Specific LLM Agents},
  author = {Vitalii Belov and Artyom Sosedka and Andrey Sakhovskiy and Elizaveta Kovtun and Artyom Boyarskikh and Semen Budennyy},
  year   = {2026},
  eprint = {2608.09934},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2608.09934v1}
}

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/2608.09934.svg)](https://codeofpaper.com/paper/2608.09934)

Discussion