挑战顶级编程竞赛的代码生成数据集,揭示大模型真实短板。
Humanity's Last Code Exam: Can Advanced LLMs Conquer Human's Hardest Code Competition?
- 构建源自国际顶级编程竞赛的235道难题数据集
- 最强模型仅15.9%通过率,远低于人类水平
- 发现模型自知能力与实际表现不匹配,适合研究推理与人机协作
代码生成是大语言模型的核心能力,但主流基准(如APPs和LiveCodeBench)题目难度中等,无法真正检验先进模型。为此,我们推出人类最后的代码考试(HLCE),包含2010-2024年间国际大学生程序设计竞赛(ICPC世界总决赛)和国际信息学奥林匹克(IOI)中最难的235道题目。为确保评估可复现,我们设计了统一的在线离线沙箱环境。全面评估显示,即使是最强推理模型o4-mini(high)和Gemini-2.5 Pro,pass@1通过率也仅为15.9%和11.4%。我们还提出一种新型“自我识别”任务,用于衡量模型对其自身能力的认知。结果表明,模型的自我识别能力与其代码生成表现无正比关系。此外,对测试时缩放规律的实证验证表明,当前先进模型在复杂编程任务上仍有巨大提升空间。我们期望HLCE成为代码生成领域的里程碑挑战,推动高性能推理与人机协同编程的发展。代码与数据集已开源(https://github.com/Humanity-s-Last-Code-Exam/HLCE)。
原文摘要 · Abstract (English)
Code generation is a core capability of large language models (LLMs), yet mainstream benchmarks (e.g., APPs and LiveCodeBench) contain questions with medium-level difficulty and pose no challenge to advanced LLMs. To better reflected the advanced reasoning and code generation ability, We introduce Humanity's Last Code Exam (HLCE), comprising 235 most challenging problems from the International Collegiate Programming Contest (ICPC World Finals) and the International Olympiad in Informatics (IOI) spanning 2010 - 2024. As part of HLCE, we design a harmonized online-offline sandbox that guarantees fully reproducible evaluation. Through our comprehensive evaluation, we observe that even the strongest reasoning LLMs: o4-mini(high) and Gemini-2.5 Pro, achieve pass@1 rates of only 15.9% and 11.4%, respectively. Meanwhile, we propose a novel "self-recognition" task to measure LLMs' awareness of their own capabilities. Results indicate that LLMs' self-recognition abilities are not proportionally correlated with their code generation performance. Finally, our empirical validation of test-time scaling laws reveals that current advanced LLMs have substantial room for improvement on complex programming tasks. We expect HLCE to become a milestone challenge for code generation and to catalyze advances in high-performance reasoning and human-AI collaborative programming. Our code and dataset are also public available(https://github.com/Humanity-s-Last-Code-Exam/HLCE).
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。