mlsanityData to 14 Oct 2026

MemoCoder: Automated Function Synthesis using LLM-Supported Agents

arXiv 2507.18812 ↗First posted 24 Jul 2025cs.SE cs.AIcited by 1

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

Abstract (arXiv)

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 the repair process by identifying recurring error patterns and refining high-level fixing strategies, providing a novel supervisory role that guides the self-repair loop. We evaluate MemoCoder across three public benchmarks -- MBPP, HumanEval, and LiveCodeBench -- spanning a range of problem complexities. Experimental results show that MemoCoder consistently outperforms both zero-shot prompting and a Self-Repair strategy, with improvements ranging from 3.1% to 12.1% in Pass@10 and from 1.4% to 14.5% in Pass@50, demonstrating its effectiveness in iterative refinement and knowledge-guided code generation.

Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Placed in Software engineering coding agents, one of 16 directions in LLM agents and tool use. Builds on 22 of its 31 references that are in the map. First posted on arXiv 24 Jul 2025.

Builds on

22 of 31 references.

Closest ancestors · 2

Same direction, newest first

  1. 2025CodeCoR: An LLM-Based Self-Reflective Multi-Agent Framework for Code Generation14 Jan
  2. 2024MapCoder: Multi-Agent Code Generation for Competitive Problem Solving18 May

Other references · 20

  1. 2024The Llama 3 Herd of Modelscited by 14,715
  2. 2021Evaluating Large Language Models Trained on Codecited by 8,320
  3. 2021Program Synthesis with Large Language Modelscited by 3,637
  4. 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,455
  5. 2024LiveCodeBench: Holistic and Contamination Free Evaluation of Large Language Models for Codecited by 2,004
  6. 2021Measuring Coding Challenge Competence With APPScited by 902
  7. 2022CodeGen: An Open Large Language Model for Code with Multi-Turn Program Synthesiscited by 885
  8. 2023A Comprehensive Overview of Large Language Modelscited by 648
  9. 2023The Impact of AI on Developer Productivity: Evidence from GitHub Copilotcited by 274
  10. 2023Is Self-Repair a Silver Bullet for Code Generation?cited by 197
  11. 2023Planning with Large Language Models for Code Generationcited by 182
  12. 2021Retrieval Augmented Code Generation and Summarizationcited by 149
8 more
  1. 2023PanGu-Coder2: Boosting Large Language Models for Code with Ranking Feedbackcited by 69
  2. 2024What's Wrong with Your Code Generated by Large Language Models? An Extensive Studycited by 53
  3. 2023Retrieval-Augmented Code Generation for Universal Information Extractioncited by 40
  4. 2024Insights into LLM Long-Context Failures: When Transformers Know but Don't Tellcited by 36
  5. 2024Online Adaptation of Language Models with a Memory of Amortized Contextscited by 35
  6. 2024Fine-Tuning and Prompt Engineering for Large Language Models-based Code Review Automationcited by 23
  7. 2025RefineCoder: Iterative Improving of Large Language Models via Adaptive Critique Refinement for Code Generationcited by 8
  8. 2024Prompt Refinement or Fine-tuning? Best Practices for using LLMs in Computational Social Science Taskscited by 6

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 1.

1 paper.

Similar, not cited

Close in wording, no citation either way

  1. 2025MapCoder-Lite: Distilling Multi-Agent Coding into a Single Small LLM
  2. 2026TraceCoder: A Trace-Driven Multi-Agent Framework for Automated Debugging of LLM-Generated Code
  3. 2026Coupling Planning with Episodic Memory in LLM Agents for Software Issue Resolution
  4. 2025Lessons Learned: A Multi-Agent Framework for Code LLMs to Learn and Improve
  5. 2025From Code Foundation Models to Agents and Applications: A Comprehensive Survey and Practical Guide to Code Intelligence
  6. 2025Prometheus: Towards Long-Horizon Codebase Navigation for Repository-Level Problem Solving
  7. 2025Fully Autonomous Programming using Iterative Multi-Agent Debugging with Large Language Models
  8. 2024Agent-Driven Automatic Software Improvement