Stockfish - Initial position, MultiPV Mode=20, Depth=50

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

Moderator: Ras

duncan
Posts: 12038
Joined: Mon Jul 07, 2008 10:50 pm

Re: Stockfish - Initial position, MultiPV Mode=20, Depth=50

Post by duncan »

corres wrote:
Lyudmil Tsvetkov wrote:
it might be the case that 1.c4 is winning altogether, at least in some 90% of lines.
You are a 1.c4 fan, as we know.
Nowadays 1.c4 is not a modish opening and this is the only one advantage for it.
delete
corres wrote: and last /quote]
Uri Blass
Posts: 10887
Joined: Thu Mar 09, 2006 12:37 am
Location: Tel-Aviv Israel

Re: Stockfish - Initial position, MultiPV Mode=20, Depth=50

Post by Uri Blass »

After 1.g4 with 20 options(from the worst to the best)

best move seems to be clearly 1...d5 and by a big margin relative to 1...e5

[d]rnbqkbnr/pppppppp/8/8/6P1/8/PPPPPP1P/RNBQKBNR b KQkq g3 0 1

Stockfish_17062123_x64_modern:
33/50 2:24:53 21,849,306k 2,513k -0.56 1. ... f5 2.gxf5 d5 3.e4 g6 4.fxg6 hxg6 5.Bg2 d4 6.Qf3 e5 7.Qg3 Qf6 8.d3 Qg7 9.Nf3 Nc6 10.h4 Bd7 11.Bh3 0-0-0 12.Bg5 Bb4+ 13.Nbd2 Nf6 14.0-0-0 Bxd2+ 15.Rxd2 Bxh3 16.Rxh3 Rde8 17.Kb1 Nh5 18.Qg4+ Kb8 19.a3
33/50 2:24:53 21,849,306k 2,513k -0.27 1. ... Nh6 2.h3 d5 3.d4 e6 4.Nc3 Ng8 5.e4 Nc6 6.e5 h5 7.gxh5 Bd7 8.a3 Qe7 9.Be3 0-0-0 10.Nge2 f6 11.f4 Rxh5 12.Qd2 Qf7 13.Ng3 Rh4 14.0-0-0 Nge7 15.Kb1 Kb8 16.Bd3 fxe5 17.dxe5 g6 18.Qf2
33/50 2:24:53 21,849,306k 2,513k -0.08 1. ... g5 2.d4 d5 3.h3 h5 4.gxh5 Rxh5 5.e4 g4 6.Nc3 dxe4 7.Nxe4 Nf6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, 2015 11:41 am
Location: hungary

Re: Stockfish - Initial position, MultiPV Mode=20, Depth=50

Post by corres »

[quote="cdani"]

But from time to time I feel the need to say that Stockfish is very far from perfection. For example many times wining an endgame requires to do non standard things, so general tuning will prevent the engine to see such win, specially from a very previous position.

[/quote]

You are right, Stockfish has a lot of weak sides.
But this is not a tuning issue.
These cause the lack of the appropriate logic from the source code.
However writing this missing logic into the code this yields a more slower and generally more weaker Stockfish.
User avatar
cdani
Posts: 2204
Joined: Sat Jan 18, 2014 10:24 am
Location: Andorra

Re: Stockfish - Initial position, MultiPV Mode=20, Depth=50

Post by cdani »

corres wrote:
cdani wrote:
But from time to time I feel the need to say that Stockfish is very far from perfection. For example many times wining an endgame requires to do non standard things, so general tuning will prevent the engine to see such win, specially from a very previous position.
You are right, Stockfish has a lot of weak sides.
But this is not a tuning issue.
These cause the lack of the appropriate logic from the source code.
However writing this missing logic into the code this yields a more slower and generally more weaker Stockfish.
Sure. More code is required :-) I simplified the phrase.

Example:
[d]6k1/p7/1q2p1p1/1P1PBb2/5P2/7P/5QP1/6K1 w - - 0 42

Stockfish and Komodo struggle to find a win as sure other engines, and Andscacs can find one relatively fast. The key is to exchange the queens plus doing the g4 move, and as most engines have a big plain penalization for different color bishop endgames, they don't realize it.

