Leela Chess Zero
|Original author(s)||Gian-Carlo Pascutto, Gary Linscott|
|Developer(s)||Gary Linscott, Alexander Lyashuk, Folkert Huizinga, others|
|Initial release||9 January 2018|
v0.22.0 / 5 August 2019
Leela Chess Zero (abbreviated as LCZero, lc0) is a free, open-source, and neural network based chess engine and distributed computing project. Development has been spearheaded by programmer Gary Linscott, who is also a developer for the Stockfish chess engine. Leela Chess Zero was adapted from the Leela Zero Go engine, which in turn was based on Google's AlphaGo Zero project, also to verify the methods in the AlphaZero paper as applied to the game of chess.
Like Leela Zero and AlphaGo Zero, Leela Chess Zero starts with no intrinsic chess-specific knowledge other than the basic rules of the game. Leela Chess Zero then learns how to play chess by reinforcement learning from repeated self-play, using a distributed computing network coordinated at the Leela Chess Zero website.
As of August 2019[update], Leela Chess Zero had played over 232 million games against itself, and is capable of play at a level that is comparable with Stockfish, the leading conventional chess program.
The Leela Chess Zero project was first announced on TalkChess.com on January 9, 2018. This revealed Leela Chess Zero as the open-source, self learning chess engine it would come to be known as, with a goal of creating a strong chess engine. Within the first few months of training, Leela Chess Zero had already reached the Grandmaster level, surpassing the strength of early releases of Rybka, Stockfish, and Komodo, despite evaluating orders of magnitude fewer positions while using MCTS.
In December 2018, the AlphaZero team published a new paper in Science magazine revealing previously undisclosed details of the architecture and training parameters used for AlphaZero. These changes were soon incorporated into Leela Chess Zero and increased both its strength and training efficiency.
Program and use
The basis of which Leela Chess Zero has used to self-learn, and play chess at a super human level is with reinforcement learning. This is a machine learning algorithm, mirrored from AlphaZero to be used by Leela Chess Zero, to maximize reward to make the engine a better chess player through self-play. From open-source, Leela Chess Zero has played hundreds of millions of games, run by volunteer users, in order to learn with the reinforcement algorithm. In order to contribute to the advancement of the Leela Chess Zero engine, the latest version of the Engine as well as the Client must be downloaded. The Client is needed to connect to the current server of Leela Chess Zero, which all of the information from the self-play chess games are stored, to obtain the latest network, generate self-play games, and upload the training data back to the server.
If, however, someone would like themselves to play against Leela Chess Zero engine, the Network must be downloaded. The Network contains Leela Chess Zero's evaluation function that is needed for the opponent to play against the engine. Playing against a past form of the Leela Chess Zero engine is also possible. Although, the self-play rating calculated for the engine is different from the conventional Elo chess rating. In order to find the self-play rating of Leela Chess Zero from Elo rating is to use the formula:
X = (y + 511.7)/0.6
Where y is the players Elo chess rating, and X is Leela Chess Zero's self-play rating.
In April 2018, Leela Chess Zero became the first neural network engine to enter the Top Chess Engine Championship (TCEC), during season 12 in the lowest division, division 4. Leela did not perform well: in 28 games, it won one, drew two, and lost the remainder; its sole victory came from a position in which its opponent, Scorpio 2.82, crashed in three moves. However, it improved quickly. In July 2018, Leela placed seventh out of eight competitors at the 2018 World Computer Chess Championship, and in the next TCEC season, it won division 4 with a record of 14 wins, 12 draws, and 2 losses. After being promoted to division 3, Leela tied for 2nd place with Arasan, but did not advance. (In the event of a tie, direct encounters between the tied engines decide promotion.) Its record in division 3 was 7 wins, 18 draws, and 3 losses.
In August 2018, Leela Chess Zero had taken first place in the season 13 Top Chess Engine Championship (TCEC), division 4. Leela was 1.5 points ahead of the second place engine, Deus X, powered by the Leela Chess Zero engine, with 20/28 points. Leela had made it into the division three championship to face even stronger opponents with Elo ratings greater than Leela's, along with Deus X with 18/28 points. At first, the Leela Chess Zero engine was winning many games in the early rounds with only a few draws. By round 7, Leela was facing off against the top conventional chess engine in division 4, Wasp, losing the round. Further rounds had Leela needing to gain every point in order to win the Championship and had only gained secure qualification in the final rounds against the other engines. In the end, Leela Chess Zero had 14 wins, 12 draws, and 2 losses. Leela Chess Zero then went on the get 16/28 points in division 3 of the TCEC, losing to Ethereal, with 22.5/28 points, and a direct tiebreak match against Arasan, obtaining third place.
By September 2018, Leela had become competitive with the strongest engines in the world. In the 2018 Chess.com Computer Chess Championship (CCCC), Leela placed fifth out of 24 entrants. The top eight engines advanced to round 2, where Leela placed fourth. Leela then won the 30 game match against Komodo to secure 3rd place in the tournament. Concurrently, Leela participated in the TCEC cup, a new event in which engines from different TCEC divisions can play matches against one another. Leela defeated higher-division engines Laser, Ethereal and Fire before finally being eliminated by Stockfish in the semi-finals.
In December 2018, Leela participated in season 14 of the Top Chess Engine Championship. Leela dominated divisions 3, 2, and 1, easily finishing first in all of them. In the premier division, Stockfish dominated while Houdini, Komodo and Leela competed for second place. It came down to a final-round game where Leela needed to hold Stockfish to a draw with black to finish second ahead of Komodo. This it successfully managed, and therefore contested the superfinal against Stockfish. It narrowly lost the superfinal against Stockfish with a 49.5-50.5 final score.
In February 2019, Leela scored its first major tournament win when it defeated Houdini in the final of the second TCEC cup. Leela did not lose a game the entire tournament. In April 2019, Leela won the Chess.com Computer Chess Championship 7: Blitz Bonanza. Then on May 24, 2019 Leela lost to Stockfish in Computer Chess Championship 8: Deep Dive. It used T42282 neural net in it.
In May 2019, Leela defended its TCEC cup title, this time defeating Stockfish in the final 5.5-4.5 (+2 =7 -1) after Stockfish blundered a 7-man tablebase draw. Leela also won the Superfinal of season 15 of the Top Chess Engine Championship 53.5-46.5 (+14 -7 =79) versus Stockfish.
|Season||Division 4||Division 3||Division 2||Division 1||Division P||Superfinal|
|CCC 1: Rapid Rumble||2018||15+5||3rd|||
|CCC 2: Blitz Battle||2018||5+2||3rd|||
|CCC 3: Rapid Redux||2019||30+5||2nd|||
|CCC 4: Bullet Brawl||2019||1+2||2nd|||
|CCC 5: Escalation||2019||10+5||2nd|||
|CCC 6: Winter Classic||2019||10+10||2nd|||
|CCC 7: Blitz Bonanza||2019||5+2||1st|||
|CCC 8: Deep Dive||2019||15+5||2nd|||
|CCC 9: The Gauntlet||2019||5+2, 10+5||3rd|||
- Leela vs Stockfish, CCCC bonus games, 1-0 Leela beats the world champion Stockfish engine despite a 1-pawn handicap.
- "Leela Chess Zero: Full Elo Graph". Lczero.org. 7 March 2019. Retrieved 7 March 2019.
- "leela-zero". GitHub. Retrieved 27 April 2018.
- "LCZero". lczero.org. Retrieved 2019-05-28.
- "Lc0 Wins Computer Chess Championship, Makes History". Chess.com. Retrieved 2019-05-29.
- Pete (pete). "Stockfish Strikes Back, Tops Lc0 In Computer Chess Championship". Chess.com. Retrieved 2019-05-29.
- "Announcing lczero". TalkChess.com. Retrieved 11 June 2018.
- "Announcing lczero - TalkChess.com". www.talkchess.com. Retrieved 2019-03-21.
- Silver, David; Hubert, Thomas; Schrittwieser, Julian; et al. (6 December 2018). "A general reinforcement learning algorithm that masters chess, shogi, and Go through self-play". Science. 362 (6419): 1140–1144. doi:10.1126/science.aar6404.
- "AlphaZero paper, and Lc0 v0.19.1". 7 December 2018. Retrieved 14 February 2019.
- The rewritten engine, originally for tensorflow. Now all other backends have been ported here.: LeelaChessZero/lc0, LCZero, 2019-03-20, retrieved 2019-03-21
- "How to Run Leela Chess Engine (LCZero) in Arena at a Specific ELO". Retrieved 2019-03-21.
- "Breaking: Leela Chess Zero enters TCEC Season 12". Chessdom. 18 April 2018.
- See the season 12 archives at http://tcec.chessdom.com/archive.php
- "World Computer Chess Championship 2018". ICGA. Retrieved 19 July 2018.
- See the season 13 archives at http://tcec.chessdom.com/archive.php
- "Leela Chess Zero wins the gold medal in TCEC Div 4 | Chessdom". Retrieved 2019-03-21.
- "Ethereal chess engine wins the gold at TCEC Div 3 | Chessdom". Retrieved 2019-03-21.
- "Chess.com Computer Chess Championship".
- "CCCC stage 2 ended. Leela 4th with a good performance! Stockfish undefeated!". LCZero Blog. 26 September 2018. Retrieved 26 September 2018.
- Cilento, Pete (26 September 2018). "Stockfish, Houdini Battle For Computer Chess Championship; Komodo vs Lc0 For 3rd". Chess.com. Retrieved 9 October 2018.
- "Leela wins the match series against Komodo and wins a Pawn odds game against Stockfish!". LCZero Blog. 3 October 2018. Retrieved 9 October 2018.
- Cilento, Pete (4 October 2018). "Stockfish Wins Computer Chess Championship Rapid; Lc0 Finishes 3rd". Chess.com. Retrieved 9 October 2018.
- See the TCEC Cup 1 archives at http://tcec.chessdom.com/archive.php
- Cilento, Pete (11 October 2018). "Computer Chess Championship Returns For Blitz Battle". Chess.com. Retrieved 22 November 2018.
- Cilento, Pete (19 November 2018). "Stockfish Wins Computer Chess Championship Blitz". Chess.com. Retrieved 22 November 2018.
- See the season 14 archives at http://tcec.chessdom.com/archive.php
- See the TCEC Cup 2 archives at http://legacy-tcec.chessdom.com/archive.php
- "Leela won the TCEC CUP!". LCZero Blog. 4 February 2019. Retrieved 12 February 2019.
- Cilento, Pete (17 April 2019). "Lc0 Wins Computer Chess Championship, Makes History". Chess.com. Retrieved 18 April 2019.
- Olson, Alexis. "Competition Season!". Retrieved 2019-06-22.
- See the game score at https://cd.tcecbeta.club/archive.html?season=cup3&round=fl&game=9
- "Lc0 won TCEC 15". LCZero Blog. 28 May 2019. Retrieved 28 May 2019.
- Högy, Kevin (2 June 2019). "A new age in computer chess? Lc0 beats Stockfish!". chess24. Retrieved 25 June 2019.
- Cilento, Pete. "Stockfish Wins Computer Chess Championship Rapid; Lc0 Finishes 3rd". Chess.com. Retrieved 2019-06-20.
- Cilento, Pete. "Stockfish Wins Computer Chess Championship Blitz". Chess.com. Retrieved 2019-06-20.
- Cilento, Pete. "Stockfish Wins Rapid Computer Championship Over Lc0; Bullet Chess Next". Chess.com. Retrieved 2019-06-20.
- Cilento, Pete. "Stockfish Wins Computer Chess Championship Bullet; 'Escalation' Next". Chess.com. Retrieved 2019-06-20.
- Cilento, Pete. "Computer Chess Championship Plays Blitz After Stockfish Defends Title". Chess.com. Retrieved 2019-06-20.
- "Computer Chess Championship". Chess.com. Retrieved 9 July 2019.