AlphaGo Zero And AlphaZero, RomiChess done better
Moderators: hgm, Rebel, chrisw
-
- Posts: 172
- Joined: Thu May 27, 2010 3:32 am
Re: AlphaGo Zero And AlphaZero, RomiChess done better
It's a completely different project that uses some of the techniques from Alpha Zero. Not the same thing.
-
- Posts: 3657
- Joined: Wed Nov 18, 2015 11:41 am
- Location: hungary
Re: AlphaGo Zero And AlphaZero, RomiChess done better
[quote="kranium"]
There's a version of AlphaZero available here:
https://github.com/Zeta36/chess-alpha-zero
for anyone interested
[/quote]
Please read in the "readme.md" paragraph about "New Supervised Learning Pipeline".
You can read that human games was used before starting the learning process in the case of Zeta36 and AlphaZero too.
"...maybe chess is too complicated for a self training alone.."
There's a version of AlphaZero available here:
https://github.com/Zeta36/chess-alpha-zero
for anyone interested
[/quote]
Please read in the "readme.md" paragraph about "New Supervised Learning Pipeline".
You can read that human games was used before starting the learning process in the case of Zeta36 and AlphaZero too.
"...maybe chess is too complicated for a self training alone.."
-
- Posts: 2129
- Joined: Thu May 29, 2008 10:43 am
Re: AlphaGo Zero And AlphaZero, RomiChess done better
yes that's why I said 'a version'schack wrote:It's a completely different project that uses some of the techniques from Alpha Zero. Not the same thing.
-
- Posts: 1221
- Joined: Wed Mar 08, 2006 8:28 pm
- Location: Florida, USA
Re: AlphaGo Zero And AlphaZero, RomiChess done better
I remember the experiments at the time. Could you briefly explain what you did? From memory I recall you did the following:
At the end of the game you parsed the list of moves and adjusted the score up or down a certain number of centipawns based on the outcome. You then hashed each position and stored it in a learning file. I assume this is then loaded into the hash table at the start of each game. Is this broadly correct?
Thanks,
Steve
At the end of the game you parsed the list of moves and adjusted the score up or down a certain number of centipawns based on the outcome. You then hashed each position and stored it in a learning file. I assume this is then loaded into the hash table at the start of each game. Is this broadly correct?
Thanks,
Steve
http://www.chessprogramming.net - Maverick Chess Engine
-
- Posts: 4190
- Joined: Wed Nov 25, 2009 1:47 am
Re: AlphaGo Zero And AlphaZero, RomiChess done better
How do you explain these paragraphs from the paper:kranium wrote:No human games were loaded. Learning was accomplished thru millions of self-play games
The monte carlo search algorithm simply chose the move in each position with the highest win probability.
So when playing self-played games positions used for training are taken from the games randomly (since position is part of set of training parameters). So what about starting positions of those 44 million training games? You think they were all random, or initial starting position and they had no chess knowledge in them????"Training proceeded for 700,000 steps (mini-batches of size 4,096) starting from randomly initialised parameters"
"We represent the policy π(a|s) by a 8 × 8 × 73 stack of planes encoding a probability distribution over 4,672 possible moves. Each of the 8×8 positions identifies the square from which to “pick up” a piece."
"The number of games, positions, and thinking time varied per game due largely to different board sizes and game lengths, and are shown in Table S3."
Give me a break, thinking those ppl in Google are so stupid to train their network in such a lousy way, instead of sorting those 100'000 openings from the same chessbase they quote in the paper by probability of occurrence and using those statistics as starting positions for those self-played games.
Ofc in Table 2 they nicely show just percentages not actual numbers so you can't judge how many training games in total were from the starting position, because someone could be smart and sum up all those games from Table 2 and figure the number doesn't match 44 million...
Btw. 700'000 training iterations times 800 MTCS is already 56 million, not 44, so where did 12 million games disappear?
-
- Posts: 2129
- Joined: Thu May 29, 2008 10:43 am
Re: AlphaGo Zero And AlphaZero, RomiChess done better
My understanding is that "randomly initialised parameters" is not the same as loading human games.Milos wrote:How do you explain these paragraphs from the paper:kranium wrote:No human games were loaded. Learning was accomplished thru millions of self-play games
The monte carlo search algorithm simply chose the move in each position with the highest win probability.So when playing self-played games positions used for training are taken from the games randomly (since position is part of set of training parameters). So what about starting positions of those 44 million training games? You think they were all random, or initial starting position and they had no chess knowledge in them????"Training proceeded for 700,000 steps (mini-batches of size 4,096) starting from randomly initialised parameters"
"We represent the policy π(a|s) by a 8 × 8 × 73 stack of planes encoding a probability distribution over 4,672 possible moves. Each of the 8×8 positions identifies the square from which to “pick up” a piece."
"The number of games, positions, and thinking time varied per game due largely to different board sizes and game lengths, and are shown in Table S3."
Give me a break, thinking those ppl in Google are so stupid to train their network in such a lousy way, instead of sorting those 100'000 openings from the same chessbase they quote in the paper by probability of occurrence and using those statistics as starting positions for those self-played games.
Ofc in Table 2 they nicely show just percentages not actual numbers so you can't judge how many training games in total were from the starting position, because someone could be smart and sum up all those games from Table 2 and figure the number doesn't match 44 million...
Btw. 700'000 training iterations times 800 MTCS is already 56 million, not 44, so where did 12 million games disappear?
Yes I assume (because it has not been made clear by Google) that the self-play games all started from the traditional start position.
AlphaZero would quickly realize that it was winning more often after 1. d4 than after 1. f3 for ex.
-
- Posts: 4190
- Joined: Wed Nov 25, 2009 1:47 am
Re: AlphaGo Zero And AlphaZero, RomiChess done better
They quote 100'000 games from chessbase and their batches are per 100'000 iterations of 800 MTCS simulations, another "coincidence"?kranium wrote:Yes I assume (because it has not been made clear by Google) that the self-play games all started from the traditional start position.
AlphaZero would quickly realize that it was winning more often after 1. d4 than after 1. f3 for ex.
Again let me quote myself (btw. what do you think how many f3 openings are between those 100'000 openings from chessbase):
thinking those ppl in Google are so stupid to train their network in such a lousy way, instead of sorting those 100'000 openings from the same chessbase they quote in the paper by probability of occurrence and using those statistics as starting positions for those self-played games.
-
- Posts: 2129
- Joined: Thu May 29, 2008 10:43 am
Re: AlphaGo Zero And AlphaZero, RomiChess done better
Ah I see what you're saying...Milos wrote:They quote 100'000 games from chessbase and their batches are per 100'000 iterations of 800 MTCS simulations, another "coincidence"?kranium wrote:Yes I assume (because it has not been made clear by Google) that the self-play games all started from the traditional start position.
AlphaZero would quickly realize that it was winning more often after 1. d4 than after 1. f3 for ex.
Again let me quote myself (btw. what do you think how many f3 openings are between those 100'000 openings from chessbase):thinking those ppl in Google are so stupid to train their network in such a lousy way, instead of sorting those 100'000 openings from the same chessbase they quote in the paper by probability of occurrence and using those statistics as starting positions for those self-played games.
From the PDF:
"Finally, we analysed the chess knowledge discovered by AlphaZero. Table 2 analyses the
most common human openings (those played more than 100,000 times in an online database
of human chess games (1)). Each of these openings is independently discovered and played
frequently by AlphaZero during self-play training. When starting from each human opening,
AlphaZero convincingly defeated Stockfish, suggesting that it has indeed mastered a wide spectrum
of chess play.
I guess it can be interpreted in a couple ways, I understood that they analyzed the finished games to see how often common human openings were followed.
(How else to explain "Each of these openings is independently discovered and played
frequently by AlphaZero during self-play training" ?)
-
- Posts: 4190
- Joined: Wed Nov 25, 2009 1:47 am
Re: AlphaGo Zero And AlphaZero, RomiChess done better
Ofc, this is what I would do and it is a no-brainer. I don't doubt they came up with a more elaborate and efficient training scheme.kranium wrote:I guess it can be interpreted in a couple ways, I understood that they analyzed the finished games to see how often common human openings were followed. (It does say that these opening were independently discovered by Alpha0).
Out of 100'000 interations with 800 sims per iteration, 50'000 I would take root position, the rest from those 100'000 opening positions, I limit them to 10 moves or something (removing transpositions), sort the them per frequency and give them as starting position for those 50'000 iterations proportional to their frequency.
Those 50k root iterations are more than enough to derive those statistics from Table 2 and further bias the network towards those opening it assumes as advantages.
Even what they have now is kind of embarrassing, coz for B40 Sicilian, they get only +38Elo (20 wins to 9 losses), huge difference from +100 Elo from root (much more than what standard engines have), so constructing an anti-alpha0 book that would completely naturalize it would be piece of cake once one had access to those training games!
-
- Posts: 188
- Joined: Sun Dec 25, 2016 4:59 pm
Re: AlphaGo Zero And AlphaZero, RomiChess done better
Well, it doesn't follow that an anti book would be a piece of cake.
The example opening you picked where it performed relatively (heavy emphasis on "relatively") poorly is one you couldn't force no matter what book you gave SF.
No amount of book magic will let SF force an opponent that always meets 1.e4 with 1...e5 to get in to the 2...e6 Sicilian
The example opening you picked where it performed relatively (heavy emphasis on "relatively") poorly is one you couldn't force no matter what book you gave SF.
No amount of book magic will let SF force an opponent that always meets 1.e4 with 1...e5 to get in to the 2...e6 Sicilian