GLAD: Neural Predicate Synthesis to Repair Omission Faults
Sungmin Kang, Shin Yoo

TL;DR
GLAD is a novel neural-based program repair method that synthesizes missing if-clauses without needing faulty code, effectively fixing omission faults by leveraging language models and dynamic patch ranking.
Contribution
GLAD introduces a type-constrained language model approach for synthesizing missing code segments, specifically targeting omission faults, and demonstrates improved repair capabilities over existing methods.
Findings
Successfully repaired 16 Defects4J faults missed by prior NMT techniques.
Utilizes a type-based grammar to constrain language model synthesis.
Reduces validation cost through dynamic patch ranking.
Abstract
Existing template and learning-based APR tools have successfully found patches for many benchmark faults. However, our analysis of existing results shows that omission faults pose a significant challenge to these techniques. For template based approaches, omission faults provide no location to apply templates to; for learning based approaches that formulate repair as Neural Machine Translation (NMT), omission faults similarly do not provide the faulty code to translate. To address these issues, we propose GLAD, a novel learning-based repair technique that specifically targets if-clause synthesis. GLAD does not require a faulty line as it is based on generative Language Models (LMs) instead of machine translation; consequently, it can repair omission faults. GLAD intelligently constrains the language model using a type-based grammar. Further, it efficiently reduces the validation cost by…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsSoftware Engineering Research · Software Testing and Debugging Techniques · Ferroelectric and Negative Capacitance Devices
