Safe and Sample-Efficient Reinforcement Learning Algorithms for Factored Environments
Proceedings of the Twenty-Eighth International Joint Conference on Artificial Intelligence. Doctoral Consortium. Pages 6460-6461.
https://doi.org/10.24963/ijcai.2019/919
© 2019 International Joint Conferences on Artificial Intelligence
Keywords
- Planning and Scheduling: Planning under Uncertainty
- Machine Learning: Probabilistic Machine Learning
- Machine Learning: Reinforcement Learning
- Machine Learning: Learning Graphical Models
Abstract
Reinforcement Learning (RL) deals with problems that can be modeled as a Markov Decision Process (MDP) where the transition function is unknown. In situations where an arbitrary policy pi is already in execution and the experiences with the environment were recorded in a batch D, an RL algorithm can use D to compute a new policy pi'. However, the policy computed by traditional RL algorithms might have worse performance compared to pi. Our goal is to develop safe RL algorithms, where the agent has a high confidence that the performance of pi' is better than the performance of pi given D. To develop sample-efficient and safe RL algorithms we combine ideas from exploration strategies in RL with a safe policy improvement method.
- [Brafman and Tennenholtz, 2002] Ronen I. Brafman and Moshe Tennenholtz. R-MAX -A General Polynomial Time Algorithm for Near-Optimal Reinforcement Learning. JMLR, 3:213-231, 2002. IJCAI
- [Diuk et al., 2009] Carlos Diuk, Lihong Li, and Bethany R. Lef- fler. The Adaptive k-meteorologists Problem and Its Applica- tion to Structure Learning and Feature Selection in Reinforce- ment Learning. In ICML, pages 249-256. ACM, 2009.
- [Guestrin et al., 2003] Carlos Guestrin, Daphne Koller, Ronald Parr, and Shobha Venkataraman. Efficient Solution Algorithms for Factored MDPs. JAIR, 19:399-468, 2003.
- [Laroche et al., 2019] Romain Laroche, Paul Trichelair, and Rémi Tachet des Combes. Safe policy improvement with base- line bootstrapping. In ICML, pages 3652-3661. PMLR, 2019.
- [Petrik et al., 2016] Marek Petrik, Mohammad Ghavamzadeh, and Yinlam Chow. Safe Policy Improvement by Minimizing Robust Baseline Regret. In NeurIPS, pages 2298-2306.
- [Simão and Spaan, 2019] Thiago D. Simão and Matthijs T. J. Spaan. Safe Policy Improvement with Baseline Bootstrapping in Factored Environments. In AAAI. AAAI Press, 2019.
- [Strehl et al., 2007] Alexander L. Strehl, Carlos Diuk, and Michael L. Littman. Efficient Structure Learning in Factored- State MDPs. In AAAI, pages 645-650. AAAI Press, 2007.
- [Strehl, 2007] Alexander L Strehl. Model-Based Reinforcement Learning in Factored-State MDPs. In 2007 IEEE International Symposium on Approximate Dynamic Programming and Rein- forcement Learning, pages 103-110. IEEE, 2007.
References were extracted automatically from the PDF and may contain errors.
Full text extracted automatically from the PDF; figures, tables and equations may differ. The PDF is the version of record.
1 Model-based Exploration in RL
To find the optimal policy quickly, the R-max algorithm [Brafman and Tennenholtz, 2002] incentivizes the agent to explore unknown parts of the environment in early stages of the learning process. To do so, it keeps track of a set of stateaction pairs considered known:
where n(s, a) is the number of times the agent has applied action a in state s, and m is a threshold to consider a stateaction pair known.
Often, the state space S can be represented by a set of state factors X = {X1, · · · ,X|X|} where each factor has a domain Dom(Xi). When these factors are highly independent, a Factored MDP (FMDP) can compactly represent an MDP, using a dependence function D : S ×A×X → I that indicates the commonalities among different factors, where I is a set of dependency identifiers [Strehl, 2007]. The probabilistic transition function can be compactly represented:
where s′i is the value of Xi in the next state s′ .
The factored R-max algorithm is a direct extension of Rmax for FMDPs [Guestrin et al., 2003]. It maintains an estimate of each transition component distribution and decides which state-action pairs are known or not according to these estimates. This algorithm only considers as known parts of the environment where the estimate of all transition components have been experienced enough times. In particular, given a minimum number of samples for each factor ⃗m = 〈m1, . . . ,m|X|〉 and the counters of each transition component n(j), the set of known state-action pairs is constructed as follows:
2 Safe Policy Improvement
Safe Policy Improvement (SPI) addresses the question of how to compute a new policy π that outperforms the behavior policy πb with high confidence 1 - δ, given a batch of previous interactions D and an admissible error ζ.
The SPI by Baseline Bootstrapping (SPIBB) framework is a model-based approach that guarantees safety by bootstrapping unknown parts of the approximated model with the behavior policy πb [Laroche et al., 2019]. Formally, the set of bootstrapped state-action pairs Bm is the complement of the set Km (1). This way, the SPIBB algorithms guarantee to perform at least as well as the behavior policy and do not rely on a safety test, in contrast to other SPI algorithms.
The policy-based Πb-SPIBB algorithm attributes the same probability to bootstrapped pairs as the behavior policy, which restricts the policy space to
Laroche et al. [2019] prove that if m = 2 ϵ2 log |S||A|2|S| δ then the Πb-SPIBB algorithm is safe, where ϵ is a bound on the L1 distance between the estimated transition function and the true transition function, that depends on the precision parameter ζ.
The Πb-SPIBB algorithm can change the policy if a subset of the state-action pairs is well known, therefore it ca be less conservative than other SPI algorithms. Nevertheless, when the problem is described by a set of factors, m grows exponentially in the number of factors. In the next section we show that, by taking in account the independence between features, it is possible to exploit the factored representation of the problem using a minimum number of samples that is only polynomial in the number of parameters of the FMDP.
3 Main Contributions
To exploit the structure of an FMDP we proposed the Factored Πb-SPIBB algorithm, an adaptation of Πb-SPIBB algorithm for factored environments [Sim˜ao and Spaan, 2019]. This algorithm takes an extra input: the dependency function D that determines which transition components must be estimated.
First, the algorithm estimates each transition component according to D using the same counters as the factored Rmax algorithm. Second, it redefines the set of state-action pairs to be bootstrapped B⃗m as the complement of the set of known state-action pairs K⃗m (2). In this way, given B⃗m and the behavior policy πb, the constrained policy space Πb can be computed using (3). Finally, the algorithm searches for an optimal policy in Πb, however, in this case the transition function ˆ T(· | s, a) is estimated according to the estimate of each transition component.
The theoretical analysis shows that it is possible to bound the probability that the Factored Πb-SPIBB algorithm computes a policy worse than the behavior policy. To do so it is necessary to define ⃗m such that
Therefore, given a desired ϵ, the term |A||S| is replaced by |Q| and |S| is reduced to |Dom(Xi)|. This comes at the lower cost of adding a term polynomial in the number of variables |X|2 (necessary to bound the error of each component distribution). In domains where the features are highly independent from each other these results reduce significantly the number of samples necessary to improve the behavior policy.
Next, we relax the assumption that the dependency function D is known a priori, by proposing the Structure Learning Πb-SPIBB that integrates different structure learning algorithms [Diuk et al., 2009; Strehl et al., 2007] in the SPIBB framework.
The empirical analysis shows a large difference in the number of samples necessary to change the behavior policy of flat SPI algorithms and their factored counterparts. In the SysAdmin domain (Figure 1), the Factored Πb-SPIBB algorithm manages to compute policies better than the behavior policy given batches with only 100 trajectories, in contrast to the Πb-SPIBB algorithm, that only shows improvement when |D| ≥ 2000. Finally, we find that even without the prior knowledge about the dependency function D, the Factored Πb-SPIBB algorithm equipped with the structure learning kmeteorologists algorithm can also exploit the independence between features, finding improved policies with 1000 trajectories.
4 FutureWork
Some directions for future work include: extension of other model-based safe RL methods to factored environments, such as the robust approach by Petrik et al. [2016]; exploitation of other types of structure in the SPIBB framework such as decision trees and relation between objects; and development of a general SPIBB framework to be applied under different assumptions of prior knowledge.
Mean Performance

Acknowledgments
This research received funding from the Netherlands Organisation for Scientific Research (NWO).
@inproceedings{ijcai2019p919,
title = {Safe and Sample-Efficient Reinforcement Learning Algorithms for Factored Environments},
author = {Simão, Thiago D.},
booktitle = {Proceedings of the Twenty-Eighth International Joint Conference on
Artificial Intelligence, {IJCAI-19}},
publisher = {International Joint Conferences on Artificial Intelligence Organization},
editor = {Sarit Kraus},
pages = {6460--6461},
year = {2019},
month = {8},
note = {Doctoral Consortium},
doi = {10.24963/ijcai.2019/919},
url = {https://doi.org/10.24963/ijcai.2019/919},
}
TY - CPAPER TI - Safe and Sample-Efficient Reinforcement Learning Algorithms for Factored Environments AU - Simão, Thiago D. T2 - Proceedings of the Twenty-Eighth International Joint Conference on Artificial Intelligence, IJCAI-19 PB - International Joint Conferences on Artificial Intelligence Organization PY - 2019 SP - 6460 EP - 6461 DO - 10.24963/ijcai.2019/919 UR - https://doi.org/10.24963/ijcai.2019/919 ER -Copied
Machine-readable versions of this paper, for tools and AI agents: