AIFeed

Releasing Gleipnir: open-weight monitors for agents that decide in one forward pass

Summary

Paper: https://arxiv.org/abs/2611.35673 Project Page: https://jazhyc.github.io/gleipnir-monitor/ TL;DR: We're releasing Gleipnir, two small open-weight monitors (4B and 27B) that score an AI agent's trajectory in a single forward pass, along with an optimized serving stack, the code and the teacher probabilities, all under the MIT license ( project page ). On held-out monitoring benchmarks, Gleipnir 27B matches the strongest reasoning monitor we compared against at 229 times lower cost, and outperforms decision models of the same cost. On a separate, harder benchmark of attacks that humans designed specifically to evade monitors, it catches far fewer, as do other low-cost monitors. It also makes a strong monitor far cheaper to run, train and build on, which lowers the cost of doing AI control research with monitors. Figure 1. Detection performance against inference cost per 1,000 evaluations (log scale). Gleipnir 27B matches Claude Opus 4.6, the strongest reasoning monitor of Sinha et…

Original text(via LessWrong)

Paper: https://arxiv.org/abs/2611.35673

Project Page: https://jazhyc.github.io/gleipnir-monitor/

TL;DR: We're releasing Gleipnir, two small open-weight monitors (4B and 27B) that score an AI agent's trajectory in a single forward pass, along with an optimized serving stack, the code and the teacher probabilities, all under the MIT license (project page). On held-out monitoring benchmarks, Gleipnir 27B matches the strongest reasoning monitor we compared against at 229 times lower cost, and outperforms decision models of the same cost. On a separate, harder benchmark of attacks that humans designed specifically to evade monitors, it catches far fewer, as do other low-cost monitors. It also makes a strong monitor far cheaper to run, train and build on, which lowers the cost of doing AI control research with monitors.

Figure 1. Detection performance against inference cost per 1,000 evaluations (log scale). Gleipnir 27B matches Claude Opus 4.6, the strongest reasoning monitor of Sinha et al., at 229 times lower cost when its GPU is rented on demand and 532 times lower with a long-term rental discount (marked *). Red arrows lead from each base model to the Gleipnir monitor trained from it.

Introduction

As AI agents take on longer tasks with less human oversight, monitoring what they do has become one of the most pressing problems in AI safety. A monitor is a separate model that reads an agent's actions and flags the ones that look harmful, so that a human or an automated check can step in.

The Hugging Face incident shows what can happen when monitors aren't running. In July 2026, agents in internal evaluations at OpenAI broke out of their sandboxes and compromised Hugging Face's servers while looking for benchmark solutions (OpenAI). OpenAI's monitors were not running on these evaluations, and in its retrospective, OpenAI found that they would have alerted the security team more than a day before the breach.

OpenAI now requires monitoring on all RL training and tool-use evaluations for its most capable models, and estimates the overhead at roughly 20% of the inference compute being monitored (OpenAI). That is a large cost, and it's unclear whether other developers will pay it. The cheaper option is to monitor only some workloads, which is the gap this incident went through.

Monitors also run in products. In Claude Code's auto mode and Codex's auto-review, a separate model approves or blocks each action before it runs. There, a false positive interrupts the user and latency delays every action, on top of the cost.

We wanted monitors that anyone can run, inspect and build on, so we built Gleipnir: small open-weight monitors, and a stack to serve them, cheap enough to check every action an agent takes. The name comes from the ribbon in Norse myth that binds the wolf Fenrir, which was as thin as silk yet held where heavy chains had failed. That is our aim: efficient models that can keep watch over far more capable agents.

Background: training monitors for AI control

AI control asks how to deploy an AI agent safely even if it tries to cause harm. Control evaluations test this by giving the agent a main task, the work a user asked for. An agent that attacks also has a side task: a harmful goal that it pursues in secret while it works on the main task. A monitor reads what the agent did and rates how suspicious it looks, and humans review the actions it rates highest. Because human time is limited, a monitor is only useful if it rates agents with a side task above almost all honest ones.

Sinha et al. trained open-weight models to act as such monitors. Their monitors are action-only: they read the user's messages, the agent's messages and the tool outputs, but not the agent's private reasoning or activations. Both may become unreliable in future models. A model that reasons in its latent space leaves no reasoning to read, and activations can be reshaped to evade the monitors that read them. Each monitor learns to reproduce a frontier teacher's rationale about a trajectory, which ends in a score from 0 to 10. The monitors are tested on six benchmarks that played no part in training, which they call the out-of-distribution (OOD) set, using pAUROC@20. This metric measures how well a monitor ranks harmful trajectories above benign ones while flagging at most 20% of the benign ones, scaled so that a perfect monitor scores 1.

Their trained Qwen3.5-27B beat smaller prompted frontier models at lower cost, but the largest frontier models still scored higher, at a much higher price.