Code: Select all

Andscacs 0.91:
info depth 26 seldepth 42 score cp 289 nodes 14405850 nps 1523783 tbhits 0 time
9454 pv e5d4 b6d6 d5e6 f5e6 d4a7 e6d7 a7c5 d6d5 b5b6 d7c6 g1h2 g8f7 c5a3 c6b7 f2
g3 d5f5 a3b2 f7e8 b2c3 f5b1 c3d4 b1e4 d4e5 e4c2 g3g4 b7d5 g4g5 c2f5 g5g3
info depth 26 currmove g2g4 currmovenumber 3
info depth 26 currmove e5f6 currmovenumber 7
info depth 27 currmove e5d4 currmovenumber 1
info depth 27 seldepth 51 score cp 305 lowerbound nodes 17548918 nps 1519913 tbh
its 0 time 11546 pv e5d4
info depth 27 currmove e5d4 currmovenumber 1
info depth 27 seldepth 59 score cp 321 lowerbound nodes 35732492 nps 1511398 tbh
its 0 time 23642 pv e5d4
info depth 27 currmove e5d4 currmovenumber 1
info depth 27 currmove g2g4 currmovenumber 2
info depth 27 seldepth 65 score cp 345 lowerbound nodes 56276154 nps 1506764 tbh
its 0 time 37349 pv g2g4
info depth 27 currmove g2g4 currmovenumber 1
info depth 27 seldepth 45 score cp 381 lowerbound nodes 59066754 nps 1512128 tbh
its 0 time 39062 pv g2g4
info depth 27 currmove g2g4 currmovenumber 1
info depth 27 seldepth 51 score cp 435 lowerbound nodes 61824257 nps 1517681 tbh
its 0 time 40736 pv g2g4
info depth 27 currmove g2g4 currmovenumber 1
info depth 27 seldepth 54 score cp 516 lowerbound nodes 66230815 nps 1527146 tbh
its 0 time 43369 pv g2g4
info depth 27 currmove g2g4 currmovenumber 1
info depth 27 seldepth 65 score cp 637 lowerbound nodes 71890476 nps 1542780 tbh
its 0 time 46598 pv g2g4
Stockfish don't find it, at least with the time I tried.

Different color bishop endgames require more code that a single penalization, as many times can be won and nobody notices it.
Milos
Posts: 4190
Joined: Wed Nov 25, 2009 1:47 am

Re: Stockfish - Initial position, MultiPV Mode=20, Depth=50

Post by Milos »

cdani wrote:Sure. More code is required :-) I simplified the phrase.

Example:
[d]6k1/p7/1q2p1p1/1P1PBb2/5P2/7P/5QP1/6K1 w - - 0 42

Stockfish and Komodo struggle to find a win as sure other engines, and Andscacs can find one relatively fast. The key is to exchange the queens plus doing the g4 move, and as most engines have a big plain penalization for different color bishop endgames, they don't realize it.

Code: Select all

Andscacs 0.91:
info depth 26 seldepth 42 score cp 289 nodes 14405850 nps 1523783 tbhits 0 time
9454 pv e5d4 b6d6 d5e6 f5e6 d4a7 e6d7 a7c5 d6d5 b5b6 d7c6 g1h2 g8f7 c5a3 c6b7 f2
g3 d5f5 a3b2 f7e8 b2c3 f5b1 c3d4 b1e4 d4e5 e4c2 g3g4 b7d5 g4g5 c2f5 g5g3
info depth 26 currmove g2g4 currmovenumber 3
info depth 26 currmove e5f6 currmovenumber 7
info depth 27 currmove e5d4 currmovenumber 1
info depth 27 seldepth 51 score cp 305 lowerbound nodes 17548918 nps 1519913 tbh
its 0 time 11546 pv e5d4
info depth 27 currmove e5d4 currmovenumber 1
info depth 27 seldepth 59 score cp 321 lowerbound nodes 35732492 nps 1511398 tbh
its 0 time 23642 pv e5d4
info depth 27 currmove e5d4 currmovenumber 1
info depth 27 currmove g2g4 currmovenumber 2
info depth 27 seldepth 65 score cp 345 lowerbound nodes 56276154 nps 1506764 tbh
its 0 time 37349 pv g2g4
info depth 27 currmove g2g4 currmovenumber 1
info depth 27 seldepth 45 score cp 381 lowerbound nodes 59066754 nps 1512128 tbh
its 0 time 39062 pv g2g4
info depth 27 currmove g2g4 currmovenumber 1
info depth 27 seldepth 51 score cp 435 lowerbound nodes 61824257 nps 1517681 tbh
its 0 time 40736 pv g2g4
info depth 27 currmove g2g4 currmovenumber 1
info depth 27 seldepth 54 score cp 516 lowerbound nodes 66230815 nps 1527146 tbh
its 0 time 43369 pv g2g4
info depth 27 currmove g2g4 currmovenumber 1
info depth 27 seldepth 65 score cp 637 lowerbound nodes 71890476 nps 1542780 tbh
its 0 time 46598 pv g2g4
Stockfish don't find it, at least with the time I tried.

