Neural nets, nodes to features?

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

Moderator: Ras

Dann Corbit
Posts: 12792
Joined: Wed Mar 08, 2006 8:57 pm
Location: Redmond, WA USA

Neural nets, nodes to features?

Post by Dann Corbit »

Has anyone figured out how to decode the neural nets created by enormous compute effort to turn them back into features and scores/weights?
Taking ideas is not a vice, it is a virtue. We have another word for this. It is called learning.
But sharing ideas is an even greater virtue. We have another word for this. It is called teaching.
chrisw
Posts: 4645
Joined: Tue Apr 03, 2012 4:28 pm
Location: Midi-Pyrénées
Full name: Christopher Whittington

Re: Neural nets, nodes to features?

Post by chrisw »

Dann Corbit wrote: Fri Apr 14, 2023 11:14 pm Has anyone figured out how to decode the neural nets created by enormous compute effort to turn them back into features and scores/weights?
yes
User avatar
towforce
Posts: 12535
Joined: Thu Mar 09, 2006 12:57 am
Location: Birmingham UK
Full name: Graham Laight

Re: Neural nets, nodes to features?

Post by towforce »

My personal experience (based on "a bit of playing") is that above about 10 neurons, it becomes prohibitively difficult to work out what's going on in an NN.

I fully accept that somebody doing this seriously would get to a much higher neuron limit than I did.
Human chess is partly about tactics and strategy, but mostly about memory
smatovic
Posts: 3351
Joined: Wed Mar 10, 2010 10:18 pm
Location: Hamburg, Germany
Full name: Srdja Matovic

Re: Neural nets, nodes to features?

Post by smatovic »

...IIRC Deepmind used heat maps to visualize CNN stuff with AlphaGo.

--
Srdja
chrisw
Posts: 4645
Joined: Tue Apr 03, 2012 4:28 pm
Location: Midi-Pyrénées
Full name: Christopher Whittington

Re: Neural nets, nodes to features?

Post by chrisw »

smatovic wrote: Sat Apr 15, 2023 1:37 pm ...IIRC Deepmind used heat maps to visualize CNN stuff with AlphaGo.

--
Srdja
That's not what was being asked for though
smatovic
Posts: 3351
Joined: Wed Mar 10, 2010 10:18 pm
Location: Hamburg, Germany
Full name: Srdja Matovic

Re: Neural nets, nodes to features?

Post by smatovic »

chrisw wrote: Sun Apr 16, 2023 12:56 am
smatovic wrote: Sat Apr 15, 2023 1:37 pm ...IIRC Deepmind used heat maps to visualize CNN stuff with AlphaGo.

--
Srdja
That's not what was being asked for though
Come on, full disclosure :)

--
Srda
chrisw
Posts: 4645
Joined: Tue Apr 03, 2012 4:28 pm
Location: Midi-Pyrénées
Full name: Christopher Whittington

Re: Neural nets, nodes to features?

Post by chrisw »

smatovic wrote: Sun Apr 16, 2023 7:40 am
chrisw wrote: Sun Apr 16, 2023 12:56 am
smatovic wrote: Sat Apr 15, 2023 1:37 pm ...IIRC Deepmind used heat maps to visualize CNN stuff with AlphaGo.

--
Srdja
That's not what was being asked for though
Come on, full disclosure :)

--
Srda
It’s pretty simple. If I gave you 100M Stockfish 15, d7, say, labelled epds, could you extract the virtual SF Piece Values, or the virtual SF PSQT tables from those epds? Well, of course you could, it’s just a linear regression problem, or Texel tune for that matter.

I did this as an experiment several months ago. Only bothering to pull out virtual piece values, but across 8 games phases. And not just for SF, but for as many NNUE engines as were available.
Plot piece value, per piece type against phase and you get a bunch of pretty graphs (5 pieces x 8 phases = 40 graphs per engine). A visual compare of the graph profiles will tell you which engines are using the same or similar training sets, which was my idea of doing this in the first place.
smatovic
Posts: 3351
Joined: Wed Mar 10, 2010 10:18 pm
Location: Hamburg, Germany
Full name: Srdja Matovic

Re: Neural nets, nodes to features?

Post by smatovic »

Nice, thx :)

--
Srdja