AlphaZero understanding ?
I read basically every thread I found and things are really confused and I think nobody really clearly understood it.
I just don't get mainly on what the evaluation is based upon... just past game result ?
And what if an actual game encounter a position never met before?
Also it is very unclear what the engine "saves" when learning, he plays a game against himself ok, so what? He save the whole game? From what some ppl say it just seems a huge database contradicting the whole idea of "AI"
Posted Dec 8, 2017, 9:00 AM UTC
Brush up on reinforcement learning.
I already did, I just dont grasp this specific application and how to apply the generic idea on chess
Say it's playing the 2 knights as white. It'll play a game where it plays 4.Nc3 and another game where it'll try 4.d3. If it wins with Nc3 it'll reinforce it, say by using a point system, making it more likely to play 4.Nc3 in the future for that specific position. If it loses with Nc3, it'll take take note and be less likely to play that move in the future, thus making it more likely to play 4.d3. Rinse and repeat 40 million times in many positions and it develops an "artificial intuition" where it finds moves based on previous successes and losses. This is a very simplified description but yeah, that's the basic idea. Matt Parker on YouTube has a video using this principle to teach boxes filled with jellybeans how to play tic tac toe.
that's the problem, so you are saying it search some "database" of identical position with the assigned value?
Most other ppl seems to think otherwise
You have to understand that this isn't the only algorithm at play. If it was, anyone could build a chess crushing AI. DeepMind is not going to reveal all the inner workings of their AI. The idea I presented is like a first stepping stone, arguably the most important one. At the end of the day the AI is a program which makes use of its memory to collect data and make decisions based on the information presented. There are many ways to do it and this AI is just a collection of these methods.
I think it is a little more like this:
Why did it play Nc3 in one game and d3 in the other?
Perhaps because in the first game, the NN parameters favoured piece development in a certain kind of position a little bit more than the second; while the second one chose d3 because it gives more weight to forming pawn chains in that sort of position.
These differences in the NN parameters would have been there through the whole of both games, so there is no reason for the NN to think that the win or loss was due to move 4 in some way (and indeed it probably wasn't due to that!).
But what happens is that when it adjusts its parameters for the next trial, it will choose a set which is closer to the set in the game it won, rather than the game it lost.
So if in positions "like that" (whatever that means to the NN), bringing a piece out is better than moving a pawn, parameters which cause the NN to choose "that sort of move" (whatever that means to the NN) will tend to be chosen.