# FlowReasoner: Reinforcing Query-Level Meta-Agents

Source: [FlowReasoner: Reinforcing Query-Level Meta-Agents](<https://www.sota2.com/research/paper/68fa78321e209131cea7721a>)

Collection index: [llms.txt](<https://www.sota2.com/research/llms.txt>)

Data updated: 2025-10-26T04:33:25.608Z

Authors: Hongcheng Gao, Yue Liu, Yufei He, Longxu Dou, Chao Du, Zhijie Deng, Bryan Hooi, Min Lin, Tianyu Pang

Published: 2025-04-21T17:35:42.000Z

## Abstract

This paper proposes a query-level meta-agent named FlowReasoner to automate the design of query-level multi-agent systems, i.e., one system per user query. Our core idea is to incentivize a reasoning-based meta-agent via external execution feedback. Concretely, by distilling DeepSeek R1, we first endow the basic reasoning ability regarding the generation of multi-agent systems to FlowReasoner. Then, we further enhance it via reinforcement learning (RL) with external execution feedback. A multi-purpose reward is designed to guide the RL training from aspects of performance, complexity, and efficiency. In this manner, FlowReasoner is enabled to generate a personalized multi-agent system for each user query via deliberative reasoning. Experiments on both engineering and competition code benchmarks demonstrate the superiority of FlowReasoner. Remarkably, it surpasses o1-mini by 10.52% accuracy across three benchmarks. The code is available at https://github.com/sail-sg/FlowReasoner.

## Recorded benchmark results

A research result applies to its stated dataset, split, metric and evaluation configuration. Compare like-for-like settings, preserve the metric's unit and direction, and distinguish paper-reported results from independent reproduction. The best result recorded here is not a claim of exhaustive, current global coverage.

- [Code Generation on LiveCodeBench V4 (test)](<https://www.sota2.com/research/sota/code-generation-on-livecodebench-v4-test.md>): Code Generation; LiveCodeBench V4 (test); pass@1: 43.8.

- [Code Generation on HumanEval (test)](<https://www.sota2.com/research/sota/code-generation-on-humaneval-test.md>): Code Generation; HumanEval (test); Pass@1: 97.3.

- [Code Generation on MBPP (test)](<https://www.sota2.com/research/sota/code-generation-on-mbpp-test.md>): Code Generation; MBPP (test); Pass@1: 93.9.

- [Code Generation on CodeContests (test)](<https://www.sota2.com/research/sota/code-generation-on-codecontests-test.md>): Code Generation; CodeContests (test); Pass@1: 37.7.

- [Code Generation on APPS (test)](<https://www.sota2.com/research/sota/code-generation-on-apps-test.md>): Code Generation; APPS (test); Introductory Score: not recorded.

## Original sources and implementation

[Original paper](<https://arxiv.org/abs/2504.15257>)

[PDF](<https://arxiv.org/pdf/2504.15257.pdf>)
