MEMCoder: Multi-dimensional Evolving Memory for Private-Library-Oriented Code Generation
Mofei Li, Taozhi Chen, Guowei Yang, Jia Li

TL;DR
MEMCoder is a framework that enhances code generation in private library contexts by dynamically learning and applying usage guidelines through a memory-augmented, feedback-driven process.
Contribution
It introduces a multi-dimensional evolving memory system that captures and updates coding guidelines, improving LLM performance in enterprise code generation tasks.
Findings
Achieves an average pass@1 gain of 16.31% on benchmarks.
Significantly improves domain-specific adaptation over existing methods.
Enhances RAG systems with dynamic, feedback-driven memory updates.
Abstract
Large Language Models (LLMs) excel at general code generation, but their performance drops sharply in enterprise settings that rely on internal private libraries absent from public pre-training corpora. While Retrieval-Augmented Generation (RAG) offers a training-free alternative by providing static API documentation, we find that such documentation typically provides only isolated definitions, leaving a fundamental knowledge gap. Specifically, LLMs struggle with a task-level lack of coordination patterns between APIs and an API-level misunderstanding of parameter constraints and boundary conditions. To address this, we propose MEMCoder, a novel framework that enables LLMs to autonomously accumulate and evolve Usage Guidelines across these two dimensions. MEMCoder introduces a Multi-dimensional Evolving Memory that captures distilled lessons from the model's own problem-solving…
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.
