CS PAPERS DEEP-READ · PAPER 53
Mnih et al. · DeepMind · NIPS 2013 Deep Learning Workshop
In 2013 a team at DeepMind (Mnih and colleagues) built DQN: a program that, staring only at an Atari console's screen pixels and current score — told none of the rules — figured out how to play by itself. And the same program, not a line changed, learned to play seven wildly different games (Breakout, Pong, Space Invaders, and more), beating human experts at several. This was the first successful marriage of deep learning and reinforcement learning (learning by reward and trial-and-error). AlphaGo, and even the training recipe that makes ChatGPT helpful, trace back to this road.
Before this, getting a computer to play a game meant human engineers hand-telling it what to look at: where's the ball, where's the paddle, how many enemies… and switching games meant rewriting all of it. DQN flips this: tell it nothing, just hand over the raw picture and the score, and let it figure out the rest. More counterintuitive still: the same program, no settings touched, was fed seven completely different games — and it learned each one.
DQN's core is training a "scorer": looking at the current screen, it gives every pressable button a score — not "how many points do I get right now," but "if I press this and play on to the end, roughly how many points can I rack up in total?" With that score sheet, play is simple: at every step, press the highest-scoring button. The whole difficulty is training that scorer to be accurate — it has to learn to forgo a small gain now for a bigger payoff later (dodge the bullet first, don't rush to fire).
Cramming a deep network into reinforcement learning was, at first, hopelessly unstable — it kept blowing up. DQN's lifesaver is called experience replay: it carries a "diary", jotting down every moment — (the screen back then, which key was pressed, points gained, the next screen). During training it doesn't just stare at the moment that just happened; it flips back to random old pages and reviews them shuffled together. Why shuffle? Because consecutive frames look almost identical (all circling the same corner), and learning only from the here-and-now walks it into a dead end; re-reading old entries, mixed up, makes learning both stable and thrifty — one experience can even be reviewed many times over.
DQN proved something previously impossible: a single unified program can learn many tasks straight from raw pixels — no human-fed features, no per-game customization. It ignited the whole field of deep reinforcement learning: two years later an upgraded version reached human-level play on 49 games, and AlphaGo followed. The cost is real, too: it has to play millions of rounds, day and night, to learn what a human picks up in minutes; and on games that need long-range planning — "grab the key now, use it on a door much later" — it's still stumped.
Use a convolutional network as a "scorer" that, from screen pixels, estimates a "total future score" for each action, and stabilize training with "experience replay," a diary re-read over and over — so the same program, not a word changed, learned seven Atari games from scratch and beat humans at several. This was deep learning and reinforcement learning's first successful handshake, and the founding work of deep RL.
Want the network diagram, the Q-value formula, and the numbers? → switch to the deep read
DQN (Deep Q-Network) was the first time a deep neural network learned to play Atari games from raw screen pixels and the game score alone, via reinforcement learning: it uses a convolutional network (CNN) to approximate Q-learning's action-value function Q(s,a) — "the total future return of taking action a at screen s" — and cures the old headache of "deep network + reinforcement learning diverges the moment you train it" with experience replay. The same network and hyperparameters, customized for no game, beat all prior methods on 6 of 7 Atari games and surpassed human experts on 3, launching deep reinforcement learning.
Q(s,a): the long-term value of taking action a in state s; once learned, just pick the highest-Q action each step. DQN uses a neural network to "remember" this table.The authors are Volodymyr Mnih, Koray Kavukcuoglu, David Silver, Alex Graves, and others at DeepMind in London; the paper appeared at the NIPS 2013 Deep Learning workshop. It inherits two lines: Q-learning (Watkins 1989), the classic RL algorithm, and the deep convolutional networks that had just proved their power on images (AlexNet, 2012) — DQN stitched the two together stably for the first time. It launches the 2015 Nature version (which added a target network and reached human-level play on 49 games), AlphaGo (2016), and an entire wave of deep reinforcement learning that followed.
In RL's old world, the real successes mostly leaned on hand-designed features. The classic case, TD-Gammon (mastering backgammon in the 1990s), worked largely thanks to a low-dimensional, human-curated board state. But the moment you want an agent to learn straight from raw pixels, trouble arrives.
Deep learning is powerful because it feeds on massive amounts of labeled, mutually independent data. Reinforcement learning satisfies none of those three: rewards are often sparse, noisy, and badly delayed (whether this button press was good may only show hundreds of frames later); the data isn't independent — consecutive frames are highly correlated; and worse, the data distribution shifts along with the policy — the network improves a bit, behavior changes, and the frames it sees change too, like chasing your own shadow. Theory had long warned that combining nonlinear function approximation (a neural network) + Q-learning + bootstrapping (using your own estimate as the learning target) can easily diverge (later dubbed the "deadly triad"). So the mainstream dared only use linear models with hand-built features. DQN's question was precisely: how do you make "learn end-to-end from pixels" actually stable?
First, write the game in RL's language: each frame, the agent sees the screen (state s), picks a joystick action a, gets a score change (reward r), and the screen moves to s'. The goal isn't to maximize this one point but the discounted total future return. Q-learning captures this with an action-value function Q*(s,a): "the total return you can expect by taking a in s and then playing optimally." It obeys a self-consistent Bellman equation: Q*(s,a) = E[ r + γ·maxa' Q*(s',a') ].
In plain terms: "the long-term value of this step = the reward r you get now + the value of picking the best action at the next screen (discounted by γ)." During learning, the right-hand side is treated as the "correct answer" (the target), and Q is pushed to match it — which is exactly bootstrapping: using your own estimate of the future to teach your present.
There are countless possible screens, so you can't literally tabulate them; DQN approximates Q with a convolutional network Q(s,a;θ) (θ are the parameters). The input isn't a single frame but the last 4 frames stacked together (each shrunk to 84×84 grayscale) — because a single frame can't tell whether the ball is flying up or down, and stacking a few frames carries direction and speed. The network outputs a row of numbers: one Q value per possible action, scoring all actions in a single forward pass.
How is it trained? Take the target above, y = r + γ·maxa' Q(s',a';θ), as the "answer," and minimize the squared difference between prediction and answer, L = ( y − Q(s,a;θ) )², nudging θ with gradient descent (the paper uses RMSProp, minibatches of 32). Put plainly, this turns reinforcement learning into a supervised-learning problem that keeps regressing toward "the future target it computed itself."
Those two steps alone aren't enough — train directly on the "consecutive frames just played" and the network quickly collapses. The reason is exactly as above: consecutive samples are highly correlated, yet gradient descent assumes independence; and the current policy determines the next batch of data, so once the network favors some action, it only sees frames of that kind, and the positive feedback amplifies into divergence.
DQN's fix is startlingly plain — experience replay: store every step's experience (s, a, r, s') in a replay memory holding up to a million entries; during training, don't use the latest one, sample a random minibatch from the pool to update the network. This buys three things at once:
Exploration uses ε-greedy: with probability ε act randomly, otherwise take the max-Q action, with ε annealed from 1 down to 0.1 — cast a wide net first, then converge. Reward clipping: squash every step's reward to {−1, 0, +1}, so one learning rate works across games with wildly different scoring scales. Plus frame-skipping (decide once every 4 frames). Most tellingly — all 7 games use the exact same architecture and hyperparameters, tuned for none in particular, which is what makes the method's generality stand out.
One honest note: this 2013 version computes the target y using the very same network being updated, which is still not quite stable; the 2015 Nature version added a target network (a copy of Q synced only occasionally) dedicated to computing y, which finally made training truly stable and scaled it to 49 games at human level.
The paper evaluates on 7 Atari games in the ALE: Beam Rider, Breakout, Enduro, Pong, Q*bert, Seaquest, and Space Invaders. With the same network and hyperparameters, consuming only pixels and score, it beat all prior methods on 6 of them (including ones that used hand-crafted features), and surpassed a human expert on 3 — Breakout, Enduro, and Pong. One general architecture, zero per-game customization, spanning such stylistically different games was unprecedented at the time.
DQN was the first convincing marriage of deep learning and reinforcement learning, founding the whole field of deep reinforcement learning outright. It proved a previously impossible claim: a single architecture can learn many tasks from the rawest perceptual input, guided by one reward signal. The lineage unfolds from there: the 2015 Nature version (target network + human-level on 49 games), a string of improvements (Double DQN, Dueling DQN, prioritized replay, Rainbow), then AlphaGo / AlphaZero / MuZero and robotic control. Experience replay itself became a standard component of deep RL. You could say that today's thinking — from game AI to aligning large models with a reward signal — traces back to this "deep RL can work" proof.
max operator systematically overestimates Q values; these were only patched in the Nature version and later Double DQN.① In one line: use a convolutional network to approximate Q-learning's action-value function Q(s,a), learning to play Atari end-to-end from pixels and score alone.
② The pain: RL data is sparse, delayed, strongly correlated, and shifts with the policy; "neural network + Q-learning + bootstrapping" easily diverges (the deadly triad).
③ The target: the Bellman form y = r + γ·max Q(s',a') as the "answer," minimizing (y−Q(s,a))² — turning RL into supervised regression toward a self-computed target.
④ The Q-network: input the last 4 frames (carrying motion), one forward pass outputs a Q value per action, take the max.
⑤ Key stabilizer: experience replay — store (s,a,r,s') in a replay pool, train on random minibatches, breaking correlation, reusing data, smoothing distribution shift.
⑥ Engineering: ε-greedy exploration, reward clipping to {−1,0,+1}, the same hyperparameters across all 7 games; the 2015 Nature version added a target network for true stability.
⑦ Results: 6 of 7 games beat all prior methods, 3 surpassed human experts, all with one architecture and zero customization.
⑧ Impact: founded deep reinforcement learning, leading straight to the Nature human-level version, AlphaGo, and a whole subsequent wave of methods.
⑨ Limits: extremely sample-hungry, overestimates values, fails on sparse rewards / long-horizon planning, discrete actions only, no convergence guarantee.