cs.AIOct 21, 2026

RoleFlow: Self-Evolving Multi-Role Agentic Collaboration via Structural Adaptation

Authors: Yi Ge, Pan Wang, Xuehao Cui, Zian Zeng, Xu Hu, Heng Huang, Furong Huang

Organizations: University of Maryland, College Park · University of Pittsburgh · The University of Texas at Dallas

Abstract

Large language model (LLM) based multi-agent systems often rely on predefined collaboration structures, limiting their adaptability to evolving task requirements. Although recent approaches enable dynamic orchestration, trajectory-level rewards they apply assign one outcome to each decision, ofen struggling to identify the contributions of individual structural changes. We propose RoleFlow, a self-evolving multi-role agentic system that refines collaboration structures through feedback-driven atomic edits and on-demand role synthesis. To make structural adaptation learnable, we introduce Single-Edit Counterfactual Policy Optimization (SECPO), which evaluates each edit against its no-edit counterpart at the same chain state and assigns targeted credit to edit-specific tokens. Across seven benchmarks spanning four domains, RoleFlow achieves the optimal average performance, surpassing the strongest competitor by 4.7 points. It leads on all three multi-hop QA benchmarks by 3.2-7.5 F1 points and also shows supremacy on mathematical reasoning, web interaction, and code generation. Further analyses demonstrate cross-benchmark transferability, training-data efficiency, and cross-executor generalization.

Figures & tables

Appendix figures & tables10 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. Roles with Rails: Contract-Preserving Role Evolution in Multi-Agent Structured Reasoning

    May 27, 2026Ling-Yue Ge, Lan-Zhe GuoMulti-Agent LLM SystemsLLM Agent Orchestration

  2. CollabFlow: Recursive Self-Improvement of Agent Collaboration

    Sep 29, 2026Xiao Huang, Mingda Zhang, Junming Zhang +5Multi-Agent LLM SystemsMulti-Agent Collaboration

  3. DynaFlow: Learning Free-Form Multi-Agent Orchestration

    Oct 25, 2026Ruhao Liu, Qi Li, Shizun Wang +1Multi-Agent OrchestrationLLM Agent Orchestration