Text Classification
Transformers
ONNX
Safetensors
English
modernbert
prompt-injection
guardrail
security
lora
agent-safety
owasp-llm-top-10
mitre-atlas
Eval Results (legacy)
text-embeddings-inference
Instructions to use dannyliv/agent-guard-modernbert-base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use dannyliv/agent-guard-modernbert-base with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="dannyliv/agent-guard-modernbert-base")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("dannyliv/agent-guard-modernbert-base") model = AutoModelForSequenceClassification.from_pretrained("dannyliv/agent-guard-modernbert-base", device_map="auto") - Notebooks
- Google Colab
- Kaggle
docs: drop 'stated honestly' phrasing from card heading
Browse files
README.md
CHANGED
|
@@ -56,7 +56,7 @@ It is small (149M parameters), CPU-friendly, Apache-2.0, and built on `answerdot
|
|
| 56 |
|
| 57 |
This repo now ships the **V3.2** weights, replacing the prior `v1.x` release. V3.2 was retrained on a permissively-licensed corpus (no gated AI2 datasets) with a rebalanced benign side and nine literature red-team augmentation techniques.
|
| 58 |
|
| 59 |
-
**What V3.2 changed
|
| 60 |
|
| 61 |
- **Fixes the GCG adversarial-suffix weakness.** The prior release had a 100% precomputed-replay attack-success rate against GCG-style adversarial suffixes. V3.2 cuts that to **2.4%** for this model. The disclosed headline weakness is substantially mitigated for precomputed and replayed suffixes. Fresh adaptive white-box GCG still succeeds at ~100% against the bare classifier; that is expected for a 149M encoder and is addressed by the SDK-layer perplexity pre-filter, not by this model alone.
|
| 62 |
- **Lowers the benign false-positive rate, but not to the project's strict target.** ModernBERT FPR on benign instructions dropped from **7.4%** (prior release) to **3.2%** at the canonical threshold 0.5, a 57% reduction. The project's strict internal release gate was **≤2.5%**, so V3.2 **misses that gate by 0.7 percentage points**. V3.2 is shipped anyway, as a deliberate decision: the GCG fix and the F1 improvement were judged to outweigh the 0.7pp FPR gate miss. See "Limitations and risks".
|
|
|
|
| 56 |
|
| 57 |
This repo now ships the **V3.2** weights, replacing the prior `v1.x` release. V3.2 was retrained on a permissively-licensed corpus (no gated AI2 datasets) with a rebalanced benign side and nine literature red-team augmentation techniques.
|
| 58 |
|
| 59 |
+
**What V3.2 changed:**
|
| 60 |
|
| 61 |
- **Fixes the GCG adversarial-suffix weakness.** The prior release had a 100% precomputed-replay attack-success rate against GCG-style adversarial suffixes. V3.2 cuts that to **2.4%** for this model. The disclosed headline weakness is substantially mitigated for precomputed and replayed suffixes. Fresh adaptive white-box GCG still succeeds at ~100% against the bare classifier; that is expected for a 149M encoder and is addressed by the SDK-layer perplexity pre-filter, not by this model alone.
|
| 62 |
- **Lowers the benign false-positive rate, but not to the project's strict target.** ModernBERT FPR on benign instructions dropped from **7.4%** (prior release) to **3.2%** at the canonical threshold 0.5, a 57% reduction. The project's strict internal release gate was **≤2.5%**, so V3.2 **misses that gate by 0.7 percentage points**. V3.2 is shipped anyway, as a deliberate decision: the GCG fix and the F1 improvement were judged to outweigh the 0.7pp FPR gate miss. See "Limitations and risks".
|