Translation of Yu Nasu's NNUE paper

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

Moderators: hgm, Dann Corbit, Harvey Williamson

Forum rules
This textbox is used to restore diagrams posted with the [d] tag before the upgrade.
Post Reply
dkl
Posts: 17
Joined: Wed Jan 14, 2015 4:55 pm

Translation of Yu Nasu's NNUE paper

Post by dkl » Thu Jan 07, 2021 10:38 am

I was very interested in how the NNUE is actually designed an implemented.

Yu Nasu originally introduced it in his 2018 paper "Efficiently Updatable Neural-Network-basedEvaluation Functions for Computer Shogi" (available here https://www.apply.computer-shogi.org/wc ... D/nnue.pdf ), but it's unfortunately only available in Japanese. Only the abstract is in English.

I thus created a rough translation of this paper to German and English. The PDFs are available at my github repo here
https://github.com/asdfjkl/nnue

The German translation is quite literal word-by-word, for English I took more freedom. Of course, if someone spots translation errors, I'll try to fix these over time. Some sections that might seem confusing are however already in the original paper difficult to read, as they assume some knowledge about certain computer Shogi aspects (like the previously commonly used Shogi evaluation function, or the KP encoding).

Still though it might be easier to understand this from the paper than from looking at code. It might also make sense to link these in the chessprogramming wiki...?!
Not Fritz, it's Jerry! Free Chess GUI - https://github.com/asdfjkl/jerry

User avatar
maksimKorzh
Posts: 630
Joined: Sat Sep 08, 2018 3:37 pm
Location: Ukraine
Full name: Maksim Korzh
Contact:

Re: Translation of Yu Nasu's NNUE paper

Post by maksimKorzh » Thu Jan 07, 2021 11:16 am

dkl wrote:
Thu Jan 07, 2021 10:38 am
I was very interested in how the NNUE is actually designed an implemented.

Yu Nasu originally introduced it in his 2018 paper "Efficiently Updatable Neural-Network-basedEvaluation Functions for Computer Shogi" (available here https://www.apply.computer-shogi.org/wc ... D/nnue.pdf ), but it's unfortunately only available in Japanese. Only the abstract is in English.

I thus created a rough translation of this paper to German and English. The PDFs are available at my github repo here
https://github.com/asdfjkl/nnue

The German translation is quite literal word-by-word, for English I took more freedom. Of course, if someone spots translation errors, I'll try to fix these over time. Some sections that might seem confusing are however already in the original paper difficult to read, as they assume some knowledge about certain computer Shogi aspects (like the previously commonly used Shogi evaluation function, or the KP encoding).

Still though it might be easier to understand this from the paper than from looking at code. It might also make sense to link these in the chessprogramming wiki...?!
Thanks for sharing!
Wukong Xiangqi (Chinese chess engine + apps to embed into 3rd party websites):
https://github.com/maksimKorzh/wukong-xiangqi

Chess programming YouTube channel:
https://www.youtube.com/channel/UCB9-pr ... KKqDgXhsMQ

Gerd Isenberg
Posts: 2233
Joined: Wed Mar 08, 2006 7:47 pm
Location: Hattingen, Germany

Re: Translation of Yu Nasu's NNUE paper

Post by Gerd Isenberg » Thu Jan 07, 2021 4:24 pm

dkl wrote:
Thu Jan 07, 2021 10:38 am
I was very interested in how the NNUE is actually designed an implemented.

Yu Nasu originally introduced it in his 2018 paper "Efficiently Updatable Neural-Network-basedEvaluation Functions for Computer Shogi" (available here https://www.apply.computer-shogi.org/wc ... D/nnue.pdf ), but it's unfortunately only available in Japanese. Only the abstract is in English.

I thus created a rough translation of this paper to German and English. The PDFs are available at my github repo here
https://github.com/asdfjkl/nnue

The German translation is quite literal word-by-word, for English I took more freedom. Of course, if someone spots translation errors, I'll try to fix these over time. Some sections that might seem confusing are however already in the original paper difficult to read, as they assume some knowledge about certain computer Shogi aspects (like the previously commonly used Shogi evaluation function, or the KP encoding).

Still though it might be easier to understand this from the paper than from looking at code. It might also make sense to link these in the chessprogramming wiki...?!
Thank you, Dominik.
CPW will soon add links.

Ferdy
Posts: 4527
Joined: Sun Aug 10, 2008 1:15 pm
Location: Philippines

Re: Translation of Yu Nasu's NNUE paper

Post by Ferdy » Thu Jan 07, 2021 4:43 pm

dkl wrote:
Thu Jan 07, 2021 10:38 am
I was very interested in how the NNUE is actually designed an implemented.

Yu Nasu originally introduced it in his 2018 paper "Efficiently Updatable Neural-Network-basedEvaluation Functions for Computer Shogi" (available here https://www.apply.computer-shogi.org/wc ... D/nnue.pdf ), but it's unfortunately only available in Japanese. Only the abstract is in English.

I thus created a rough translation of this paper to German and English. The PDFs are available at my github repo here
https://github.com/asdfjkl/nnue

The German translation is quite literal word-by-word, for English I took more freedom. Of course, if someone spots translation errors, I'll try to fix these over time. Some sections that might seem confusing are however already in the original paper difficult to read, as they assume some knowledge about certain computer Shogi aspects (like the previously commonly used Shogi evaluation function, or the KP encoding).

Still though it might be easier to understand this from the paper than from looking at code. It might also make sense to link these in the chessprogramming wiki...?!
Thanks for the translation.

IanO
Posts: 487
Joined: Wed Mar 08, 2006 8:45 pm
Location: Portland, OR
Contact:

Re: Translation of Yu Nasu's NNUE paper

Post by IanO » Thu Jan 07, 2021 11:01 pm

I suggest asking Larry Kaufmann for a review of your work. He is knowledgable in both computer chess and shogi.

User avatar
MikeB
Posts: 4624
Joined: Thu Mar 09, 2006 5:34 am
Location: Pen Argyl, Pennsylvania

Re: Translation of Yu Nasu's NNUE paper

Post by MikeB » Sat Jan 09, 2021 4:05 pm

Great stuff, I edited the English version to improve readability.

https://www.dropbox.com/s/y0vwv9oz7mbse ... b.pdf?dl=0
Image

kinderchocolate
Posts: 449
Joined: Mon Nov 01, 2010 5:55 am
Full name: Ted Wong
Contact:

Re: Translation of Yu Nasu's NNUE paper

Post by kinderchocolate » Sat Jan 09, 2021 7:28 pm

Brilliant! I had been trying to read the paper for a long time, but Japanese... Thanks!!

Post Reply