Question about nnue

Discussion of anything and everything relating to chess playing software and machines.

Moderators: hgm, Rebel, chrisw

jmartus
Posts: 256
Joined: Sun May 16, 2010 2:50 am

Question about nnue

Post by jmartus »

So is every around the 3,000 elo mark about to gain 300 plus elo enough almost automatically with just implementing nnue? So in a few months every engine going to have nnue it seams or lost to the olden era?
mar
Posts: 2554
Joined: Fri Nov 26, 2010 2:00 pm
Location: Czech Republic
Full name: Martin Sedlak

Re: Question about nnue

Post by mar »

if they clone then sure and not just 3k elo engines. in fact, lower rated engine would likely gain more, assuming that top engines should already have very decent evals

the critical part that I'm missing is how NNUE is actually trained - fitting to existing eval might serve as a better starting point than small random weights, but how to continue.

one could do something akin Texel tuning (logistic regression), but then you have to train a huge 20m-weight network on tens of millions of positions, not sure how long this would take.

those who are curious will try to understand and likely come up with their own topology and new ways to mix NNs into existing eval other than completely replacing it with "NNUE", which I think is a good thing. it's also very likely that SF devs will find ways to improve further. I think this is just a beginning of something exciting. seems that AB engines are not dead yet after all
Martin Sedlak
User avatar
towforce
Posts: 11572
Joined: Thu Mar 09, 2006 12:57 am
Location: Birmingham UK

Re: Question about nnue

Post by towforce »

jmartus wrote: Wed Oct 07, 2020 11:48 pm So is every around the 3,000 elo mark about to gain 300 plus elo enough almost automatically with just implementing nnue? So in a few months every engine going to have nnue it seams or lost to the olden era?


Yes. Apparently, there are important aspects of chess which humans writing evaluation functions simply haven't been able to capture.
Writing is the antidote to confusion.
It's not "how smart you are", it's "how are you smart".
Your brain doesn't work the way you want, so train it!
Tony P.
Posts: 216
Joined: Sun Jan 22, 2017 8:30 pm
Location: Russia

Re: Question about nnue

Post by Tony P. »

We'll see. I do think Arasan needs a neural upgrade to stay competent; fortunately, its elaborate position scoring routines are a natural fit for the preprocessing of positions before they're put into an NN. If I'm not mistaken, the rest of the active top-20 engines (except Booot that's hopeless because Object Pascal has no NN inference infrastructure) already have or are developing neural elements, and far not all of them will be copypastes from nodchip's SF.
jmartus
Posts: 256
Joined: Sun May 16, 2010 2:50 am

Re: Question about nnue

Post by jmartus »

How will that change the style of engine going forward? Will they all become more similar in style?
User avatar
towforce
Posts: 11572
Joined: Thu Mar 09, 2006 12:57 am
Location: Birmingham UK

Re: Question about nnue

Post by towforce »

jmartus wrote: Thu Oct 08, 2020 2:55 am How will that change the style of engine going forward? Will they all become more similar in style?

Nobody knows yet. However, it probably will if:

1. the knowledge that nets capture that handwritten evaluation functions miss leads to "good moves"

2. in many positions, there tends to be one move which is better than the others

Then it will lead to "the best move" being picked more often, and this may well lead to them having similar "styles"
Writing is the antidote to confusion.
It's not "how smart you are", it's "how are you smart".
Your brain doesn't work the way you want, so train it!
jmartus
Posts: 256
Joined: Sun May 16, 2010 2:50 am

Re: Question about nnue

Post by jmartus »

Not sure if I like that but always have open tal 1.0 and other stylish engines to play around with as options