AB
AiBoss
project

CodeElo - Alibaba's Qwen team launches a benchmark test to assess LLM programming skills.

CodeElo is a benchmark tool for evaluating the code generation capabilities of Large Language Models (LLMs) at the programming competition level. It measures the programming skill level of LLMs by comparing them to the Elo rating system for human programmers. ...

What is CodeElo?

CodeElo is a benchmark tool for evaluating the code generation capabilities of Large Language Models (LLMs) at the programming competition level. It measures the programming level of LLMs by comparing them to the Elo rating system used by human programmers. The tool selects problems from the CodeForces platform, categorizing them by competition region, difficulty level, and algorithm tags to ensure diversity and representativeness. CodeElo's evaluation methodology is highly robust; submitted code is tested directly on the CodeForces platform, and a special evaluation mechanism ensures accurate judgment of code correctness. The Elo rating system is used to calculate scores, taking into account problem difficulty and penalizing errors. After testing on multiple open-source and proprietary LLMs, OpenAI's o1-mini model performed best, surpassing 90% of human participants. CodeElo aims to address the limitations of existing benchmarks, providing a more comprehensive and accurate evaluation environment to help researchers and developers better understand and improve the programming capabilities of LLMs.

CodeElo's main functions

  • Question Selection and Classification
    • Wide range of sourcesThe problems mainly come from the CodeForces platform, an online programming competition website with a large number of high-quality programming problems.
    • Detailed classificationThe questions are categorized by competition region, difficulty level, and algorithm label, allowing researchers to select appropriate questions for testing based on different needs, such as conducting specialized evaluations of questions with specific algorithms or difficulty levels.
  • Code submission and testing
    • Submit directlyResearchers can submit the code generated by LLM directly to the CodeForces platform for testing without any additional configuration or environment setup.
    • Special evaluation mechanismBased on CodeForces' unique evaluation mechanism, it can accurately determine the correctness of code, including precise matching of output results and limitations on execution efficiency, ensuring the accuracy and reliability of the evaluation results.
  • Rating Calculation and Comparison
    • Elo rating systemThe Elo rating system, similar to that used for human chess players, is used to calculate the programming ability score of LLMs. This takes into account the difficulty of the problem and the correctness of the code, and can more fairly reflect the actual level of the model.
    • Compared with humansBy comparing LLMs with human programmers' Elo scores, we can intuitively understand their performance in programming competitions and the gap between them and human programmers, providing a reference for model improvement.
  • Evaluation Result Analysis
    • Performance ComparisonCodeElo provides detailed performance comparison analysis, which can show the performance of different LLMs on various types of problems, helping researchers understand the advantages and disadvantages of models in different scenarios.
    • Error AnalysisAnalyze erroneous submissions to identify common error types and causes during code generation, providing a basis for model debugging and optimization.
  • Addressing the limitations of existing benchmarks
    • Make up for deficienciesAddressing the limitations of existing benchmarks such as LiveCodeBench and USACO, such as the lack of private test cases, lack of support for special referee mechanisms, and inconsistent execution environments, CodeElo provides a more comprehensive, accurate, and consistent evaluation environment, making the evaluation of LLMs' programming abilities more reliable and effective.

CodeElo's project address

CodeElo's test results

  • After testing 30 open-source LLMs and 3 proprietary LLMs, OpenAI's o1-mini model performed best, with an Elo score of 1578, surpassing 90% of human participants.
  • Among open-source models, QwQ-32B-Preview ranks first with a score of 1261.
  • Many models still struggle with simple problems, typically ranking in the bottom 20% of human participants.

CodeElo Application Scenarios

  • Assess the model's programming abilityCodeElo effectively assesses the programming ability of large language models (LLMs) in programming competitions by comparing them with the Elo rating system for human programmers.
  • Assisted programming teachingCodeElo provides a standardized programming skills assessment tool that can be used to support programming instruction and learning. Teachers can use CodeElo to understand students' performance on different programming problems, identify students' weaknesses, and provide more targeted teaching guidance.
  • Student self-assessmentStudents can also use CodeElo to self-assess their programming skills, understand their level in programming competitions, and clarify their learning goals and directions for effort.
  • Model optimization and improvementResearchers can use CodeElo to test and evaluate newly developed LLM models, understand their performance in programming competitions, and guide model optimization and improvement.
  • Code generation and completionEnterprises can use CodeElo to evaluate and select suitable LLM models for development tasks such as code generation and completion, thereby improving development efficiency and code quality.