FoSeRL: Formal Sequential Robustness Certification for Reinforcement Learning Policies
Organizations: LMU Munich, Germany · TUM, Munich, Germany · Masaryk University, Brno, Czech Republic · CU Boulder, USA
Abstract
Even a few action perturbations can substantially degrade the performance of a deployed decision policy. Certifying the resulting return loss is challenging in stochastic environments, where returns vary even without an attack. We introduce FoSeRL, a framework for certifying deployed RL policies against precommitted, temporally sparse action attacks. The deployed policy is unchanged, with no smoothing or retraining. Certification requires a resettable simulator supporting shared randomness and independent one-step successor queries, but no analytical dynamics model. FoSeRL certifies that an attacked episode loses no more than a prescribed amount of return relative to the same episode unattacked, with at least a target probability and at a user-specified confidence level. Both runs share the initial state and randomness, so the measured loss reflects the attack, not the episode; carrying the running return gap as a state coordinate makes it the terminal value, reducing trajectory-level certification to terminal safety. Time-dependent barrier conditions on the augmented state bound the terminal failure probability: satisfied exactly, they certify every admissible precommitted attack; learned from sampled trajectories and verified on held-out data, they certify the same guarantee under a specified attack-episode setting. Across six stochastic continuous-control environments and three RL policy families (TD3, SAC, and PPO), FoSeRL certifies non-trivial cardinality--magnitude robustness frontiers, achieves substantially larger certified budgets than policy smoothing, and reveals marked robustness differences among policies with comparable nominal performance.
Figures & tables
Appendix figures & tables10 assets
Supplementary material from the paper’s appendix.
Appendix
| Parameter | Inv. Pend. | ACC | Unicycle | Hopper | HalfCheetah | Ant | |
| Model | Custom | Custom | Custom | Gym v5 | Gym v5 | Gym v5 | |
| 3 | 3 | 3 | 11 | 17 | 105 | ||
| 2 | 3 | 3 | 12 | 18 | 29 | ||
| 1 | 1 | 2 | 3 | 6 | 8 | ||
| 0.05 | 0.10 | 0.10 | 0.008 | 0.05 | 0.05 | ||
| 200 | 300 | 500 | 1000 | 500 | 1000 |
| Environment | Policy | Norm. gap | |||||||
|---|---|---|---|---|---|---|---|---|---|
| FoSeRL | PS | ||||||||
| Inverted Pendulum ( ) | SAC | 4 | 7 | 3.5% | 5% | 4.00 | 4.00 | 0.0198 | 0.9951 |
| 16 | 8% | 2.5% | 2.60 | 2.00 | 0.0129 | 0.4968 | |||
| 16 | 8% | 5% | 3.47 | 3.00 | 0.0132 | 0.7467 | |||
| 27 | 13.5% | 1% | 1.02 | 0.65 | 0.0000 | 0.1625 | |||
| 27 | 13.5% | 2.5% | 1.84 | 1.50 | 0.0101 | 0.3725 | |||
| Method | Formal | Channel | Budget | Fixed | Level | Form | Paired | Resolved |
| Attacks on deployed policies | ||||||||
| FGSM on policies [ Huang et al., 2017 ] | ✗ | obs | ✓ | ep | — | ✗ | ✗ | |
| Strategically-timed [ Lin et al., 2017 ] | ✗ | obs | ✓ | ep | — | ✗ | ✗ | |
| Critical-point [ Sun et al., 2020 ] | ✗ | obs | ✓ | ep | — | ✗ | ✗ | |
| MAS action attack [ Lee et al., 2020 ] | ✗ | act | ✓ | ep | — | ✗ | ✗ | |
| Robust training: hardens a policy, certifies none | ||||||||
| Method | Problem formulation and certified property | Attack model and main assumptions | Comparable to FoSeRL? |
| Per-state policy smoothing | Per-decision robustness of the policy map: certifies action agreement at individual observations, with no statement about accumulated trajectory degradation | ball applied per observation; each visited state certified independently, with fresh sampling at every point and no coupling across timesteps | No |
| Gaussian policy smoothing | Sequential robustness under actuator-channel perturbation: certifies the same event as FoSeRL, | Worst case over all via a Neyman–Pearson shift bound, paired by a union bound. Requires noise shared by both branches and entering the same channel as the attack; grid fixed on design data | Yes |
| ReCePS | Robustness of expected return: certifies a lower bound on rather than a per-trajectory event | Observation-space ball of radius ; guarantee holds on the mean, not per trajectory. Smoothed policy evaluated at inference | No |
| FoSeRL | Smoothing | |||||||
| Environment | Ratio | |||||||
| Pendulum (SAC) | 27 | 2.5% | 200 | – | ||||
| Hopper (TD3) | 50 | 2.5% | 1000 | – | ||||
| HalfCheetah (SAC) | 50 | 10% | 500 | – | ||||
Adversarial Robustness
Adversarial robustness studies how well AI systems withstand deliberately crafted inputs, training-data corruption, and other attacks.
See all 484 papers