计算机科学
实证研究
软件
数据挖掘
可转让性
脆弱性(计算)
人工智能
数据科学
机器学习
风险分析(工程)
钥匙(锁)
经验证据
背景(考古学)
作者
Nhien Dinh Huu,Chau The Vi,Thai Hung Van,Nghia To Trong,Phan The Duy
出处
期刊:
[Institute of Electrical and Electronics Engineers]
日期:2026-08-01
卷期号:: 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