mlsanityData to 7 Oct 2026

Evaluating Representation Learning of Code Changes for Predicting Patch Correctness in Program Repair

arXiv 2008.02944 ↗First posted 7 Aug 2020cs.SEcited by 22

Not on the map. Why?

Abstract (arXiv)

A large body of the literature of automated program repair develops approaches where patches are generated to be validated against an oracle (e.g., a test suite). Because such an oracle can be imperfect, the generated patches, although validated by the oracle, may actually be incorrect. While the state of the art explore research directions that require dynamic information or rely on manually-crafted heuristics, we study the benefit of learning code representations to learn deep features that may encode the properties of patch correctness. Our work mainly investigates different representation learning approaches for code changes to derive embeddings that are amenable to similarity computations. We report on findings based on embeddings produced by pre-trained and re-trained neural networks. Experimental results demonstrate the potential of embeddings to empower learning algorithms in reasoning about patch correctness: a machine learning predictor with BERT transformer-based embeddings associated with logistic regression yielded an AUC value of about 0.8 in predicting patch correctness on a deduplicated dataset of 1000 labeled patches. Our study shows that learned representations can lead to reasonable performance when comparing against the state-of-the-art, PATCH-SIM, which relies on dynamic information. These representations may further be complementary to features that were carefully (manually) engineered in the literature.

Key facts. Cited by 22 papers in the map (data through 7 Oct 2026). First posted on arXiv 7 Aug 2020.

Builds on

No reference list yet.

Built on by

Cited by year

Citing papers per year: 2021: 5; 2022: 2; 2023: 9; 2024: 4; 2025: 2.

22 papers.

Sort:

By area:

  1. 2023Large Language Models for Software Engineering: A Systematic Literature Reviewcited by 389
  2. 2023Baldur: Whole-Proof Generation and Repair with Large Language Modelscited by 118
  3. 2021CURE: Code-Aware Neural Machine Translation for Automatic Program Repaircited by 85
  4. 2023Is ChatGPT the Ultimate Programming Assistant -- How far is it?cited by 72
  5. 2025LLM-JEPA: Large Language Models Meet Joint Embedding Predictive Architecturescited by 35
  6. 2021A Survey on Machine Learning Techniques for Source Code Analysiscited by 23
  7. 2024How secure is AI-generated Code: A Large-Scale Comparison of Large Language Modelscited by 23
  8. 2023Deep Learning for Code Intelligence: Survey, Benchmark and Toolkitcited by 22
  9. 2021DeepCVA: Automated Commit-level Vulnerability Assessment with Deep Multi-task Learningcited by 11
  10. 2023Invalidator: Automated Patch Correctness Assessment via Semantic and Syntactic Reasoningcited by 11
  11. 2024Generative AI for Requirements Engineering: A Systematic Literature Reviewcited by 10
  12. 2023Extending the Frontier of ChatGPT: Code Generation and Debuggingcited by 9
10 more
  1. 2022Is this Change the Answer to that Problem? Correlating Descriptions of Bug and Code Changes for Evaluating Patch Correctnesscited by 7
  2. 2023Just-in-Time Detection of Silent Security Patchescited by 7
  3. 2024Automated Program Repair: Emerging trends pose and expose problems for benchmarkscited by 7
  4. 2022On the Use of Fine-grained Vulnerable Code Statements for Software Vulnerability Assessment Modelscited by 5
  5. 2021Predicting Patch Correctness Based on the Similarity of Failing Test Casescited by 4
  6. 2023CCRep: Learning Code Change Representations via Pre-Trained Code Model and Query Backcited by 3
  7. 2023An Exploratory Literature Study on Sharing and Energy Use of Language Models for Source Codecited by 1
  8. 2025RePaCA: Leveraging Reasoning Large Language Models for Static Automated Patch Correctness Assessmentcited by 1
  9. 2021Exploring Plausible Patches Using Source Code Embeddings in JavaScriptcited by 0
  10. 2024Transducer Tuning: Efficient Model Adaptation for Software Tasks Using Code Property Graphscited by 0