Skip to main content

Policy Generation from Latent Embeddings for Reinforcement Learning

  • Conference paper
  • First Online:
Intelligent Systems and Pattern Recognition (ISPR 2023)

Abstract

The human brain endows us with extraordinary capabilities that enable us to create, imagine, and generate anything we desire. Specifically, we have fascinating imaginative skills allowing us to generate fundamental knowledge from abstract concepts. Motivated by these traits, numerous areas of machine learning, notably unsupervised learning and reinforcement learning, have started using such ideas at their core. Nevertheless, these methods do not come without fault. A fundamental issue with reinforcement learning especially now when used with neural networks as function approximators is their limited achievable optimality compared to its uses from tabula rasa. Due to the nature of learning with neural networks, the behaviours achievable for each task are inconsistent and providing a unified approach that enables such optimal policies to exist within a parameter space would facilitate both the learning procedure and the behaviour outcomes. Consequently, we are interested in discovering whether reinforcement learning can be facilitated with unsupervised learning methods in a manner to alleviate this downfall. This work aims to provide an analysis of the feasibility of using generative models to extract learnt reinforcement learning policies (i.e. model parameters) with the intention of conditionally sampling the learnt policy-latent space to generate new policies. We demonstrate that under the current proposed architecture, these models are able to recreate policies on simple tasks whereas fail on more complex ones. We therefore provide a critical analysis of these failures and discuss further improvements which would aid the proliferation of this work.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 59.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 79.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

References

  1. Altosaar, J.: Tutorial - What is a Variational Autoencoder? August 2016. https://doi.org/10.5281/zenodo.4462916

  2. Brockman, G., et al.: OpenAI gym (2016)

    Google Scholar 

  3. François-Lavet, V., Henderson, P., Islam, R., Bellemare, M.G., Pineau, J.: An introduction to deep reinforcement learning. Found. Trends Mach. Learn. 11(3–4), 219–354 (2018). https://doi.org/10.1561/2200000071

    Article  MATH  Google Scholar 

  4. Fujimoto, S., van Hoof, H., Meger, D.: Addressing function approximation error in actor-critic methods (2018)

    Google Scholar 

  5. Ha, D., Schmidhuber, J.: Recurrent world models facilitate policy evolution. In: Advances in Neural Information Processing Systems, vol. 31, pp. 2451–2463. Curran Associates, Inc. (2018). https://papers.nips.cc/paper/7512-recurrent-world-models-facilitate-policy-evolution, https://worldmodels.github.io

  6. Higgins, I., et al.: beta-VAE: learning basic visual concepts with a constrained variational framework. In: International Conference on Learning Representations (2017). https://openreview.net/forum?id=Sy2fzU9gl

  7. Higgins, I., et al.: DARLA: improving zero-shot transfer in reinforcement learning (2018)

    Google Scholar 

  8. Kober, J., Bagnell, J.A., Peters, J.: Reinforcement learning in robotics: a survey. Int. J. Robot. Res. 32(11), 1238–1274 (2013). https://doi.org/10.1177/0278364913495721

    Article  Google Scholar 

  9. Levine, S., Kumar, A., Tucker, G., Fu, J.: Offline reinforcement learning: Tutorial, review, and perspectives on open problems (2020)

    Google Scholar 

  10. Lillicrap, T.P., et al.: Continuous control with deep reinforcement learning (2019)

    Google Scholar 

  11. Lin, L.J.: Self-improving reactive agents based on reinforcement learning, planning and teaching. Mach. Learn. 8(3), 293–321 (1992)

    Article  Google Scholar 

  12. Mnih, V., et al.: Playing Atari with deep reinforcement learning (2013)

    Google Scholar 

  13. Moore, A.W.: Efficient memory-based learning for robot control (1990)

    Google Scholar 

  14. Nair, A., Bahl, S., Khazatsky, A., Pong, V., Berseth, G., Levine, S.: Contextual imagined goals for self-supervised robotic learning (2019)

    Google Scholar 

  15. Nair, A., Pong, V., Dalal, M., Bahl, S., Lin, S., Levine, S.: Visual reinforcement learning with imagined goals (2018)

    Google Scholar 

  16. Neftci, E.O., Averbeck, B.B.: Reinforcement learning in artificial and biological systems. Nat. Mach. Intell. 1(3), 133–143 (2019)

    Article  Google Scholar 

  17. Puterman, M.L.: Markov decision processes. Handb. Oper. Res. Manage. Sci. 2, 331–434 (1990)

    MathSciNet  MATH  Google Scholar 

  18. Raziei, Z., Moghaddam, M.: Adaptable automation with modular deep reinforcement learning and policy transfer (2020)

    Google Scholar 

  19. Ruthotto, L., Haber, E.: An introduction to deep generative modeling (2021)

    Google Scholar 

  20. Rybkin, O., Zhu, C., Nagabandi, A., Daniilidis, K., Mordatch, I., Levine, S.: Model-based reinforcement learning via latent-space collocation (2021)

    Google Scholar 

  21. Sutton, R.S., Barto, A.G.: Reinforcement Learning: An Introduction. MIT Press, Cambridge (2018)

    MATH  Google Scholar 

  22. Zhang, B., Xiong, D., Su, J., Duan, H., Zhang, M.: Variational neural machine translation (2016)

    Google Scholar 

  23. Zhang, X., Jiang, H.: Chapter nine - automated optimal control in energy systems: the reinforcement learning approach. In: Jiang, H., Zhang, Y., Muljadi, E. (eds.) New Technologies for Power System Operation and Analysis, pp. 275–318. Academic Press (2021). https://doi.org/10.1016/B978-0-12-820168-8.00015-8, https://www.sciencedirect.com/science/article/pii/B9780128201688000158

  24. Zhou, W., Bajracharya, S., Held, D.: PLAS: latent action space for offline reinforcement learning (2020)

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Corentin Artaud .

