♔
Neural Network Engines
Big nets on GPUs vs small nets on CPUs
← Articles
Engines · AI

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.

6 min read Published October 2026 By
In this guide
Quick answer

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.

Big-net enginesAlphaZero, Leela (Lc0)
Small-net enginesStockfish and most top engines
Last Leela TCEC titleSeason 17 (2020)
Stockfish TCEC titles19 (to Season 29, 2026)

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, LeelaNNUE engines: Stockfish and others
Network sizeLarge (many layers; Leela now uses transformer networks)Small and shallow, built for speed
What the network givesMove suggestions (policy) and a win estimate (value)One score for the position
SearchMonte Carlo tree search (Leela: PUCT)Alpha-beta search with heavy pruning
HardwareGPU (Leela) or TPU (AlphaZero)Normal CPU, many cores
Positions per secondTens of thousands (AlphaZero 2017: about 80,000)Millions to tens of millions (Stockfish 8 in 2017: about 70 million)
How it learnedSelf-play reinforcement learningTrained 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)
Comparison diagram: Leela and AlphaZero use a large neural network with tree search on a GPU and check tens of thousands of positions per second; NNUE engines like Stockfish use a small network with alpha-beta search on a CPU and check millions of positions per second
Two ways to use a neural network in a chess engine: think slowly with a big brain, or think fast with a small one.
Advertisement

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.

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.

Advertisement

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.

Which one should you use?
For analysing your own games, Stockfish is the strongest and runs on any computer or phone: try it in the free Rama Chess analyser. If you have a good graphics card and want a second opinion in quiet positions, add Leela Chess Zero in a chess program. Tips are in how to use a chess engine.

Other neural network chess programs

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

Keep learning on Rama Chess

Watch on YouTube

Prefer video? Our channels show real games move by move, with clear explanations.

▶
Stockfish 100 — engine games explained
youtube.com/@stockfish100
›
▶
Best Chess Channel — tactics, traps and training
youtube.com/@bestchesschannel
›

Play the chess bots from this article on Rama Chess: Leela Chess Zero, Stockfish 18 (free).