mlsanityData to 7 Oct 2026

Predicting Code Coverage without Execution

arXiv 2307.13383 ↗First posted 25 Jul 2023cs.SE cs.AIcited by 9

Not on the map. Why?

Abstract (arXiv)

Code coverage is a widely used metric for quantifying the extent to which program elements, such as statements or branches, are executed during testing. Calculating code coverage is resource-intensive, requiring code building and execution with additional overhead for the instrumentation. Furthermore, computing coverage of any snippet of code requires the whole program context. Using Machine Learning to amortize this expensive process could lower the cost of code coverage by requiring only the source code context, and the task of code coverage prediction can be a novel benchmark for judging the ability of models to understand code. We propose a novel benchmark task called Code Coverage Prediction for Large Language Models (LLMs). We formalize this task to evaluate the capability of LLMs in understanding code execution by determining which lines of a method are executed by a given test case and inputs. We curate and release a dataset we call COVERAGEEVAL by executing tests and code from the HumanEval dataset and collecting code coverage information. We report the performance of four state-of-the-art LLMs used for code-related tasks, including OpenAI's GPT-4 and GPT-3.5-Turbo, Google's BARD, and Anthropic's Claude, on the Code Coverage Prediction task. Finally, we argue that code coverage as a metric and pre-training data source are valuable for overall LLM performance on software engineering tasks.

Key facts. Cited by 9 papers in the map (data through 7 Oct 2026). Builds on 8 of its 15 references that are in the map. First posted on arXiv 25 Jul 2023.

Builds on

8 of 15 references.

References · 8

  1. 2017Attention Is All You Needcited by 59,932
  2. 2020Language Models are Few-Shot Learnerscited by 32,199
  3. 2021Evaluating Large Language Models Trained on Codecited by 8,053
  4. 2017Deep reinforcement learning from human preferencescited by 3,846
  5. 2022Constitutional AI: Harmlessness from AI Feedbackcited by 2,950
  6. 2022LaMDA: Language Models for Dialog Applicationscited by 1,218
  7. 2020Towards a Human-like Open-Domain Chatbotcited by 467
  8. 2023Code Execution with Pre-trained Language Modelscited by 33

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2023: 2; 2024: 2; 2025: 4; 2026: 1.

9 papers.