What is it?
Q-learning keeps a score for every action in every situation: "if I'm here and do this, how good will things turn out?" DQN replaces the giant lookup table with a neural network, which let a single system learn to play many Atari games from the screen pixels.
Also known as: DQN, Q-learning, Q learning, deep Q network, experience replay, target network, value-based RL.
Technical definition
Q-learning (Watkins & Dayan, 1992) updates Q(s,a) toward r + γ max_a' Q(s',a'). DQN (Mnih et al., 2015) stabilises deep Q-learning with experience replay and a periodically updated target network; extensions include Double DQN, dueling networks, prioritised replay and Rainbow. It suits discrete action spaces; continuous control typically uses actor-critic methods.
Entity type: technique · Freshness class: stable.
When should I use it?
Use for discrete-action problems such as games and some operations tasks.
Implementation patterns
- Replay buffer with random minibatches.
- Target network updated slowly.
- ε-greedy exploration with decay.
- Double DQN to reduce overestimation.
Technologies and frameworks
Commonly associated: Stable-Baselines3, Gymnasium / Atari, RLlib. Names are examples of what exists, not recommendations, and projects change quickly.
Practical guide
- Check actions are discrete.
- Use a vetted implementation.
- Tune replay size, target update rate, ε schedule.
- Evaluate across seeds.
Common failure modes
- Overestimation bias.
- Instability without replay/target networks.
- Poor exploration in sparse-reward tasks.
- Applying it to continuous actions without adaptation.
Troubleshooting
- Q-values explode — Use Double DQN, gradient clipping, reward clipping/normalisation.
- No learning in sparse rewards — Better exploration, reward shaping or curriculum.
Contrasted with
- Proximal Policy Optimization (PPO) — PPO learns a policy directly and handles continuous actions; DQN learns action values for discrete actions.
Questions this page answers
- What is Q-learning?
- What is a Deep Q-Network?
- What is experience replay?
- When should I use DQN vs PPO?
Typical goals: understand value-based RL; choose between DQN and policy methods.
Sources and verification
Status: not independently verified. This entry was authored on 2026-10-06 from general technical knowledge, without live checking of the sources below. Treat every source as a lead to confirm (identifier, title, authorship, current version) before publication or citation.
Freshness class: stable — Core ideas that change slowly (maths, classic algorithms). Re-review yearly.
Canonical sources (unverified leads):
- Mnih et al., Human-level control through deep reinforcement learning, Nature (2015) — doi:10.1038/nature14236
- Watkins & Dayan, Q-learning, Machine Learning (1992) — locator to be identified