Research map / Large language models / Instruction and fine-tuning
Refinement-Integrated Reasoning Elicits Better Generalization of LLM-Based Code Vulnerability Detection
Xianda Du, Pei Ke, Enping Hu, Guannan Li, Jinyu Guo, Ke Qin
University of Electronic Science and Technology of China · Ubiquitous Intelligence and Trusted Services Key Laboratory of Sichuan Province
Read the paperPlace an idea next to itCheck your own paper ↗
AI-extracted. The measured effects below were read by AI from the paper's full text (no summary yet). Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.
This paper tried a common change: Chain-of-thought prompting
add reasoning chains (CoT) to the SFT training data · All-dataset average · F1: 54.58 -> 57.57 Improved
What 2,675 accepted papers report for this change
- 1,683 improved
- 270 no clear effect
- 109 mixed
- 613 hurt
- AudioChat: Unified Audio Storytelling, Editing, and Understanding with Transfusion Forcing ICML 2026 · add structured chain-of-thought reasoning to the diffusion LLM · StoryGen-Eval editing · delta multiFLAM: 27.8 -> 11.7Improved
- Vision Language Models Cannot Reason About Physical Transformation ICML 2026 · add CoT prompt instead of Direct prompt · Number & Length · accuracy: F(3, 333) = 18.28Hurt
- VideoSEG-O3: A Multi-turn Reinforcement Learning Framework for Reasoning Video Object Segmentation ICML 2026 · Add CoT cold-start stage on top of SFT · Long-RVOS · J&F: 47.12 -> 51.82Improved
See this change in detailMatched by the wording of each paper's own result, read by AI from the full text. Papers report gains more often than failures, so this shows what gets published, not the chance a change works.
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| add reasoning chains (CoT) to the SFT training data (ablation) | SFT on CodeLlama-7B · All-dataset average | F1: 54.58 -> 57.57 | Improved |
| add refinement to guide reasoning-chain synthesis for fine-tuning (ablation) | SFT-CoT on CodeLlama-7B · All-dataset average | F1: 57.57 -> 67.40 | Improved |
| add DPO without refinement after fine-tuning (ablation) | RIRE (ID 3) · All-dataset average | F1: 67.40 -> 68.20 | Improved |
| add refinement to hierarchical preference optimization (ablation) | RIRE (ID 4) · All-dataset average | F1: 68.20 -> 68.62 | Improved |
| use RIRE instead of VulLLM | CodeLlama-7B · All-dataset average | F1: 63.42 -> 68.62 | Improved |
| use RIRE instead of VulLLM | CodeLlama-7B · Unseen average | F1: 62.29 -> 70.59 | Improved |
| use RIRE instead of VulLLM | CodeLlama-7B · Seen datasets (DiverseVul, Devign) | MCC: 35.38 -> 28.12 (DiverseVul), 27.13 -> 15.43 (Devign) | Hurt |
| use RIRE instead of VulLLM | CodeLlama-7B · BigVul and Juliet | MCC: 22.33 -> 25.63 (BigVul), 7.61 -> 62.19 (Juliet) | Improved |
| use RIRE (7B) instead of GPT-4o | CodeLlama-7B vs closed-source LLM · Juliet | F1: 74.21 -> 79.77 | Improved |
| increase Qwen2.5-Coder size from 1.5B to 7B | RIRE · five datasets average | F1 | Improved |
| compare RIRE with GPT-4o explanations (human evaluation, seen datasets) | RIRE · human evaluation | correctness win rate: 50.8% win vs 12.5% lose | Improved |
| compare RIRE with SFT-CoT explanations on unseen datasets (human evaluation) | RIRE · human evaluation | correctness: 33.9% win vs 21.7% lose | No clear effect |
Open problems in safety alignment after fine-tuning
Do safety defenses against harmful fine-tuning hold on larger models and against adaptive attacks?
- Larger models were not tested, mostly for lack of compute. · 27 papers state it
- Defenses are tested against few attacks and not against adaptive ones. · 15 papers state it
- Safety is scored by one LLM judge or classifier that may be biased. · 15 papers state it
Closest papers by meaning
- Boosting Vulnerability Detection of LLMs via Curriculum Preference Optimization with Synthetic Reasoning Data (ACL 2025 · similarity 0.88)
- IRIS: LLM-Assisted Static Analysis for Detecting Security Vulnerabilities (ICLR 2025 · similarity 0.84)
- SecCodePRM: A Process Reward Model for Code Security (ICML 2026 · similarity 0.83)
- MOSAIC-Bench: Measuring Compositional Vulnerability Induction in Coding Agents (NeurIPS 2026 · similarity 0.82)
- ProSec: Fortifying Code LLMs with Proactive Security Alignment (ICML 2025 · similarity 0.82)
- Suitable is the Best: Task-Oriented Knowledge Fusion in Vulnerability Detection (NeurIPS 2024 · similarity 0.82)
Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.