paper-with-me

Papers

CPP-UT-Bench: Can LLMs Write Complex Unit Tests in C++?

2024-12-03 · Vaishnavi Bhargava, Rajat Ghosh, Debojyoti Dutta

We introduce CPP-UT-Bench, a benchmark dataset to measure C++ unit test generation capability of a large language model (LLM). CPP-UT-Bench aims to reflect a broad and diverse set of C++ codebases found in the real world. The dataset includes 2,653 {code, unit test} pairs drawn from 14 different opensource C++ codebases spanned across nine diverse domains including machine learning, software testing, parsing, standard input-output, data engineering, logging, complete expression evaluation, key value storage, and server protocols. We demonstrated the effectiveness of CPP-UT-Bench as a benchmark dataset through extensive experiments in in-context learning, parameter-efficient fine-tuning (PEFT), and full-parameter fine-tuning. We also discussed the challenges of the dataset compilation and insights we learned from in-context learning and fine-tuning experiments. Besides the CPP-UT-Bench dataset and data compilation code, we are also offering the fine-tuned model weights for further research. For nine out of ten experiments, our fine-tuned LLMs outperformed the corresponding base models by an average of more than 70%.

📄 PDF Abstract BibTeX arXiv:2412.02735

Code (0)

등록된 구현이 없습니다.

Tasks

In-Context LearningLanguage ModelingLanguage ModellingLarge Language Modelparameter-efficient fine-tuningsoftware testing

Methods 이 논문이 사용한 방법론

SET Dynamic Sparse Training method where weight mask is updated randomly periodically
BASE 설명 없음

Similar Papers 제목 키워드 기반

Prompting Code Interpreter to Write Better Unit Tests on Quixbugs Functions

2023-09-30 · Vincent Li, Nick Doiron

Unit testing is a commonly-used approach in software engineering to test the correctness and robustness of written code. Unit tests are tests designed to test small components of a codebase in isolation, such as an indiv…

Commit0: Library Generation from Scratch

2024-12-02 · Wenting Zhao, Nan Jiang, Celine Lee, Justin T Chiu 외

With the goal of benchmarking generative systems beyond expert software development ability, we introduce Commit0, a benchmark that challenges AI agents to write libraries from scratch. Agents are provided with a specifi…

BenchmarkingCode Generation

Dynamic Scaling of Unit Tests for Code Reward Modeling

2025-01-02 · Zeyao Ma, Xiaokang Zhang, Jing Zhang, Jifan Yu 외

Current large language models (LLMs) often struggle to produce accurate responses on the first attempt for complex reasoning tasks like code generation. Prior research tackles this challenge by generating multiple candid…

Code GenerationHumanEval

TDD-Bench Verified: Can LLMs Generate Tests for Issues Before They Get Resolved?

2024-12-03 · Toufique Ahmed, Martin Hirzel, Rangeet Pan, Avraham Shinnar 외

Test-driven development (TDD) is the practice of writing tests first and coding later, and the proponents of TDD expound its numerous benefits. For instance, given an issue on a source code repository, tests can clarify …

test driven development

PromptPex: Automatic Test Generation for Language Model Prompts

2025-03-07 · Reshabh K Sharma, Jonathan De Halleux, Shraddha Barke, Benjamin Zorn

Large language models (LLMs) are being used in many applications and prompts for these models are integrated into software applications as code-like artifacts. These prompts behave much like traditional software in that …

Language ModelingLanguage Modelling