← Lab /AI/ML

LLM and traditional repair tools often fail to fix logical vulnerabilities due

Automated repair techniques struggle to generate correct patches for logical vulnerabilities, with failures driven by prompt sensitivity, loss of code context, and patch localization difficulty

AI/ML arXiv 14 Apr 2026 Measurement Prototype evidence

Published as “LogicEval: A Systematic Framework for Evaluating Automated Repair Techniques for Logical Vulnerabilities in Real-World Software”

Why it matters

LogicEval and LogicDS give researchers a concrete benchmark and analysis tool to improve automated repair of logical vulnerabilities, a class previously unsupported by existing datasets and evaluation suites.

Summary

LLM-based repair (VRPilot) outperforms traditional baselines on logical vulnerabilities, but overall success is limited and heavily influenced by prompt design, code context, and auxiliary information. Evaluations show higher compilation rates with zero-shot prompts and when providing full function context, yet reasoning scores drop with chain-of-thought prompts and when auxiliary data is omitted. The evidence comes from systematic experiments on the new LogicDS dataset of 86 real-world logical CVEs.

What they found 3

  1. The LLM-based VRPilot approach achieves higher compilation and test success than traditional baselines.

    “VRPilot, being an LLM-based approach, performs better compared to other baseline approaches.”

  2. Zero-shot prompts yield higher compilation percentages and reasoning scores than chain-of-thought prompts.

    “When evaluating with different prompting strategies, we observe that usually zero-shot based prompt P5 obtains higher compilation percentage and reasoning scores compared to CoT based prompts, especially in real-world examples.”

  3. Providing no auxiliary information leads to high compilation but poor reasoning alignment.

    “prompt P12 has a much higher compilation rate, but much lower reasoning scores compared to other prompts.”

Caveats 3

  • Compilation and testing failures are primarily driven by prompt sensitivity, loss of code context, and difficulty in patch localization.
  • We observe that several compilation errors occur for CoT based prompt P7 because it tries to create extra undefined variables.
  • Unfortunately, no technique currently exists to objectively and automatically evaluate suggested patches.

What’s new here 4

  • Introduces LogicEval, the first systematic framework for evaluating automated repair of logical vulnerabilities.
  • Creates LogicDS, a curated dataset of 86 real-world logical vulnerabilities with CVE identifiers.
  • Provides a comprehensive comparison of traditional, learning-based, and LLM-based repair techniques on logical bugs.
  • Analyzes the impact of prompt configurations, code context, and auxiliary information on LLM repair performance.