Skip to main content
QUICK REVIEW

[Paper Review] Safety-Constrained Reinforcement Learning for MDPs

Sebastian Junges, Nils Jansen|arXiv (Cornell University)|Oct 20, 2015
Formal Methods in VerificationComputer Science15 references6 citations
TL;DR

This paper proposes an iterative reinforcement learning framework for Markov decision processes (MDPs) that guarantees safety during exploration by first computing safe, permissive schedulers and then refining them through SMT-based optimization and Q-learning. The method ensures safety constraints are met while iteratively improving cost optimality, achieving globally optimal policies in practical benchmarks with tight bounds on expected cost.

ABSTRACT

We consider controller synthesis for stochastic and partially unknown environments in which safety is essential. Specifically, we abstract the problem as a Markov decision process in which the expected performance is measured using a cost function that is unknown prior to run-time exploration of the state space. Standard learning approaches synthesize cost-optimal strategies without guaranteeing safety properties. To remedy this, we first compute safe, permissive strategies. Then, exploration is constrained to these strategies and thereby meets the imposed safety requirements. Exploiting an iterative learning procedure, the resulting policy is safety-constrained and optimal. We show correctness and completeness of the method and discuss the use of several heuristics to increase its scalability. Finally, we demonstrate the applicability by means of a prototype implementation.

Motivation & Objective

  • To address the challenge of synthesizing optimal controllers in MDPs where costs are unknown a priori and safety is critical.
  • To ensure that reinforcement learning exploration does not violate safety constraints during runtime.
  • To compute safe, permissive schedulers that allow multiple safe actions per state, enabling broader exploration within safety bounds.
  • To iteratively refine policies using SMT solving and Q-learning to converge toward globally optimal cost performance.
  • To demonstrate scalability and correctness on real-world benchmarks involving stochastic environments and unknown cost functions.

Proposed method

  • First, compute a safe, permissive scheduler using SMT solving to encode all actions that do not violate the safety constraint (e.g., probabilistic reachability with bound λ).
  • Restrict the MDP's action space to only those actions allowed by the permissive scheduler, ensuring all exploration remains safe.
  • Apply Q-learning on the restricted MDP to learn a locally optimal policy with respect to the unknown cost function.
  • After each learning iteration, explicitly exclude the learned policy from future permissive scheduler computation to explore alternative safe strategies.
  • Use mixed-integer linear programming (MILP) to encode and solve for permissive schedulers efficiently.
  • Maintain lower and upper bounds on expected cost; terminate when bounds converge or global optimality is proven via known lower bounds.

Experimental results

Research questions

  • RQ1Can we compute a permissive scheduler that includes all safe actions while remaining computationally tractable?
  • RQ2How can we ensure that reinforcement learning exploration remains safe when costs are unknown prior to execution?
  • RQ3What iterative strategy enables convergence to a globally optimal safe policy despite incomplete cost knowledge?
  • RQ4How can SMT solving and MILP be combined to efficiently compute permissive schedulers under safety constraints?
  • RQ5To what extent can permissiveness and scalability be improved through heuristic-guided search in the scheduler space?

Key findings

  • The method successfully computed safe, optimal policies for four real-world benchmarks, including a robot navigation task with a moving janitor and a semi-autonomous explorer with communication constraints.
  • For the Janitor and FolLine case studies, the first iteration already yielded tight cost bounds (lower: 84, upper: 88.6 and 715.62, 716.83 respectively), indicating high permissiveness and early convergence.
  • In the ComExp case study, initial lower bounds were loose (0.3) due to low-cost non-communicating strategies, but bounds tightened significantly over iterations (e.g., to 78.2 after 7 iterations), showing iterative improvement.
  • The prototype implementation achieved convergence on all benchmarks within 2GB memory and a 2.67GHz CPU, demonstrating practical feasibility.
  • The study revealed that highly permissive schedulers often lead to small reachable state spaces due to solver behavior on unreachable states, suggesting a need to restrict permissiveness to reachable states.
  • The use of SMT-based permissive scheduler computation proved effective, though solver performance dropped when enforcing reachability of goal states, indicating a trade-off between reachability and scalability.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.