REVIEW 28 cited by
ClassEval: A Manually-Crafted Benchmark for Evaluating LLMs on Class-level Code Generation
Not yet reviewed by Pith; the record is open.
This paper has not been read by Pith yet. Machine review is queued; the pith claim, tier, and objections will appear here once it completes.
SPECIMEN: schema-true, not a live event
T0 review · schema-true
One-sentence machine reading of the paper's core claim.
pith:XXXXXXXX · record.json · timestamp
Signed reviews
read the original abstract
In this work, we make the first attempt to evaluate LLMs in a more challenging code generation scenario, i.e. class-level code generation. We first manually construct the first class-level code generation benchmark ClassEval of 100 class-level Python code generation tasks with approximately 500 person-hours. Based on it, we then perform the first study of 11 state-of-the-art LLMs on class-level code generation. Based on our results, we have the following main findings. First, we find that all existing LLMs show much worse performance on class-level code generation compared to on standalone method-level code generation benchmarks like HumanEval; and the method-level coding ability cannot equivalently reflect the class-level coding ability among LLMs. Second, we find that GPT-4 and GPT-3.5 still exhibit dominate superior than other LLMs on class-level code generation, and the second-tier models includes Instruct-Starcoder, Instruct-Codegen, and Wizardcoder with very similar performance. Third, we find that generating the entire class all at once (i.e. holistic generation strategy) is the best generation strategy only for GPT-4 and GPT-3.5, while method-by-method generation (i.e. incremental and compositional) is better strategies for the other models with limited ability of understanding long instructions and utilizing the middle information. Lastly, we find the limited model ability of generating method-dependent code and discuss the frequent error types in generated classes. Our benchmark is available at https://github.com/FudanSELab/ClassEval.
Forward citations
Cited by 28 Pith papers
-
Oilbird: Training-Free Speculative Decoding with Keys the Verifier Already Computes
A training-free speculative decoder using the verifier's hidden states as a semantic key retrieves correct continuations unreachable by exact suffix matching, lifting accepted length 24-29%.
-
DI-BENCH: Benchmarking Large Language Models on Dependency Inference with Testable Repositories at Scale
A new large-scale benchmark shows that current large language models pass under half of repository execution tests when asked to infer dependencies.
-
WebDesignIter: Co-Evolving Design Knowledge for Repository-Level Front-End Code Generation
A co-evolving design-and-code knowledge graph improves multi-iteration front-end repository generation by ~9.5 Pass@2 points and cuts input tokens 25–30× versus agent baselines.
-
Rethinking Code Performance Benchmarks for LLMs
Re-evaluating four LLM code-efficiency benchmarks with 30-run statistical testing shows 93.89% of 'performant' implementations are indistinguishable from baselines; a multi-agent test-generation framework reveals hidd...
-
SWE-IF: Aligning Code Evaluation with Human Preference
A blend of functional correctness and instruction-following predicts human preference for code LLMs better than pass@k alone.
-
ImportSnare: Directed "Code Manual" Hijacking in Retrieval-Augmented Code Generation
Documentation poisoning with hidden ranking and suggestion sequences can make RAG-based code generators confidently recommend malicious dependencies, even at 0.01% poisoning ratios.
-
MRG-Bench: Evaluating and Exploring the Requirements of Context for Repository-Level Code Generation
MRG-Bench is a multi-language, executable repository-level code generation benchmark on which current LLMs and RAG methods perform poorly, with the dominant failure mode being poor understanding of user requirements.
-
CoCoTen: Detecting Adversarial Inputs to Large Language Models through Latent Space Features of Contextual Co-occurrence Tensors
MRG-Bench is a multi-language, runnable-test benchmark showing that LLMs' main failure in repository-level code generation is understanding user requirements.
-
A Hierarchical and Evolvable Benchmark for Fine-Grained Code Instruction Following with Multi-Turn Feedback
MultiCodeIF introduces a 2,021-task, 14-language benchmark with 27 constraint types to evaluate code instruction following, finding that multi-level constraints sharply reduce model success and iterative feedback subs...
-
SwiftEval: Developing a Language-Specific Benchmark for LLM-generated Code Evaluation
SwiftEval, a 28-problem hand-crafted Swift benchmark, evaluates 44 code LLMs and shows large performance drops on Swift tasks, especially for smaller models.
-
Tests as Prompt: A Test-Driven-Development Benchmark for LLM Code Generation
The paper builds a 1000-task test-driven development benchmark for LLMs and concludes that instruction following and in-context learning matter more than general coding proficiency.
-
LessLeak-Bench: A First Investigation of Data Leakage in LLMs Across 83 Software Engineering Benchmarks
Across 83 SE benchmarks, average leakage into StarCoder's pretraining data is 4.8% (Python), 2.8% (Java), and 0.7% (C/C++), but QuixBugs and BigCloneBench are 100% and 55.7% leaked.
-
Can LLMs Replace Human Evaluators? An Empirical Study of LLM-as-a-Judge in Software Engineering
Output-based LLM-as-a-judge methods using large LLMs achieve near-human correlation with human scores for code translation and generation, but not for code summarization or pairwise comparisons.
-
Large Language Model Critics for Execution-Free Evaluation of Code Changes
Reference-aware, test-centric LLM critics predict per-test outcomes of code patches and aggregate them into execution-free build status predictions on SWE-bench-Lite.
-
CodeV: Issue Resolving with Visual Data
CodeV converts images and videos in GitHub issues into detailed text and structured summaries, then feeds them to a text-only LLM to generate patches, improving resolution rates on the new Visual SWE-bench benchmark.
-
Unseen Horizons: Unveiling the Real Capability of LLM Code Generation Beyond the Familiar
A code-obfuscation benchmark shows LLM code generation pass rates fall sharply when descriptions, code, and dependencies are rewritten to remove training-data familiarity.
-
PBE Meets LLM: When Few Examples Aren't Few-Shot Enough
GPT-4o with multi-turn verification plus a Foofah fallback reaches 86.3% weighted accuracy on tabular PBE benchmarks, beating Foofah (57.1%) and Prose (47.3%).
-
Do Generative AI Tools Ensure Green Code? An Investigative Study
An early study of three AI coding tools found that generated code frequently fails to follow sustainable coding practices, especially for GitHub Copilot.
-
SIMCOPILOT: Evaluating Large Language Models for Copilot-Style Code Generation
A new benchmark for copilot-style code completion and infilling shows that top models differ by up to 50 points on realistic tasks despite near-identical HumanEval scores.
-
BinMetric: A Comprehensive Binary Analysis Benchmark for Large Language Models
BinMetric is a new 1,000-question, six-task benchmark that measures LLM ability across the binary analysis lifecycle, with an empirical study of 12 models showing strong semantic understanding but weak low-level lifti...
-
Large Language Models for Code Generation: The Practitioners Perspective
In a practitioner survey with a reported 60 respondents, GPT-4o ranked as the best model for code generation and GPT-3.5 Turbo as the worst.
-
ContextModule: Improving Code Completion via Repository-level Contextual Information
Feeding code-completion models a developer's recent file history, similar code, and key symbol definitions raised completion acceptance rates in internal ByteDance deployments by an estimated 15 percent.
-
Software Engineering for Large Language Models: Research Status, Challenges and the Road Ahead
A literature review organizes LLM development into a six-phase software engineering lifecycle and identifies challenges and research directions for each phase.
-
Evolutionary Perspectives on the Evaluation of LLM-Based AI Agents: A Comprehensive Survey
A survey that classifies AI agent evaluation benchmarks along environment and capability axes, and proposes five traits that distinguish agents from chatbots.
-
CoCo-Bench: A Comprehensive Code Benchmark For Multi-task Large Language Model Evaluation
CoCo-Bench is a new multi-language benchmark of 705 manually reviewed samples that evaluates code LLMs across understanding, generation, modification, and review tasks, with difficulty-weighted scoring.
-
The importance of visual modelling languages in generative software engineering
Multimodal GPTs can turn UML class, sequence, and hand-drawn activity diagrams into working Python code, and can reverse engineer code back into diagrams, demonstrated across several software engineering tasks.
-
A Preliminary Study of Multilingual Code Language Models for Code Generation Task Using Translated Benchmarks
PolyCoder's pass@1 performance on translated HumanEval benchmarks is inconsistent across MultiPL-E and HumanEvalSynthesize, reversing the relative ranking of Java and Rust.
-
Hallucination by Code Generation LLMs: Taxonomy, Benchmarks, Mitigation, and Challenges
This survey organizes code-LLM hallucinations into four types, reviews 52 related papers, and identifies open challenges in detection and mitigation.
Discussion (0). Continue with ORCID to comment.