MemoCoder: Automated Function Synthesis using LLM-Supported Agents
Yiping Jia, Zhen Ming Jiang, Shayan Noei, Ying Zou

TL;DR
MemoCoder is a multi-agent framework that enhances code generation by enabling collaborative problem solving, persistent learning from past fixes, and supervisory guidance, leading to improved performance on multiple benchmarks.
Contribution
It introduces MemoCoder, a novel multi-agent system with a Fixing Knowledge Set and Mentor Agent for iterative debugging and knowledge reuse in LLM-based code synthesis.
Findings
Outperforms zero-shot prompting and self-repair strategies.
Achieves 3.1% to 12.1% improvements in Pass@10.
Achieves 1.4% to 14.5% improvements in Pass@50.
Abstract
With the widespread adoption of Large Language Models (LLMs) such as GitHub Copilot and ChatGPT, developers increasingly rely on AI-assisted tools to support code generation. While LLMs can generate syntactically correct solutions for well-structured programming tasks, they often struggle with challenges that require iterative debugging, error handling, or adaptation to diverse problem structures. Existing approaches such as fine-tuning or self-repair strategies either require costly retraining or lack mechanisms to accumulate and reuse knowledge from previous attempts. To address these limitations, we propose MemoCoder, a multi-agent framework that enables collaborative problem solving and persistent learning from past fixes. At the core of MemoCoder is a Fixing Knowledge Set, which stores successful repairs and supports retrieval for future tasks. A central Mentor Agent supervises…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsSoftware Engineering Research · Topic Modeling · Machine Learning in Materials Science
