mlsanityData to 14 Oct 2026

Resource-Efficient Automatic Software Vulnerability Assessment via Knowledge Distillation and Particle Swarm Optimization

arXiv 2508.02840 ↗First posted 30 Jul 2025cs.LG cs.CRcited by 0

On the map: Knowledge distillation → Federated, robust and private distillation

Abstract (arXiv)

The increasing complexity of software systems has led to a surge in cybersecurity vulnerabilities, necessitating efficient and scalable solutions for vulnerability assessment. However, the deployment of large pre-trained models in real-world scenarios is hindered by their substantial computational and storage demands. To address this challenge, we propose a novel resource-efficient framework that integrates knowledge distillation and particle swarm optimization to enable automated vulnerability assessment. Our framework employs a two-stage approach: First, particle swarm optimization is utilized to optimize the architecture of a compact student model, balancing computational efficiency and model capacity. Second, knowledge distillation is applied to transfer critical vulnerability assessment knowledge from a large teacher model to the optimized student model. This process significantly reduces the model size while maintaining high performance. Experimental results on an enhanced MegaVul dataset, comprising 12,071 CVSS (Common Vulnerability Scoring System) v3 annotated vulnerabilities, demonstrate the effectiveness of our approach. Our approach achieves a 99.4% reduction in model size while retaining 89.3% of the original model's accuracy. Furthermore, it outperforms state-of-the-art baselines by 1.7% in accuracy with 60% fewer parameters. The framework also reduces training time by 72.1% and architecture search time by 34.88% compared to traditional genetic algorithms.

Key facts. No citing papers in the map yet (data through 14 Oct 2026). Placed in Federated, robust and private distillation, one of 12 directions in Knowledge distillation. Builds on 32 of its 68 references that are in the map. First posted on arXiv 30 Jul 2025.

Builds on

32 of 68 references.

References · 32

  1. 2020Knowledge Distillation: A Surveycited by 1,603
  2. 2020MiniLM: Deep Self-Attention Distillation for Task-Agnostic Compression of Pre-Trained Transformerscited by 1,463
  3. 2019ZeRO: Memory Optimizations Toward Training Trillion Parameter Modelscited by 1,301
  4. 2017Sigmoid-Weighted Linear Units for Neural Network Function Approximation in Reinforcement Learningcited by 950
  5. 2019Model Pruning Enables Efficient Federated Learning on Edge Devicescited by 222
  6. 2023An Empirical Evaluation of Using Large Language Models for Automated Unit Test Generationcited by 194
  7. 2023InferFix: End-to-End Program Repair with LLMscited by 114
  8. 2020Compressing Large-Scale Transformer-Based Models: A Case Study on BERTcited by 96
  9. 2019Knowledge Distillation from Internal Representationscited by 87
  10. 2020Big Code != Big Vocabulary: Open-Vocabulary Models for Source Codecited by 54
  11. 2020Knowledge Distillation for Multi-task Learningcited by 51
  12. 2022VulBERTa: Simplified Source Code Pre-Training for Vulnerability Detectioncited by 51
20 more
  1. 2024Large Language Model for Vulnerability Detection: Emerging Results and Future Directionscited by 45
  2. 2021Applying CodeBERT for Automated Program Repair of Java Simple Bugscited by 44
  3. 2021TreeBERT: A Tree-Based Pre-Trained Model for Programming Languagecited by 41
  4. 2020Fast and Memory-Efficient Neural Code Completioncited by 38
  5. 2021ReGVD: Revisiting Graph Neural Networks for Vulnerability Detectioncited by 32
  6. 2024MegaVul: A C/C++ Vulnerability Dataset with Comprehensive Code Representationcited by 27
  7. 2023Domain Knowledge Matters: Improving Prompts with Fix Templates for Repairing Python Type Errorscited by 22
  8. 2022Compressing Pre-trained Models of Code into 3 MBcited by 21
  9. 2023Greening Large Language Models of Codecited by 19
  10. 2021A Survey on Data-driven Software Vulnerability Assessment and Prioritizationcited by 18
  11. 2021Automated Software Vulnerability Assessment with Concept Driftcited by 15
  12. 2022An Exploratory Study on Code Attention in BERTcited by 12
  13. 2021DeepCVA: Automated Commit-level Vulnerability Assessment with Deep Multi-task Learningcited by 11
  14. 2019LEOPARD: Identifying Vulnerable Code for Vulnerability Assessment through Program Metricscited by 10
  15. 2024Investigating the Efficacy of Large Language Models for Code Clone Detectioncited by 7
  16. 2018Cogni-Net: Cognitive Feature Learning through Deep Visual Perceptioncited by 5
  17. 2020Low Precision Floating-point Arithmetic for High Performance FPGA-based CNN Accelerationcited by 5
  18. 2022On the Use of Fine-grained Vulnerable Code Statements for Software Vulnerability Assessment Modelscited by 5
  19. 2022CodeBERT-nt: code naturalness via CodeBERTcited by 4
  20. 2022Generalizability of Code Clone Detection on CodeBERTcited by 4

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2025Automated Vulnerability Validation and Verification: A Large Language Model Approach
  2. 2024Direction for Detection: A Survey of Automated Vulnerability Detection and all of its Pain Points
  3. 2025R2Vul: Learning to Reason about Software Vulnerabilities with Reinforcement Learning and Structured Reasoning Distillation
  4. 2025ReVul-CoT: Towards Effective Software Vulnerability Assessment with Retrieval-Augmented Generation and Chain-of-Thought Prompting
  5. 2025Out of Distribution, Out of Luck: How Well Can LLMs Trained on Vulnerability Datasets Detect Top 25 CWE Weaknesses?
  6. 2026AgenticVM: Agentic AI for Adaptive Software Vulnerability Management
  7. 2026FuzzingBrain V2: A Multi-Agent LLM System for Automated Vulnerability Discovery and Reproduction
  8. 2025Boosting Vulnerability Detection of LLMs via Curriculum Preference Optimization with Synthetic Reasoning Data