Code-Safety Benchmark Results (Paper 2)
Per-model classifications and summary statistics for the 13-model behavioral benchmark of Paper 2, "Is Code Safety a Separate Direction? A 13-Model Behavioral Benchmark of Malicious-Code Refusal in Coding-Specialized LLMs" (Young & Moody, 2026).
This dataset contains only judge labels and aggregate statistics. Prompt text is not redistributed here (it lives in the companion Paper 1 prompt-bank), and raw model responses are not redistributed through any public artifact. Only the per-row classification labels needed to reproduce the Paper 2 statistics, and the aggregate summary JSONs, are released.
Access
This dataset is gated as a dual-use mitigation step, consistent with the extreme-risk evaluation framework of Shevlane et al. (2023). Access is granted on request to bona fide researchers engaged in:
- refusal-rate measurement and benchmarking of language models,
- safety-alignment and refusal-training research,
- mechanistic-interpretability work on refusal directions,
- and related defensive research applications.
Gating is an access-control layer, not a restriction on legitimate research use. The dataset continues to function as a standardized evaluation artifact under this policy. Use of the dataset to fine-tune, distill, or train language models toward increased malicious-code production, to operationalize attacks, or to evade safety filters in deployed systems is explicitly prohibited regardless of license.
During peer review, the dataset is private; upon camera-ready it becomes gated-public under the access-review policy above.
What's here
For each of 13 coding-specialized LLMs we release two files per model:
data/{slug}.multi.jsonl— one JSON object per prompt with the judge labels (see Schema).data/{slug}_summary.json— aggregate statistics for the model (overall refusal rate, per-category breakdown, multi-judge agreement, tiebreaker invocation rate, per-judge label distribution).
Models
| Release slug | Model | Rows | Source file (internal) |
|---|---|---|---|
qwen3-coder-30b-a3b-instruct |
Qwen3-Coder-30B-A3B-Instruct | 1,942 | qwen_qwen3-coder-30b-a3b-instruct.jsonl |
qwen2.5-coder-32b-instruct |
Qwen2.5-Coder-32B-Instruct | 1,942 | qwen_qwen-2-5-coder-32b-instruct.jsonl |
qwen3-coder-next-80b |
Qwen3-Coder-Next-80B | 1,942 | qwen3-coder-next_cloud.multi.jsonl |
qwen3-coder-480b |
Qwen3-Coder-480B | 1,942 | qwen3-coder_480b-cloud.multi.jsonl |
codestral-2508-22b |
Codestral-2508 (22B) | 1,942 | mistralai_codestral-2508.jsonl |
devstral-2-123b |
Devstral-2 (123B) | 1,782 | devstral-2_123b-cloud.multi.jsonl |
deepseek-coder-v2-16b |
DeepSeek-Coder-V2 (16B) | 1,942 | deepseek-coder-v2_16b.multi.jsonl |
starcoder2-15b-instruct |
StarCoder2-15B-Instruct | 1,942 | starcoder2_15b-instruct.jsonl |
deepcoder-14b |
DeepCoder-14B | 1,942 | deepcoder_14b.jsonl |
kat-coder-pro-v2 |
Kwaipilot KAT-Coder-Pro-V2 | 1,942 | kwaipilot_kat-coder-pro-v2.jsonl |
opencoder-8b |
OpenCoder-8B | 1,942 | opencoder_8b.jsonl |
yi-coder-9b |
Yi-Coder-9B | 1,942 | yi-coder_9b.jsonl |
grok-code-fast-1 |
Grok-Code-Fast-1 | 1,942 | x-ai_grok-code-fast-1.jsonl |
| TOTAL | 25,086 |
All 12 locally-hosted / stable-cloud models received the full 1,942-prompt evaluation substrate (1,554 code-safety + 388 content-safety). Devstral-2 completed 1,782 prompts before its cloud endpoint rate-limited out; the 160 missing prompts are a subset of the same 1,942 bank and are reported as evaluation gaps in Paper 2 §Results. The nominal Paper 2 total is 12 × 1,942 + 1 × 1,782 = 25,087 attempted evaluations; the released artifact is 25,086 rows after de-duplicating one upstream duplicate UID in DeepSeek-Coder-V2 (cysecbench_00635, counted twice in its internal run log).
Schema
Per-prompt row (data/{slug}.multi.jsonl)
| Field | Type | Description |
|---|---|---|
uid |
string | Stable prompt identifier, shared across models — joins to uid in richardyoung/code-safety-prompt-bank. |
prompt_type |
string | "code" for code-safety prompts, "content" for content-safety prompts. |
source_dataset |
string | Upstream source of the prompt (rmcbench, malwarebench, cysecbench, harmful_behaviors). |
category |
string | Source-benchmark category label (e.g., Viruses, Spyware, Network attacks). |
primary_judge_1_label |
string | Label from primary judge 1 (Qwen3-Coder-Next): REFUSED / COMPLIED / UNCLEAR / ERROR. |
primary_judge_2_label |
string | Label from primary judge 2 (GLM-5): REFUSED / COMPLIED / UNCLEAR / ERROR. |
primary_judges_agree |
bool | True when the two primary judges returned the same label. |
tiebreaker_invoked |
bool | True when the primary judges disagreed and the tiebreaker (Claude Sonnet 4.6) was consulted. |
tiebreaker_label |
string|null | Tiebreaker label when invoked, else null. |
consensus_label |
string | Final consensus classification used in Paper 2 statistics. |
Prompt text is not included. Join uid against richardyoung/code-safety-prompt-bank to recover the prompt text. Raw model response text is not redistributed.
Per-model summary (data/{slug}_summary.json)
Top-level fields:
| Field | Type | Description |
|---|---|---|
release_slug |
string | Release slug matching the .multi.jsonl filename. |
model |
string | Internal model identifier used at evaluation time. |
timestamp |
string | ISO-8601 timestamp of the summary-JSON generation. |
code_safety |
object | {total, refused, complied, unclear, refusal_rate, compliance_rate} over the code-safety prompt partition. |
content_safety |
object | Same shape, over the 388-prompt content-safety comparison partition. |
per_category |
object | Per-category breakdown: {category_name: {total, refused, refusal_rate}}. |
multi_judge |
object | {total, agreement_rate, tiebreaker_invocations, tiebreaker_rate, per_judge_labels}. The nested per_judge_labels object has one sub-object per judge with the distribution of refused / complied / unclear / errors. |
All rates are percentages (0 - 100, one decimal place).
Judge panel
- Primary judge 1: Qwen3-Coder-Next (Alibaba).
- Primary judge 2: GLM-5 (Zhipu AI).
- Tiebreaker: Claude Sonnet 4.6 (Anthropic), invoked only when the two primary judges disagree.
This panel design is reported in Paper 2 §Methods; see Paper 1 for the broader five-judge consensus methodology that validated the underlying prompt bank.
Companion artifacts
- Prompt bank (Paper 1):
richardyoung/code-safety-prompt-bank— the 1,554-prompt consensus-labeled code-safety bank (plus the 388-prompt content-safety comparison bank) that forms the evaluation substrate for this benchmark. Joined byuid. - Code repository (Paper 2): github.com/ricyoung/code-safety-benchmark — the multi-judge classification pipeline, statistical analysis (including Holm step-down correction), and figure-generation code under MIT.
Intended use
- Per-model refusal-rate benchmarking on executable-malicious-code generation.
- Comparison of code-safety vs content-safety refusal behavior (Paper 2 §Results).
- Input to mechanistic-interpretability studies of refusal directions in coding-specialized LLMs (companion mechanism paper).
Out-of-scope use
- This dataset must not be used to fine-tune, distill, or otherwise train models to produce malicious code.
- The label set here is judge-consensus on model-response classification, not a gold-labeled dataset of safe/unsafe model outputs for alignment training.
Ethical considerations
No prompt text and no raw model-response text leaves this release. Responses that contained executable malicious software are retained internally for auditability; only judge labels and aggregate statistics are redistributed. Researchers using this dataset should follow the responsible-disclosure framework of Shevlane et al. (2023) and the community norms for dual-use safety artifacts.
Known limitations
- Devstral-2 is under-sampled (1,782 / 1,942 prompts) due to upstream rate-limiting on the cloud endpoint during the evaluation window. The sampled subset is the first 1,782 rows of the shared 1,942 prompt bank.
- One internal duplicate UID (
cysecbench_00635in DeepSeek-Coder-V2) was collapsed to one row at release time; the raw log retains both instances for auditability. - Judge labels have not been reconciled against a human-annotator baseline. The Qwen / GLM / Sonnet tiebreaker panel is designed to make shared labeling bias implausible, but LLM–human agreement on the classification task has not been directly measured.
- Snapshot as of April 2026. Model endpoints may drift; re-evaluation is recommended before making longitudinal comparisons.
Citation
If you use this dataset, please cite:
@article{young2026codebench,
title = {Is Code Safety a Separate Direction? A 13-Model Behavioral Benchmark of Malicious-Code Refusal in Coding-Specialized LLMs},
author = {Young, Richard J. and Moody, Gregory D.},
journal = {arXiv preprint arXiv:2604.XXXXX},
year = {2026}
}
Please also cite the companion prompt-bank paper (Young & Moody, 2026) and the upstream source benchmarks (RMCBench, MalwareBench, CySecBench, AdvBench) from which prompts are drawn.
Contact
Richard J. Young, Department of Information Systems, University of Nevada Las Vegas · [email protected]
Gregory D. Moody, Department of Information Systems, University of Nevada Las Vegas · [email protected]