r/ComputerChess • u/Whole-Interest-5980 • Sep 11 '25
Is a neural networks evaluation function updated as the game goes along?
Wikipedia claims Neural Networks evaluation function is discovered rather than programmed in.
That begs the question whether it's capable of paradigm shifts during the course of a game?
For an example:: Could a pure NN evaluate the bishop pair to be stronger than knight +bishop and later in the game find that to be false and suddenly prioritize against it? Does it work like that?
4
Upvotes
6
u/you-get-an-upvote Sep 12 '25 edited Sep 12 '25
No
Yes
The actual weights of the network do not get updated. But NNs/NNUEs have multiple nonlinear layers, so it can learn relationships like "when there are few pieces on the board, the bishop pair matters more".
1
u/regular_lamp Sep 14 '25
The point is kinda that it doesn't need this kind of "update" since it already learned that the value of a bishop pair depends on the what else is on the board.
2
u/meganitrain Sep 12 '25
I'm not an expert, but I'm fairly sure that wouldn't be efficient. I'd think it would be better to spend that computation time on evaluating more deeply.
I think what you're describing might be incremental learning.
Yes, because the position would be different. Even if it transposed to the same position exactly (including wrt the 50 move rule, repetition, etc.), you'd get a different evaluation unless the engine was stateless and deterministic and its only input for each move was the current position (no previous moves).
1
u/Straight_Flight_942 Sep 12 '25
A neural network’s evaluation function doesn’t actually change during a single game. Once it’s trained, its “understanding” of chess positions is fixed; it won’t suddenly update its rules mid-game. What it can do, however, is weigh factors like the bishop pair differently depending on the position. For example, in open positions, it might value bishops more, while in closed positions, it may prefer knights. That’s not the network “changing its mind,” but rather applying what it already learned to different contexts. Learning and discovery (such as recognizing the bishop pair’s strength) occur during training, not while the game is being played.
1
u/bookning Sep 14 '25
> That begs the question whether it's capable of paradigm shifts during the course of a game?
Yes.
Should it do it given the current ai and hardware tech?
At this time the answer is clearly no.
As for the other questions, see the other comments.