| name | safe-flow-q-learning |
| title | Safe Flow Q-Learning: Reachability-Based Safe Reinforcement Learning with Flow-Matching Policies |
| version | 0.0.3 |
| engine | skillxiv-v0.0.3-claude-opus-4.6 |
| license | MIT |
| url | https://arxiv.org/abs/2603.15136 |
| keywords | ["Safe Reinforcement Learning","Reachability Analysis","Flow Matching","Offline RL","Safety Constraints"] |
| description | Train offline safe RL agents using Hamilton-Jacobi reachability principles to learn feasibility-gated policies. Combine reward and safety critics with flow-matching teacher policies, distill to one-step actors, and calibrate safety thresholds via conformal prediction—achieving near-zero constraint violations with 2.5× inference speedup. |
Safe Flow Q-Learning: Reachability-Based Safe RL
Problem Statement
Offline safe RL methods using Lagrangian penalty approaches create conflicting gradients: reward maximization and safety recovery compete, requiring careful tuning. Diffusion-based policies guarantee safety but suffer from slow inference (multiple denoising steps). We need a method that prioritizes safety without soft penalties and runs efficiently at deployment.
Component Innovation: Feasibility-Gated Objective
The Modification: Replace soft Lagrangian penalties with hard constraint masking that completely gates reward updates when actions violate safety constraints.
Four-Stage Training Pipeline:
-
Critic Learning: Train separate reward and safety critics using max-backup Bellman recursion inspired by Hamilton-Jacobi (HJ) reachability. Safety values propagate worst-case constraints backward through time.
-
Flow Teacher: Train a multi-step flow-matching policy that maps states to action distributions while respecting learned reachability constraints.
-
Actor Distillation: Distill multi-step flow model into a one-step deterministic actor μ_ω(x,z) that maps (state, noise) pairs directly to actions without integration.
-
Conformal Calibration: Use conformal prediction to adjust safety thresholds, accounting for finite-data approximation errors and providing probabilistic safety coverage.
Feasibility-Gated Loss:
Ablation & Safety-Performance Tradeoff
Constraint Violations: Near-zero violations across boat navigation and Safety Gymnasium MuJoCo environments, maintaining safety even in distributional shift scenarios.
Reward Performance: Competitive rewards compared to baselines (FISOR, C2IQL, CPQ) while achieving stringent safety requirements.
Inference Speed: 2.5× faster than diffusion-based alternatives by eliminating iterative denoising and rejection sampling.
Hard masking may produce non-smooth loss landscapes; soft relaxations being explored for future work.