Editor information

Editors and Affiliations

Appendices

A Environments

Fig. 4.
figure 4

Representations of the environments used in these experiments. From left to right: CartPole-v0, MountainCar-v0, LunarLander-v0

CartPole-v0: This environment corresponds to the cart-pole problem introduced by [21]. An agent (i.e. the cart) has a pole attached by an un-actuated joint and moves along a frictionless track (see Fig. 4a). The agent starts at position (0, 0) with the pole upright and can apply a force of \(+1\) or \(-1\) to reduce the agent’s velocity to prevent the pole from falling over. The agent receives a reward of \(+1\) for every timestep that the pole remains upright, including when it reaches the terminal state. However, the agent velocity is affected by the pole angle and centre of gravity which dictates the force needed to be applied to keep the pole upright. An episode terminates either if the pole surpasses 15 degrees vertically or the agent moves more than 2.4 units from the centre (i.e. the agent reaches the edge of the display). The episode terminates if the agent reaches 200 timesteps and is solved when the agent receives a reward of 195 over 100 consecutive episodes. The observation states of this environment are fully observable. The agent receives a four-dimensional observation space containing its position, velocity, pole angle, and pole angular velocity.

MountainCar-v0: This second environment is a bit more complex and was first introduced by [13]. It describes an agent (i.e. a car) on a one-dimensional track positioned between two hills (see Fig. 4b). The agent’s engine cannot climb the mountain in a single pass. The only way for the agent to succeed is to learn to build momentum by driving back and forth. Its goal is to reach the flag located at the top of the hill on its right. The agent can either accelerate left, accelerate right, or do nothing. The agent starts at position (0, 0) and receives a reward of 0 if it reaches the flag (i.e. position (x, 0.5)) and \(-1\) if the agent’s position is less than (x, 0.5). The episode terminates if the agent reaches its goal or the episode length exceeds 200 timesteps. The environment is solved when the agent receives a reward of \(-110\) over 100 consecutive episodes. In addition, the velocity affected by the gravitational pull acting on the agent is not affected by the action taken. For this environment, the observation states are also fully observable. The agent receives a two-dimensional observation space containing both its position and velocity.

LunarLander-v2: this last environment describes a rocket trajectory optimisation problem and is the hardest out of all. An agent (i.e. the rocket) starts at the top of the screen, and its goal is to reach the landing pad positioned at coordinates (0, 0) (see Fig. 4c). In this environment, the landing pad is fixed for all episodes, whereas the landscape and starting position of the agent are sampled randomly from a finite list of available options. The agent can either fire its right orientation engine, left orientation engine, main engine, or do nothing. The environment terminates either when the agent crashes or comes to rest, receiving a reward of \(-100\) and \(+100\), respectively. In addition, when the agent comes to rest, each leg ground contact gets a reward of \(+10\). There are no fuel restrictions on the agent, although if the agent fires the main engine, it receives a reward of \(-0.3\) for each timestep. The environment is solved when the agent receives a reward of 200 over 100 consecutive episodes. As with CartPole and MountainCar, LunarLander has fully observable observation states. The agent receives an eight-dimensional observation space containing horizontal and vertical coordinates, horizontal and vertical speed, angle and angular speed, and whether the first and second legs have ground contact.

B Experiment Hyperparameters

Table 2. List of hyperparameters and their values for DQN
Table 3. List of hyperparameters and their values for CVAE

Rights and permissions

Reprints and permissions

Copyright information

© 2024 The Author(s), under exclusive license to Springer Nature Switzerland AG

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Artaud, C., Pina, R., Shi, X., De-Silva, V. (2024). Policy Generation from Latent Embeddings for Reinforcement Learning. In: Bennour, A., Bouridane, A., Chaari, L. (eds) Intelligent Systems and Pattern Recognition. ISPR 2023. Communications in Computer and Information Science, vol 1941. Springer, Cham. https://doi.org/10.1007/978-3-031-46338-9_12

Download citation

  • DOI: https://doi.org/10.1007/978-3-031-46338-9_12

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-031-46337-2

  • Online ISBN: 978-3-031-46338-9

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics