Deep Reinforcement Learning: Application in Robotics and Game Playing
A CompSci Talks seminar on October 18, 2025 at 1:00 PM.
Prof Entisarat Seminar Hall
Abstract
## 1. Introduction: The Power of Experience The lecture begins with the landmark 2016 achievement by **DeepMind**, where their program (AlphaGo) defeated a world master in the game of Go. Unlike traditional AI that follows static instructions, this program learned through experience. By playing millions of matches against itself, it discovered creative strategies and moves that human players had never documented. This serves as the primary motivation for studying Reinforcement Learning: teaching an "agent" to solve tasks through interaction and experience rather than direct programming. ## 2. Defining Learning in AI Learning is described as a process involving a specific **context**, a **task**, and an **end goal**. * **Human Analogy:** A child playing with building blocks learns through trial and error. They perform an action (placing a block), observe the result (it falls), and adjust their strategy (using a wider base). * **Biological Basis:** Humans and animals are naturally driven by RL�avoiding pain and seeking pleasure/rewards. RL algorithms attempt to formalize this process for machines. ## 3. Key Elements of Reinforcement Learning To build an RL system, we define five core components: 1. **Agent:** The learner or decision-maker (e.g., a robot or a software program). 2. **Environment:** Everything the agent interacts with. 3. **State ($S$):** The current situation or configuration of the environment. 4. **Action ($A$):** The choices available to the agent in a given state. 5. **Reward ($R$):** Feedback from the environment (positive for success, negative for failure). **Summary:** RL is the process of learning by experience through an interaction loop: an agent observes a state, takes an action, receives a reward, and transitions to a new state. --- ## 4. Mathematical Foundations ### The Markov Decision Process (MDP) The lecture introduces the concept that the current state and action are sufficient to predict the next state, assuming the "Markov property" where the future is independent of the past given the present. ### Cumulative Return and Discount Factor ($\gamma$) The goal of an agent is to maximize the **Cumulative Reward**. However, in practice, we use a **Discount Factor ($\gamma$)**, usually a value between 0 and 1. * **Formula:** $G_t = R_{t+1} + \gamma R_{t+2} + \gamma^2 R_{t+3} + \dots$ * **Purpose:** Rewards in the immediate future are valued more than distant rewards. This ensures mathematical convergence and accounts for uncertainty in long-term predictions. ### Policy ($\pi$) and Value Functions * **Policy ($\pi$):** The strategy or "brain" of the agent that determines which action to take in a certain state. It can be **Deterministic** (always the same action) or **Stochastic** (a probability distribution of actions). * **Value Function ($Q(s, a)$):** An estimation of how "good" it is to perform a specific action in a specific state, based on the expected future rewards. --- ## 5. Q-Learning and Temporal Difference (TD) The professor explains **Q-Learning**, a popular RL algorithm. * **Mechanism:** Instead of waiting for an entire episode to end to calculate rewards, the agent updates its knowledge step-by-step. * **The Q-Table:** A matrix where rows represent states and columns represent actions. The agent looks up the "Q-value" to decide the best move. * **Update Rule:** The agent adjusts the Q-value of the previous state based on the reward received and the estimated value of the next state. --- ## 6. Exploration vs. Exploitation A critical challenge in RL is the trade-off between: * **Exploitation:** Choosing the best-known action to maximize immediate reward. * **Exploration:** Trying new, unknown actions to see if they lead to better long-term rewards. **The $\epsilon$-greedy Strategy:** The agent usually chooses the best action (Exploitation) but with a small probability ($\epsilon$), it chooses a random action (Exploration). Over time, $\epsilon$ is "decayed" or reduced so the agent explores less as it becomes more confident in its knowledge. --- ## 7. Transition to Deep Reinforcement Learning (DRL) As tasks become complex (e.g., playing a video game with millions of pixels), a "Q-Table" becomes impossible to manage due to the **Curse of Dimensionality**. * **The Solution:** Replace the Q-Table with a **Deep Neural Network**. * **Deep Q-Network (DQN):** The neural network acts as a "function approximator." It takes the state (like pixels of a screen) as input and outputs the predicted Q-values for all possible actions. --- ## 8. Real-World Applications The lecture concludes by mentioning practical uses of DRL: * **Gaming:** Mastering complex environments like Atari or Go. * **Robotics:** Training autonomous drones to navigate obstacle courses. * **Optimization:** Systems that learn to manage resources or traffic based on real-time feedback. **Final Note:** "Winning feels great, but learning from each game is what makes you unstoppable."