HSR-APR: A Hybrid Secure Reflective Automated Program Repair Framework with Adaptive Reflection Memory
Résumé
Abstract Automated Program Repair (APR) has benefited from the rapid development of Large Language Models (LLMs), but existing approaches still rely heavily on functional testing, provide limited security validation, insufficient integration of traditional program analysis, and have limited ability to learn from failed repair attempts. This research proposes HSR-APR (Hybrid Secure Reflective Automated Program Repair), a hybrid framework that integrates static analysis, fault localization, Retrieval-Augmented Generation (RAG), LLM-based patch generation, functional and security validation, self-reflection, and Adaptive Reflection Memory (ARM). The framework iteratively evaluates generated patches, analyzes failed attempts, stores repair experiences in ARM, and retrieves relevant knowledge to improve subsequent repair prompts. HSR-APR is evaluated on 300 SWE-Bench Lite instances using four configurations: Baseline LLM, Hybrid APR, Hybrid APR with Security Validation, and HSR-APR. Results show that HSR-APR achieves an 85% Repair Success Rate (255/300), compared with 63% for the Baseline LLM, while increasing the Test Pass Rate from 72% to 92% and Security Warning Reduction from 8% to 87%. It also reduces average repair iterations from 5.8 to 2.9 and execution time from 18 to 13 minutes, demonstrating that combining hybrid analysis, security validation, self-reflection, and adaptive memory improves the effectiveness, security, and efficiency of LLM-based APR.
Citer ce document
Exporter : BibTeX · RIS (Zotero, Mendeley, EndNote)
Accès au document
Texte intégral archivé sur SPHAERO, en accès ouvert : lisible gratuitement en ligne après connexion. Le document reste aussi disponible à sa source. Se connecter
Voir l'article sur le site de la revueLicence et provenance
Licence : CC BY
Notice moissonnée depuis OpenAlex le 16/11/2026. Le document reste hébergé par sa source.
Voir le document à la source →