mlsanityData to 14 Oct 2026

Past as a Guide: Leveraging Retrospective Learning for Python Code Completion

arXiv 2311.07635 ↗First posted 13 Nov 2023cs.SE cs.AI cs.CLcited by 1

Not on the map. Why?

Abstract (arXiv)

This work presents Past as a Guide (PaG), a simple approach for Large Language Models (LLMs) to improve the coding capabilities by integrating the past history with interactive and iterative code refinements. To be specific, inspired by human cognitive processes, the proposed method enables LLMs to utilize previous programming and debugging experiences to enhance the Python code completion tasks. The framework facilitates LLMs to iteratively refine the Python code based on previous execution and debugging results and optimize learning and reasoning capabilities. The proposed methodology achieved a 92% pass@1 on HumanEval, demonstrating the potential to advance the field by leveraging retrospection from past experiences and interactive and iterative refinement processes without external correctness indicators.

Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Builds on 22 of its 23 references that are in the map. First posted on arXiv 13 Nov 2023.

Builds on

22 of 23 references.

References · 22

  1. 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,695
  2. 2021Evaluating Large Language Models Trained on Codecited by 8,320
  3. 2023Reflexion: Language Agents with Verbal Reinforcement Learningcited by 4,276
  4. 2023Toolformer: Language Models Can Teach Themselves to Use Toolscited by 4,182
  5. 2021Program Synthesis with Large Language Modelscited by 3,637
  6. 2023Self-Refine: Iterative Refinement with Self-Feedbackcited by 3,442
  7. 2022Constitutional AI: Harmlessness from AI Feedbackcited by 3,050
  8. 2022Self-Instruct: Aligning Language Models with Self-Generated Instructionscited by 2,724
  9. 2022Do As I Can, Not As I Say: Grounding Language in Robotic Affordancescited by 2,348
  10. 2023Voyager: An Open-Ended Embodied Agent with Large Language Modelscited by 2,191
  11. 2023Code Llama: Open Foundation Models for Codecited by 2,139
  12. 2022Code as Policies: Language Model Programs for Embodied Controlcited by 1,210
10 more
  1. 2022Program of Thoughts Prompting: Disentangling Computation from Reasoning for Numerical Reasoning Taskscited by 1,076
  2. 2023Large Language Models Cannot Self-Correct Reasoning Yetcited by 1,017
  3. 2023WizardCoder: Empowering Code Large Language Models with Evol-Instructcited by 733
  4. 2022PAL: Program-aided Language Modelscited by 652
  5. 2023ViperGPT: Visual Inference via Python Execution for Reasoningcited by 603
  6. 2022Unnatural Instructions: Tuning Language Models with (Almost) No Human Laborcited by 397
  7. 2022Binding Language Models in Symbolic Languagescited by 228
  8. 2023Solving Challenging Math Word Problems Using GPT-4 Code Interpreter with Code-based Self-Verificationcited by 166
  9. 2022DocPrompting: Generating Code by Retrieving the Docscited by 153
  10. 2022Language Models Can Teach Themselves to Program Bettercited by 78

Built on by

Cited by year

Citing papers per year: 2024: 1.

1 paper.

Similar, not cited

Close in wording, no citation either way

  1. 2022ReACC: A Retrieval-Augmented Code Completion Framework
  2. 2024Retrieval-augmented code completion for local projects using large language models
  3. 2026What Was Once Learned May Need to Be Unlearned: Machine Unlearning for Deprecated API Knowledge in Large Language Models
  4. 2024Prompt-based Code Completion via Multi-Retrieval Augmented Generation
  5. 2025ToolCoder: A Systematic Code-Empowered Tool Learning Framework for Large Language Models
  6. 2024Rethinking Code Refinement: Learning to Judge Code Efficiency
  7. 2026CodeEval: A pedagogical approach for targeted evaluation of code-trained Large Language Models
  8. 2024A Lightweight Framework for Adaptive Retrieval In Code Completion With Critique Model