arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2311.07635cs.SEcs.AIcs.CL
收藏

过去作为指南:利用回顾性学习提升Python代码补全

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

Korea University(高丽大学);NAVER Cloud(NAVER云)

Seunggyoon Shin, Seunggyu Chang, Sungjoon Choi

AI总结:

本文提出PaG方法,通过回顾历史经验并迭代精炼代码,提升LLM的Python代码补全能力,在HumanEval上达到92%的pass@1。

摘要:

本工作提出了“过去作为指南”(PaG),一种简单的方法,通过整合过去的历史与交互式和迭代式代码精炼,来提升大型语言模型(LLMs)的编码能力。具体而言,受人类认知过程的启发,所提出的方法使LLMs能够利用先前的编程和调试经验来增强Python代码补全任务。该框架促进LLMs基于先前的执行和调试结果迭代地精炼Python代码,并优化学习和推理能力。所提出的方法在HumanEval上达到了92%的pass@1,展示了通过利用过去经验的回顾以及交互式和迭代式精炼过程(无需外部正确性指标)来推进该领域的潜力。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