Newshot

GRAML: Graph-Grounded Reasoning and Multi-Task Learning for LLM-Based Software Vulnerability Detection

Summary

arXiv:2610.09605v2 Announce Type: replace Abstract: Large language models (LLMs) have shown promise in software vulnerability detection. Existing approaches leverage program graphs to provide structural evidence for vulnerability analysis and description generation. However, redundant or weakly relevant graph relations make it difficult to identify vulnerability-related code lines and their connections to vulnerable statements. Meanwhile, generated descriptions may omit key information or contain claims unsupported by the source code. To address these challenges, we propose GRAML, a graph-grounded multi-task framework for LLM-based vulnerability detection. Specifically, GRAML uses structural propagation, relation diversity, and redundancy control to identify vulnerability-relevant code lines and their associated program relations. To improve description reliability, we further develop Tree-of-Thought-based Vulnerability Reasoning (ToT-VR), which explores multiple candidate explanations…

Original text(via arXiv cs.SE)

Computer Science > Software Engineering

Title:GRAML: Graph-Grounded Reasoning and Multi-Task Learning for LLM-Based Software Vulnerability Detection

Abstract:Large language models (LLMs) have shown promise in software vulnerability detection. Existing approaches leverage program graphs to provide structural evidence for vulnerability analysis and description generation. However, redundant or weakly relevant graph relations make it difficult to identify vulnerability-related code lines and their connections to vulnerable statements. Meanwhile, generated descriptions may omit key information or contain claims unsupported by the source code. To address these challenges, we propose GRAML, a graph-grounded multi-task framework for LLM-based vulnerability detection. Specifically, GRAML uses structural propagation, relation diversity, and redundancy control to identify vulnerability-relevant code lines and their associated program relations. To improve description reliability, we further develop Tree-of-Thought-based Vulnerability Reasoning (ToT-VR), which explores multiple candidate explanations and evaluates their consistency with source code. The resulting descriptions are organized as Description samples and combined with Detection, Localization, and Assessment samples for four-task fine-tuning. We evaluated four code LLMs on seven vulnerability detection datasets. In particular, GRAML achieves average F1 scores of 67.08% to 69.32%, outperforming the evaluated baselines by 2.02 to 31.54 percentage points. Furthermore, ToT-VR improves average F1 by 4.43 to 6.99 percentage points over Chain-of-Thought (CoT)-based description generation, while multi-task training improves it by 8.03 to 18.26 percentage points over Detection-only training. These results demonstrate the effectiveness of graph-grounded multi-task supervision for software vulnerability detection.
Subjects:Software Engineering (cs.SE)
Cite as:arXiv:2610.09605 [cs.SE]
(or arXiv:2610.09605v2 [cs.SE] for this version)
https://doi.org/10.48550/arXiv.2610.09605 arXiv-issued DOI via DataCite

Submission history

Access Paper:

  • HTML (experimental)

Additional Features

  • Audio Summary

Current browse context:

References & Citations

  • Google Scholar
  • Semantic Scholar

BibTeX formatted citation

Bookmark

Bibliographic and Citation Tools

Code, Data and Media Associated with this Article

Demos

Recommenders and Search Tools

arXivLabs: experimental projects with community collaborators

arXivLabs is a framework that allows collaborators to develop and share new arXiv features directly on our website.

Both individuals and organizations that work with arXivLabs have embraced and accepted our values of openness, community, excellence, and user data privacy. arXiv is committed to these values and only works with partners that adhere to them.

Have an idea for a project that will add value for arXiv's community? Learn more about arXivLabs.

The text above was extracted automatically from the source page and may miss images, tables or code blocks. The original is authoritative.

Published by arXiv cs.SE
This site only summarises and aggregates; copyright stays with the original author. Headlines and summaries follow the source — where they differ, the original wins.
Read the original ↗