TECHNOLOGY

DiverseVul: test vulnerability detection across projects

In this article
THE QUICK TAKE

Project diversity in the source collection does not make a random function split a test of transfer to unseen projects.

Identify the released collection and its joins

The DiverseVul author repository provides the original data link and a separate metadata artifact connecting commits with repository URLs. It also notes missing URLs in that metadata. Treat the function collection and the provenance join as separate artifacts. A failed join is an unresolved record, not evidence that the source project never existed. Preserve the original artifact identity and report how unresolved relationships affect any project-level analysis instead of silently dropping them from the denominator.

Understand what makes a positive function

The original RAID paper describes gathering C/C++ vulnerability-related fixes through security information sources and extracting functions around those changes. Functions changed in an identified fixing commit receive vulnerable labels under the collection procedure. That rule enables scalable supervision but can include changes that accompany the actual fix. The paper’s label-noise analysis is therefore part of the resource’s meaning. A classifier trained on these records learns the published labeling task, not a complete specification of secure program behavior.

Separate native data from merged experiments

The repository also links train, validation, and test splits for a merged collection containing DiverseVul and earlier vulnerability datasets. Those partitions should not be described as a native split of DiverseVul alone. Likewise, the paper’s unseen-project experiment compares merged previous data with an augmented collection. Retain which source collections supplied each partition. The document provenance workflow is useful for keeping origin labels after concatenation, when identical-looking function rows can otherwise lose their dataset ancestry.

Make project transfer an explicit holdout

A random function partition can leave the same repository’s naming conventions, helper routines, and related fixes on both sides. To investigate transfer, assign whole project identities to a held-out group and explain fork or renamed-repository handling. This is an editorial experimental design, not a claim that every published DiverseVul split already follows it. Apply leakage checks to related fixes as well as to source text. Report seen-project and unseen-project results separately because they answer different questions.

Recheck the definition of a duplicate

The PrimeVul primary study reports that formatting-normalized copies can survive DiverseVul’s hash-based deduplication. Exact byte identity and normalized code identity are different policies. Record the normalization and conflict handling before building a new split; do not erase contradictory labels without a trace. DiverseVul is useful for studying broader project coverage and the effect of additional vulnerability-related training data. Its collection diversity alone does not establish reliable generalization, complete labels, or suitability for certifying a previously unseen repository.

Earn rental income from GPUs

Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.

Explore GPU hosting
← All articles