Learning Control Policies to Provably Satisfy Hard Affine Constraints for Black-Box Hybrid Dynamical Systems

arXiv cs.RO / 4/27/2026

📰 NewsIdeas & Deep AnalysisModels & Research

Key Points

  • The paper addresses safety verification for black-box hybrid dynamical systems, where unknown nonlinear dynamics and instantaneous state jumps (impacts/reset maps) make strict constraint satisfaction difficult.
  • It proposes learning reinforcement learning (RL) control policies that are constrained to be affine, with the policy made “repulsive” near constraint boundaries to ensure trajectories provably respect affine state constraints in closed loop.
  • To handle safety violations caused by hybrid impacts, it introduces an additional repulsive affine region before the reset so that post-reset states also remain within the constraints.
  • The authors provide sufficient theoretical conditions guaranteeing closed-loop safety, and they validate the method against reward-shaping and learned control barrier function (CBF) baselines on hybrid benchmarks (e.g., constrained pendulum and paddle juggler), showing improved policy quality while always maintaining safety.

Abstract

Ensuring safety for black-box hybrid dynamical systems presents significant challenges due to their instantaneous state jumps and unknown explicit nonlinear dynamics. Existing solutions for strict safety constraint satisfaction, like control barrier functions (CBFs) and reachability analysis, rely on direct knowledge of the dynamics. Similarly, safe reinforcement learning (RL) approaches often rely on known system dynamics or merely discourage safety violations through reward shaping. In this work, we want to learn RL policies which provably satisfy affine state constraints in closed loop for black-box hybrid dynamical systems with affine reset maps. Our key insight is forcing the RL policy to be affine and repulsive near the constraint boundaries for the unknown nonlinear dynamics of the system, providing guarantees that the trajectories will not violate the constraint. We further account for constraint violation due to instantaneous state jumps that occur due to impacts or reset maps in the hybrid system by introducing a second repulsive affine region before the reset that prevents post-reset states from violating the constraint. We derive sufficient conditions under which these policies satisfy safety constraints in closed loop. We also compare our approach with state-of-the-art reward shaping and learned-CBF methods on hybrid dynamical systems like the constrained pendulum and paddle juggler environments. In both scenarios, we show that our methodology learns higher quality policies while always satisfying the safety constraints.