PredicateFix: Repairing Static Analysis Alerts with Bridging Predicates
On the map: Retrieval-augmented generation → RAG for code
Abstract (arXiv)
Fixing static analysis alerts in source code with Large Language Models (LLMs) is becoming increasingly popular. However, LLMs often hallucinate and perform poorly for complex and less common alerts. Retrieval-augmented generation (RAG) aims to solve this problem by providing the model with a relevant example, but existing approaches face the challenge of unsatisfactory quality of such examples. To address this challenge, we utilize the predicates in the analysis rule, which serve as a bridge between the alert and relevant code snippets within a clean code corpus, called key examples. Based on this insight, we propose an algorithm to retrieve key examples for an alert automatically, and build PredicateFix as a RAG pipeline to fix alerts from two static code analyzers: CodeQL and GoInsight. Evaluation with multiple LLMs shows that PredicateFix increases the number of correct repairs by 27.1% ~ 69.3%, significantly outperforming other baseline RAG approaches.
Key facts. Cited by 5 papers in the map (data through 7 Oct 2026). Placed in RAG for code, one of 15 directions in Retrieval-augmented generation. Builds on 19 of its 67 references that are in the map. First posted on arXiv 15 Mar 2025.
Builds on
19 of 67 references.
Closest ancestors · 1
Same direction, newest first
Other references · 18
- 2023Code Llama: Open Foundation Models for Codecited by 2,105
- 2024AutoCodeRover: Autonomous Program Improvementcited by 272
- 2023Software Testing with Large Language Models: Survey, Landscape, and Visioncited by 163
- 2018SequenceR: Sequence-to-Sequence Learning for End-to-End Program Repaircited by 144
- 2023InferFix: End-to-End Program Repair with LLMscited by 113
- 2024IRIS: LLM-Assisted Static Analysis for Detecting Security Vulnerabilitiescited by 100
- 2020Graph-based, Self-Supervised Program Repair from Diagnostic Feedbackcited by 93
- 2022Repair Is Nearly Generation: Multilingual Program Repair with LLMscited by 68
- 2024MarsCode Agent: AI-native Automated Bug Fixingcited by 68
- 2021A Syntax-Guided Edit Decoder for Neural Program Repaircited by 57
- 2023What Makes Good In-context Demonstrations for Code Intelligence Tasks with LLMs?cited by 47
- 2019Getafix: Learning to Fix Bugs Automaticallycited by 40
6 more
- 2024ReposVul: A Repository-Level High-Quality Vulnerability Datasetcited by 35
- 2019A Manually-Curated Dataset of Fixes to Vulnerabilities of Open-Source Softwarecited by 28
- 2018AVATAR : Fixing Semantic Bugs with Fix Patterns of Static Analysis Violationscited by 22
- 2017Mining Fix Patterns for FindBugs Violationscited by 9
- 2023StaticFixer: From Static Analysis to Static Repaircited by 3
- 2023Patch Space Exploration using Static Analysis Feedbackcited by 1
Built on by
Citing papers per year: 2025: 4; 2026: 1.
5 papers.
- 2025From Code Foundation Models to Agents and Applications: A Comprehensive Survey and Practical Guide to Code Intelligencecited by 13
- 2025Seeing is Fixing: Cross-Modal Reasoning with Multimodal LLMs for Visual Software Issue Fixingcited by 11
- 2026FailureMem: A Failure-Aware Multimodal Framework for Autonomous Software Repaircited by 2
- 2025Collaborative Agents for Automated Program Repair in Rubycited by 1
- 2025From Benchmark Data To Applicable Program Repair: An Experience Reportcited by 0
- 2026FailureMem: A Failure-Aware Multimodal Framework for Autonomous Software Repair18 Mar 2026
- 2025From Code Foundation Models to Agents and Applications: A Comprehensive Survey and Practical Guide to Code Intelligence23 Nov 2025
- 2025Collaborative Agents for Automated Program Repair in Ruby6 Nov 2025
- 2025From Benchmark Data To Applicable Program Repair: An Experience Report22 Aug 2025
- 2025Seeing is Fixing: Cross-Modal Reasoning with Multimodal LLMs for Visual Software Issue Fixing19 Jun 2025
Similar, not cited
Close in wording, no citation either way
- 2025A Deep Dive into Retrieval-Augmented Generation for Code Completion: Experience on WeChat
- 2026Not All RAGs Are Created Equal: A Component-Wise Empirical Study for Software Engineering Tasks
- 2024CodeRAG-Bench: Can Retrieval Augment Code Generation?
- 2025Retrieval-Augmented Code Generation: A Survey with Focus on Repository-Level Approaches
- 2025Augmenting Large Language Models with Static Code Analysis for Automated Code Quality Improvements
- 2025ReCode: Improving LLM-based Code Repair with Fine-Grained Retrieval-Augmented Generation
- 2024Repoformer: Selective Retrieval for Repository-Level Code Completion
- 2024Context-Augmented Code Generation Using Programming Knowledge Graphs