MOSAIC trains agentic language models to plan, check, then act or refuse
A post-training framework from an arXiv paper makes safety reasoning and refusal explicit steps in multi-step tool use, with rewards drawn from pairwise trajectory comparisons by an LLM judge.
In plain words
Agentic language models carry out tasks by calling tools, where one wrong action, like entering credentials, can cause lasting harm. The paper's authors propose MOSAIC, a training method that teaches models to plan, check safety, and then either act or refuse. Instead of labelling whole task runs, they train with reinforcement learning using an LLM judge that compares pairs of runs.
What was announced
The authors argue that existing alignment methods, built mainly for conversational systems, supervise the final response rather than the intermediate actions where harm occurs, and that they fail under adversarial tool feedback and distributional shifts introduced by agentic scaffolding. MOSAIC structures inference as a plan, check, then act or refuse loop, treating explicit safety reasoning and refusal as first-class actions. To avoid needing trajectory-level safety labels, the framework uses reinforcement learning with rewards from pairwise trajectory comparisons by an LLM judge; the authors say relative judgments avoid hand-specified rubrics and separate trajectories a coarse pointwise judge would score identically.
The team trained four open-weight models: Qwen2.5-7B, Qwen3-4B-Thinking, Phi-4, and Qwen3-30B-A3B-Thinking, and evaluated them on out-of-distribution benchmarks covering harmful tasks, prompt injection, benign tool use, and privacy leakage. Reported results include halving the harmful-task score of Qwen2.5-7B, raising refusal of injected instructions by up to 25 points, cutting privacy leakage by 16-19%, and nearly doubling benign task completion for Qwen3-4B-Thinking while reducing its tokens per turn by about 4x. The authors note the gains are model-dependent: for the already conservative Phi-4, MOSAIC mainly recovered benign utility at some cost in safety.
What it does not show
- Evidence is limited to the paper's abstract, so the reported benchmark numbers and design claims cannot be independently verified from the supplied material.
- The authors themselves state that gains are model-dependent, with Phi-4 showing a safety cost, so results do not generalize uniformly across models.
For security and IT teams
- Scope
- The findings apply to agentic language models performing multi-step tool use, not to chat models, and were measured on four specific open-weight models on out-of-distribution benchmarks.
Sources
Source-support review completed 2 Dec 2026. This story was drafted with AI assistance and checked against retained source passages. Automated checking is not independent verification.
Coverage: arXiv: abstract.
Updates and corrections
No corrections so far.
First published 2 Dec 2026
New to the subject? AI from the Ground Up starts from the beginning.