ComPass: Contrastive Learning for Automated Patch Correctness Assessment in Program Repair
Not on the map. Why?
Abstract (arXiv)
Automated program repair (APR) attempts to reduce manual debugging efforts and plays a vital role in software maintenance. Despite remarkable progress, APR is still limited in generating overfitting patches, i.e., patches passing available test suites but incorrect. This issue, known as patch overfitting, has become a key concern in the APR community, with numerous approaches proposed to address it. Very recent work proposes a pre-trained language model (PLM)-based automated patch correctness assessment (APCA) approach, indicating the potential of such PLMs in reasoning about patch correctness. Despite being promising, it is still far from perfect due to various limitations, such as the training paradigm and training dataset. In this paper, we present ComPass, a PLM-based APCA approach that leverages contrastive learning and data augmentation to address the technical limitations of prior work. Our work is inspired by the opportunity to integrate contrastive learning with recent PLMs in the field of patch correctness assessment, where large-scale labeled patches are difficult to obtain. ComPass utilizes code transformation rules to generate semantic-preserving code snippets for both unlabeled pre-training corpus and labeled fine-tuning patches. ComPass then pre-trains PLMs with contrastive learning, which captures code features with the same semantics but different structures. ComPass finally integrates representation embeddings of patch code snippets and fine-tunes PLMs with a binary classifier jointly to assess patch code correctness. Experimental results on 2274 real-world patches from Defects4J demonstrate that ComPass achieves an accuracy of 88.35%, significantly outperforming state-of-the-art baseline APPT.
Key facts. Cited by 1 paper in the map (data through 7 Oct 2026). First posted on arXiv 7 Feb 2026.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2026: 1.
1 paper.
Similar, not cited
Close in wording, no citation either way
- 2025RePaCA: Leveraging Reasoning Large Language Models for Static Automated Patch Correctness Assessment
- 2023Invalidator: Automated Patch Correctness Assessment via Semantic and Syntactic Reasoning
- 2025The Art of Repair: Optimizing Iterative Program Repair with Instruction-Tuned Models
- 2023RAP-Gen: Retrieval-Augmented Patch Generation with CodeT5 for Automatic Program Repair
- 2025MultiMend: Multilingual Program Repair with Context Augmentation and Multi-Hunk Patch Generation
- 2025REFINE: Enhancing Program Repair Agents through Context-Aware Patch Refinement
- 2026Refine After Generation: Toward Correct and Concise Patches in LLM-based Program Repair
- 2024Aligning the Objective of LLM-based Program Repair