DQN extends Q-Learning to high-dimensional state spaces by approximating with a neural network.
Core idea: — a neural network takes state as input and outputs Q-values for all actions.
Two critical innovations (Mnih et al., 2015):
1. Experience Replay:
- Store transitions in a replay buffer
- Sample random mini-batches for training
- Breaks temporal correlations in sequential data → more stable, sample-efficient
- Each experience can be reused multiple times
2. Target Network:
- Maintain a separate target network that is periodically copied from the main network
- TD target:
- Prevents the moving target problem (training toward a constantly changing target)
- Updated every steps:
Loss: MSE between predicted Q-value and TD target:
Variants:
- Double DQN — decouple action selection (main network) from evaluation (target network) to reduce overestimation
- Dueling DQN — separate value and advantage streams:
- Prioritized replay — sample transitions with high TD error more frequently
See also: Q-Learning, REINFORCE, Advantage Function