跳到正文
EasyXiv 检索
投稿 关于 登录

按回车检索 · 直接输入编号(如 1706.03762)可跳转到论文

计算机科学 > 软件工程

arXiv:2208.08067 (cs)
[提交于 2022年8月17日 (v1),最后修订于 2025年10月13日 (此版本, v3)]

标题:K-ASTRO: Structure-Aware Adaptation of LLMs for Code Vulnerability Detection

作者:Yifan Zhang, Michael Sandborn, Stefan Larson, Yu Huang, Kevin Leach
查看论文《K-ASTRO: Structure-Aware Adaptation of LLMs for Code Vulnerability Detection》的 PDF
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读
摘要:Large Language Models (LLMs) are transforming software engineering tasks, including code vulnerability detection-a critical area of software security. However, existing methods often rely on resource-intensive models or graph-based techniques, limiting their accessibility and practicality. This paper introduces K-ASTRO, a lightweight Transformer model that combines semantic embeddings from LLMs with structural features of Abstract Syntax Trees (ASTs) to improve both efficiency and accuracy in code vulnerability detection. Our approach introduces an AST-based augmentation technique inspired by mutation testing, a structure-aware attention mechanism that incorporates augmented AST features, and a joint adaptation pipeline to unify code semantics and syntax. Experimental results on three large-scale datasets, including BigVul, DiverseVul, and PrimeVul-demonstrate state-of-the-art performance while enabling rapid inference on CPUs with minimal training time. By offering a scalable, interpretable, and efficient solution, K-ASTRO bridges the gap between LLM advancements and practical software vulnerability detection, providing open-sourced tools to foster further research.
主题: 软件工程 (cs.SE); 机器学习 (cs.LG)
引用方式: arXiv:2208.08067 [cs.SE]
  (或者 arXiv:2208.08067v3 [cs.SE] 对于此版本)
  https://doi.org/10.48550/arXiv.2208.08067

提交历史

来自:Yifan Zhang
[v1] 2022年8月17日 星期三 04:50:51 UTC
[v2] 2025年10月10日 星期五 14:41:55 UTC
[v3] 2025年10月13日 星期一 22:24:55 UTC
全文链接:

访问论文:

  • 查看原文 PDF
  • 中文 PDF (下批处理)
  • EasyResearch 阅读
  • TeX 源文件
  • arXiv 原文页面
查看许可

当前浏览上下文:

cs.SE
< 上一篇   |   下一篇 >
最新 | 近期 | 2025-10
切换浏览方式为:
cs
cs.LG

参考文献与引用

  • Google Scholar
  • Semantic Scholar

BibTeX 格式的引用

EasyXiv 是独立运营的中文预印本站点,与 arXiv 及康奈尔大学无隶属关系。 论文元数据与原文来自 arXiv.org,感谢 arXiv 提供开放获取服务。
关于 · 帮助 · 投稿指南 · 版权 · arXiv 原站