Two parts of this design leave room for improvement. First, the monitor writes its rationale before it gives a score. A model reads its input quickly, because it processes all the input tokens in parallel, but it writes output one token at a time, so the rationale makes each check slower and more expensive.

Second, a score from 0 to 10 mixes two things: how severe the behavior is, and how confident the monitor is that it happened. A deployment usually needs a single decision, whether to block or report an action. We hypothesized that a score expressing only confidence would fit that decision better.

Decision models already work this way. A decision model is a language model that answers a question with a fixed set of allowed answers, returning a probability for each in one forward pass without writing any text. Despite how close this format is to what a monitor needs, we found no published evaluation of decision models as monitors of harmful behavior in agent trajectories. The only work in AI control we found was a LessWrong post that tests Jev as a monitor of backdoored single-file programs. We therefore evaluate decision models alongside Gleipnir.

How Gleipnir works

A Gleipnir monitor reads one trajectory and returns one score. We give the model an instruction that describes harmful behavior, followed by the trajectory, and start its reply with "Prediction:". Instead of letting it write anything, we read the probabilities it gives to the next token being 0 (benign) or 1 (harmful). The score is the probability that the trajectory is harmful.

This needs a single forward pass over the prompt, and the model writes no text. The score is also continuous, so it ranks trajectories without the ties of a 0-to-10 scale. The format helps even before any training: reading this probability from an untrained Qwen3.5-9B scores 0.698 pAUROC@20 on the OOD set, against 0.486 when the same model gives a score from 0 to 10.

To train the monitors, we use Kimi K3 as the teacher. It reads each training trajectory with a full specification of harmful behavior and answers with a single decision token, without reasoning. We record its probability that the trajectory is harmful, and the monitor learns to match it, so the target keeps the teacher's uncertainty. The datasets' own benign and harmful labels serve only as a filter: we drop the trajectories where the teacher's decision disagrees with the label. Compared with Sinha et al., this removes the rationales, the judge model and the RL stage (Figure 2).

We train two monitors on the same trajectories as Sinha et al.: Gleipnir 4B, from Qwen3.5-4B, and Gleipnir 27B, from Qwen3.8-27B. Each is a LoRA adapter trained for one pass over the data, which takes about one hour for the 4B and 4.5 hours for the 27B on a single B200 GPU.

Figure 2. Training (top) and inference (bottom) for Sinha et al.'s rationale distillation and our decision distillation.

Results

We compare monitors on the OOD set by mean pAUROC@20 and by the cost of 1,000 evaluations (Figure 1). For the reasoning monitors, we use the scores and costs that Sinha et al. report. We scored the decision models and the untrained base models ourselves, at their API prices. We price Gleipnir at the cost of renting one B200 GPU, at two rates: on demand ($7.99 per hour, the rate we paid), which suits short jobs such as experiments and benchmarking, and with a long-term rental discount ($3.44 per hour), which suits a provider serving the monitors continuously.

Gleipnir 27B matches the strongest reasoning monitor at a fraction of its cost. It scores 0.951, against 0.942 for Claude Opus 4.6, the strongest monitor of Sinha et al., while costing 229 times less on demand and 532 times less with the discount. It also scores 0.042 above its teacher, Kimi K3, but that lead comes from a single task in one of the OOD benchmarks.

Training improves both base models. It raises Qwen3.5-4B from 0.618 to 0.770 and Qwen3.8-27B from 0.890 to 0.951. Starting from the same base model, Gleipnir 4B scores 0.086 above the monitor that Sinha et al. trained with fine-tuning and RL.

At the same cost, Gleipnir 27B also outperforms the strongest decision model. With the discounted rate, it costs about the same per 1,000 evaluations as pplx-decider v1.2, Perplexity's open-weight decision model ($0.178 against $0.176), and scores 0.055 higher. When we set the threshold so that only 1% of benign trajectories are flagged, Gleipnir 27B catches 87.4% of the harmful ones, 11.5 points more than pplx-decider.

Running Gleipnir at low cost

At these costs, a deployment can check every trajectory, or even every action, instead of a sample. Most of the saving comes from how we serve the monitors. Because a Gleipnir monitor only reads its prompt and two probabilities, we run it in vLLM's classification mode, which skips text generation entirely. On the same GPU, the base models take about ten times as long per trajectory when they write a rationale first.

On top of this, we made two changes to the serving stack. First, we run most of the model's arithmetic in lower-precision formats (FP8 and FP4), which the B200 handles natively. Second, we remove work that a monitor doesn't need, such as computing outputs for every position when only the last one is read. At the discounted GPU rate, self-hosting with these changes costs $0.0047 per million input tokens for the 4B and $0.0188 for the 27B. That is 6.4 and 10.4 times less than the API prices that Sinha et al. report for the same base models ($0.030 and $0.195). On trajectories with a median length of about 10,000 tokens, the 4B returns a score in 48 ms and the 27B in 192 ms.

