First-hand information for everyone
An open‑weight language‑model gate called Kev‑4B shows that a lightweight decision layer can lower the success of hidden instructions placed in retrieved webpages.
The gate reads each passage’s HTML once and asks three yes/no questions: (1) does it try to instruct an AI?; (2) is it filler or designed to mislead?; (3) is it relevant to the user’s query? If any answer is high enough the passage is dropped; a middle score triggers a citation‑prompted answer; otherwise the passage is forwarded to the generator.

In a benchmark of 1,000 forum‑style queries with hidden injected instructions, the attack success rate dropped from 27.9 % with no defence to 13.6 % when only published mitigations (sanitisation, normalisation and citation prompting) were used, and to 5.7 % when the Kev gate was added. The gate adds only 76 ms per passage and misclassifies 4 of 186 hard‑negative benign pages, a false‑positive rate of 2.2 %. Under clean‑query conditions, overall responsiveness remains essentially unchanged (between 85.6 % and 86.2 %).
| Configuration | Std. ASR | Var. ASR | FPR | Resp. |
| Vanilla (guard prompt) | 27.9 | 7.6 | – | 87.3 |
| Combined mitigations | 13.6 | 2.9 | – | 85.6 |
| TF-IDF detector, drop >0.85 | 15.6 | – | 1.1 | 89.4 |
| Laya gate (HTML), drop >0.5 | 13.3 | – | 19.9 | 79.0 |
| Kev gate (HTML), drop >0.5 | 16.8 | 5.4 | 2.2 | 89.2 |
| Kev gate (HTML), drop >0.35 | 10.2 | – | 27.4 | 89.3 |
| Combined + TF-IDF | 10.6 | – | 1.1 | 84.8 |
| Combined + Laya gate | 8.6 | – | 19.9 | 73.7 |
| Combined + Kev gate, drop >0.5 | 5.7 | 1.7 | 2.2 | 86.2 |
| Combined + LLM judge (70B), drop >0.5 | 0.4 | – | 18.3 | 86.6 |
| Combined + Kev gate, drop >0.35 | 2.9 | – | 27.4 | 85.8 |
The study also shows that filtering the entire candidate pool before ranking can keep violent or toxic synthetic content can be reduced to 0.5 % exposure while still maintaining 83 % answer accuracy in a pollution‑style test.
These results demonstrate that released decision models can act as efficient gates against indirect prompt injection, though the false‑positive rate and repeated hard‑negative templates suggest cautious deployment and further testing in real‑world settings.