ClassEval-Pro: A Cross-Domain Benchmark for Class-Level Code Generation
Not on the map. Why?
Abstract (arXiv)
LLMs have achieved strong results on both function-level code synthesis and repository-level code modification, yet a capability that falls between these two extremes -- compositional code creation, i.e., building a complete, internally structured class from a specification -- remains underserved. Current evaluations are either confined to isolated functions or rely on manually curated class-level tasks that are expensive to scale and increasingly susceptible to data contamination. We introduce ClassEval-Pro, a benchmark of 300 class-level tasks spanning 11 domains, constructed through an automated three-stage pipeline that combines complexity enhancement, cross-domain class composition, and integration of real-world GitHub code contributed after January 2025. Every task is validated by an LLM Judge Ensemble and must pass test suites with over 90% line coverage. We evaluate five frontier LLMs under five generation strategies. The best model achieves only 45.6% class-level Pass@1, with a 17.7-point gap between the strongest and weakest models, confirming the benchmark's discriminative power. Strategy choice strongly interacts with model capability: structured approaches such as bottom-up improve weaker models by up to 9.4 percentage points, while compositional generation collapses to as low as 1.3%. Error analysis over 500 manually annotated failures reveals that logic errors (56.2%) and dependency errors (38.0%) dominate, identifying cross-method coordination as the core bottleneck.
Key facts. Cited by 2 papers in the map (data through 14 Oct 2026). Builds on 41 of its 51 references that are in the map. First posted on arXiv 29 Apr 2026.
Builds on
41 of 51 references.
References · 41
- 2021Evaluating Large Language Models Trained on Codecited by 8,320
- 2021Program Synthesis with Large Language Modelscited by 3,637
- 2024LiveCodeBench: Holistic and Contamination Free Evaluation of Large Language Models for Codecited by 2,004
- 2024A Survey on LLM-as-a-Judgecited by 1,423
- 2023Is Your Code Generated by ChatGPT Really Correct? Rigorous Evaluation of Large Language Models for Code Generationcited by 1,391
- 2024DeepSeek-Coder: When the Large Language Model Meets Programming -- The Rise of Code Intelligencecited by 1,181
- 2023WizardLM: Empowering large pre-trained language models to follow complex instructionscited by 1,125
- 2025OpenAI GPT-5 System Cardcited by 989
- 2019EDA: Easy Data Augmentation Techniques for Boosting Performance on Text Classification Taskscited by 807
- 2023StarCoder: may the source be with you!cited by 799
- 2015Improving Neural Machine Translation Models with Monolingual Datacited by 788
- 2024BigCodeBench: Benchmarking Code Generation with Diverse Function Calls and Complex Instructionscited by 546
29 more
- 2024LLMs-as-Judges: A Comprehensive Survey on LLM-based Evaluation Methodscited by 465
- 2023Large Language Models for Software Engineering: A Systematic Literature Reviewcited by 399
- 2023RepoCoder: Repository-Level Code Completion Through Iterative Retrieval and Generationcited by 367
- 2022The Stack: 3 TB of permissively licensed source codecited by 359
- 2024CRUXEval: A Benchmark for Code Reasoning, Understanding and Executioncited by 300
- 2023ClassEval: A Manually-Crafted Benchmark for Evaluating LLMs on Class-level Code Generationcited by 168
- 2024DevEval: A Manually-Annotated Code Generation Benchmark Aligned with Real-World Code Repositoriescited by 72
- 2025SWE-Exp: Experience-Driven Software Issue Resolutioncited by 65
- 2025SWE-Debate: Competitive Multi-Agent Debate for Software Issue Resolutioncited by 53
- 2023xCodeEval: A Large Scale Multilingual Multitask Benchmark for Code Understanding, Generation, Translation and Retrievalcited by 47
- 2024From Code to Correctness: Closing the Last Mile of Code Generation with Hierarchical Debuggingcited by 46
- 2026SWE-Pruner: Self-Adaptive Context Pruning for Coding Agentscited by 44
- 2025LongCodeZip: Compress Long Context for Code Language Modelscited by 39
- 2025SWE-QA: Can Language Models Answer Repository-level Code Questions?cited by 38
- 2025Pruning the Unsurprising: Efficient LLM Reasoning via First-Token Surprisalcited by 32
- 2024Between Lines of Code: Unraveling the Distinct Patterns of Machine and Human Programmerscited by 27
- 2024DOMAINEVAL: An Auto-Constructed Benchmark for Multi-Domain Code Generationcited by 21
- 2025EvoC2Rust: A Skeleton-guided Framework for Project-Level C-to-Rust Translationcited by 19
- 2026In Line with Context: Repository-Level Code Generation via Context Inliningcited by 18
- 2024Class-Level Code Generation from Natural Language Using Iterative, Tool-Enhanced Reasoning over Repositorycited by 14
- 2025LastingBench: Defend Benchmarks Against Knowledge Leakagecited by 14
- 2026Seeing is Coding: On the Effectiveness of Vision Language Models in Code Understandingcited by 13
- 2026SWE-Refactor: A Repository-Level Benchmark for Real-World LLM-Based Code Refactoringcited by 11
- 2025FlowMalTrans: Unsupervised Binary Code Translation for Malware Detection Using Flow-Adapter Architecturecited by 10
- 2026EffiSkill: Agent Skill Based Automated Code Efficiency Optimizationcited by 9
- 2025Beyond Synthetic Benchmarks: Evaluating LLM Performance on Real-World Class-Level Code Generationcited by 8
- 2025OpenClassGen: A Large-Scale Corpus of Real-World Python Classes for LLM Researchcited by 3
- 2026Zero-Shot Vulnerability Detection in Low-Resource Smart Contracts Through Solidity-Only Trainingcited by 3
- 2026IndustryCode: A Benchmark for Industry Code Generationcited by 1
Built on by
Citing papers per year: 2026: 2.
2 papers.
- 2026SWE-Pruner Pro: The Coder LLM Already Knows What to Prunecited by 2
- 2026Rethinking Code Performance Benchmarks for LLMscited by 0
- 2026SWE-Pruner Pro: The Coder LLM Already Knows What to Prune20 Jul 2026
- 2026Rethinking Code Performance Benchmarks for LLMs8 Jul 2026