arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2409.05824cs.SE
收藏

大型语言模型是否对编程平台构成威胁?一项探索性研究

Are Large Language Models a Threat to Programming Platforms? An Exploratory Study

Md Mustakim Billah, Palash Ranjan Roy, Zadia Codabux, Banani Roy

AI总结:

本研究通过跨平台题库、在线竞赛和认证测试评估ChatGPT等LLM的编程能力,发现其在LeetCode等场景表现优异,但在高难度Codeforces竞赛中仍弱于人类。

摘要:

LeetCode、Codeforces和HackerRank等竞技编程平台用于评估编程技能,常被招聘人员用于筛选。随着ChatGPT、Gemini和Meta AI等先进大型语言模型(LLM)的兴起,需要评估它们在这些平台上的解题能力。本研究探究LLM应对跨平台、不同难度的多样化编程挑战的能力,洞察其实时和离线表现,并与人类程序员进行比较。我们测试了来自LeetCode的98道题、来自Codeforces的126道题,覆盖15个类别。开展了9场Codeforces和LeetCode在线竞赛,以及2项HackerRank认证测试,以评估实时表现。研究使用提示和反馈机制引导LLM,并探究不同场景之间的相关性。LLM(如ChatGPT在LeetCode上取得71.43%的成功率)在LeetCode和HackerRank认证中表现出色,但在虚拟竞赛中表现吃力,尤其是在Codeforces上。它们在LeetCode题库中的表现优于用户,在时间和内存效率方面突出,但在难度更高的Codeforces竞赛中表现不佳。尽管LLM尚未构成直接威胁,但其在这些平台上的表现令人担忧,未来的改进需要得到应对。

英文摘要:

Competitive programming platforms like LeetCode, Codeforces, and HackerRank evaluate programming skills, often used by recruiters for screening. With the rise of advanced Large Language Models (LLMs) such as ChatGPT, Gemini, and Meta AI, their problem-solving ability on these platforms needs assessment. This study explores LLMs' ability to tackle diverse programming challenges across platforms with varying difficulty, offering insights into their real-time and offline performance and comparing them with human programmers. We tested 98 problems from LeetCode, 126 from Codeforces, covering 15 categories. Nine online contests from Codeforces and LeetCode were conducted, along with two certification tests on HackerRank, to assess real-time performance. Prompts and feedback mechanisms were used to guide LLMs, and correlations were explored across different scenarios. LLMs, like ChatGPT (71.43% success on LeetCode), excelled in LeetCode and HackerRank certifications but struggled in virtual contests, particularly on Codeforces. They performed better than users in LeetCode archives, excelling in time and memory efficiency but underperforming in harder Codeforces contests. While not immediately threatening, LLMs performance on these platforms is concerning, and future improvements will need addressing.

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

↑