LexiSafe: Offline Safe Reinforcement Learning with Lexicographic Safety-Reward Hierarchy
Organizations: Dept. of Mechanical Engineering Iowa State University Ames, USA · Translational AI Center Iowa State University Ames, USA · Sibley School of Mechanical and Aerospace Engineering Cornell University Ithaca, USA
Abstract
Offline safe reinforcement learning (RL) is increasingly important for cyber-physical systems (CPS), where safety violations during training are unacceptable and only pre-collected data are available. Existing offline safe RL methods typically balance reward-safety tradeoffs through constraint relaxation or joint optimization, but they often lack structural mechanisms to prevent safety drift. We propose LexiSafe, a lexicographic offline RL framework designed to preserve safety-aligned behavior. We first develop LexiSafe-SC, a single-cost formulation for standard offline safe RL, and derive safety-violation and performance-suboptimality bounds that together yield sample-complexity guarantees. We then extend the framework to hierarchical safety requirements with LexiSafe-MC, which supports multiple safety costs and admits its own sample-complexity analysis. Empirically, LexiSafe demonstrates reduced safety violations and improved task performance compared to constrained offline baselines. By unifying lexicographic prioritization with structural bias, LexiSafe offers a practical and theoretically grounded approach for safety-critical CPS decision-making.
Figures & tables
| Method | Offline Setting | Complexity |
|---|---|---|
| PBLRL [ 19 ] | ✗ | ✗ |
| PSQD [ 22 ] | ✗ | ✗ |
| LPA [ 23 ] | ✗ | ✗ |
| LLRL [ 21 ] | ✗ | |
| LexiSafe-SC | ✓ | Theorem 3 |
| LexiSafe-MC | ✓ | Corollary 1 |
| Hyperparameter | Value (Experiment range) |
|---|---|
| Batch size | 2048 (32-2048) |
| Discount factor | 0.995 (0.9-0.995) |
| and | 1 (1-5) |
| and | 0.7 (0.6-0.7) |
| Actor learning rate | 3e-4 (3e-4-1e-3) |
| Q and value learning rate | 3e-5 (1e-5-3e-5) |
| Method | BC-Safe | COptiDICE | CPQ | FISOR | LSPC-O | LexiSafe-SC | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Task | reward | cost | reward | cost | reward | cost | reward | cost | reward | cost | reward | cost |
| Safety Gym: | ||||||||||||
| SwimmerVel | 0.51 | 1.07 | 0.63 | 7.58 | 0.13 | 2.66 | -0.04 | 0.00 | 0.44 | 0.14 | 0.51 | 0.92 |
| HopperVel | 0.36 | 0.67 | 0.13 | 1.51 | 0.14 | 2.11 | 0.17 | 0.32 | 0.69 | 0.00 | 0.70 | 0.50 |
| HalfCheetahVel | 0.88 | 0.54 | 0.65 | 0.00 | 0.29 | 0.74 | 0.89 | 0.00 | 0.97 | 0.10 | 0.97 | 0.69 |
| Walker2dVel | 0.79 | 0.04 | 0.12 | 0.74 | 0.04 | 0.21 | 0.38 | 0.36 | 0.76 | 0.02 | 0.78 | 0.40 |
Reinforcement Learning
Reinforcement learning studies how agents learn sequential decisions from rewards and interaction, balancing exploration, performance, safety, and adaptation.
See all 1,717 papers