mlsanityData to 14 Oct 2026

Optimizing LLM-Based Multi-Agent System with Textual Feedback: A Case Study on Software Development

arXiv 2505.16086 ↗First posted 22 May 2025cs.AI cs.CLcited by 7

On the map: LLM agents and tool use → General LLM agent frameworks and benchmarks

Abstract (arXiv)

We have seen remarkable progress in large language models (LLMs) empowered multi-agent systems solving complex tasks necessitating cooperation among experts with diverse skills. However, optimizing LLM-based multi-agent systems remains challenging. In this work, we perform an empirical case study on group optimization of role-based multi-agent systems utilizing natural language feedback for challenging software development tasks under various evaluation dimensions. We propose a two-step agent prompts optimization pipeline: identifying underperforming agents with their failure explanations utilizing textual feedback and then optimizing system prompts of identified agents utilizing failure explanations. We then study the impact of various optimization settings on system performance with two comparison groups: online against offline optimization and individual against group optimization. For group optimization, we study two prompting strategies: one-pass and multi-pass prompting optimizations. Overall, we demonstrate the effectiveness of our optimization method for role-based multi-agent systems tackling software development tasks evaluated on diverse evaluation dimensions, and we investigate the impact of diverse optimization settings on group behaviors of the multi-agent systems to provide practical insights for future development.

Key facts. Cited by 7 papers in the map (data through 14 Oct 2026). Placed in General LLM agent frameworks and benchmarks, one of 16 directions in LLM agents and tool use. Builds on 48 of its 59 references that are in the map. First posted on arXiv 22 May 2025.

Builds on

48 of 59 references.

Closest ancestors · 8

Same direction, newest first

  1. 2024WebPilot: A Versatile and Autonomous Multi-Agent System for Web Task Execution with Strategic Exploration28 Aug
  2. 2023A Dynamic LLM-Powered Agent Network for Task-Oriented Agent Collaboration3 Oct
  3. 2023AgentVerse: Facilitating Multi-Agent Collaboration and Exploring Emergent Behaviors21 Aug
  4. 2023ChatEval: Towards Better LLM-based Evaluators through Multi-Agent Debate14 Aug
  5. 2023MetaGPT: Meta Programming for A Multi-Agent Collaborative Framework1 Aug
  6. 2023Unleashing the Emergent Cognitive Synergy in Large Language Models: A Task-Solving Agent through Multi-Persona Self-Collaboration11 Jul
  7. 2023Building Cooperative Embodied Agents Modularly with Large Language Models5 Jul
  8. 2023CAMEL: Communicative Agents for "Mind" Exploration of Large Language Model Society31 Mar

Other references · 40

  1. 2020Language Models are Few-Shot Learnerscited by 32,419
  2. 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,459
  3. 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,695
  4. 2023Judging LLM-as-a-Judge with MT-Bench and Chatbot Arenacited by 8,626
  5. 2021Evaluating Large Language Models Trained on Codecited by 8,320
  6. 2020Measuring Massive Multitask Language Understandingcited by 7,963
  7. 2021Measuring Mathematical Problem Solving With the MATH Datasetcited by 5,371
  8. 2023Reflexion: Language Agents with Verbal Reinforcement Learningcited by 4,276
  9. 2023Generative Agents: Interactive Simulacra of Human Behaviorcited by 3,568
  10. 2021Pre-train, Prompt, and Predict: A Systematic Survey of Prompting Methods in Natural Language Processingcited by 2,234
  11. 2023AutoGen: Enabling Next-Gen LLM Applications via Multi-Agent Conversationcited by 1,988
  12. 2020Offline Reinforcement Learning: Tutorial, Review, and Perspectives on Open Problemscited by 1,920
28 more
  1. 2023Improving Factuality and Reasoning in Language Models through Multiagent Debatecited by 1,784
  2. 2020Making Pre-trained Language Models Better Few-shot Learnerscited by 1,256
  3. 2022Large Language Models Are Human-Level Prompt Engineerscited by 1,045
  4. 2023Encouraging Divergent Thinking in Large Language Models through Multi-Agent Debatecited by 1,011
  5. 2023ChatDev: Communicative Agents for Software Developmentcited by 919
  6. 2023Large Language Models as Optimizerscited by 864
  7. 2023AlpacaFarm: A Simulation Framework for Methods that Learn from Human Feedbackcited by 748
  8. 2023Automatic Prompt Optimization with "Gradient Descent" and Beam Searchcited by 653
  9. 2021Prompt Programming for Large Language Models: Beyond the Few-Shot Paradigmcited by 606
  10. 2023LLM-Blender: Ensembling Large Language Models with Pairwise Ranking and Generative Fusioncited by 564
  11. 2022RLPrompt: Optimizing Discrete Text Prompts with Reinforcement Learningcited by 366
  12. 2023Large Language Models as Tool Makerscited by 303
  13. 2024TextGrad: Automatic "Differentiation" via Textcited by 273
  14. 2022Prompting GPT-3 To Be Reliablecited by 260
  15. 2023Self-collaboration Code Generation via ChatGPTcited by 258
  16. 2023PromptAgent: Strategic Planning with Language Models Enables Expert-level Prompt Optimizationcited by 233
  17. 2024LLM Critics Help Catch LLM Bugscited by 147
  18. 2024MAGIS: LLM-Based Multi-Agent Framework for GitHub Issue Resolutioncited by 134
  19. 2022GrIPS: Gradient-free, Edit-based Instruction Search for Prompting Large Language Modelscited by 127
  20. 2023Mindstorms in Natural Language-Based Societies of Mindcited by 107
  21. 2023MathChat: Converse to Tackle Challenging Math Problems with LLM Agentscited by 68
  22. 2023Prompt Engineering a Prompt Engineercited by 53
  23. 2023ChatLLM Network: More brains, More intelligencecited by 37
  24. 2024Are Large Language Models Good Prompt Optimizers?cited by 37
  25. 2023AutoHint: Automatic Prompt Optimization with Hint Generationcited by 30
  26. 2025TReMu: Towards Neuro-Symbolic Temporal Reasoning for LLM-Agents with Memory in Multi-Session Dialoguescited by 25
  27. 2023Robust Prompt Optimization for Large Language Models Against Distribution Shiftscited by 19
  28. 2022What should I Ask: A Knowledge-driven Approach for Follow-up Questions Generation in Conversational Surveyscited by 13

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 2; 2026: 5.

7 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2026Developing LLM-based Multi-Agent Systems in Software Engineering: A Mixed-Method Experience Report
  2. 2026AgentGrad: Intervention-guided Prompt Optimization for Multi Agent Systems
  3. 2024LLM-Based Multi-Agent Systems for Software Engineering: Literature Review, Vision and the Road Ahead
  4. 2024Language Agents as Optimizable Graphs
  5. 2025A Survey on the Optimization of Large Language Model-based Agents
  6. 2026Learning to Evolve: A Self-Improving Framework for Multi-Agent Systems via Textual Parameter Graph Optimization
  7. 2026Understanding Conversational Patterns in Multi-agent Programming: A Case Study on Fibonacci Game Development
  8. 2026LLM-Based Agentic Systems for Software Engineering: Challenges and Opportunities