Different color bishop endgames require more code that a single penalization, as many times can be won and nobody notices it.
SF fails just because of too aggressive pruning, it has nothing to do with opposite coloured bishops.
Simple Qxb6 needs depth of 20 to get over initial score of other moves so it ends up pruned with LMR at root already and you'd need depth of over 80 probably before it gets searched deep enough to jump in front.
If you force Qxb6 SF soon sees mate score.
Also if you search with already MPV3 Qxb6 comes on top almost instantly.

Btw. g4 is also a win coz you force queen exchange a move later, so it becomes a transposition ;).
User avatar
cdani
Posts: 2204
Joined: Sat Jan 18, 2014 10:24 am
Location: Andorra

Re: Stockfish - Initial position, MultiPV Mode=20, Depth=50

Post by cdani »

Milos wrote: SF fails just because of too aggressive pruning, it has nothing to do with opposite coloured bishops.
It has to do with opposite coloured bishops because the pruned moves are the ones with less eval. And Andscacs gives more eval to this bishop endgame due to better eval coding of this endgame.
If I remove the extra eval code of Andscacs or I tune it different, it also does not find the idea.
The engines will always aggressively prune, as they have no other way to go deep enough.
Milos
Posts: 4190
Joined: Wed Nov 25, 2009 1:47 am

Re: Stockfish - Initial position, MultiPV Mode=20, Depth=50

Post by Milos »

cdani wrote:
Milos wrote: SF fails just because of too aggressive pruning, it has nothing to do with opposite coloured bishops.
It has to do with opposite coloured bishops because the pruned moves are the ones with less eval. And Andscacs gives more eval to this bishop endgame due to better eval coding of this endgame.
If I remove the extra eval code of Andscacs or I tune it different, it also does not find the idea.
The engines will always aggressively prune, as they have no other way to go deep enough.
Well if you disable LMR SF also finds it quickly without any modification of eval. So it's the way how you look at it.
User avatar
cdani
Posts: 2204
Joined: Sat Jan 18, 2014 10:24 am
Location: Andorra

Re: Stockfish - Initial position, MultiPV Mode=20, Depth=50

Post by cdani »

Milos wrote: Well if you disable LMR SF also finds it quickly without any modification of eval. So it's the way how you look at it.
Of course, but my solution increases the strength of the engine (the added code was a win), and disabling lmr decreases it.
User avatar
cdani
Posts: 2204
Joined: Sat Jan 18, 2014 10:24 am
Location: Andorra

Re: Stockfish - Initial position, MultiPV Mode=20, Depth=50

Post by cdani »

If anyone is interested, this is my current best version, which plays quite better different color bishop endgames, and in general is 5 maybe 10 elo stronger than 0.91.
http://www.andscacs.com/downloads/andscacs091132.zip
Henk
Posts: 7251
Joined: Mon May 27, 2013 10:31 am

Re: Stockfish - Initial position, MultiPV Mode=20, Depth=50

Post by Henk »

We're only interested in Komodo, Shredder, Jonny and Chiron.