In this paper, we approach competitive-level programming problem-solving as a composite task of reasoning and code generation. We propose a novel method to automatically annotate natural language explanations to \textit{<problem, solution>} pairs. We show that despite poor performance in solving competitive-level programming problems, state-of-the-art LLMs exhibit a strong capacity in describing and explaining solutions. Our explanation generation methodology can generate a structured solution explanation for the problem containing descriptions and analysis. To evaluate the quality of the annotated explanations, we examine their effectiveness in two aspects: 1) satisfying the human programming expert who authored the oracle solution, and 2) aiding LLMs in solving problems more effectively. The experimental results on the CodeContests dataset demonstrate that while LLM GPT3.5's and GPT-4's abilities in describing the solution are comparable, GPT-4 shows a better understanding of the key idea behind the solution.
SwingArena: Competitive Programming Arena for Long-context GitHub Issue Solving
The University of Hong Kong(香港大学);University of California Los Angeles(加州大学洛杉矶分校);Tsinghua University(清华大学);University of Michigan Ann Arbor(密歇根大学安娜堡分校);The Ohio State University(俄亥俄州立大学);University of Edinburgh(爱丁堡大学);The Chinese University of Hong Kong(香港中文大学);The Hong Kong Polytechnic University(香港理工大学);Hong Kong University of Science and Technology (Guangzhou)(香港科学与技术大学(广州));LMSYS Org(LMSYS组织)
InteractBench: Benchmarking LLMs on Competitive Programming under Unrevealed Information
School of Cyber Science and Engineering, Huazhong University of Science and Technology(华中科技大学网络空间科学与工程学院);Key Laboratory of Cyberspace Security, Ministry of Education(教育部网络空间安全重点实验室);Hubei Key Laboratory of Distributed System Security(湖北省分布式系统安全重点实验室)
AutoCode: LLMs as Problem Setters for Competitive Programming
University of California San Diego(加州大学圣地亚哥分校);New York University(纽约大学);University of Washington(华盛顿大学);Princeton University(普林斯顿大学);University of California Berkeley(加州大学伯克利分校);OpenAI;Massachusetts Institute of Technology(麻省理工学院);University of Waterloo(滑铁卢大学);Sentient Labs
LiveCodeBench Pro: How Do Olympiad Medalists Judge LLMs in Competitive Programming?
New York University(纽约大学);Princeton University(普林斯顿大学);University of California San Diego(加利福尼亚大学圣地亚哥分校);University of Washington(华盛顿大学);Canyon Crest Academy(峡谷克雷斯特学院);University of Waterloo(滑铁卢大学);McGill University(麦吉尔大学)