StepGuard: Learning Step-Level Guardrails with Scalable Supervision and Safety-Utility Balancing
[Sztuczna inteligencja] Autorzy: Zhijie Zheng, Yu Li, Chen Qian i 5 więcej
LLM-based agents can interact with external environments through tool invocation, but this capability also introduces security risks such as file modification, information leakage, and unauthorized actions. Existing guardrails often evaluate completed trajectories, leaving pre-execution monitoring of step-level actions underexplored. We propose StepGuard, a step-level guard model that can audit completed agent trajectories and check tool actions before they are executed. To train StepGuard, we introduce StepGen, an automatic data engine that generates safe and unsafe trajectories with the same context but different actions at the risky step. To further reduce over-defense and under-defense, we propose Balance-GRPO, which dynamically balances learning between safe and unsafe actions based on their observed accuracy. Experiments show that StepGuard achieves the highest average accuracy am…
- Kategoria arxiv
- cs.AI
- Kategoria
- Sztuczna inteligencja