CS PAPERS DEEP-READ · PAPER 53

Playing Atari with Deep Reinforcement Learning (DQN)

Mnih et al. · DeepMind · NIPS 2013 Deep Learning Workshop

中文 →

What did this paper do?

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.

First, a puzzle

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.

How does it learn? First, train a "scorer"

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).

The key trick: keep a diary, and re-read it

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.

What did it bring?

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.

Remember one thing

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