NNUE - only from own engine?

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

Moderators: hgm, Rebel, chrisw

AndrewGrant
Posts: 1789
Joined: Tue Apr 19, 2016 6:08 am
Location: U.S.A
Full name: Andrew Grant

Re: NNUE - only from own engine?

Post by AndrewGrant »

I support TCECs rules.

But like all good intentions, it will hurt some of the honest people, and reward the dishonest. I find reusing the code of Stockfish and Leela, their games, their tools, their exact implementations, their methods, to be boring. Do something different, or join the people doing the same thing.
#WeAreAllDraude #JusticeForDraude #RememberDraude #LeptirBigUltra
"Those who can't do, clone instead" - Eduard ( A real life friend, not this forum's Eduard )
User avatar
Rebel
Posts: 7025
Joined: Thu Aug 18, 2011 12:04 pm
Full name: Ed Schröder

Re: NNUE - only from own engine?

Post by Rebel »

Deberger wrote: Tue Oct 26, 2021 9:20 am
ChickenLogic wrote: Mon Oct 25, 2021 3:26 pm
Rebel wrote: Mon Oct 25, 2021 12:27 pm
Gabor Szots wrote: Mon Oct 25, 2021 10:20 am
amanjpro wrote: Mon Oct 25, 2021 4:24 amI believe most of the major rating list testers (CEGT, CCRL and others) are not interested in SF NNUE unless the net is trained solely on the engine's own games

That's true.
I think the issue is important enough open a discussion.

NNUE eval is the result from :

1. Training software (freely available)
2. Quality of the EPD's (hard own work)
3. NNUE implementation (freely available)

Since the elo is in the EPD (and is the gold digging part) I see no good reason reason to put a limitation on the creative part (the quality of the EPD's). Further it is discrimination to starters who are forced to write a good HCE eval first. Everybody should be free to create his own EPD database as he pleases, train it as he pleases, implement it as he pleases.

I see only one limitation, using an existing NNUE from someone else. It means the creative (and hard) part is skipped. Fire comes to mind, I don't test it.
Lately, nearly all of the progress for SF nets have been made in the trainer - not the data. What you call the 'EPD' part (besides the only EPDs used are the opening books for data generation, EPD itself is not suitable for training)
I believe it's possible to train from an EPD database, if each position includes an evaluation.

Is this what Ed is suggesting?

Has anyone tried this?
I have argued in the OP for a minimum requirement that authors at least should create their own NNUE.
90% of coding is debugging, the other 10% is writing bugs.
JohnWoe
Posts: 508
Joined: Sat Mar 02, 2013 11:31 pm

Re: NNUE - only from own engine?

Post by JohnWoe »

Stop the press !
Somebody is using open source components in their open source program ! :lol:
amanjpro
Posts: 883
Joined: Sat Mar 13, 2021 1:47 am
Full name: Amanj Sherwany

Re: NNUE - only from own engine?

Post by amanjpro »

JohnWoe wrote: Wed Oct 27, 2021 2:06 pm Stop the press !
Somebody is using open source components in their open source program ! :lol:
Data is not open source, data is not code.... Not saying one cannot use it (or should not use it).. But calling it open source is just misleading

In this particular discussion it is about making a different engine that feels more or less different that is worth testing and spending time on.

If I bring SF net, use it as is that is boring
If I bring readily available data, and use it in a novel way that is more interesting
matejst
Posts: 365
Joined: Mon May 14, 2007 8:20 pm
Full name: Boban Stanojević

Re: NNUE - only from own engine?

Post by matejst »

From past experience, experimentation, innovation leads to new breakthroughs. Engineering and optimisation do not. Trying something different is the way to improve, while copying leads to ultimate failure. That's the reason why originality is so important in the long run.

Let's just take the example of NNs. Matthew Lai implemented it in Giraffe. Peter Osterlund showed that it was possible to use them for evaluation on a CPU. Jonathan Rosenthal trained several nets in 2019 already. All these experiments did not bare fruits immediately, but were used in Go, and landed in SF. I have no doubts that another great ideas will be implemented, tested and showed as valid, and then optimised in one of the big team projects.
ChickenLogic
Posts: 154
Joined: Sun Jan 20, 2019 11:23 am
Full name: kek w

Re: NNUE - only from own engine?

Post by ChickenLogic »

amanjpro wrote: Wed Oct 27, 2021 3:18 pm
JohnWoe wrote: Wed Oct 27, 2021 2:06 pm Stop the press !
Somebody is using open source components in their open source program ! :lol:
Data is not open source, data is not code.... Not saying one cannot use it (or should not use it).. But calling it open source is just misleading

In this particular discussion it is about making a different engine that feels more or less different that is worth testing and spending time on.

If I bring SF net, use it as is that is boring
If I bring readily available data, and use it in a novel way that is more interesting
And since when can only code be free and open source? Leela's and SF's data sets are all free as in libre and open as in open in telling one exactly how it was created and how to reproduce it. I could easily produce a data set that you have to
a) buy (not that open source can't be monetized)
b) use in a certain way.
I certainly won't tell you anything on how to create your own spin of it either.

I do agree with the rest of the statement. Use the data you want.
amanjpro
Posts: 883
Joined: Sat Mar 13, 2021 1:47 am
Full name: Amanj Sherwany

Re: NNUE - only from own engine?

Post by amanjpro »

ChickenLogic wrote: Wed Oct 27, 2021 4:43 pm
amanjpro wrote: Wed Oct 27, 2021 3:18 pm
JohnWoe wrote: Wed Oct 27, 2021 2:06 pm Stop the press !
Somebody is using open source components in their open source program ! :lol:
Data is not open source, data is not code.... Not saying one cannot use it (or should not use it).. But calling it open source is just misleading

In this particular discussion it is about making a different engine that feels more or less different that is worth testing and spending time on.

If I bring SF net, use it as is that is boring
If I bring readily available data, and use it in a novel way that is more interesting
And since when can only code be free and open source? Leela's and SF's data sets are all free as in libre and open as in open in telling one exactly how it was created and how to reproduce it. I could easily produce a data set that you have to
a) buy (not that open source can't be monetized)
b) use in a certain way.
I certainly won't tell you anything on how to create your own spin of it either.

I do agree with the rest of the statement. Use the data you want.
Data doesn't have a source code to be open source, it can be publicly available... But that is technicality
ChickenLogic
Posts: 154
Joined: Sun Jan 20, 2019 11:23 am
Full name: kek w

Re: NNUE - only from own engine?

Post by ChickenLogic »

Then call it free and open data.