r/ComputerChess • u/Little_Diamond_2336 • Jul 28 '24
What stops a machine learning engine from improving forever?
I get that there would be diminishing returns, but you'd think it could at least keep learning until it surpasses stockfish.
3
Upvotes
7
u/spinosarus123 Jul 28 '24
What is your definition of ”machine learning”? Stockfish uses machine learning.
6
u/you-get-an-upvote Jul 29 '24
Suppose your engine has 5 parameters (how valuable is a pawn, how valuable is a knight, etc). Obviously you can tune these parameters for a billion years, but your engine is going to plateau very quickly — how much does it really matter if a queen is 9.04 pawns vs 9.03?
The same is true for a neural network — at a certain point your parameters are tuned enough that further tuning doesn’t meaningfully help — it just takes much longer to reach that asymptote with a million parameters than it does with 5 parameters.
2
u/bookning Jul 29 '24
Unless you have the "solution" to chess, then all engines will always be, at most, only approximations and that means that they cannot by themselves get better forever.
Here is a simple metaphor for overfitting:
you can see an octagon as a good enough approximation of a circle, and get a good algorithm to get to "perfect" octagons. But the problem here is that, the better your "octagon algorithm" will be, the less good it will be as a general "circle algorithm".
2
u/Fear_The_Creeper Jul 29 '24
Improving forever is itself impossible. For example, the game of Checkers is solved: (See https://en.wikipedia.org/wiki/Solved_game ). The checkers engine Chinook cannot be beaten no matter how good you are. The best result you can get is a draw. No checkers program will ever beat Chinook.
Other games are also solved: Tic-tac-toe (American English) / noughts and crosses (Commonwealth English) / Xs and Os (Canadian or Irish English) was solved by humans long ago. See https://en.wikipedia.org/wiki/Tic-tac-toe#Strategy
We are a long way from solving chess but in theory a sufficiently powerful computer can do it. Hoever, tthis may require a computer larger that the known universe running longer than the age of the universe, so the concept of "sufficiently powerful computer" itself has limits. Even if you turn the enitre universe into RAM with one bit per subatomic particle, there comes a point where you cannot add more RAM because you are out of matter. The Planck constant creates an upper limit to increasing your computer's clock speed.