Distilling Lightweight Language Models for C/C++ Vulnerabilities
Not on the map. Why?
Abstract (arXiv)
The increasing complexity of modern software systems exacerbates the prevalence of security vulnerabilities, posing risks of severe breaches and substantial economic loss. Consequently, robust code vulnerability detection is essential for software security. While Large Language Models (LLMs) have demonstrated remarkable capabilities in natural language processing, their potential for automated code vulnerability detection remains underexplored. This paper presents FineSec, a novel framework that harnesses LLMs through knowledge distillation to enable efficient and precise vulnerability identification in C/C++ codebases. FineSec utilizes knowledge distillation to transfer expertise from large teacher models to compact student models, achieving high accuracy with minimal computational cost. By integrating data preparation, training, evaluation, and continuous learning into a unified, single-task workflow, FineSec offers a streamlined approach. Extensive evaluations on C/C++ codebases demonstrate its superiority over both base models and larger LLMs in identifying complex vulnerabilities and logical flaws, establishing FineSec as a practical and scalable solution for real-world software security. To facilitate reproducibility, the datasets, source code, and experimental results are made publicly available at: https://github.com/yangxiaoxuan123/FineSec_detect.
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 12 of its 30 references that are in the map. First posted on arXiv 8 Oct 2025.
Builds on
12 of 30 references.
References · 12
- 2017Attention Is All You Needcited by 60,361
- 2015Distilling the Knowledge in a Neural Networkcited by 10,324
- 2019PEGASUS: Pre-training with Extracted Gap-sentences for Abstractive Summarizationcited by 1,102
- 2021Deduplicating Training Data Makes Language Models Bettercited by 714
- 2019Devign: Effective Vulnerability Identification by Learning Comprehensive Program Semantics via Graph Neural Networkscited by 272
- 2022REVEAL: Retrieval-Augmented Visual-Language Pre-Training with Multi-Source Multimodal Knowledge Memorycited by 123
- 2024IRIS: LLM-Assisted Static Analysis for Detecting Security Vulnerabilitiescited by 103
- 2021CVEfixes: Automated Collection of Vulnerabilities and Their Fixes from Open-Source Softwarecited by 91
- 2023Fuzz4All: Universal Fuzzing with Large Language Modelscited by 88
- 2023Understanding the Effectiveness of Large Language Models in Detecting Security Vulnerabilitiescited by 59
- 2023Survey on Quality Assurance of Smart Contractscited by 4
- 2025Adaptive Plan-Execute Framework for Smart Contract Security Auditingcited by 2
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2025SV-TrustEval-C: Evaluating Structure and Semantic Reasoning in Large Language Models for Source Code Vulnerability Analysis
- 2025Llama-based source code vulnerability detection: Prompt engineering vs Fine tuning
- 2026SEC-bench Pro: Can Language Models Solve Long-Horizon Software Security Tasks?
- 2026Representation Matters: An Empirical Study of Program Representations for LLM Vulnerability Reasoning
- 2025Reasoning with LLMs for Zero-Shot Vulnerability Detection
- 2024To Err is Machine: Vulnerability Detection Challenges LLM Reasoning
- 2024Security Vulnerability Detection with Multitask Self-Instructed Fine-Tuning of Large Language Models
- 2024Towards Explainable Vulnerability Detection with Large Language Models