Multi-Granularity Detector for Vulnerability Fixes
Not on the map. Why?
Abstract (arXiv)
With the increasing reliance on Open Source Software, users are exposed to third-party library vulnerabilities. Software Composition Analysis (SCA) tools have been created to alert users of such vulnerabilities. SCA requires the identification of vulnerability-fixing commits. Prior works have proposed methods that can automatically identify such vulnerability-fixing commits. However, identifying such commits is highly challenging, as only a very small minority of commits are vulnerability fixing. Moreover, code changes can be noisy and difficult to analyze. We observe that noise can occur at different levels of detail, making it challenging to detect vulnerability fixes accurately. To address these challenges and boost the effectiveness of prior works, we propose MiDas (Multi-Granularity Detector for Vulnerability Fixes). Unique from prior works, Midas constructs different neural networks for each level of code change granularity, corresponding to commit-level, file-level, hunk-level, and line-level, following their natural organization. It then utilizes an ensemble model that combines all base models to generate the final prediction. This design allows MiDas to better handle the noisy and highly imbalanced nature of vulnerability-fixing commit data. Additionally, to reduce the human effort required to inspect code changes, we have designed an effort-aware adjustment for Midas's outputs based on commit length. The evaluation results demonstrate that MiDas outperforms the current state-of-the-art baseline in terms of AUC by 4.9% and 13.7% on Java and Python-based datasets, respectively. Furthermore, in terms of two effort-aware metrics, EffortCost@L and Popt@L, MiDas also outperforms the state-of-the-art baseline, achieving improvements of up to 28.2% and 15.9% on Java, and 60% and 51.4% on Python, respectively.
Key facts. Cited by 4 papers in the map (data through 14 Oct 2026). Builds on 37 of its 117 references that are in the map. First posted on arXiv 23 May 2023.
Builds on
37 of 117 references.
References · 37
- 2017Attention Is All You Needcited by 60,361
- 2014Adam: A Method for Stochastic Optimizationcited by 37,240
- 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,310
- 2019CodeSearchNet Challenge: Evaluating the State of Semantic Code Searchcited by 654
- 2014A Convolutional Neural Network for Modelling Sentencescited by 163
- 2018SequenceR: Sequence-to-Sequence Learning for End-to-End Program Repaircited by 145
- 2018TESSERACT: Eliminating Experimental Bias in Malware Classification across Space and Timecited by 108
- 2022Less Training, More Repairing Please: Revisiting Automated Program Repair via Zero-shot Learningcited by 76
- 2022Natural Attack for Pre-trained Models of Codecited by 75
- 2018DeepBugs: A Learning Approach to Name-based Bug Detectioncited by 65
- 2021Applying CodeBERT for Automated Program Repair of Java Simple Bugscited by 44
- 2020CC2Vec: Distributed Representations of Code Changescited by 39
25 more
- 2022On the Transferability of Pre-trained Language Models for Low-Resource Programming Languagescited by 30
- 2018A Grammar-Based Structural CNN Decoder for Code Generationcited by 29
- 2019A Manually-Curated Dataset of Fixes to Vulnerabilities of Open-Source Softwarecited by 28
- 2017Do Developers Update Their Library Dependencies? An Empirical Study on the Impact of Security Advisories on Library Migrationcited by 23
- 2022DEAR: A Novel Deep Learning-based Approach for Automated Program Repaircited by 22
- 2021SPI: Automated Identification of Security Patches via Commitscited by 19
- 2021Fault Localization with Code Coverage Representation Learningcited by 16
- 2018A Practical Approach to the Automatic Classification of Security-Relevant Commitscited by 13
- 2022Learning to Reduce False Positives in Analytic Bug Detectorscited by 12
- 2020Neural Software Analysiscited by 11
- 2021DeepCVA: Automated Commit-level Vulnerability Assessment with Deep Multi-task Learningcited by 11
- 2022AutoPruner: Transformer-Based Call Graph Pruningcited by 11
- 2022VulCurator: A Vulnerability-Fixing Commit Detectorcited by 11
- 2023Invalidator: Automated Patch Correctness Assessment via Semantic and Syntactic Reasoningcited by 11
- 2019Automated Classification of Overfitting Patches with Statically Extracted Code Featurescited by 10
- 2018On Reliability of Patch Correctness Assessmentcited by 9
- 2022BashExplainer: Retrieval-Augmented Bash Code Comment Generation based on Fine-tuned CodeBERTcited by 9
- 2022Demystifying the Vulnerability Propagation and Its Evolution via Dependency Trees in the NPM Ecosystemcited by 8
- 2022Enhancing Security Patch Identification by Capturing Structures in Commitscited by 7
- 2023CHRONOS: Time-Aware Zero-Shot Identification of Libraries from Vulnerability Reportscited by 7
- 2023PatchZero: Zero-Shot Automatic Patch Correctness Assessmentcited by 3
- 2021Open or Sneaky? Fast or Slow? Light or Heavy?: Investigating Security Releases of Open Source Packagescited by 2
- 2019Lags in the Release, Adoption, and Propagation of npm Vulnerability Fixescited by 1
- 2020The Sound of Silence: Mining Security Vulnerabilities from Secret Integration Channels in Open-Source Projectscited by 1
- 2021A Differential Testing Approach for Evaluating Abstract Syntax Tree Mapping Algorithmscited by 1
Built on by
Citing papers per year: 2024: 1; 2025: 2; 2026: 1.
4 papers.
- 2024Towards Reliable Evaluation of Neural Program Repair with Natural Robustness Testingcited by 5
- 2026Favia: Forensic Agent for Vulnerability-fix Identification and Analysiscited by 1
- 2025A Match Made in Heaven? AI-driven Matching of Vulnerabilities and Security Unit Testscited by 0
- 2025Enhancing Neural Code Representation with Additional Contextcited by 0
- 2026Favia: Forensic Agent for Vulnerability-fix Identification and Analysis13 Feb 2026
- 2025Enhancing Neural Code Representation with Additional Context14 Oct 2025
- 2025A Match Made in Heaven? AI-driven Matching of Vulnerabilities and Security Unit Tests5 Feb 2025
- 2024Towards Reliable Evaluation of Neural Program Repair with Natural Robustness Testing19 Feb 2024