🛡️ Gleipnir: open 4B and 27B monitors that check AI agent actions in one pass

In brief
- 🛡️ Gleipnir is a pair of open-weight monitors (4B and 27B) that rate an AI agent's trajectory with one score in a single forward pass.
- 💶 Per the authors, the 27B version matches the strongest reasoning monitor they tested (0.951 vs 0.942) at 229 times lower cost.
- ⚠️ Against attacks built to evade monitors it catches far fewer; the authors see it as a first filter, not a sole safeguard.
- 📦 Weights, code, serving image and teacher probabilities are released under the MIT licence.
A monitor is a second model that reads what an AI agent does and flags harmful actions. The team of Jeremias Ferrao and Abhinav Rajeev Kumar has released [Gleipnir](https://jazhyc.github.io/gleipnir-monitor/), two small monitors (4B and 27B parameters) that do not write a rationale: they read the trajectory and return the probability that it is harmful, in one forward pass. 🛡️ According to the authors, Gleipnir 27B scores 0.951 mean pAUROC@20 on six held-out control benchmarks, against 0.942 for Claude Opus 4.6, the strongest reasoning monitor of the earlier work they compare with, at 229 times lower cost. On attacks designed to evade monitors it catches far fewer, as other low-cost monitors do. Everything is MIT-licensed. 📦
How it works. Reasoning monitors write a rationale first and then a score from 0 to 10. Gleipnir drops the rationale. The prompt describes harmful behaviour, then the trajectory, then ends in "Prediction:"; the monitor's probabilities for the next token being 0 (benign) or 1 (harmful) are the score. The authors trained two LoRA adapters, Gleipnir 4B (from Qwen3.5-4B) and Gleipnir 27B (from Qwen3.8-27B), to copy the single-token decision of a teacher model, Kimi K3, including its uncertainty. Training took about one hour for the 4B and 4.5 hours for the 27B on one B200 GPU.
🧪 Results as reported. On the six held-out benchmarks, training lifts Qwen3.5-4B from 0.618 to 0.770 and Qwen3.8-27B from 0.890 to 0.951. At the same price as Perplexity's open decision model pplx-decider v1.2 ($0.178 against $0.176 per 1,000 evaluations at the discounted GPU rate), the 27B scores 0.055 higher; with only 1 % of benign runs flagged it catches 87.4 % of the harmful ones, 11.5 points more. The authors note that its lead over its teacher comes from a single task in one benchmark.
💶 Cost and speed. Gleipnir runs in vLLM's classification mode, which skips text generation, with FP8 and FP4 arithmetic on B200 GPUs. At the discounted rental rate, serving costs $0.0047 per million input tokens for the 4B and $0.0188 for the 27B. On trajectories of about 10,000 tokens the 4B returns a score in 48 ms and the 27B in 192 ms. Because each token only looks backwards, prefix caching lets a server re-score a growing transcript after each step; checking every action is 3.7 times faster for the 27B.
⚠️ Limits the authors state. On SleightBench, 40 attacks that humans built to exploit monitor blind spots, every monitor under $2 per 1,000 evaluations scores between 0.19 and 0.40; Gleipnir 27B reaches 0.299. On reward hacking in EvilGenie Escalation it flags 28 % of 124 hacks and 1.1 % of 1,823 legitimate runs; the 4B catches 2 %. The tests are benchmarks, not live agent traffic, and the benchmark transcripts are shorter than many real ones. Thresholds should be set on one's own benign traffic.
📦 What you get. Merged BF16 checkpoints and LoRA adapters for both sizes (Hugging Face, under Jazhyc), a serving image for one B200 or B300 (`ghcr.io/jazhyc/gleipnir-serve:1.2`), and the code for training, evaluation and serving. Other GPUs can use stock vLLM or Transformers. The authors suggest it for checking every action before it runs, as a cheap first filter in front of stronger monitors or human review, for independent monitoring inside a lab, for scoring RL rollouts and as a baseline. Work was funded by BlueDot Impact's Rapid Grants Program and Safe AI Netherlands; the authors say AI research agents wrote the code and helped draft the report.