paper-with-me

Papers

JavaBench: A Benchmark of Object-Oriented Code Generation for Evaluating Large Language Models

2024-06-10 · Jialun Cao, Zhiyong Chen, Jiarong Wu, Shing-Chi Cheung, Chang Xu

Code generation benchmarks such as HumanEval are widely adopted to evaluate LLMs' capabilities. However, after consolidating the latest 24 benchmarks, we noticed three significant imbalances. First, imbalanced programming language. 95.8% of benchmarks involve Python, while only 5 benchmarks involve Java. Second, imbalanced code granularity. Function-/statement-level benchmarks account for over 83.3% of benchmarks. Only a mere handful extends to class-/project-levels, and all are limited to Python. Third, lacking advanced features. Existing benchmarks primarily assess basic coding skills, while overlooking advanced Object-Oriented Programming (OOP) features (i.e., encapsulation, inheritance, and polymorphism). To fill these gaps, we propose JavaBench, a project-level Java benchmark that exercises OOP features. It comprises four Java projects with 389 methods in 106 Java classes. The test coverage is up to 92%, and JavaBench is attested by 282 undergraduate students, reaching a 90.93/100 average score (i.e., pass rate against the test suite), ensuring the quality of documentation, code skeleton, and tests. To better evaluate LLM's capability against JavaBench, we introduce a systematic evaluation design covering three context settings and five synthesis strategies at two granularities using three hierarchical metrics. Our extensive experiment yields several interesting findings. First, we noticed that regarding project-level Java programming, LLMs are far behind undergraduate students (no project can be correctly completed by any studied LLMs, and at most 41.17% Pass@5 in a more relaxed evaluation). Second, using method signature as prompt context may strike an ideal balance for project-level code generation. JavaBench is publicly available at https://github.com/java-bench/JavaBench.

📄 PDF Abstract BibTeX arXiv:2406.12902

Code (1)

java-bench/javabench 공식 구현

Tasks

BenchmarkingCode GenerationHumanEval

Similar Papers 제목 키워드 기반

OOP: Object-Oriented Programming Evaluation Benchmark for Large Language Models

2024-01-12 · Shuai Wang, Liang Ding, Li Shen, Yong Luo 외

Advancing automated programming necessitates robust and comprehensive code generation benchmarks, yet current evaluation frameworks largely neglect object-oriented programming (OOP) in favor of functional programming (FP…

Code GenerationHumanEvalmbpp

Robo-SGG: Exploiting Layout-Oriented Normalization and Restitution for Robust Scene Graph Generation

2025-04-17 · Changsheng Lv, Mengshi Qi, Zijian Fu, Huadong Ma

In this paper, we introduce a novel method named Robo-SGG, i.e., Layout-Oriented Normalization and Restitution for Robust Scene Graph Generation. Compared to the existing SGG setting, the robust scene graph generation ai…

Graph GenerationScene Graph Generation

CERT: Continual Pre-Training on Sketches for Library-Oriented Code Generation

2022-06-14 · Daoguang Zan, Bei Chen, Dejian Yang, Zeqi Lin 외

Code generation is a longstanding challenge, aiming to generate a code snippet based on a natural language description. Usually, expensive text-code paired data is essential for training a code generation model. Recently…

Code GenerationLibrary-Oriented Code Generation

A Comprehensive Framework for Evaluating API-oriented Code Generation in Large Language Models

2024-09-23 · Yixi Wu, Pengfei He, Zehao Wang, Shaowei Wang 외

Large language models (LLMs) like GitHub Copilot and ChatGPT have emerged as powerful tools for code generation, significantly enhancing productivity and accelerating software development. However, existing benchmarks pr…

Code GenerationRetrieval-augmented GenerationTask 2

Visual Spatial Description: Controlled Spatial-Oriented Image-to-Text Generation

2022-10-20 · Yu Zhao, Jianguo Wei, Zhichao Lin, Yueheng Sun 외

Image-to-text tasks, such as open-ended image captioning and controllable image description, have received extensive attention for decades. Here, we further advance this line of work by presenting Visual Spatial Descript…

DecoderImage CaptioningImage DescriptionImage to text+1