mlsanityData to 7 Oct 2026

Lessons Learned: A Multi-Agent Framework for Code LLMs to Learn and Improve

arXiv 2505.23946 ↗First posted 29 May 2025cs.AI cs.LG cs.MAcited by 0

On the map: LLM agents and tool use → Software engineering coding agents

Abstract (arXiv)

Recent studies show that LLMs possess different skills and specialize in different tasks. In fact, we observe that their varied performance occur in several levels of granularity. For example, in the code optimization task, code LLMs excel at different optimization categories and no one dominates others. This observation prompts the question of how one leverages multiple LLM agents to solve a coding problem without knowing their complementary strengths a priori. We argue that a team of agents can learn from each other's successes and failures so as to improve their own performance. Thus, a lesson is the knowledge produced by an agent and passed on to other agents in the collective solution process. We propose a lesson-based collaboration framework, design the lesson solicitation--banking--selection mechanism, and demonstrate that a team of small LLMs with lessons learned can outperform a much larger LLM and other multi-LLM collaboration methods.

Key facts. No citing papers in the map yet (data through 7 Oct 2026). Placed in Software engineering coding agents, one of 16 directions in LLM agents and tool use. Builds on 31 of its 65 references that are in the map. First posted on arXiv 29 May 2025.

Builds on

31 of 65 references.

Closest ancestors · 5

Same direction, newest first

  1. 2024Diversity Empowers Intelligence: Integrating Expertise of Software Engineering Agents13 Aug
  2. 2024MapCoder: Multi-Agent Code Generation for Competitive Problem Solving18 May
  3. 2024Self-Organized Agents: A LLM Multi-Agent Framework toward Ultra Large-Scale Code Generation and Optimization2 Apr
  4. 2023AgentCoder: Multi-Agent-based Code Generation with Iterative Testing and Optimisation20 Dec
  5. 2023ChatDev: Communicative Agents for Software Development16 Jul

Other references · 26

  1. 2024The Llama 3 Herd of Modelscited by 14,192
  2. 2021Evaluating Large Language Models Trained on Codecited by 8,053
  3. 2020Scaling Laws for Neural Language Modelscited by 6,411
  4. 2025DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learningcited by 6,146
  5. 2022Self-Consistency Improves Chain of Thought Reasoning in Language Modelscited by 5,601
  6. 2021Program Synthesis with Large Language Modelscited by 3,509
  7. 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,193
  8. 2019HuggingFace's Transformers: State-of-the-art Natural Language Processingcited by 2,201
  9. 2023MetaGPT: Meta Programming for A Multi-Agent Collaborative Frameworkcited by 1,761
  10. 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,286
  11. 2024DeepSeek-Coder: When the Large Language Model Meets Programming -- The Rise of Code Intelligencecited by 1,154
  12. 2024Qwen2.5-Coder Technical Reportcited by 1,151
14 more
  1. 2024Large Language Monkeys: Scaling Inference Compute with Repeated Samplingcited by 946
  2. 2023FrugalGPT: How to Use Large Language Models While Reducing Cost and Improving Performancecited by 791
  3. 2024Phi-4 Technical Reportcited by 675
  4. 2023Language Agent Tree Search Unifies Reasoning Acting and Planning in Language Modelscited by 551
  5. 2023LLM-Blender: Ensembling Large Language Models with Pairwise Ranking and Generative Fusioncited by 550
  6. 2023Large Language Models as Tool Makerscited by 293
  7. 2024Agent Hospital: A Simulacrum of Hospital with Evolvable Medical Agentscited by 210
  8. 2023Progressive-Hint Prompting Improves Reasoning in Large Language Modelscited by 147
  9. 2024Language Agents as Optimizable Graphscited by 81
  10. 2023Exchange-of-Thought: Enhancing Large Language Model Capabilities through Cross-Model Communicationcited by 78
  11. 2024MEDEC: A Benchmark for Medical Error Detection and Correction in Clinical Notescited by 77
  12. 2023L2MAC: Large Language Model Automatic Computer for Extensive Code Generationcited by 30
  13. 2024Performance-Aligned LLMs for Generating Fast Codecited by 20
  14. 2024HPC-Coder-V2: Studying Code LLMs Across Low-Resource Parallel Languagescited by 8

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2025CodeEdu: A Multi-Agent Collaborative Platform for Personalized Coding Education
  2. 2026Enhancing LLM Problem Solving via Tutor-Student Multi-Agent Interaction
  3. 2026Yet Even Less Is Even Better For Agentic, Reasoning, and Coding LLMs
  4. 2025Enhancing LLM Performance Through Debate: An Empirical Study on Multi-Agent Debate for Coding Tasks
  5. 2026Coding Agents are Strong Prompt Optimizers
  6. 2025Optimizing LLM-Based Multi-Agent System with Textual Feedback: A Case Study on Software Development
  7. 2025MemoCoder: Automated Function Synthesis using LLM-Supported Agents
  8. 2026MASkills: Continual Skills Optimization for Multi-Agent LLM Systems