Abstract
Mingzhe Du, Anh Tuan Luu, Bin Ji, Xiaobao Wu, Yuhao Qing, Dong Huang, Terry Yue Zhuo, Qian Liu, See-Kiong Ng. Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (Volume 3: System Demonstrations).
2025.
Introduction
The rapid advancement of Large Language Models (LLMs) in code generation has been accompanied by a growing "contamination" crisis. Since these models are trained on vast internet datasets, they frequently encounter the solutions to popular benchmarks like HumanEval or LeetCode during training. This leads to inflated performance metrics where models recall memorized solutions rather than demonstrating genuine reasoning capabilities. Furthermore, existing evaluation frameworks often lack automation-friendly APIs and fail to account for code efficiency, making it difficult to conduct large-scale, iterative testing.
The CodeArena Architecture
To address these challenges, CodeArena introduces a collective evaluation mechanism designed to provide a more authentic assessment of LLM coding abilities. The platform is built on a four-layer architecture that facilitates a "living" leaderboard:
- API Layer: Offers RESTful APIs for seamless integration into automated evaluation pipelines.
- Runtimes Layer: Executes code within isolated sandboxes across multiple languages (Python, C, C++, Go, Haskell), tracking both correctness and resource consumption.
- Dynamic Evaluation Layer: Implements a unique scoring system that adjusts based on problem difficulty and solution efficiency.
- Data Layer: Maintains a public repository of all submissions and test cases to support open-source analysis.
Dynamic Scoring and Dataset Curation
The "secret sauce" of CodeArena is the Dynamic Point (DP) score, which consists of two components:
- Challenge Score (CS): Points are inversely proportional to the number of models that solve a problem. If a problem is solved by almost every model, it is likely leaked or too easy, and its point value decreases.
- Efficiency Score (ES): Models are rewarded for producing optimized code, with points assigned based on their runtime percentile relative to other successful solutions.
The platform aggregates problems from diverse sources, including APPS, Mercury, and live contests from CodeForces and LeetCode. To ensure rigorous testing, GPT-4o is utilized to generate over 100 test cases per problem, achieving high line coverage and validation against human-verified "oracle" solutions.
Experimental Results
An evaluation of 19 prominent LLMs conducted in mid-2024 revealed significant performance disparities.
Key findings include:
- Top Performers: DeepSeek-Coder and GPT-4o emerged as the leaders, demonstrating a superior balance of algorithmic problem-solving and code efficiency.
- Closed-Source Dominance: Proprietary models from the GPT and Claude families generally outperformed open-source alternatives and adhered more closely to scaling laws.
- Leakage Sensitivity: Longitudinal tracking from July to November 2024 showed a decline in DP for several models, particularly open-source ones like DeepSeek-V2-Lite. This suggests that as new, un-leaked problems are added, models that rely on memorization struggle to maintain their rankings.
Conclusion and Future Directions
CodeArena represents a significant step toward transparent and automated LLM evaluation. By dynamically devaluing leaked problems and rewarding efficiency, it provides a more realistic benchmark for real-world software engineering. Future work will focus on reducing dependencies on external platforms and evolving CodeArena into a community-driven ecosystem where researchers can contribute new challenges, ensuring the benchmark evolves faster than models can memorize it.
Summary updated