Reproduce “ClassEval: A Manually-Crafted Benchmark for Evaluating LLMs on Class-level Code Generation” on OpenResearch
Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.
Universal app for Apple silicon and Intel. Requires macOS 11 or later.
About this paper
Xueying Du, Mingwei Liu, Kaixin Wang, Hanlin Wang, Junwei Liu, Yixuan Chen, Jiayi Feng, Chaofeng Sha and 2 more
Fudan University researchers introduce ClassEval, a manually-crafted benchmark for evaluating large language models (LLMs) on class-level Python code generation, which involves interdependent methods. The study reveals that even advanced LLMs like GPT-4 experience a significant performance drop, with Pass@1 falling from 85.4% on function-level tasks to 37.0% on class-level problems, highlighting the increased complexity of integrated code generation.
Key insights
- Class-level code generation presents a significantly greater challenge for LLMs compared to function-level tasks, indicating current models have substantial room for improvement in handling complex software components.
- An LLM's high performance on standalone function-level benchmarks does not directly translate to proportional proficiency in class-level generation, highlighting a critical gap in existing evaluation paradigms.
- Different LLMs respond optimally to different generation strategies: GPT models perform best with holistic generation, while most other LLMs benefit from method-by-method approaches (incremental or compositional).
Summary by alphaXiv.
Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.