Repository navigation
feat(primevul): add PrimeVul paired vulnerability-detection benchmark - #2841
bogdankostic wants to merge 4 commits into
Conversation
Signed-off-by: bogdankostic <bogdankostic@web.de>
Signed-off-by: bogdankostic <bogdankostic@web.de>
|
/claude review |
|
SHIP — LGTM, no reliability concerns. Reviewed as a correctness-first pass on the verifier, scorer, and paired aggregation. Findings summary: Verifier/scorer correctness — solid.
Async / API / deps — clean.
Coverage — strong. Verifier fixture plus thorough unit tests asserting real behavior (parsing edge cases, scoring, pairing guards, ragged repeats, truncation/ Nothing to block or gate on. |
Signed-off-by: bogdankostic <bogdankostic@web.de>
Signed-off-by: bogdankostic <bogdankostic@web.de>
|
Thanks @bogdankostic for this contribution! I had a few questions about the intended behavior:
Agent harness clarification The README names If PrimeVul is intentionally harness-agnostic, leaving it unset is appropriate, but it would be helpful to document that and ideally test at least one alternate harness. A few additional code-level suggestions:
|
What does this PR do?
Adds PrimeVul as a NeMo Gum benchmark: paired function-level vulnerability detection over C/C++ code, from Vulnerability Detection with Code Language Models: How Far Are We? (ICSE 2025).
Each task is one function. Every function appears alongside the same function aftr its security fix, and the reported metric is pair-wise correct prediction rate: a pair scores only when both members are classified correctly.
CC @OlegSudakov
Checklist
pre-commit run --all-files) (so CI lint/format/copyright pass).git commit -s) (so the DCO check passes).