Leela Zero
   HOME

TheInfoList



OR:

Leela Zero is a
free and open-source Free and open-source software (FOSS) is software available under a Software license, license that grants users the right to use, modify, and distribute the software modified or not to everyone free of charge. FOSS is an inclusive umbrella term ...
computer Go Computer Go is the field of artificial intelligence (AI) dedicated to creating a computer program that plays the traditional board game Go. The field is sharply divided into two eras. Before 2015, the programs of the era were weak. The best ...
program released on 25 October 2017. It is developed by Belgian programmer
Gian-Carlo Pascutto Gian-Carlo Pascutto (born 1982) is a Belgium, Belgian computer programmer. He is the author of the chess engine Sjeng (software), Sjeng and Go software Leela (software), Leela, and the original author of the free and open-source Go software Leela Z ...
, the author of chess engine Sjeng and Go engine Leela. Leela Zero's algorithm is based on
DeepMind DeepMind Technologies Limited, trading as Google DeepMind or simply DeepMind, is a British–American artificial intelligence research laboratory which serves as a subsidiary of Alphabet Inc. Founded in the UK in 2010, it was acquired by Go ...
's 2017 paper about
AlphaGo Zero AlphaGo Zero is a version of DeepMind's Go software AlphaGo. AlphaGo's team published an article in ''Nature'' in October 2017 introducing AlphaGo Zero, a version created without using data from human games, and stronger than any previous versio ...
. Unlike the original Leela, which has a lot of human knowledge and heuristics programmed into it, the program code in Leela Zero only knows the basic rules and nothing more. The knowledge that makes Leela Zero a strong player is contained in a
neural network A neural network is a group of interconnected units called neurons that send signals to one another. Neurons can be either biological cells or signal pathways. While individual neurons are simple, many of them together in a network can perfor ...
, which is trained based on the results of previous games that the program played. Leela Zero is trained by a distributed effort, which is coordinated at the Leela Zero website. Members of the community provide computing resources by running the client, which generates self-play games and submits them to the server. The self-play games are used to train newer networks. Generally, over 500 clients have connected to the server to contribute resources. The community has provided high quality code contributions as well.


Version history

Leela Zero finished third at the BerryGenomics Cup World AI Go Tournament in
Fuzhou Fuzhou is the capital of Fujian, China. The city lies between the Min River (Fujian), Min River estuary to the south and the city of Ningde to the north. Together, Fuzhou and Ningde make up the Eastern Min, Mindong linguistic and cultural regi ...
,
Fujian Fujian is a provinces of China, province in East China, southeastern China. Fujian is bordered by Zhejiang to the north, Jiangxi to the west, Guangdong to the south, and the Taiwan Strait to the east. Its capital is Fuzhou and its largest prefe ...
, China on 28 April 2018. ''
The New Yorker ''The New Yorker'' is an American magazine featuring journalism, commentary, criticism, essays, fiction, satire, cartoons, and poetry. It was founded on February 21, 1925, by Harold Ross and his wife Jane Grant, a reporter for ''The New York T ...
'' at the end of 2018 characterized Leela and Leela Zero as "the world’s most successful open-source Go engines". In early 2018, another team branched
Leela Chess Zero Leela Chess Zero (abbreviated as LCZero, lc0) is a free, open-source chess engine and volunteer computing project based on Google's AlphaZero engine. It was spearheaded by Gary Linscott, a developer for the Stockfish chess engine, and adapted ...
from the same code base, also to verify the methods in the
AlphaZero AlphaZero is a computer program developed by artificial intelligence research company DeepMind to master the games of chess, shogi and Go (game), go. This algorithm uses an approach similar to AlphaGo Zero. On December 5, 2017, the DeepMind ...
paper as applied to the game of chess. AlphaZero's use of Google TPUs was replaced by a crowd-sourcing infrastructure and the ability to use graphics card GPUs via the OpenCL library. Even so, it is expected to take a year of crowd-sourced training to make up for the dozen hours that AlphaZero was allowed to train for its chess match in the paper. The distributed training server was shut down on 2021-02-15, marking the end of Leela Zero project. The page now directs visitors to KataGo and SAI. The model sizes increased steadily over time. The first released model has hash name d645af97, size 1x8 (1 layer, 8 channels), and released at 2017-11-10 13:04. The last released model has hash name 0e9ea880, size 40x256, and was released at 2021-02-15 09:04.


Technology

Leela Zero is an (almost) exact replication of
AlphaGo Zero AlphaGo Zero is a version of DeepMind's Go software AlphaGo. AlphaGo's team published an article in ''Nature'' in October 2017 introducing AlphaGo Zero, a version created without using data from human games, and stronger than any previous versio ...
in both training process and architecture. The training process is Monte-Carlo Tree Search with self-play, exactly the same as AlphaGo Zero. The architecture is the same as AlphaGo Zero (with one difference). Consider the last released model, 0e9ea880. It has 47 million parameters, and the following architecture: * The stem of the network takes as input a 18x19x19 tensor representation of the Go board. ** 8 channels are the positions of the current player's stones from the last eight time steps. (1 if there is a stone, 0 otherwise. If the time step go before the beginning of the game, then 0 in all positions.) ** 8 channels are the positions of the other player's stones from the last eight time steps. ** 1 channel is all 1 if black is to move, and 0 otherwise. ** 1 channel is all 1 if white is to move, and 0 otherwise. (This channel is not present in the original AlphaGo Zero) * The body is a ResNet with 40 residual blocks and 256 channels. * There are two heads, a policy head and a value head. ** Policy head outputs a
logit In statistics, the logit ( ) function is the quantile function associated with the standard logistic distribution. It has many uses in data analysis and machine learning, especially in Data transformation (statistics), data transformations. Ma ...
array of size 19 \times 19 + 1, representing the logit of making a move in one of the points, plus the logit of passing. ** Value head outputs a number in the range (-1, +1), representing the expected score for the current player. -1 represents current player losing, and +1 winning.


References


External links

*
Leela Zero
on
GitHub GitHub () is a Proprietary software, proprietary developer platform that allows developers to create, store, manage, and share their code. It uses Git to provide distributed version control and GitHub itself provides access control, bug trackin ...

Leela Zero
on
Sensei's Library Sensei's Library (commonly referred to as SL among Go-players) is an Internet website and wiki A wiki ( ) is a form of hypertext publication on the internet which is collaboratively edited and managed by its audience directly through a ...

Play Leela Zero
on ZBaduk {{Go (game) Go engines Free and open-source software 2017 software Applied machine learning Software using the GNU General Public License Free software programmed in C++