[Paper Review] SafeGen-LLM: Enhancing Safety Generalization in Task Planning for Robotic Systems
SafeGen-LLM proposes a two-stage post-training framework (SFT and GRPO) to enable safety-aligned, cross-domain task planning with LLMs on safety-constrained PDDL3 benchmarks.
Safety-critical task planning in robotic systems remains challenging: classical planners suffer from poor scalability, Reinforcement Learning (RL)-based methods generalize poorly, and base Large Language Models (LLMs) cannot guarantee safety. To address this gap, we propose safety-generalizable large language models, named SafeGen-LLM. SafeGen-LLM can not only enhance the safety satisfaction of task plans but also generalize well to novel safety properties in various domains. We first construct a multi-domain Planning Domain Definition Language 3 (PDDL3) benchmark with explicit safety constraints. Then, we introduce a two-stage post-training framework: Supervised Fine-Tuning (SFT) on a constraint-compliant planning dataset to learn planning syntax and semantics, and Group Relative Policy Optimization (GRPO) guided by fine-grained reward machines derived from formal verification to enforce safety alignment and by curriculum learning to better handle complex tasks. Extensive experiments show that SafeGen-LLM achieves strong safety generalization and outperforms frontier proprietary baselines across multi-domain planning tasks and multiple input formats (e.g., PDDLs and natural language).
Motivation & Objective
- Motivate safe task planning in robotics where classical planners struggle with scalability and RL/LMM approaches risk unsafe plans.
- Develop a safety-oriented, multi-domain PDDL3 benchmark with explicit safety constraints for planning evaluation.
- Propose a two-stage post-training framework (SFT and GRPO) to align LLMs with formal safety constraints.
- Demonstrate cross-domain and cross-problem safety generalization and compare against frontier baselines across multiple input formats.
Proposed method
- Construct a unified safety-aware PDDL3 planning benchmark across Blocksworld, Ferry, Grippers, and Spanner with explicit safety constraints.
- Stage I: Supervised Fine-Tuning (SFT) on constraint-compliant planning data to learn planning syntax and semantics.
- Stage II: Group Relative Policy Optimization (GRPO) guided by fine-grained reward machines derived from formal verification to enforce safety alignment.
- Curriculum learning to stabilize training and handle increasingly complex tasks.
- Reward design uses a hierarchical, progress-based signal from VAL-verifiable outcomes (five categories from format errors to success).
- Domain-balanced batching and a three-phase curriculum to improve sample efficiency and safety generalization.
Experimental results
Research questions
- RQ1Can SafeGen-LLM generalize safety constraints across unseen problems within the same domain (cross-problem generalization)?
- RQ2Can SafeGen-LLM generalize safety constraints across multiple domains (cross-domain generalization)?
- RQ3Do SFT and GRPO together improve planning success and reduce safety violations compared to pretrained and SFT-only baselines?
- RQ4How does SafeGen-LLM compare with large proprietary models in safety-aware planning across domains and input formats?
- RQ5What is the impact of curriculum learning and verifiable rewards on training stability and safety adherence?
Key findings
- LLM-based planners achieve higher success rates and safety adherence than classical planners on safety-constrained tasks across four domains.
- Cross-problem results show precondition violations drop from 98% (Pretrained) to 20% (SFT) to 8% (GRPO) in Blocksworld, with success rising from 0% (Pretrained) to 66% (SFT) to 82% (GRPO).
- Cross-domain results demonstrate GRPO-trained Qwen3-14B achieving 88–100% success and near-elimination of safety violations (0–2%); Llama-8B achieves 78–94% success with 0–4% safety violations.
- Compared to GPT-5 Nano, GRPO-trained Qwen3-14B attains higher success across four domains (88–100%), while smaller models remain competitive, evidencing scale-supervised generalization.
- Runtime analysis shows LLM-based planning can outperform some classical planners in feasibility and speed under stress tests (e.g., GPT-5.2 achieves 100% success in Blocksworld/Grippers with ~102s average runtime; OPTIC and Fast Downward show lower success rates under increasing complexity).
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.