Research map / Large language models / Reasoning and chain of thought
CodeMEM: AST-Guided Adaptive Memory for Repository-Level Iterative Code Generation
Peiding Wang, Li Zhang, Fang Liu, Chongyang Tao, Yinghao Zhu
Beihang University · The University of Hong Kong
Read the paperPlace an idea next to itCheck your own paper ↗
AI-extracted. The measured effects below were read by AI from the paper's full text (no summary yet). Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| use CodeMEM instead of full-context FC (BM25) | DeepSeek-V3.2 · CodeIF-Bench (avg IA) | IA: 41.1 -> 46.1 | Improved |
| use CodeMEM instead of full-context FC (BM25) | DeepSeek-V3.2 · CodeIF-Bench (avg CA) | CA: 38.4 -> 42.8 | Improved |
| use CodeMEM instead of FC | DeepSeek-V3.2 · CoderEval | Pass@1 by interaction round: 55.7 (Turn-5) vs 50.9 (FC BM25) | Improved |
| add Code Context Memory (CtxMem) (ablation) | CodeMEM · CodeIF-Bench (avg IA) | IA: 42.5 -> 46.1 | Improved |
| add AST-based selector (CtxAST) (ablation) | CodeMEM · CodeIF-Bench (avg IA) | IA: 41.7 -> 46.1 | Improved |
| add AST-based detector (SessAST) (ablation) | CodeMEM · CodeIF-Bench (avg CA) | CA: 41.4 -> 42.8 | Improved |
| add CtxMem (ablation) | CodeMEM · CoderEval (Turn-5) | Pass@1: 51.7 -> 55.7 | Improved |
| add CtxAST (ablation) | CodeMEM · CoderEval (Turn-5) | Pass@1: 51.3 -> 55.7 | Improved |
| use CodeMEM instead of Mem0 or MemGPT natural-language memory | DeepSeek-V3.2 · CodeIF-Bench (avg IA) | IA: 32.5 (Mem0), 39.1 (MemGPT) -> 46.1 | Improved |
| use CodeMEM in rounds 5 and 6 (non-functional requirements) | DeepSeek-V3.2 · CodeIF-Bench (Turn-6 IA) | IA: 60.0 (FC BM25) -> 40.0 | Hurt |
| add AST-based detector (SessAST) (ablation) | CodeMEM · CodeIF-Bench | avg time and tokens: 54.1 s, 107.8k tokens vs 36.4 s, 75.1k without SessAST | Hurt |
| add AST-based selector (CtxAST) (ablation) | CodeMEM · CodeIF-Bench | avg tokens: 315.2k -> 107.8k | Improved |
Open problems in efficient LLM serving
Do efficient-serving and inference-saving methods hold up on larger models, other hardware and real workloads?
- Measured on one GPU type or one server only. · 21 papers state it
- Tested only on models of 12B parameters or fewer. · 13 papers state it
- Predictors and latency models need per-model profiling and lose accuracy off-distribution. · 13 papers state it
Closest papers by meaning
- Improving Code Localization with Repository Memory (ICLR 2026 · similarity 0.87)
- ConvCodeWorld: Benchmarking Conversational Code Generation in Reproducible Feedback Environments (ICLR 2025 · similarity 0.86)
- Repoformer: Selective Retrieval for Repository-Level Code Completion (ICML 2024 · similarity 0.86)
- AST-T5: Structure-Aware Pretraining for Code Generation and Understanding (ICML 2024 · similarity 0.86)
- CodeSync: Synchronizing Large Language Models with Dynamic Code Evolution at Scale (ICML 2025 · similarity 0.86)
- CodeChemist: Test-Time Scaling for Low-Resource Code Generation via Functional Knowledge Transfer (ICML 2026 · similarity 0.86)
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.