JavaVulBench:一个具有现实分割、统一多后端框架和泄漏感知评估模式的Java漏洞基准测试
JavaVulBench: A Java Vulnerability Benchmark with Realistic Splits, a Unified Multi-Backend Harness, and a Leakage-Aware Evaluation Mode
AI总结:
发布JavaVulBench用于Java漏洞检测,含约30600个Java方法的数据集,有多种分割策略,框架为三个后端家族提供统一模式,可在相同条件下评估多个检测器,还提供预训练污染审计。
摘要:
我们发布了JavaVulBench,这是一个用于Java漏洞检测的基准数据集和评估框架。该数据集包含约30600个Java方法,涵盖1740个CVE和700多个项目,在方法和行粒度上都有标记,有每个CVE的发布日期和五种现实分割策略。框架为三个后端家族提供单个LlmPrediction模式,以便在相同条件下评估多个参考检测器。还附带预训练污染审计。数据、代码和微调检查点存档在Zenodo上,YouTube上有简短演示视频。
英文摘要:
We release \textsc{JavaVulBench}, a benchmark dataset and evaluation harness for Java vulnerability detection. The dataset contains $\sim$30{,}600 Java methods spanning 1{,}740 CVEs and 700+ projects, labelled at both method and line granularity, with per-CVE publication dates and five realistic split strategies: random, project-disjoint, temporal, deduplicated, and unseen CWE-family. The harness provides a single \texttt{LlmPrediction} schema across three backend families (encoder classifiers, local generative models served by Ollama, and API-served LLMs routed through OpenRouter) so that twelve reference detectors CodeBERT, GraphCodeBERT, UniXcoder, DeepSeek-Coder-1.3B, and eight API/open-weight LLMs (GPT-4o, GPT-4.1-mini, Claude Sonnet~4, DeepSeek-v3, DeepSeek-Coder-v2, Qwen-2.5-Coder-14B/7B, CodeLlama-13B) are evaluated under identical conditions from a single command. A pre-training contamination audit is shipped alongside every model so users can separate genuinely unseen test CVEs from potentially memorised ones. Data, code, and fine-tuned checkpoints are archived on Zenodo [31] and short demonstration video is available on YouTube (https://www.youtube.com/watch?v=nMTX\_hqkuoM) https://www.youtube.com/watch?v=nMTX_hqkuoM.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。