Repository-Level Graph Representation Learning for Enhanced Security Patch Detection
Not on the map. Why?
Abstract (arXiv)
Software vendors often silently release security patches without providing sufficient advisories (e.g., Common Vulnerabilities and Exposures) or delayed updates via resources (e.g., National Vulnerability Database). Therefore, it has become crucial to detect these security patches to ensure secure software maintenance. However, existing methods face the following challenges: (1) They primarily focus on the information within the patches themselves, overlooking the complex dependencies in the repository. (2) Security patches typically involve multiple functions and files, increasing the difficulty in well learning the representations. To alleviate the above challenges, this paper proposes a Repository-level Security Patch Detection framework named RepoSPD, which comprises three key components: 1) a repository-level graph construction, RepoCPG, which represents software patches by merging pre-patch and post-patch source code at the repository level; 2) a structure-aware patch representation, which fuses the graph and sequence branch and aims at comprehending the relationship among multiple code changes; 3) progressive learning, which facilitates the model in balancing semantic and structural information. To evaluate RepoSPD, we employ two widely-used datasets in security patch detection: SPI-DB and PatchDB. We further extend these datasets to the repository level, incorporating a total of 20,238 and 28,781 versions of repository in C/C++ programming languages, respectively, denoted as SPI-DB* and PatchDB*. We compare RepoSPD with six existing security patch detection methods and five static tools. Our experimental results demonstrate that RepoSPD outperforms the state-of-the-art baseline, with improvements of 11.90%, and 3.10% in terms of accuracy on the two datasets, respectively.
Key facts. Cited by 3 papers in the map (data through 7 Oct 2026). Builds on 23 of its 69 references that are in the map. First posted on arXiv 11 Dec 2024.
Builds on
23 of 69 references.
References · 23
- 2016Semi-Supervised Classification with Graph Convolutional Networkscited by 11,282
- 2017Graph Attention Networkscited by 8,854
- 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,286
- 2021CodeT5: Identifier-aware Unified Pre-trained Encoder-Decoder Models for Code Understanding and Generationcited by 890
- 2015Gated Graph Sequence Neural Networkscited by 792
- 2022UniXcoder: Unified Cross-Modal Pre-training for Code Representationcited by 355
- 2023RepoBench: Benchmarking Repository-Level Code Auto-Completion Systemscited by 346
- 2019Devign: Effective Vulnerability Identification by Learning Comprehensive Program Semantics via Graph Neural Networkscited by 266
- 2017Convolutional Neural Networks for Medical Image Analysis: Full Training or Fine Tuning?cited by 220
- 2020Deep Learning based Vulnerability Detection: Are We There Yet?cited by 142
- 2023CodePlan: Repository-level Coding using LLMs and Planningcited by 139
- 2024RepoAgent: An LLM-Powered Open-Source Framework for Repository-level Code Documentation Generationcited by 69
11 more
- 2021Vulnerability Detection with Fine-grained Interpretationscited by 56
- 2024REPOFUSE: Repository-Level Code Completion with Fused Dual Contextcited by 32
- 2021SPI: Automated Identification of Security Patches via Commitscited by 19
- 2024VulEval: Towards Repository-Level Evaluation of Software Vulnerability Detectioncited by 18
- 2024SCALE: Constructing Structured Natural Language Comment Trees for Software Vulnerability Detectioncited by 17
- 2021PatchRNN: A Deep Learning-Based System for Security Patch Identificationcited by 13
- 2022VulCurator: A Vulnerability-Fixing Commit Detectorcited by 11
- 2023Vulnerability Detection with Graph Simplification and Enhanced Graph Representation Learningcited by 8
- 2023When Less is Enough: Positive and Unlabeled Learning Model for Vulnerability Detectioncited by 8
- 2022Enhancing Security Patch Identification by Capturing Structures in Commitscited by 7
- 2023LIVABLE: Exploring Long-Tailed Classification of Software Vulnerability Typescited by 3
Built on by
Citing papers per year: 2025: 2; 2026: 1.
3 papers.
- 2025Empirical Study of Code Large Language Models for Binary Security Patch Detectioncited by 1
- 2025From LLMs to Agents: A Comparative Evaluation of LLMs and LLM-based Agents in Security Patch Detectioncited by 1
- 2026A Comprehensive Evaluation of Code Language Models for Security Patch Detectioncited by 0
- 2026A Comprehensive Evaluation of Code Language Models for Security Patch Detection13 May 2026
- 2025From LLMs to Agents: A Comparative Evaluation of LLMs and LLM-based Agents in Security Patch Detection11 Nov 2025
- 2025Empirical Study of Code Large Language Models for Binary Security Patch Detection7 Sep 2025