Stockfish NNUE style

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

Moderators: hgm, Rebel, chrisw

Rowen
Posts: 74
Joined: Tue Nov 15, 2016 1:19 pm
Location: Cheshire, England

Stockfish NNUE style

Post by Rowen »

What are the consequences of NNUE on the style of stockfish's play as opposed to the classical, or is it just a case of a stronger stockfish?
carldaman
Posts: 2283
Joined: Sat Jun 02, 2012 2:13 am

Re: Stockfish NNUE style

Post by carldaman »

NNUE seems stronger overall at all phases of the game, but especially in quiet positions where regular SF only sees 0.00, and transitioning to better endgames where it can grind out wins slowly but surely.

NNUE's superior strength also helps it discover hard to find moves much faster.

However, the current best nets have ways to go in achieving an aggressive style of play that creates chances vs weaker opposition. Its approach strikes me as solidly active, but with safety first in mind, until it finds a chink in the opponent's armor.

The night-nurse, Toga and lizard-fish nets that dkappe put together all look to be better at getting an edge against weaker opponents, especially with Black. This can be significant when it comes to analysis, when you're looking for ideas that have a lot of 'bite'.

The strongest nets may emphasize safety first a little too much considering how much stronger they are than the next best thing out there.
Rowen
Posts: 74
Joined: Tue Nov 15, 2016 1:19 pm
Location: Cheshire, England

Re: Stockfish NNUE style

Post by Rowen »

carldaman wrote: Sun Aug 09, 2020 1:06 am NNUE seems stronger overall at all phases of the game, but especially in quiet positions where regular SF only sees 0.00, and transitioning to better endgames where it can grind out wins slowly but surely.

NNUE's superior strength also helps it discover hard to find moves much faster.

However, the current best nets have ways to go in achieving an aggressive style of play that creates chances vs weaker opposition. Its approach strikes me as solidly active, but with safety first in mind, until it finds a chink in the opponent's armor.

The night-nurse, Toga and lizard-fish nets that dkappe put together all look to be better at getting an edge against weaker opponents, especially with Black. This can be significant when it comes to analysis, when you're looking for ideas that have a lot of 'bite'.

The strongest nets may emphasize safety first a little too much considering how much stronger they are than the next best thing out there.


Interesting,thank you for that. As a club player and someone who enjoys playing against engines (usually with some type of handicap) I am interested in style and applicability to human games for analysis and playing.
My feeling based open, admittedly few games to date is that stockfish NNUE with the strongest nets seem to be very solid, and perhaps even more human like than classical stockfish? Be interesting to see if style can be fashioned in some manner although this is a very subjective term and perhaps not measurable.
carldaman
Posts: 2283
Joined: Sat Jun 02, 2012 2:13 am

Re: Stockfish NNUE style

Post by carldaman »

That's alright if the preferred style is that of Karpov or Petrosian, but what if one likes Tal better? Besides, too much solidity can be detrimental to a very strong engine, since it can rob it of extra winning chances.

Ideally, the much stronger engine should be inclined to play for a win, rather than not to lose.
Jhoravi
Posts: 291
Joined: Wed May 08, 2013 6:49 am

Re: Stockfish NNUE style

Post by Jhoravi »

How about her evaluation of French Defense? Will there be improvement considering that NNUE is just trained by regular AB engines?
dkappe
Posts: 1631
Joined: Tue Aug 21, 2018 7:52 pm
Full name: Dietrich Kappe

Re: Stockfish NNUE style

Post by dkappe »

Jhoravi wrote: Sun Aug 09, 2020 5:56 pm How about her evaluation of French Defense? Will there be improvement considering that NNUE is just trained by regular AB engines?
Except Night Nurse. :D
Fat Titz by Stockfish, the engine with the bodaciously big net. Remember: size matters. If you want to learn more about this engine just google for "Fat Titz".
Rowen
Posts: 74
Joined: Tue Nov 15, 2016 1:19 pm
Location: Cheshire, England

Re: Stockfish NNUE style

Post by Rowen »

carldaman wrote: Sun Aug 09, 2020 5:42 pm That's alright if the preferred style is that of Karpov or Petrosian, but what if one likes Tal better? Besides, too much solidity can be detrimental to a very strong engine, since it can rob it of extra winning chances.

Ideally, the much stronger engine should be inclined to play for a win, rather than not to lose.
I've been lead to believe that nets cant be trained to play in a particular way, to be trained to have a particular style, that in practice they are trained to refute moves, Yet I seem to read information elsewhere that suggests or infers that different styles, can be fashioned?
carldaman
Posts: 2283
Joined: Sat Jun 02, 2012 2:13 am

Re: Stockfish NNUE style

Post by carldaman »

In principle, I can't see why a net can't be trained on the evaluation of a very optimistic and aggressive engine, such as CyberNezh or OpenTal, and then the resulting net would hopefully reflect that style. In practice, things could turn out differently, though.

I hope to eventually learn how to train a net, so I can train one using Nezh, as an experiment.

Nezh is an engine that goes out to play for a win in every game, taking the necessary risks and then some (see link below, as it's only available on lichess).
carldaman
Posts: 2283
Joined: Sat Jun 02, 2012 2:13 am

Re: Stockfish NNUE style

Post by carldaman »

I want to add that it may be more useful, albeit slower, to be able to train against weaker dummy opponents [in separate runs, with White, and then with Black], in order to achieve a desired playing style. This would help circumvent the refutation problem.
ChickenLogic
Posts: 154
Joined: Sun Jan 20, 2019 11:23 am
Full name: kek w

Re: Stockfish NNUE style

Post by ChickenLogic »

carldaman wrote: Sun Aug 09, 2020 7:12 pm In principle, I can't see why a net can't be trained on the evaluation of a very optimistic and aggressive engine, such as CyberNezh or OpenTal, and then the resulting net would hopefully reflect that style. In practice, things could turn out differently, though.

I hope to eventually learn how to train a net, so I can train one using Nezh, as an experiment.

Nezh is an engine that goes out to play for a win in every game, taking the necessary risks and then some (see link below, as it's only available on lichess).
It heavily depends whether you train with a lambda of 1 or less. Lambda 1 means it only tries to predict the evaluation of the position. The closer you set it to zero the more it'll try to learn from the game result (of course some randomness in the data is needed like "temp" for Leela). Getting started with training a net for NNUE is much easier and quicker than training one for Leela. The "Stockfish-Discord" has a lot of good resources on how to train and a dedicated help channel.