paper-with-me

Papers

Invalidator: Automated Patch Correctness Assessment via Semantic and Syntactic Reasoning

2023-01-03 · Thanh Le-Cong, Duc-Minh Luong, Xuan Bach D. Le, David Lo, Nhat-Hoa Tran, Bui Quang-Huy, Quyet-Thang Huynh

Automated program repair (APR) faces the challenge of test overfitting, where generated patches pass validation tests but fail to generalize. Existing methods for patch assessment involve generating new tests or manual inspection, which can be time-consuming or biased. In this paper, we propose a novel technique, INVALIDATOR, to automatically assess the correctness of APR-generated patches via semantic and syntactic reasoning. INVALIDATOR leverages program invariants to reason about program semantics while also capturing program syntax through language semantics learned from a large code corpus using a pre-trained language model. Given a buggy program and the developer-patched program, INVALIDATOR infers likely invariants on both programs. Then, INVALIDATOR determines that an APR-generated patch overfits if: (1) it violates correct specifications or (2) maintains erroneous behaviors from the original buggy program. In case our approach fails to determine an overfitting patch based on invariants, INVALIDATOR utilizes a trained model from labeled patches to assess patch correctness based on program syntax. The benefit of INVALIDATOR is threefold. First, INVALIDATOR leverages both semantic and syntactic reasoning to enhance its discriminative capability. Second, INVALIDATOR does not require new test cases to be generated, but instead only relies on the current test suite and uses invariant inference to generalize program behaviors. Third, INVALIDATOR is fully automated. Experimental results demonstrate that INVALIDATOR outperforms existing methods in terms of Accuracy and F-measure, correctly identifying 79% of overfitting patches and detecting 23% more overfitting patches than the best baseline.

📄 PDF Abstract BibTeX arXiv:2301.01113

Code (1)

thanhlecongg/Invalidator 공식 구현

Tasks

Language ModellingProgram Repair

Methods 이 논문이 사용한 방법론

fail 설명 없음
Repair 설명 없음
Test 설명 없음

Similar Papers 제목 키워드 기반

Is this Change the Answer to that Problem? Correlating Descriptions of Bug and Code Changes for Evaluating Patch Correctness

2022-08-08 · Haoye Tian, Xunzhu Tang, Andrew Habib, Shangwen Wang 외

In this work, we propose a novel perspective to the problem of patch correctness assessment: a correct patch implements changes that "answer" to a problem posed by buggy behaviour. Concretely, we turn the patch correctne…

Question Answering

RePaCA: Leveraging Reasoning Large Language Models for Static Automated Patch Correctness Assessment

2025-07-30 · Marcos Fuster-Pena, David de-Fitero-Dominguez, Antonio Garcia-Cabot, Eva Garcia-Lopez arxiv

Automated Program Repair (APR) seeks to automatically correct software bugs without requiring human intervention. However, existing tools tend to generate patches that satisfy test cases without fixing the underlying bug…

Reinforcement LearningBinary ClassificationProgram Repair

Why LLMs Fail: A Failure Analysis and Partial Success Measurement for Automated Security Patch Generation

2026-03-10 · Amir Al-Maamari arxiv

Large Language Models (LLMs) show promise for Automated Program Repair (APR), yet their effectiveness on security vulnerabilities remains poorly characterized. This study analyzes 319 LLM-generated security patchesacross…

Program Repair

Code Broker: A Multi-Agent System for Automated Code Quality Assessment

2026-04-25 · Samer Attrah arxiv

We present Code Broker, a multi agent system built on Google s Agent Development Kit ADK that analyses Python source code from individual files, local directory trees, or remote GitHub repositories and generates structur…

Prompt Engineering

VISOR: A Vision-Language Model-based Test Oracle for Testing Robots

2026-05-11 · Prasun Saurabh, Pablo Valle, Aitor Arrieta, Shaukat Ali 외 arxiv

Testing robots requires assessing whether they perform their intended tasks correctly, dependably, and with high quality, a challenge known as the test oracle problem in software testing. Traditionally, this assessment r…