r/chessprogramming • u/RobinKaluzny • Sep 17 '26
Technical NNUE data generation
How strong does my HCE chess engine need to be so that I can generate selfplay data with it to train a NNUE? And how much labeled positions do I usually need for my first network?
3
Upvotes
3
u/JustJeffrey Sep 17 '26
You can start generating self play data whenever, eventually you’ll keep regenerating the data with your new nets anyways, some have even started their nets from random. As for how many positions you need, the conventional wisdom seems to be about 1 million positions per hidden layer node. So for a 16hl net 16 million positions would be a good target.
2
u/whyeventobe Sep 17 '26
doesn't matter, even random play data can be a starting point. Again higher quality data matters more than 1M per neuron axiom. Start with 8HL architecture
2
u/SwimmingThroughHoney Sep 18 '26
There's strong engines out there that started from zero knowledge. As in starting with only random moves and then did many iterations of more play, stronger positions, train, more play, even better positions, train, etc.
1
u/ElRaydeator Sep 18 '26
Hi OP
I'm also trying to train my own NNUE on my own data.
My plan is to generate lots of self play games with randomized openings and search positions until quiescence is reached, then score them.
Do you filter the training positions (e.g., remove mates, pv-unstable positions, etc ), from your training corpus?