Translation of Yu Nasu's NNUE paper

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

Moderators: hgm, Rebel, chrisw

dkl
Posts: 28
Joined: Wed Jan 14, 2015 5:55 pm

Translation of Yu Nasu's NNUE paper

Post by dkl »

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
Free Book about Neural Networks for Chess - https://github.com/asdfjkl/neural_network_chess
User avatar
maksimKorzh
Posts: 771
Joined: Sat Sep 08, 2018 5:37 pm
Location: Ukraine
Full name: Maksim Korzh

Re: Translation of Yu Nasu's NNUE paper

Post by maksimKorzh »

dkl wrote: Thu Jan 07, 2021 11: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!
Gerd Isenberg
Posts: 2250
Joined: Wed Mar 08, 2006 8:47 pm
Location: Hattingen, Germany

Re: Translation of Yu Nasu's NNUE paper

Post by Gerd Isenberg »

dkl wrote: Thu Jan 07, 2021 11: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: 4833
Joined: Sun Aug 10, 2008 3:15 pm
Location: Philippines

Re: Translation of Yu Nasu's NNUE paper

Post by Ferdy »

dkl wrote: Thu Jan 07, 2021 11: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: 496
Joined: Wed Mar 08, 2006 9:45 pm
Location: Portland, OR

Re: Translation of Yu Nasu's NNUE paper

Post by IanO »

I suggest asking Larry Kaufmann for a review of your work. He is knowledgable in both computer chess and shogi.
User avatar
MikeB
Posts: 4889
Joined: Thu Mar 09, 2006 6:34 am
Location: Pen Argyl, Pennsylvania

Re: Translation of Yu Nasu's NNUE paper

Post by MikeB »

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

https://www.dropbox.com/s/y0vwv9oz7mbse ... b.pdf?dl=0
Image
kinderchocolate
Posts: 454
Joined: Mon Nov 01, 2010 6:55 am
Full name: Ted Wong

Re: Translation of Yu Nasu's NNUE paper

Post by kinderchocolate »

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