Downloads · 30 days
0
BBehring/prompt-injection-lora
prompt-injection-lora is a text classification model from BBehring. Use it when you need a label for a piece of text. The card lists the license as apache-2.0.
Author: Brandon Behring Date published: 2026-05-18 Project: https://github.com/brandon-behring/prompt-injection-detection-prototype at v1.0.0 Submission audit ledger: see SUBMISSIONAUDIT.md in the repo. Contamination…
Downloads · 30 days
0
Access
Public
Updated May 18, 2026
Repo size
6.8 MB
Likes
0
Public
Click a slice to open those files.
.safetensors6.8 MB · 65%
From the Hugging Face model README
Author: Brandon Behring
Date published: 2026-05-18
Project: https://github.com/brandon-behring/prompt-injection-detection-prototype at v1.0.0
Submission audit ledger: see SUBMISSION_AUDIT.md in the repo.
Contamination tier (ADR-005 taxonomy): backbone-partial-disjoint.
This model card publishes the canonical fold0/seed42 checkpoint of the
lora rung from the methodology submission. The rung is one of a
5-rung ladder characterising what successive capability layers add to
prompt-injection detection across an IID test slate (4-source LODO
held-out positives) and a 5-slice OOD slate (BIPIA + InjecAgent +
JBB-Behaviors + XSTest + NotInject). No rung is promoted as a
deployment recommendation — each rung's trade-offs are characterised
per ADR-005 methodology-over-metrics framing.
Research-and-methodology-characterisation only. NOT production deployment per ADR-005. The classifier-output behaviour is documented in the project WRITEUP §5 + §7.
See the project's limitations spoke for the full list. Key points relevant to this checkpoint:
evals/audit/cross_fold_ci_audit.parquet.bipia, injecagent, notinject) have
AUROC/AUPRC undefined per the project's WRITEUP §Methodology caveats
convention; only jbb_behaviors, xstest, pooled_ood carry
threshold-free ranking metrics.| Slice | AUPRC | AUROC |
|---|---|---|
jbb_behaviors | 0.5352 [0.5042, 0.5633] | 0.5284 [0.5054, 0.5521] |
xstest | 0.4668 [0.4465, 0.4857] | 0.5300 [0.5150, 0.5458] |
pooled_ood | 0.2934 [0.2855, 0.3012] | 0.3830 [0.3737, 0.3925] |
Per-rung calibration (mean across folds × seeds):
| Slice | recall@FPR=1% (mean) | ECE (equal-mass) | Brier |
|---|---|---|---|
jbb_behaviors | 0.0217 | 0.4721 | 0.4803 |
xstest | 0.0150 | 0.4139 | 0.4245 |
pooled_ood | 0.0000 | 0.4461 | 0.4484 |
Source: evals/results.json at v1.0.0 (BCa bootstrap per ADR-022,
10 000 resamples). Full per-rung × per-slice grid in the project
WRITEUP §Results.
git clone https://github.com/brandon-behring/prompt-injection-detection-prototype
cd prompt-injection-detection-prototype
make install
make eval-from-hub RUNG=lora
This downloads the checkpoint, runs CPU eval against the local val slate,
and score-matches against evals/results.json within 1e-4 absolute per
ADR-034. ~10-30 min, $0 GPU.
Full T1 GPU re-eval via make headline-cloud (~$28 RunPod A100 80GB).
@misc{behring2026promptinjectionlora,
author = {Behring, Brandon},
title = {prompt-injection-lora — methodology submission rung},
year = {2026},
url = { https://github.com/brandon-behring/prompt-injection-detection-prototype/tree/v1.0.0 }
}
ADR-005 (contamination taxonomy), ADR-015 (single-backbone slate), ADR-016 (data design), ADR-019 (transformer training recipe), ADR-032 (HF Hub publication discipline), ADR-034 (T0 reproducibility tier), ADR-050 (rung-slate narrowing).