
AA
Aradhye Agarwal, Gurdit Siyan, Yash Pandya, Joykirat Singh, Akshay Nambi, Ahmed Awadallah
· 1 min read
ResearcharXiv cs.CL
Learning When to Act or Refuse: Guarding Agentic Reasoning Models for Safe Multi-Step Tool Use
arXiv:2603.03205v3 Announce Type: replace
Abstract: Agentic language models operate in a fundamentally different safety regime than chat models: they must plan, call tools, and execute long-horizon tasks where a single misstep, such as accessing files or entering credentials, can cause irreversible harm. Existing alignment methods, largely optimized for conversational systems, break down in these settings, supervising the end response rather than the intermediate actions where harm is enacted, failing under adversarial tool feedback, and suffering from distributional shifts under the agentic scaffolding. We introduce MOSAIC, a post-training framework that aligns agents for safe multi-step tool use by making safety decisions explicit and learnable. MOSAIC structures inference as a plan, check, then act or refuse loop, with explicit safety reasoning and refusal as first-class actions. To train without trajectory-level safety labels, we use reinforcement learning with rewards from pairwise trajectory comparisons by an LLM judge. Relative judgments avoid the hand-specified rubric that absolute pointwise scoring would require, and they still distinguish trajectories that a coarse pointwise judge would score identically. We train four open-weight models, Qwen2.5-7B, Qwen3-4B-Thinking, Phi-4, and Qwen3-30B-A3B-Thinking, and evaluate them on out-of-distribution benchmarks spanning harmful tasks, prompt injection, benign tool use, and privacy leakage. MOSAIC halves the harmful-task score of Qwen2.5-7B, raises refusal of injected instructions by up to 25 points, reduces privacy leakage by 16-19%, and nearly doubles benign task completion for Qwen3-4B-Thinking while cutting its tokens per turn by about 4x. Gains are model-dependent: for the already conservative Phi-4, MOSAIC mainly recovers benign utility at some cost in safety.
Original source
This story was published by arXiv cs.CL and written by Aradhye Agarwal, Gurdit Siyan, Yash Pandya, Joykirat Singh, Akshay Nambi, Ahmed Awadallah. SyncAI.news shows a preview; the complete article is on the publisher's site.
Read the full story on arxiv.org


