收藏切换
LHG-VD: A Learnable Hierarchical Graph Representation Vulnerability Detection Method
收藏切换
Song Hu1, Jiachi Luo2, Wenkai Wan2, Yang Yan1, Fan Guo2, *, Yanwen Qu2
Journal of Computer Research and Development | 2025, 62(9) : 2348 - 2361
Less
收藏切换
Journal of Computer Research and Development | 2025, 62(9): 2348-2361
• Network and Information Security •
LHG-VD: A Learnable Hierarchical Graph Representation Vulnerability Detection Method
Full
Song Hu1, Jiachi Luo2, Wenkai Wan2, Yang Yan1, Fan Guo2, *, Yanwen Qu2
Affiliations
  • 1School of Digital Industry, Jiangxi Normal University, Shangrao, Jiangxi 334006
  • 2School of Computer Information Engineering, Jiangxi Normal University, Nanchang 330022
  • born in 1999. Master. His main research interests include vulnerability detection and graph deep learning

    born in 2002. Bachelor. His main research interest includes machine learning

    born in 2001. Master. His main research interests include vulnerability detection and graph deep learning

    born in 1999. Master. His main research interests include vulnerability detection and machine learning

    born in 1977. PhD, associate professor, His main research interests include network security, program analysis, and vulnerability mining

    born in 1983. PhD, lecturer. His main research interests include graph deep learning and vulnerability detection

About Author:

born in 1999. Master. His main research interests include vulnerability detection and graph deep learning

born in 2002. Bachelor. His main research interest includes machine learning

born in 2001. Master. His main research interests include vulnerability detection and graph deep learning

born in 1999. Master. His main research interests include vulnerability detection and machine learning

born in 1977. PhD, associate professor, His main research interests include network security, program analysis, and vulnerability mining

born in 1983. PhD, lecturer. His main research interests include graph deep learning and vulnerability detection

Published: 2025-09-01 doi: 10.7544/issn1000-1239.202440171
Outline
收藏切换

Software vulnerabilities pose a serious threat to the safe and stable operation of computer systems and software, so the research related to their automatic detection has been receiving extensive attention. Unlike traditional static vulnerability detection tools that use predefined rules provided by human experts to analyze the code, graph neural network (GNN)-based vulnerability detection methods have surpassed the traditional methods in some datasets by automatically learning the vulnerable code patterns. However, in the current GNN-based vulnerability detection methods, the design of GNN model is not combined with the characteristics of the code itself, which leads to poor detection effect on the real vulnerability code dataset. In this paper, we propose a learnable hierarchical graph representation vulnerability detection method LHG-VD, which is characterized by proposing a learnable readout function for the limitation of the traditional readout function, and designing a cross-granularity loss function based on the idea of comparative learning for the problem of maintaining the local structural information of the code in the process of graph pooling. Experimental results on real vulnerability datasets show that the F1 value of LHG-VD is 71.5%, which is improved by 4.9% compared with DeepWukong, a slice-level detection method, and 8.9% compared with AMPLE, a function-level detection method.

vulnerability detection  /  deep learning  /  graph neural network  /  comparative learning  /  graph pooling
胡菘, 罗嘉驰, 万文凯, 闫阳, 郭帆, 曲彦文. LHG-VD: 一种可学习的层次化图表示漏洞检测方法. 计算机研究与发展, 2025 , 62 (9) : 2348 -2361 . DOI: 10.7544/issn1000-1239.202440171
Song Hu, Jiachi Luo, Wenkai Wan, Yang Yan, Fan Guo, Yanwen Qu. LHG-VD: A Learnable Hierarchical Graph Representation Vulnerability Detection Method[J]. Journal of Computer Research and Development, 2025 , 62 (9) : 2348 -2361 . DOI: 10.7544/issn1000-1239.202440171
Year 2025 volume 62 Issue 9
106
46
Cite this Article
BibTeX
Article Info
doi: 10.7544/issn1000-1239.202440171
  • Receive Date:2024-03-12
  • Online Date:2026-11-10
  • Published:2025-09-01
Article Data
Affiliations
History
  • Received:2024-03-12
  • Revised:2025-05-21
  • Accepted:2025-06-11
Affiliations
    1School of Digital Industry, Jiangxi Normal University, Shangrao, Jiangxi 334006
    2School of Computer Information Engineering, Jiangxi Normal University, Nanchang 330022
References
Share
https://castjournals.cast.org.cn/joweb/jsjyjyfz/EN/10.7544/issn1000-1239.202440171
Share to
QR

Scan QR to access full text

Cite this article
BibTeX
Citations
表12种不同金属材料的力学参数
科
Family
属数
Number of
genus
种数
Number of
species
占总种数比例
Percentage of
total species (%)
属
Genus
种数
Number of
species
占总种数比例
Percentage of total
species (%)
鹅膏菌科Amanitaceae 2 11 5.26 鹅膏菌属 Amanita 10 4.78
小菇科 Mycenaceae 2 12 5.74 丝盖伞属 Inocybe 5 2.39
多孔菌科 Polyporaceae 8 14 6.70 蜡蘑属 Laccaria 5 2.39
红菇科 Russulaceae 3 23 11.00 小皮伞属 Marasmius 6 2.87
小菇属 Mycena 11 5.26
光柄菇属 Pluteus 5 2.39
红菇属 Russula 17 8.13
栓菌属 Trametes 5 2.39
关闭全屏
  • BibTeX
  • EndNote
  • RefWorks
  • TxT