mlsanityData to 14 Oct 2026

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

arXiv 2412.02735 ↗First posted 3 Dec 2024cs.SE cs.LGcited by 2

Not on the map. Why?

Abstract (arXiv)

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%.

Key facts. Cited by 2 papers in the map (data through 14 Oct 2026). Builds on 11 of its 39 references that are in the map. First posted on arXiv 3 Dec 2024.

Builds on

11 of 39 references.

References · 11

  1. 2020Language Models are Few-Shot Learnerscited by 32,419
  2. 2024The Llama 3 Herd of Modelscited by 14,715
  3. 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,380
  4. 2021Evaluating Large Language Models Trained on Codecited by 8,320
  5. 2021Program Synthesis with Large Language Modelscited by 3,637
  6. 2023Mistral 7Bcited by 3,164
  7. 2022Beyond the Imitation Game: Quantifying and extrapolating the capabilities of language modelscited by 1,998
  8. 2024Phi-3 Technical Report: A Highly Capable Language Model Locally on Your Phonecited by 1,917
  9. 2021Dynabench: Rethinking Benchmarking in NLPcited by 459
  10. 2022ST-MoE: Designing Stable and Transferable Sparse Expert Modelscited by 399
  11. 2023Full Parameter Fine-tuning for Large Language Models with Limited Resourcescited by 134

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 1; 2026: 1.

2 papers.