arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2602.11481cs.PLcs.AI
收藏

编译器引导的推理时适应:提升GPT-5在Idris中的编程性能

Compiler-Guided Inference-Time Adaptation: Improving GPT-5 Programming Performance in Idris

Ming Hsieh Department of Electrical and Computer Engineering(明希斯部门电子与计算机工程系);Viterbi School of Engineering, University of Southern California(维特比工程学院,南加州大学)

Minda Li, Bhaskar Krishnamachari

AI总结:

本文研究GPT-5通过编译器反馈提升在低资源语言Idris中的编程性能,发现结合本地编译错误的改进策略显著提高了模型表现。

摘要:

GPT-5,一种来自OpenAI的最先进的大型语言模型,在广泛使用的编程语言如Python、C++和Java中表现出色;然而,其在低资源或较少使用语言中的能力仍鲜有研究。本文探讨GPT-5是否能通过迭代、反馈驱动的提示来有效掌握一种不熟悉的函数式编程语言Idris。我们首先建立了一个基准,显示在零样本提示下,模型在Exercism平台上只能解决56个Idris练习中的22个,相对于资源更高的语言(Python解决45/50,Erlang解决35/47)表现显著不足。随后我们评估了几种改进策略,包括基于平台反馈的迭代提示、在提示中添加文档和错误分类指南,以及利用本地编译错误和失败测试用例的迭代提示。其中,结合本地编译错误的方法产生了最显著的改进。使用这种结构化的、基于错误的改进循环,GPT-5的性能提升到了令人印象深刻地解决56个中的54个。这些结果表明,尽管大型语言模型在低资源环境下可能起初表现不佳,但结构化的编译器级反馈在解锁其能力方面起着关键作用。

英文摘要:

GPT-5, a state of the art large language model from OpenAI, demonstrates strong performance in widely used programming languages such as Python, C++, and Java; however, its ability to operate in low resource or less commonly used languages remains underexplored. This work investigates whether GPT-5 can effectively acquire proficiency in an unfamiliar functional programming language, Idris, through iterative, feedback driven prompting. We first establish a baseline showing that with zero shot prompting the model solves only 22 out of 56 Idris exercises using the platform Exercism, substantially underperforming relative to higher resource languages (45 out of 50 in Python and 35 out of 47 in Erlang). We then evaluate several refinement strategies, including iterative prompting based on platform feedback, augmenting prompts with documentation and error classification guides, and iterative prompting using local compilation errors and failed test cases. Among these approaches, incorporating local compilation errors yields the most substantial improvements. Using this structured, error guided refinement loop, GPT-5 performance increased to an impressive 54 solved problems out of 56. These results suggest that while large language models may initially struggle in low resource settings, structured compiler level feedback can play a critical role in unlocking their capabilities.

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

↑