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

具备检索能力的多轮自优化单智能体语言模型能否解决高难度编程问题?

Can Multi-turn Self-refined Single Agent LMs with Retrieval Solve Hard Coding Problems?

American International University-Bangladesh(美国国际大学(Bangladesh));Cornell University(康奈尔大学);ELITE Research Lab(ELITE研究实验室)

Md Tanzib Hosain, Md Kishor Morol

AI总结:

本研究构建含254道题的ICPC竞技编程基准,提出结合多轮自判断、反思与情景检索的推理技术,将o1模型解题率从19.1%提升至42.2%,并通过人在回路研究揭示剩余难点。

摘要:

人类面临的最具挑战性的任务之一是竞技编程类问题,这类问题需要复杂的算法思维、解谜能力以及编写高效代码的能力。然而作为评估语言模型(LM)的一个领域,竞技编程尚未得到足够关注。本研究提出了ICPC基准,包含254道国际大学生程序设计竞赛(ICPC)题目,每道题均配有官方题解、参考代码,以及样例测试、高质量单元测试和隐藏测试用例。借助这些资源,我们能够开发并评估多种面向竞技编程的语言模型推理技术。实验发现,在零样本思维链提示下,o1的pass@1解决率仅为19.1%;而我们提出的最优推理技术——结合多轮自我判断、反思以及情景信息检索——将这一指标提升至42.2%。此外,我们开展了一项新的人在回路研究,以深入探究剩余的难点。令人意外的是,仅需少量特定指令,o1就能解决此前任何模型或技术都无法攻克的18道题中的17道。我们的定量结果与定性研究为具备扎实、富有想象力的算法思维的语言模型研究迈出了一步。我们已在https://github.com/kraritt/zolve开源了代码和数据。

英文摘要:

Among the hardest tasks for humans are those found in competitive programming where problems require sophisticated algorithmic thinking, puzzle solving, and the creation of effective code. As a domain to assess language models (LMs), it has not received enough attention, though. This study presents the ICPC benchmark, which consists of 254 international collegiate programming contest (ICPC) tasks. Each problem includes official analysis, reference code, and sample, high-quality unit, and hidden tests. We are able to develop and evaluate a variety of LM inference techniques for competitive programming with these resources. With zero-shot chain-of-thought prompting, we find that o1 only achieves a 19.1\% pass@1 solve rate. With our best inference technique, which combines multi-turn self-judge with reflection and retrieval over episodic information, raises this to 42.2\%. Furthermore, we conduct a new human-in-the-loop investigation to gain a deeper understanding of the remaining difficulties. Surprisingly, we discover that o1 can solve 17 out of 18 problems that were previously unsolvable by any model or technique with just a few specific instructions. A footstep toward LMs with grounded, imaginative, and algorithmic thinking is provided by our quantitative findings and qualitative research. We open-source our code and data at https://github.com/kraritt/zolve.

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

↑