PlanGuard: A Guardrail for Multi-Step Plan Safety in Embodied Agents
Organizations: Ant Digital Technologies, Ant Group · Anhui Province Key Laboratory of Digital Security · The University of Hong Kong · Individual Researcher
Abstract
Embodied task planners may produce multi-step plans whose subtask dependencies and interactions with the environment create physical risks during execution. Yet existing safeguards overlook such compositional risks, as general-purpose guardrails focus on semantic harm and embodied safety detectors assess subtasks in isolation. To address this gap, we introduce PlanGuard, the first pre-execution detector that evaluates the physical safety of a complete multi-step plan in its current environment. For training and evaluation, we construct a Multi-Step Plan Safety (MSP-Safe) dataset through paired task construction, plan generation using diverse planners, and safety annotation by three judges. Task-oriented SFT on MSP-Safe establishes fundamental plan-safety assessment capabilities, yet a substantial gap remains between compact models suitable for real-time deployment and stronger but costlier large models. Accordingly, we propose Strong-Teacher Adaptive Compensation for On-Policy Distillation (STAC-OPD), which provides compact models with adaptive strong-teacher supervision along their on-policy trajectories. It combines token-level distribution transfer from a fine-tuned strong teacher with probability-routed sequence-level compensation, retaining student-generated targets when the student favors the reference safety decision and using teacher-reconstructed targets otherwise. Across all test subsets, PlanGuard-2B achieves average 87.15% ACC and 87.21% F1, demonstrating effective whole-plan physical-risk detection at compact model scale. Code and dataset will be publicly released.
Figures & tables
| Model | MSP-Safe-Test | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| In-Domain | Scene-Heldout | Hazard-Heldout | Planner-Heldout | Avg | ||||||
| ACC | F1 | ACC | F1 | ACC | F1 | ACC | F1 | ACC | F1 | |
| Qwen3.5-27B | 82.60 | 81.68 | 80.08 | 78.70 | 82.20 | 81.02 | 80.60 | 79.92 | 81.37 | 80.33 |
| Qwen3.5-Plus | 83.00 | 82.55 | 82.11 | 82.04 | 81.80 | 81.39 | 78.80 | 79.92 | 81.43 | 81.48 |
| GPT-5.5 | 80.80 | 78.38 | 80.49 | 77.25 | 80.00 | 78.54 | 77.80 | 74.25 | 79.77 | 77.10 |
| Claude-Opus-4.6 | 79.72 | 80.54 | 79.67 | 80.39 | 78.20 | 80.43 | 80.52 | 81.45 | 79.53 | 80.70 |
| Training Stage | In-Domain | Scene-Heldout | Hazard-Heldout | Planner-Heldout | Avg | |||||
|---|---|---|---|---|---|---|---|---|---|---|
| ACC | F1 | ACC | F1 | ACC | F1 | ACC | F1 | ACC | F1 | |
| Base | 58.52 | 67.50 | 56.73 | 66.67 | 55.11 | 67.16 | 59.64 | 56.21 | 57.50 | 64.38 |
| + Task-Oriented SFT | 80.80 | 79.92 | 79.27 | 78.57 | 77.80 | 78.69 | 79.60 | 78.66 | 79.37 | 78.96 |
| + Strong-Teacher OPD | 83.80 | 83.77 | 80.49 | 80.57 | 78.40 | 79.62 | 82.00 | 81.93 | 81.17 | 81.47 |
| + Hard Compensation | 84.80 | 84.55 | 81.71 | 81.56 | 79.60 | 80.53 | 82.60 | 82.35 | 82.18 | 82.25 |
| Model | Stepwise | Full | ||
|---|---|---|---|---|
| ACC | F1 | ACC | F1 | |
| EMBGuard-2B | 49.00 | 55.65 | 55.00 | 54.55 |
| PlanGuard-0.8B | 58.00 | 59.62 | 60.00 | 66.10 |
| PlanGuard-2B | 56.00 | 57.69 | 67.00 | 72.73 |
AI Agent Safety
AI agent safety studies how to prevent and detect harmful actions by autonomous systems that use tools, memory, and multi-step plans.
See all 326 papers