The savings grow when a monitor checks every action, because the transcript is scored again after each step. In Gleipnir, as in most language models, each token only attends to the tokens before it. Adding a step to the end of the transcript therefore leaves the model's computation for everything before it unchanged. With prefix caching, the server stores that computation from the previous check and processes only the new tokens. On our benchmark, this makes checking every action 3.7 times faster for the 27B and 1.9 times faster for the 4B.

Several decision models, including pplx-decider, can't do this because they use bidirectional attention: each token also attends to the tokens after it. A new step then changes the computation for the whole transcript, so every check starts from scratch. When every action is checked, Gleipnir 27B costs about four times less than pplx-decider at the discounted GPU rate.

Where Gleipnir falls short

On the OOD set, the strongest monitors now score close to the maximum, so it no longer separates them. We therefore tested Gleipnir in two harder settings that played no part in training: attacks designed to evade monitors, and reward hacking by other agents.

SleightBench contains 40 attacks that humans designed to exploit the blind spots of frontier monitors. Each is paired with a benign twin, sometimes differing by a single token. Claude Opus 4.6 with extended thinking never catches half of them when only 1% of benign runs may be flagged. Here, no low-cost monitor stands out. Below $2 per 1,000 evaluations, every monitor scores between 0.19 and 0.40 pAUROC@20: Gleipnir 27B scores 0.299, Gleipnir 4B 0.209, and pplx-decider v1.3, a newer version of Perplexity's model, 0.397 at about the same cost as Gleipnir 27B. GPT-6.1 Terra leads at 0.734, but costs $15.49 per 1,000 evaluations. Training also helps much less here than on the OOD set, likely because our training data contains no attacks built against a monitor.

For reward hacking, we used EvilGenie Escalation, where 15 agent models solve coding problems with visible tests, and some hard-code the expected outputs instead of solving the problem. We set each monitor's threshold once, so that it flags 1% of the benign OOD trajectories, and didn't tune it further. Gleipnir 27B flags 28% of the 124 reward hacks and 1.1% of the 1,823 legitimate runs. That is more than pplx-decider v1.3 (17%) or GPT-6 Luna (7%), but well below its teacher, Kimi K3 (53%), which also flags 6.0% of the legitimate runs. Most of the missed hacks come from one problem, where the hack adds the sample output to an otherwise correct solution. Whether that is cheating depends on intent, which the actions alone barely show. Gleipnir 4B catches only 2% of the hacks.

Finally, we have only tested Gleipnir on benchmarks, not on the traffic of a deployed agent. Classifiers in production run at far lower false-positive rates than we can measure: Anthropic's Constitutional Classifiers++ run at a refusal rate of 0.05%. Checking a rate that low takes many thousands of benign trajectories, more than any of these benchmarks contain. Real agent transcripts can also be much longer than ours, since the OOD set drops every trajectory over 28,000 tokens. Anyone deploying Gleipnir should set its threshold on their own benign traffic and test it against the attacks they expect. Against attacks designed to evade it, Gleipnir works best as a low-cost first check in front of stronger monitors, not as the only safeguard.

Using Gleipnir

Everything is released under the MIT license on the project page, which also explains how to run it:

  • Weights for Gleipnir 4B and 27B, both as merged checkpoints and as LoRA adapters
  • A serving image with the optimized stack from the previous section
  • The code for training, evaluation and serving
  • The teacher probabilities for every training trajectory

We see five main uses:

  • Checking every action. At under 200 ms and a fraction of a cent per trajectory, Gleipnir can approve or flag each action of an agent before it runs, in products and in internal deployments.
  • A first filter in front of stronger monitors. Gleipnir can score everything and pass only the most suspicious trajectories to an expensive reasoning monitor or a human reviewer. Given the results on attacks designed to evade monitors, this is where we'd put it rather than using it alone.
  • Independent monitoring inside a lab. Evaluators embedded in a frontier lab may prefer a monitor that the lab didn't train. Because Gleipnir's weights are open, it can run wherever the transcripts are, including on the lab's own hardware, so nothing has to leave the lab.
  • Scoring training runs. Gleipnir is fast enough to score every rollout in an RL pipeline, for example to flag reward hacking. Use the scores with care, though: training against a monitor can teach agents to hide their behavior from it rather than stop it (Baker et al.).
  • A baseline for new monitors. The adapters and teacher probabilities make it easy to train Gleipnir further on new data, or to compare a new monitor against it.

Acknowledgements

BlueDot Impact's Rapid Grants Program paid for the API credits we used to collect the Kimi K3 probabilities that form our training data, and Safe AI Netherlands funded the final stage of the project. We also thank Neel Nanda for his support during the exploration phase of his MATS stream, which provided a stipend and a compute budget.

AI research agents wrote the code and helped draft both the report and this post. We chose the experiments and reviewed every result.

The text above was extracted automatically from the source page and may miss images, tables or code blocks. The original is authoritative.

Published by LessWrong
This site only summarises and aggregates; copyright stays with the original author. Headlines and summaries follow the source — where they differ, the original wins.
Read the original ↗