Neural Network Chess Engines: Leela, AlphaZero and NNUE Compared
Every top chess engine in 2026 uses a neural network, but not in the same way. AlphaZero and Leela Chess Zero run a big network on a graphics card and search slowly but wisely. Stockfish and most other top engines run a small NNUE network on the processor and search millions of positions a second. Here is the difference, in plain English.
- What a neural network does in a chess engine
- The two families side by side
- AlphaZero: the one that started it (2017)
- Leela Chess Zero: the open-source version (2018-today)
- NNUE engines: small, fast and on top
- The two families now help each other
- Other neural network chess programs
- Frequently asked questions
- Sources and checks
There are two kinds of neural network chess engines. "Zero" engines (AlphaZero, Leela Chess Zero) use a large network that suggests moves and judges positions, with a Monte Carlo style tree search on a GPU or TPU; they look at relatively few positions per second. NNUE engines (Stockfish since 2020, and most top engines today) use a small, fast network only to score positions, inside a classic alpha-beta search on a CPU, looking at millions of positions per second. In the big engine championships of 2021-2026, the NNUE approach of Stockfish has won every TCEC Superfinal.
What a neural network does in a chess engine
A chess engine searches ahead and judges the positions it reaches (see how Stockfish works). Before neural networks, the judging was a formula written by programmers. A neural network replaces that formula with millions of numbers learned from games. It can also do a second job: tell the search which moves are worth looking at first.
The question is how big the network is, and how it is combined with the search. That one design choice leads to two very different families of engines.
The two families side by side
| "Zero" engines: AlphaZero, Leela | NNUE engines: Stockfish and others | |
|---|---|---|
| Network size | Large (many layers; Leela now uses transformer networks) | Small and shallow, built for speed |
| What the network gives | Move suggestions (policy) and a win estimate (value) | One score for the position |
| Search | Monte Carlo tree search (Leela: PUCT) | Alpha-beta search with heavy pruning |
| Hardware | GPU (Leela) or TPU (AlphaZero) | Normal CPU, many cores |
| Positions per second | Tens of thousands (AlphaZero 2017: about 80,000) | Millions to tens of millions (Stockfish 8 in 2017: about 70 million) |
| How it learned | Self-play reinforcement learning | Trained on scored positions (Stockfish now uses positions rescored by Leela networks) |
| Available? | AlphaZero: never released. Leela: free, open source (GPLv3) | Stockfish: free, open source (GPLv3) |
AlphaZero: the one that started it (2017)
DeepMind's AlphaZero learned chess from zero by self-play and, in its December 2017 preprint, beat Stockfish 8 with 28 wins, 72 draws and no losses in 100 games. It proved that a neural network could judge chess positions better than any hand-written formula. But it was a research project: it ran on Google's TPUs and was never released.
Leela Chess Zero: the open-source version (2018-today)
Leela Chess Zero (Lc0) was announced on 9 January 2018 by Gary Linscott, a Stockfish developer, as an open-source copy of the AlphaZero method. It was adapted from Leela Zero, Gian-Carlo Pascutto's Go engine, and its networks were trained with computer time donated by volunteers.
- It runs best on a graphics card (Nvidia GPUs are the main target, but other backends exist).
- It won the TCEC Superfinal in Season 15 (2019, 53.5-46.5 against Stockfish) and Season 17 (2020, 52.5-47.5).
- Its newer networks are transformers (for example the "BT4" network), the same kind of network that powers modern AI chatbots.
Since 2020, Stockfish has won every TCEC Superfinal; in Season 28 it beat Leela 57.5-42.5, and in Season 29 (2026) Leela did not reach the Superfinal at all. But Leela is still a top engine, and many players use it as a "second opinion" because it judges some quiet positions differently. More on its Leela Chess Zero profile and in Stockfish vs Leela.
NNUE engines: small, fast and on top
NNUE ("efficiently updatable neural network") came from computer shogi. It is small enough that, after each move, the engine only adds and subtracts a few numbers instead of running the whole network again. That lets it run on an ordinary CPU inside a very fast alpha-beta search. Stockfish added it in Stockfish 12 (2 September 2020) and gained more than 80 Elo in its own tests.
Today almost every engine near the top of the rating lists uses NNUE. On the CCRL 40/15 list of 7 November 2026, the top six were Stockfish 19 and Triumviratus (both 3650), Reckless (3644), PlentyChess and pawnocchio (both 3642) and Torch (3640). See the full ranking in best chess engines 2026 and how those ratings work in chess engine ratings explained. How often these engines win by giving up material is counted in our chess engine sacrifice statistics.
The two families now help each other
The rivalry has turned into teamwork. For Stockfish 18 the team trained on more than 100 billion positions of Lc0 data, and for Stockfish 19 on hundreds of billions of positions rescored with a strong Leela network. In plain words: Leela's big, slow network teaches Stockfish's small, fast one.
Other neural network chess programs
- Maia (University of Toronto, with Cornell and Microsoft Research) is trained to play like humans of a given rating, not to play the best move. You can play Maia bots on Lichess.
- "Grandmaster-Level Chess Without Search" (Google DeepMind, February 2024) was a transformer network trained on positions scored by Stockfish 16. With no search at all, it reached a Lichess blitz rating of 2895 against human players.
- General AI chatbots are a different thing again. They are not chess engines; see chess AI explained.
Play these engines yourself. Stockfish 19, Obsidian and Stormphrax are free to play; Reckless, PlentyChess, Viridithas, Berserk, Caissa, Koivisto and Ethereal are Premium bots. They run right in your browser. All engine bots · licences and source code.
Frequently asked questions
Is Stockfish a neural network engine?
Yes, partly. Since Stockfish 12 (2020) its evaluation is a small neural network called NNUE, and since Stockfish 16.1 (2024) there is no hand-written evaluation left. Its search is still a classic alpha-beta search.
What is the difference between Leela and Stockfish?
Leela Chess Zero uses a large neural network with a Monte Carlo style search on a graphics card and looks at fewer positions. Stockfish uses a small NNUE network inside an alpha-beta search on a normal processor and looks at millions of positions per second.
Is Leela Chess Zero stronger than Stockfish?
Not in recent years. Leela won the TCEC Superfinal in 2019 and 2020, but Stockfish has won every Superfinal since, including a 57.5-42.5 win over Leela in Season 28.
Do neural network chess engines need a GPU?
Engines with big networks, like Leela Chess Zero, run best on a GPU. NNUE engines like Stockfish are designed to run fast on an ordinary CPU and need no graphics card.
Is Leela Chess Zero the same as AlphaZero?
No. Leela is an independent open-source project that copied AlphaZero's published method in 2018. AlphaZero itself was never released, and Leela has since changed a lot, for example moving to transformer networks.
What was the first neural network chess engine?
AlphaZero (2017) made neural networks famous in chess, but earlier experiments existed, such as Giraffe (2015). The first neural network engine that anyone could download and that reached the very top was Leela Chess Zero.
Sources and checks
- DeepMind: arXiv 1712.01815 (2017) and Science 362 (2018). Chess Programming Wiki and Wikipedia: Leela Chess Zero (announced 9 January 2018; TCEC Season 15 and 17 wins); lczero.org blog "Transformer Progress" (February 2024).
- Stockfish blog: NNUE (August 2020), Stockfish 12, Stockfish 18 and 19 (training data from Lc0). Chessdom: TCEC Season 28 and 29 Superfinals.
- CCRL 40/15 rating list, computed 7 November 2026 (checked 12 November 2026); earlier version computed 9 October 2026. maiachess.com; arXiv 2402.04494 (February 2024). All checked 16 October 2026.
Keep learning on Rama Chess
Watch on YouTube
Prefer video? Our channels show real games move by move, with clear explanations.
Play the chess bots from this article on Rama Chess: Leela Chess Zero, Stockfish 18 (free).