Pith. sign in

REVIEW 4 cited by

DeepCode AI Fix: Fixing Security Vulnerabilities with Large Language Models

Not yet reviewed by Pith; the record is open.

This paper has not been read by Pith yet. Machine review is queued; the pith claim, tier, and objections will appear here once it completes.

SPECIMEN: schema-true, not a live event

T0 review · schema-true

One-sentence machine reading of the paper's core claim.

pith:XXXXXXXX · record.json · timestamp

arxiv 2402.13291 v2 pith:5MV7L4DP submitted 2024-02-19 cs.CR cs.LGcs.PLcs.SE

classification cs.CRcs.LGcs.PLcs.SE
keywords codemodelsprogramcomplexlargellmssecuritysystem
verification ladder T0 review T1 audit T2 compute T3 formal
0 comments
read the original abstract

The automated program repair field has attracted substantial interest over the years, but despite significant research efforts, creating a system that works well for complex semantic bugs such as security vulnerabilities has proven difficult. A promising direction to solve this challenge is by leveraging large language models (LLMs), which are increasingly used to solve various programming tasks. In this paper, we investigate the effectiveness of LLMs for solving code-repair task. We show that the task is difficult as it requires the model to learn long-range code relationships, a task that inherently relies on extensive amounts of training data. At the same time, creating a large, clean dataset for complex program bugs and their corresponding fixes is non-trivial. We propose a technique to address these challenges with a new approach for querying and fine-tuning LLMs. The idea is to use program analysis to limit the LLM's attention mechanism on the portions of code needed to perform the fix, drastically reducing the amount of required training data. Concretely, for training and inference, rather than feeding the entire program to the LLM, we reduce its code to a much shorter snippet that contains the reported defect together with the necessary context - and use that instead. Our evaluation shows that this code reduction approach substantially improves available models such as GPT-4 using few-shot learning, as well as fine-tuning models. To train and evaluate our system, we created a comprehensive code fixing dataset by extensively labeling 156 bug patterns (including 40 security rules), requiring complex interprocedural dataflow to discover. Our best system with Mixtral-8x7B can remove more than 80% of the reported defects while exactly matching the human fix in between 10 and 50% of cases, outperforming baselines based on GPT-3.5 and GPT-4, or based on window-based models like TFix.

Discussion (0). Sign in to comment.

Forward citations

Cited by 4 Pith papers

Reviewed papers in the Pith corpus that reference this work. Sorted by Pith novelty score.

  1. Towards Demystifying and Repairing LLM-in-the-Loop Vulnerabilities

    cs.SE 2026-05 unverdicted novelty 7.0 of 10

    Authors create LLMCVE dataset of LLM-in-the-loop vulnerabilities and demonstrate that agent-based repair methods achieve low success rates on them, particularly prompt injections at 28.57% Pass@1.

  2. PerfCoder: Large Language Models for Interpretable Code Performance Optimization

    cs.SE 2025-12 unverdicted novelty 7.0 of 10

    PerfCoder is a family of LLMs trained on optimization trajectories with human annotations and runtime-based preference alignment that achieves higher runtime speedups and optimization rates on the PIE benchmark than p...

  3. Towards Demystifying and Repairing LLM-in-the-Loop Vulnerabilities

    cs.SE 2026-05 unverdicted novelty 6.0 of 10

    LiL vulnerabilities are more severe than ecosystem and conventional bugs and drop LLM-based repair Pass@1 by ~10.8%, with three categories often at 0% success.

  4. Fine-grained Approaches for Confidence Calibration of LLMs in Automated Code Revision

    cs.SE 2026-04 unverdicted novelty 6.0 of 10

    Local Platt scaling on three fine-grained confidence scores reduces calibration error for LLM-based automated code revision across tasks and models compared to global scaling alone.

Pith tools