atlas

Research map / Multi-agent systems and games / LLM agents

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

NeurIPS 2025 · Multi-agent systems and games › LLM agents · approach: LLM multi-agent decision making · 0 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes LessonL, a multi-agent framework where small code LLMs generate, bank, and select natural-language lessons from each other's successes and failures to iteratively improve code optimization and generation.

Problem

Code optimization (and generation) where no single LLM dominates across problem categories and complementary strengths are unknown a priori; how to make multiple LLM agents learn from each other without pre-specified roles.

Approach

Agents solicit concise natural-language lessons from comparing their code to the original (speedup, slowdown, incorrectness, syntax error), deposit them in a shared bank, and select lessons by a speedup-times-adjustment-factor score plus code-relevance retrieval, iterating for several rounds.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
use LessonL instead of OpenAI o3Code optimization · ParEval serial modespeedup: 2.21 $\pm$ 0.16 -> 2.16 $\pm$ 0.11Hurt
use LessonL instead of OpenAI o3Code optimization · PolyBench OpenMP modespeedup: 3.15 $\pm$ 0.23 -> 3.40 $\pm$ 0.12Helped
use lesson selection by both speedup and relevance with dynamic adjustment rather than only high-speedup selection (ablation)LessonL agents · ParEval OpenMP modespeedup: 3.20 $\pm$ 0.04 -> 3.46 $\pm$ 0.03Helped
use lesson selection by both speedup and relevance with dynamic adjustment rather than only high-relevance selection (ablation)LessonL agents · ParEval serial modespeedup: 1.96 $\pm$ 0.08 -> 2.16 $\pm$ 0.11Helped
add dynamic speedup adjustment (ablation)LessonL agents · ParEval OpenMP modespeedup: 3.28 $\pm$ 0.10 -> 3.46 $\pm$ 0.03Helped
use prioritized lesson selection rather than random selection (ablation)LessonL agents · ParEval serial modespeedup: 2.03 $\pm$ 0.05 -> 2.16 $\pm$ 0.11Helped
add lessons (ablation)LessonL agents · ParEval OpenMP modespeedup: 3.01 $\pm$ 0.16 -> 3.46 $\pm$ 0.03Helped
use LessonL rather than MoACode generation · HumanEvalpass@1: 0.909 -> 0.915Helped
use LessonL rather than MoACode generation · MBPP+pass@1: 0.770 -> 0.765Hurt

Surprising findings

Limitations

Experimental setup

Datasets: ParEval PolyBench HumanEval HumanEval+ MBPP MBPP+

Benchmarks: ParEval PolyBench HumanEval HumanEval+ MBPP MBPP+

Metrics: geometric mean speedup correctness rate proportion with >2x speedup pass@1

Baselines: Qwen14B GPT-4o mini GPT-4o DeepSeek-R1-14B OpenAI o3 CoT Reflexion MapCoder MoA

Builds on: Reflexion MoA MapCoder Chain-of-thought Retrieval-augmented generation

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy