Back to Reinforcement Learning Mind Map
中文·English
🎮 Reinforcement LearningID: dqn

DQN Trio

DQN 三件套
🎯Core Definition
DQN (Deep Q-Network) approximates the optimal action-value function with a network Qθ(s,a)Q_\theta(s,a), trained by least-squares regression toward a frozen TD target:
📌Overview
L(θ)=E(s,a,r,s)D[(r+γmaxaQθ(s,a)Qθ(s,a))2]L(\theta) = \mathbb{E}_{(s,a,r,s')\sim\mathcal{D}}\left[\left(r + \gamma \max_{a'} Q_{\theta^-}(s',a') - Q_\theta(s,a)\right)^2\right] \nDerivation: 1. The Bellman optimality equation gives the TD target y=r+γmaxaQθ(s,a)y = r + \gamma \max_{a'} Q_{\theta^-}(s',a'): the target network θ\theta^- (hard copy every CC steps or Polyak averaging θτθ+(1τ)θ\theta^- \leftarrow \tau\theta + (1-\tau)\theta^-) freezes the target so bootstrapping becomes regression onto a constant, removing oscillations; 2. Differentiating w.r.t. θ\theta: θL=2E[(yQθ(s,a))θQθ(s,a)]\nabla_\theta L = -2\mathbb{E}[(y - Q_\theta(s,a))\nabla_\theta Q_\theta(s,a)] — the target yy does not backpropagate; 3. Experience replay D\mathcal{D} stores (s,a,r,s)(s,a,r,s') and samples uniformly, breaking the strong temporal correlation of consecutive samples and enabling reuse and stable batch training; 4. Double DQN corrects overestimation: the max\max operator is positively biased since E[maxXi]maxE[Xi]\mathbb{E}[\max X_i] \ge \max \mathbb{E}[X_i] (max is convex; Jensen), and noise + bootstrapping compounds the error — overestimated actions get chosen again. Double DQN decouples action selection from evaluation: y=r+γQθ(s,argmaxaQθ(s,a))y = r + \gamma Q_{\theta^-}(s', \arg\max_{a'} Q_\theta(s', a')) — the online network picks the action, the target network scores it, substantially reducing the bias.
💡Use Cases
discrete action spaces (games, recommendation candidate ranking, combinatorial actions); the foundational deep-RL algorithm.
Key Problems Solved
states are continuous/high-dimensional so tabular lookup fails. The trio targets deep learning's three enemies: replay breaks correlation, the target network stabilizes the target, and Double-DQN removes max overestimation; later improvements (prioritized replay, dueling, n-step, C51, Rainbow) stack along this lineage.
🎯5 High-Frequency Exam Points
1
Write DQN's loss and explain the target network's role and update scheme.
2
Whiteboard: prove max overestimation E[max X] ≥ max E[X] via Jensen and derive the decoupled Double-DQN target.
3
What does experience replay solve? Limits of uniform sampling; how does prioritized replay improve it?
4
The DQN trio: which problem does each of replay, target network, Double-DQN solve? Further improvements?
5
Why must the TD target be frozen? Consequences of updating the target network too often or too slowly?
Updated 2026-08-12
🎯
Test Your Knowledge: Practice Questions for "DQN Trio"
Single choice pitfall questions with instant feedback and mistake tracking.
🚀 Start Card Practice
Previous CardTRPO → PPO LineageNext CardActor-Critic

🔗 More Reinforcement Learning Knowledge Cards

Behavioral CloningContextual BanditCoT & Reasoning RLConservative Q-Learning