Skip to content

DeepCode AI Fix: Fixing Security Vulnerabilities with Large Language ModelsDeepCode AI Fix: Fixing Security Vulnerabilities with Large Language Models

arXiv· arXiv:2402.13291· Berkay Berabi, Alexey Gronskiy, Veselin Raychev, Gishor Sivanrupan, Victor Chibotaru, Martin Vechev·Indexed by this site · 27 days ago· Originally publishedDefenses
AI summary

Berkay Berabi et al. propose DeepCode AI Fix, which uses program analysis to reduce the code to be fixed to a snippet containing the defect and necessary context, then hands it to a large language model to complete the fix. The team builds training and evaluation datasets by annotating 156 defect patterns (40 of which are security rules); these patterns require complex interprocedural data-flow analysis to detect. The best system, based on Mixtral-8x7B, can eliminate over 80% of reported defects and exactly matches human fixes in 10% to 50% of cases, outperforming GPT-3.5, GPT-4 and the window-based model TFix baseline. The authors claim this code reduction method also improves GPT-4's few-shot learning performance and the effectiveness of fine-tuned models.

Read originalarxiv.org