A Multi-Agent Framework for Stateful Inference-Time Search

Fuente: arXiv
Enregistré dans:
Détails bibliographiques
Auteurs principaux: Lalan, Arshika, Ghosh, Rajat, Kolsur, Aditya, Dutta, Debojyoti
Format: Preprint
Publié: 2025
Sujets:
Accès en ligne:
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866918156687114240
author Lalan, Arshika
Ghosh, Rajat
Kolsur, Aditya
Dutta, Debojyoti
author_facet Lalan, Arshika
Ghosh, Rajat
Kolsur, Aditya
Dutta, Debojyoti
contents Recent work explores agentic inference-time techniques to perform structured, multi-step reasoning. However, stateless inference often struggles on multi-step tasks due to the absence of persistent state. Moreover, task-specific fine-tuning or instruction-tuning often achieve surface-level code generation but remain brittle on tasks requiring deeper reasoning and long-horizon dependencies. To address these limitations, we propose stateful multi-agent evolutionary search, a training-free framework that departs from prior stateless approaches by combining (i) persistent inference-time state, (ii) adversarial mutation, and (iii) evolutionary preservation. We demonstrate its effectiveness in automated unit test generation through the generation of edge cases. We generate robust edge cases using an evolutionary search process, where specialized agents sequentially propose, mutate, and score candidates. A controller maintains persistent state across generations, while evolutionary preservation ensures diversity and exploration across all possible cases. This yields a generalist agent capable of discovering robust, high-coverage edge cases across unseen codebases. Experiments show our stateful multi-agent inference framework achieves substantial gains in coverage over stateless single-step baselines, evaluated on prevalent unit-testing benchmarks such as HumanEval and TestGenEvalMini and using three diverse LLM families - Llama, Gemma, and GPT. These results indicate that combining persistent inference-time state with evolutionary search materially improves unit-test generation.
format Preprint
id arxiv_https___arxiv_org_abs_2510_07147
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle A Multi-Agent Framework for Stateful Inference-Time Search
Lalan, Arshika
Ghosh, Rajat
Kolsur, Aditya
Dutta, Debojyoti
Machine Learning
Artificial Intelligence
Computation and Language
Multiagent Systems
Software Engineering
Recent work explores agentic inference-time techniques to perform structured, multi-step reasoning. However, stateless inference often struggles on multi-step tasks due to the absence of persistent state. Moreover, task-specific fine-tuning or instruction-tuning often achieve surface-level code generation but remain brittle on tasks requiring deeper reasoning and long-horizon dependencies. To address these limitations, we propose stateful multi-agent evolutionary search, a training-free framework that departs from prior stateless approaches by combining (i) persistent inference-time state, (ii) adversarial mutation, and (iii) evolutionary preservation. We demonstrate its effectiveness in automated unit test generation through the generation of edge cases. We generate robust edge cases using an evolutionary search process, where specialized agents sequentially propose, mutate, and score candidates. A controller maintains persistent state across generations, while evolutionary preservation ensures diversity and exploration across all possible cases. This yields a generalist agent capable of discovering robust, high-coverage edge cases across unseen codebases. Experiments show our stateful multi-agent inference framework achieves substantial gains in coverage over stateless single-step baselines, evaluated on prevalent unit-testing benchmarks such as HumanEval and TestGenEvalMini and using three diverse LLM families - Llama, Gemma, and GPT. These results indicate that combining persistent inference-time state with evolutionary search materially improves unit-test generation.
title A Multi-Agent Framework for Stateful Inference-Time Search
topic Machine Learning
Artificial Intelligence
Computation and Language
Multiagent Systems
Software Engineering
url https://arxiv.org/abs/2510.07147