Contents

The Art and Science of Deep Reinforcement Learning

Contents

The Art and Science of Deep Reinforcement Learning - Part 0

In terms of characters, I’m very much like Bilbo Baggins. I like to do some work in my yard, have a nice dinner and then retire to my quarters. Somehow, a Gandalf within me has convinced me to take off on a quest promising me lots of adventure along the way. So, breaking out of my routine, I’ve decided to embark on a quest - the quest for exploring the world of RL algorithms in depth. Sure, I have studied the algorithms for my purposes before but this time I’m setting two concrete goals for myself.

The first goal is to deeply understand the science of deep reinforcement learning. This includes understanding the algorithmic underpinnings of several novel algorithms that have emerged in literature. Some examples include the $N$ step returns and how they relate to GAE, reward shaping, Q-learning, policy iteration etc. I want to break the math down and set clearly as to why something makes sense in theory.

The second goal is to grasp the art of deep reinforcement learning. Deep RL is different than supervised learning. The neural network architecture can be simple, but performance can vary with different hyperparameters. In literature, there have been long empirical studies on best hyperparameters for different algorithms. However, the influence of different hyperparameters in different enviroments (I have had to write several environments from scratch in my work) is unknown. I am going to write single file code without any fancy “tricks” to study these effects.

Along the way I will dive into techniques like RLHF, GRPO etc. These techniques algorithmically may not be too sophisticated but are at a fundamental level aimed at scaling RL beyond what’s possible.

At the end of this series, maybe I will run into Smaug or find the ring. Who knows? Stay tuned!