LyzrAI/IntuitionGuard-3B
a fast safety guard for AI agents
2 min readupdated
The new model is a LoRA adapter (a small add-on to a base model) built on Ministral-3-3B-Instruct-2512, trained to evaluate AI agent execution trajectories (user tasks, agent thoughts, tool calls, and their results). The model does not block actions; instead, it returns a single p_unsafe number for triggering human alerts or a protective layer. It is designed for projects where low latency and high data processing speed are essential while maintaining accuracy.
Key features
- High speed: runs about twice as fast as the 8B version with a median latency of around 53 ms on an L40S.
- Strong results: achieves an AUROC of 0.972 on the R-Judge benchmark (in an ensemble of three seeds).
- Compact size: 3B parameters — smaller than many open alternatives it competes with.
- Transparent training: created without using outputs from proprietary frontier models (only using open teachers StepGuard-4B and AgentDoG1.5-4B).
What you can do
- Agent monitoring: integrate into AI agent task execution pipelines to detect unsafe steps in a timely manner.
- Trajectory analysis: inspect tool call logs and user actions using the score.py script.
- Ensembling: use multiple trained seeds (seeds 0, 1, 2) to reduce score variance.
Example
import torch
from transformers import AutoTokenizer
from peft import PeftModel
base = "mistralai/Ministral-3-3B-Instruct-2512-BF16"
tok = AutoTokenizer.from_pretrained(base, fix_mistral_regex=True)
model = PeftModel.from_pretrained(
AutoModelForImageTextToText.from_pretrained(base, dtype=torch.bfloat16, device_map="cuda"),
"LyzrAI/IntuitionGuard-3B"
)Read more
Details• Architecture: LoRA rank 16 on Ministral-3-3B-Instruct-2512 (q, k, v, o, gate, up, down projections).
• Hardware requirements: about 8 GB of free VRAM in bf16 format to run.
• Dataset: 6,000 trajectories from StepGuard-Data, agent-action-safety-dataset, and AgentDrift.
• Limitations: works only with English, processes only text, and outputs an overall score without localizing the specific step.










Comments