Reinforcement learning studies agents that learn by acting in an environment and receiving reward. The useful mental model is: an MDP defines the interaction, value functions evaluate future return, Bellman equations impose consistency, and algorithms differ in how they estimate or optimize those quantities.
Core sequence:
- Markov Decision Process - the formal environment model: states, actions, transitions, rewards, and discounting.
- Value Functions - expected return from states or state-action pairs.
- Bellman Equations - recursive consistency equations for values.
- Dynamic Programming in RL - exact planning when the transition model is known.
- Monte Carlo Methods in RL - estimates values from complete sampled returns.
- Temporal Difference Learning - bootstraps value estimates from partial returns.
- SARSA - on-policy TD control.
- Q-Learning - off-policy TD control.
- Deep Q-Network - uses neural networks to approximate Q-values.
- Policy Gradient Theorem - differentiates expected return with respect to policy parameters.
- REINFORCE - Monte Carlo policy gradient.
- Advantage Function - measures action value relative to state value.
- Actor-Critic Methods - combines a policy actor with a value critic.
- Proximal Policy Optimization (PPO) - constrains policy updates for stable actor-critic training.
- LLMs as RL Agents - applies RL concepts to language-model policies and tool use.
How the pieces fit:
- MDPs define the problem.
- Returns and value functions define what good behavior means.
- Bellman equations connect immediate reward to long-term value.
- Dynamic programming solves known MDPs exactly but usually does not scale to unknown environments.
- Monte Carlo and TD methods estimate values from samples.
- SARSA, Q-learning, and DQN learn action values for control.
- Policy gradients, REINFORCE, actor-critic, and PPO optimize policies directly.
- LLM agent work reuses RL abstractions, but the environment, reward, and credit assignment can be harder to specify cleanly.
Core equations to keep active:
- MDP tuple:
- Return:
- State value:
- Action value:
- Bellman expectation:
- TD error:
- Q-learning:
- Policy gradient:
- Advantage:
- PPO ratio:
See also: Probability, Calculus and Optimization, Neural Networks