Semantic Scholar Open Access 2022 5 sitasi

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

Yifan Zhang Junwen Yang Huihui Dong Qingchen Wang Huajie Shao +2 lainnya

Abstrak

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.

Topik & Kata Kunci

Penulis (7)

Y

Yifan Zhang

J

Junwen Yang

H

Huihui Dong

Q

Qingchen Wang

H

Huajie Shao

K

Kevin Leach

Y

Yu Huang

Format Sitasi

Zhang, Y., Yang, J., Dong, H., Wang, Q., Shao, H., Leach, K. et al. (2022). K-ASTRO: Structure-Aware Adaptation of LLMs for Code Vulnerability Detection. https://www.semanticscholar.org/paper/2ba11c57fb95ded5f985d4e80b50d6f50d78c02b

Akses Cepat

PDF tidak tersedia langsung

Cek di sumber asli →
Lihat di Sumber
Informasi Jurnal
Tahun Terbit
2022
Bahasa
en
Total Sitasi
Sumber Database
Semantic Scholar
Akses
Open Access ✓