Challenges
Dulac-Arnold et al. enumerate several challenges of real-world reinforcement learning:
- Training offline from the fixed logs of an external behavior policy.
- Learning on the real system from limited samples.
- High-dimensional continuous state and action spaces.
- Safety constraints that should never or at least rarely be violated.
- Tasks that may be partially observable, alternatively viewed as non-stationary or stochastic.
- Reward functions that are unspecified, multi-objective, or resk-sensitive.
- System operators who desire explainable policies and actions.
- Inference that must happen in real-time at the control frequency of the system.
- Large and/or unknown delays in the system actuators, sensors, or rewards.
Batch Reinforcement Learning
We have covered several algorithms in batch reinforcement learning(BRL) in the previous posts[1, 2], another important aspect of BRL is off-policy evaluation, which refers to evaluate the policy’s performance without running it on the real system. There are three approaches to off-policy evaluation:
- Importance sampling: Evaluate the target policy using
where \(G_\pi,G_b\) are the cumulative rewards under the target and behavior policy, and \(\omega_{0:T}=\prod_{t=0}^T{\pi(a_t\vert s_t)\over b(a_i\vert s_i)}\). As IS is notoriously known as high variance, one could reduce its variance using weighted importance sampling(WIS) and causality, which gives
\[G_{\pi}= \sum_{i=1}^n{\omega_{0:t}^{(i)}\over\sum_{i=1}^n\omega_{0:t}^{(i)}}\sum_{t=0}^T\gamma^{t}\omega_{0:t}^{(i)}r_t\]-
Direct Method: Learn a transition or value function and use that for evaluation. The difficulty of this method is that there is no clear method to quantify the approximation error or bias.
-
Doubly robust estiamtor: Combine both methods using.
here we do not apply WIS for simplicity. Advanced methods include MAGIC(Thomas & Brunskill, 2016) and more robust doubly robust (Farajtabar et al. 2018)
Learning on The Real System from Limited Samples
Learning on the real system generally requires an algorithm to be sample-efficient. As a result, meta-learning algorithms or model-based algorithms are considered as a promising approaches.
High-Dimensional Continuous State and Action Spaces
Dulac-Arnold et al. propose evaluating policy performance for high-dimensional continuous action spaces according to two dimension: number of actions, and relation over the action. Millions of related actions are much easier to learn than a couple hundred completely unrelated actions, as the agent needs to sufficiently sample each individual action in the latter case.
Satisfying Safety Constraints
Several work in RL safety (Dalal et al. 2018) has cast safety in the context of Constraint MDPs(CMDPs), which defines a constrainted optimization problem:
\[\begin{align} \max_\pi R(\pi)\\\ s.t.\quad C^k(\pi)\le V_k,k=1,\dots, K \end{align}\]where \(R\) is the cumulative reward of a policy \(\pi\), \(C^k(\pi)\) describes the incurred cumulative cost of a certain policy \(\pi\) relative to constraint \(k\), and \(V_k\) is the constriant level
An alternative to CMDPs is budgeted MDPs(Carrara et al. 2018), where the policy is learned as a function of constriant level. This allows the user to examine the trade-offs between expected return and constraint level and choose the constraint level that best works for the data.
Partial Observability and Non-Stationary
There are two common approaches to handle partial observability in the literature. First is to incorporate history into the observation of the agent. For example, DQN stacks four Atari frames together as the agent’s observation to account for partial observability. An alternative approach is to use recurrent networks within the agent. Hausknecht & Stone apply RNN to DQN, and show that the recurrent version can perform equally well in Atari games when only given a single frame as input.
Domain randomization (Peng et al. 2018) involves explicitly training an agent on various perturbations of the environment and averaging these learning errors together during training. System identification involves training a policy that can determine online the environment in which it is operating and modify the policy accordingly.
Unspecified and Multi-Objective Reward Function
In some cases, the agent is asked to perform well for all task instances not just in expectation. Therefore, policy quality cannot be summarized by a single scalar describing cumulative reward, but must consider both multiple dimensions of the policy’s behavior and the full distribution of behaviors.
A typical approach to evaluate the full distribution of reward across groups is to use a Conditional Value at Risk (CVaR) objective (Tamar et al. 2015), which looks at a given percentile of the reward distribution, rather than expected reward. Tamar et al. show that by optimizing reward percentiles, the agent is able to improve oupon its worst-case performance.
Van Seijen et al. present an approach that takes advantage of multi-objective reward signals to learn super-human performance in the Atari game Mc-PacMan.
System Delay
Hung et al. 2018 introduce a method to better assign rewards that arrive significantly after a causative event. They use a memory-based agent, and leverage the memory retrieval system to properly allocate credit to distant past events that are useful in predicting the value function in the current timestep. They show that this mechanism is able to solve previously unsolveable delayed reward tasks.
References
Dalal, G., Dvijotham, K., Vecerik, M., Hester, T., Paduraru, C., and Tassa, Y. Safe exploration in continuous action spaces. CoRR, abs/1801.08757, 2018. URL http://arxiv.org/abs/1801.08757.
Carrara, N., Laroche, R., Bouraoui, J., Urvoy, T., Olivier, T. D. S., and Pietquin, O. A fitted-q algorithm for budgeted mdps. In EWRL 2018, 2018.
Hausknecht, M. J. and Stone, P. Deep recurrent q-learning for partially observable mdps. CoRR, abs/1507.06527, 2015
Peng, X. B., Andrychowicz, M., Zaremba, W., and Abbeel, P. Sim-to-real transfer of robotic control with dynamics randomization. In 2018 IEEE International Conference on Robotics and Automation (ICRA), pp. 1–8. IEEE, 2018
Tamar, A., Glassner, Y., and Mannor, S. Optimizing the cvar via sampling. In Twenty-Ninth AAAI Conference on Artificial Intelligence, 2015b.
Harm van Seijen, Mehdi Fatemi, Joshua Romoff, Romain Laroche, Tavian Barnes, Jeffrey Tsang. Hybrid Reward Architecture for Reinforcement Learning. in NIPS 2017
Hung, C.-C., Lillicrap, T., Abramson, J., Wu, Y., Mirza, M., Carnevale, F., Ahuja, A., and Wayne, G. Optimizing agent behavior over long time scales by transporting value. arXiv preprint arXiv:1810.06721, 2018.