StepSafe: Learning Timely Intervention with Context-Aware Safety Reasoning
https://arxiv.org/abs/2610.20960
Safety in agentic systems is sequential: whether an action is safe depends on earlier actions, tool outputs, disclosures of information and interactions among agents. The authors note that guardrails have moved from assessing whole trajectories after the fact toward diagnosing individual steps and predicting risk proactively. Yet existing training objectives provide limited supervision for how evidence accumulates over time and when it becomes sufficient to justify intervention.
They propose ASPO, a training framework for timely step-level intervention. Prefix-level stage alignment credits each decision at its own step by comparing a response with other responses sampled at the same prefix, rewarding the action that fits the stage: continue before risk is visible, ask for clarification while doing so can avert harm, and stop before harm becomes irreversible. Adaptive feedback self-distillation then credits the reasoning behind each decision. The model acts as its own teacher, using annotations on intervention steps and rules mined from its own false alarms on safe steps. Training data carry a violation taxonomy and an intervention window at every step, and are extended through self-evolving multi-agent red-teaming.
The resulting guardrail, StepSafe, is reported as state of the art among open-source guardrails across five agent-safety benchmarks on the safety-utility Pareto curve, with a Youden's J of 53.0 for the 4B model versus 46.2. The work focuses on when to intervene, not only on classifying a completed trajectory as safe or unsafe.