zn / Models / Galvanize 3.1
Galvanize 3.1
Galvanize 3.1 is the current open prompt-injection classifier: about 140M parameters, up to 512 tokens, threshold 0.9017, Apache-2.0, and the default detector of the zn API.
Galvanize 3.1 is a binary classifier that scores a piece of text for prompt injection: text that tries to change what an AI model or agent does, against the instructions of its developer or user. It is the default detector of the zn API and the model behind the optional cloud check of zn-gate.
- About 140 million parameters. Multilingual. Reads up to 512 tokens at a time.
- Output: one score between 0 and 1, the probability that the text is a prompt injection.
- Decision threshold: 0.9017. It is lower than the 0.9802 of Galvanize 3.
- Licence: Apache-2.0.
- Further trained from Galvanize 3, which is fine-tuned from Horizon Labs' prompt-injection-guard-small.
What it detects
- Overriding or ignoring instructions, fake system or developer messages, delimiter tricks.
- Jailbreak framings meant to remove the model's rules.
- Attempts to extract the system prompt.
- Instructions planted for an AI agent inside documents, web pages, emails or tool output, in English and in other languages.
It is not a content-moderation model: a harmful request without an override attempt is outside its scope.
How a text becomes a verdict
Figures
From the model card, quoted as published, with Galvanize 3 on the same texts. The test set is private and was used during model selection.
| Galvanize 3.1 (current) | Galvanize 3 (earlier) | |
|---|---|---|
| Attacks caught | 96.4% | 89.6% |
| Short harmless texts flagged | 1.9% | 0.6% |
| Long harmless documents flagged (658 texts, first 512 tokens) | 1.2% | 2.9% |
| Multilingual attacks caught at 1% false alarms | 78.8% | 60.6% |
| PromptShield, attacks caught at 1% false alarms | 31.9% | 35.4% |
Limitations
- One layer, not a guarantee: on the launch test set it catches 96.4% of attacks at the serving threshold and misses the rest, and real traffic will differ.
- More false alarms on short texts: 1.9% of short harmless texts are flagged, against 0.6% for Galvanize 3.
- On PromptShield at a 1% false-alarm budget it detects fewer attacks than Galvanize 3.
- If you host the model and score only the first 512 tokens, an attack placed later in a long document can be missed.
- Someone who can query the model repeatedly can search for inputs that evade it.
- The model scores text in isolation: it cannot tell whether an instruction is legitimate for a given user or task.