In this article
High benign-set accuracy measures fewer false alarms; it does not establish complete injection detection, uniform language coverage or agent safety.
On September 23, 2026, Horizon Labs published Prompt Injection Guard Small, an open classifier assessing whether text attempts to insert an unauthorized instruction into an AI workflow. It can screen a user request, retrieved RAG passage or tool response before a language model reads it. The model history dates the initial upload September 23 and version v2.3 October 7, 2026.
The developers provide weights and examples for local execution with Transformers, ONNX Runtime and Transformers.js. The model contains 141 million parameters and uses Apache-2.0. This makes it a candidate additional filter within an organization’s infrastructure. Benchmark results nevertheless do not establish detection of every attack or replace agent-permission limits. The model card explicitly describes a defense layer.
What the classifier addresses
Agents ingest documents, web pages, knowledge-base results and external-tool output. A document can mix useful facts with an instruction to disregard rules or send information elsewhere. A language model may misinterpret that data as an authorized command. This indirect prompt injection lets an attacker controlling a data source influence application behavior. The research Formalizing and Benchmarking Prompt Injection Attacks and Defenses describes the general threat.
Guard Small scores two classes, SAFE and INJECTION. The authors define injection to include overriding instructions, fake system messages, prompt extraction and adversarial instructions inside documents or tools. SAFE deliberately includes ordinary discussion of prompt injection and document instructions intended for humans. Even a harmful request without an instruction-override attempt may be labeled SAFE: this is not a general content-safety classifier. See the label definitions.
An application might inspect each retrieved passage before adding it to the main model’s context, then exclude suspicious passages or route them for review. It can similarly inspect tool output before the agent reads it. Developers still choose how to handle the score. The threshold changes both missed attacks and incorrectly blocked documents.
Execution and measurement limits
The backbone is a fine-tuned multilingual jhu-clsp/mmBERT-small. The card advertises context up to 8 thousand tokens, but training and long-input examples use different lengths: maximum training length is 1 024 tokens, while the document example uses 2 048-token windows with 512-token overlap and keeps the highest injection score. The advertised context alone therefore does not specify a deployed pipeline’s behavior. See the card and examples.
The documentation also includes ONNX Runtime, a quantized artifact and a Transformers.js q8 example. Properly configured local execution keeps screening text within the chosen environment. Reviewed materials do not establish inference RAM or VRAM requirements, response time or throughput. Training used one H100, two epochs and approximately 280 thousand examples. Those are training conditions, without establishing hardware requirements for execution. Suitable equipment and latency need measurement on the intended workload.
The classifier scores isolated text and may not know whether an instruction is appropriate for the actual task. The authors warn about false alarms on harmless fiction or roleplay and missed explicitly off-task instructions in documents. Much training data is synthetic, with more English than any other language. A multilingual backbone consequently does not establish equal Russian-language performance or suitability for an organization’s documents. See the limitations.
What the percentages actually mean
Horizon reports 96.2% on NotInject and 99.5% on OR-Bench-hard-1k at threshold 0.5. These can be mistaken for attack detection rates. In the developer table they measure accuracy on benign sets: how often the classifier avoided marking harmless text as injection. They describe false alarms on particular samples, without measuring attack recall. See Horizon’s evaluation.
The original benchmark papers clarify this interpretation. NotInject contains 339 benign examples enriched with attack-associated trigger words, testing over-defense. OR-Bench investigates language models refusing harmless but apparently toxic requests; its hard subset contains approximately a thousand examples. Horizon applies that subset to a binary classifier, so its score must remain distinct from the original answering-model refusal metric.
The same developer table reports separate attack results that vary substantially: PIArena F1 is 0.937, versus BIPIA F1 of 0.528. The authors also report approximately 36% BIPIA recall. Different metrics and dataset compositions cannot be collapsed into one protection percentage. These are developer evaluations, without an independent audit of operational effectiveness. See Horizon’s evaluation and limitations.
A separate project, Galvanize-2, identifies Guard Small as its base and publishes evaluations of a fine-tuned derivative. This shows third-party use of the model, rather than independent reproduction of Horizon’s original-weight results.
Potential application
Developers of RAG applications and agents consuming documents or service responses can investigate this local screening layer before passing text to the main model. Open weights and multiple execution options support integration and testing on representative examples.
Evaluation should include ordinary documents and representative attacks, intended languages and the exact windowing method. Measure false alarms, misses and added latency at the chosen threshold separately. Even strong classifier results do not guarantee agent safety: tool permissions, access control and sensitive-action checks remain separate controls.
Select placement using the request and response guardrail boundaries, then compare thresholds with an explicit measurement method.
Sources
- Horizon Labs Prompt Injection Guard Small card — architecture, examples, tests and limits.
- Model history and agent-io-guards repository — release dates and project code.
- InjecGuard and NotInject — over-defense research.
- OR-Bench — over-refusal research.
- Galvanize-2 — separately fine-tuned derivative.
Earn rental income from GPUs
Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.