SynthFix: Adaptive Neuro-Symbolic Code Vulnerability Repair

Yifan Zhang, Jieyu Li, Kexin Pei, Yu Huang, Kevin Leach


Abstract
Large Language Models (LLMs) show promise for automated code repair but often struggle with the complex semantic and structural correctness required. We present SynthFix, a hybrid neural-symbolic framework that improves LLM-based vulnerability repair by unifying code synthesis with compiler-informed symbolic feedback. The core of our approach is an adaptive training strategy where a neural Router Model directs code samples to either Supervised Fine-Tuning (SFT) to learn common patterns or Reward Fine-Tuning (RFT) with symbolic rewards for complex, iterative refinement. On the FixJS (JavaScript) and CodeFlaws (C) benchmarks, SynthFix achieves up to 18% relative improvement in CodeBLEU/CrystalBLEU and 32% in Exact Match over strong SFT and RFT baselines. Our results show that this adaptive combination of training strategies, which mirrors how developers alternate between pattern application and tool feedback, significantly improves the accuracy and efficiency of LLM-based vulnerability repair. Our code and data are available at https://github.com/CoderDoge1108/SynthFix.
Anthology ID:
2026.findings-acl.1339
Volume:
Findings of the Association for Computational Linguistics: ACL 2026
Month:
July
Year:
2026
Address:
San Diego, California, United States
Editors:
Maria Liakata, Viviane P. Moreira, Jiajun Zhang, David Jurgens
Venue:
Findings
SIG:
Publisher:
Association for Computational Linguistics
Note:
Pages:
26857–26870
Language:
URL:
https://preview.aclanthology.org/ingest-acl/2026.findings-acl.1339/
DOI:
Bibkey:
Cite (ACL):
Yifan Zhang, Jieyu Li, Kexin Pei, Yu Huang, and Kevin Leach. 2026. SynthFix: Adaptive Neuro-Symbolic Code Vulnerability Repair. In Findings of the Association for Computational Linguistics: ACL 2026, pages 26857–26870, San Diego, California, United States. Association for Computational Linguistics.
Cite (Informal):
SynthFix: Adaptive Neuro-Symbolic Code Vulnerability Repair (Zhang et al., Findings 2026)
Copy Citation:
PDF:
https://preview.aclanthology.org/ingest-acl/2026.findings-acl.1339.pdf
Checklist:
 2026.findings-acl.1339.checklist.pdf