An Empirical Study on the Transferability of Transformer-Based Models for Software Vulnerability Detection

计算机科学 实证研究 软件 数据挖掘 可转让性 脆弱性(计算) 人工智能 数据科学 机器学习 风险分析(工程) 钥匙(锁) 经验证据 背景(考古学)
作者
Nhien Dinh Huu,Chau The Vi,Thai Hung Van,Nghia To Trong,Phan The Duy
出处
期刊: [Institute of Electrical and Electronics Engineers]
卷期号:: 412-417
标识
DOI:10.1109/mapr72750.2026.11685763
摘要

Despite the dominance of Transformer-based models in software vulnerability detection, the extent to which their learned security logic generalizes across different programming languages remains a critical open question. To address this, we propose a comprehensive evaluation framework organized into three phases spanning five distinct experimental scenarios, aiming to rigorously dissect model behaviors from input sensitivity and baseline performance to cross-lingual transferability and decision transparency. We benchmark four representative models (CodeBERT, GraphCodeBERT, UniXcoder, and CodeT5+) using a curated Polyglot Injection Dataset (C/C++ and Java). Our empirical results reveal that extending input context from 128 to 512 tokens yields negligible gains, suggesting a heavy reliance on localized features. While we observe a distinct transfer asymmetry favoring C/C++ sources, the Encoder-Decoder architecture (CodeT5+) demonstrates superior cross-lingual generalization. Crucially, high structural robustness against semantic transformations, combined with quantitative XAI agreement analysis, confirms that these models capture genuine vulnerability logic. These findings suggest that the primary barrier to cross-lingual transfer is vocabulary mismatch rather than a failure in reasoning capabilities.

科研通智能强力驱动
Strongly Powered by AbleSci AI
科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
Shi完成签到,获得积分10
1秒前
2秒前
2秒前
XIXI完成签到,获得积分20
2秒前
乐乐的应助被土豆采纳,获得10
2秒前
mfpp发布了新的文献求助10
2秒前
2秒前
3秒前
清脆山槐完成签到,获得积分10
3秒前
111发布了新的文献求助10
3秒前
111发布了新的文献求助10
3秒前
111发布了新的文献求助10
4秒前
111发布了新的文献求助10
4秒前
111发布了新的文献求助10
4秒前
盗墓贼发布了新的文献求助30
4秒前
4秒前
5秒前
1628完成签到,获得积分10
5秒前
今后的应助被an0n_zen采纳,获得10
5秒前
ding的应助被CCL采纳,获得10
5秒前
小布丁完成签到,获得积分10
6秒前
6秒前
6秒前
6秒前
7秒前
天天快乐的应助被椰子采纳,获得10
7秒前
111发布了新的文献求助10
7秒前
李爱国的应助被zw114采纳,获得10
7秒前
翊然甜周发布了新的文献求助10
7秒前
王多鱼的应助被心行采纳,获得10
7秒前
111发布了新的文献求助10
8秒前
111发布了新的文献求助10
8秒前
顺利的谷菱完成签到,获得积分10
8秒前
潇洒哥暴打黑大帅完成签到,获得积分10
9秒前
9秒前
10秒前
chiweiyoung发布了新的文献求助10
11秒前
111发布了新的文献求助10
11秒前
111发布了新的文献求助10
11秒前
Seven发布了新的文献求助10
11秒前
高分求助中
(应助此贴封号)【重要!!请各用户(尤其是新用户)详细阅读】【科研通的精品贴汇总】 10000
The Martian climate revisited : atmosphere and environment of a desert planet 600
Musizierpraxis im Biedermeier: Spezifika und Kontext einer vermeintlich vertrauten Epoche 590
Profilaxis antimicrobiana en uretrocistoscopias. Estudio comparativo 500
Sleisenger and Fordtran's Gastrointestinal and Liver Disease - 2 Volume Set Pathophysiology, Diagnosis, Management 500
[Radiotherapy of prostatic cancer at the loco-regional stage: therapeutic results and prognostic factors] 500
[Experiences with intensive radiotherapy of prostatic cancer in conjunction with surgery (transurethral resection, pelvic lymph node excision)] 500
热门求助领域 (近24小时)
化学 材料科学 医学 生物 纳米技术 计算机科学 工程类 有机化学 化学工程 生物化学 物理 复合材料 内科学 催化作用 光电子学 人工智能 细胞生物学 无机化学 物理化学 数学
热门帖子
关注 科研通微信公众号,转发送积分 8222349
求助须知:如何正确求助?哪些是违规求助? 9602042
关于积分的说明 22005675
捐赠科研通 7832331
什么是DOI,文献DOI怎么找? 3447114
关于科研通互助平台的介绍 2568325
邀请新用户注册赠送积分活动 2495950