r/ComputerChess • • 1d ago

Multi-Head Architecture for Search-Based Chess

https://medium.com/@alan0408yuan/multi-head-architecture-for-search-based-chess-dc67949f6fe0

I would like to share my thoughts on a Multi-Head Architecture for Search-Based Chess such that we have an NNuE that reuses the expensive Feature Input Weights to identify if the position is quiet or not rather than using SEE + Captures.

I'm in the middle of running a 1 billion position training loop for the NNuE and I am able to hit 99%+ accuracy for quiet / noisy position and I'm working on the specifics of how this would impact the pruning / Q-search.

I would be really happy if folks have any thoughts on this approach, specifically if this was tested before and if this would be viable for detecting Zugwag positions.

4 Upvotes

2 comments sorted by

1

u/ChessRat_io 1d ago

Unclear whether this optimizes anything, but I like the enthusiasm.

I would suggest you instead use cutechess-cli and run SPRT (sequential probability ratio test) between different versions of your own search engine rather than trusting a chesscom game review accuracy score for strength.

1

u/Timely_Huckleberry88 1d ago
  1. This is less of an optimization and more to resolve a problem I've been having - During testing, I noticed one out of five games, my engine likely detected a sacrifice sequence where it would aggressively go for the opponent's king with a score of 100+ and then it would immediately drop off to -200 after sacrifices.

I highly suspect its false negatives from the SEE / forks during the Q-search section.

2. I'm in the middle of training a revised pipeline and running it via cutechess-cli - You are 100% correct I shouldn't be using chess.com games for accuracy, however its something I do so I can analyze it's plays and find out problems with mate in X / specific openings.

I will definitely get back to you and the rest of the community by the end of this week if this pipeline has improvements - I tested the NNuE training via a Q-search that used a static function and a hard binary classifier and I was able to get 99% accuracy.

I've been running refinement loops and revising the pruning after the results are back

3. I wouldn't be surprised if this can be used to detect Zugwag positions if Null-Move Pruning is successful.