NNUE flip vs rotate in Minic/Igel/Rubichess/etc

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

Moderator: Ras

Madeleine Birchfield
Posts: 512
Joined: Tue Sep 29, 2020 4:29 pm
Location: Dublin, Ireland
Full name: Madeleine Birchfield

NNUE flip vs rotate in Minic/Igel/Rubichess/etc

Post by Madeleine Birchfield »

The original NNUE code ported to official Stockfish used code that encoded rotational symmetry in the NNUE net because shogi had rotational symmetry, but chess has mirror symmetry not rotational symmetry, and the nodchip Stockfish repository now uses a NNUE with mirror symmetry. Do the other engines that have adopted NNUE, like Minic, Igel, Rubichess, Orion, Nemorino, Rofchade, Ethereal, and so forth, use mirror symmetry or rotational symmetry in their NNUE code?
User avatar
RubiChess
Posts: 659
Joined: Fri Mar 30, 2018 7:20 am
Full name: Andreas Matthies

Re: NNUE flip vs rotate in Minic/Igel/Rubichess/etc

Post by RubiChess »

Is there any weight file with mirrored symmetry and (probably different and official(?)) new version number? Then I could implement it in my player.
User avatar
xr_a_y
Posts: 1872
Joined: Sat Nov 25, 2017 2:28 pm
Location: France

Re: NNUE flip vs rotate in Minic/Igel/Rubichess/etc

Post by xr_a_y »

Minic is staying to "kVersion = 0x7AF32F16u" and won't be able to read recent nets.

I tried building net with new version of "orient" function, but without success ...