king safety eval - interesting position

Discussion of chess software programming and technical issues.

Moderators: hgm, Rebel, chrisw

jdart
Posts: 4366
Joined: Fri Mar 10, 2006 5:23 am
Location: http://www.arasanchess.org

king safety eval - interesting position

Post by jdart »

This one has been in my files for a while:

[D] 5rnk/r2q2pp/3p2B1/2p1pPB1/p1PnP2Q/Pp1P2RP/1P4R1/6K1 b - -

Obviously the Black king is in some serious danger but my king safety function does not currently count the doubled Rooks as attacking the King, because of the presence of the two Bishops on the same file. In fact, only the Queen, Bishop on g6, and Pawn on f5 are counted as actual or potential attackers. Overall eval for King safety is about -0.75 pawns for Black.

I'm wondering if anyone evaluates this a lot higher and if so if it's worth considering White pieces "transparent" for the purposes of king safety eval (Arasan does this for stacked Rook/Queen or Bishop/Queen attackers but not in this case, because the bishops do not move in the same direction as rooks).
gladius
Posts: 568
Joined: Tue Dec 12, 2006 10:10 am
Full name: Gary Linscott

Re: king safety eval - interesting position

Post by gladius »

I'm not wise enough to resolve this over the board myself. Is there a winning plan here for white after 1. .. h6 2. Rf2 Rf6 3. Bxf6 Nxf6? As long as the queen defends the knight on f6, it seems to be a fortress.

Stockfish evaluates it almost exactly the same though:

Code: Select all

           Eval term |    White    |    Black    |     Total
                     |   MG    EG  |   MG    EG  |   MG     EG
---------------------+-------------+-------------+---------------
Material, PST, Tempo |   ---   --- |   ---   --- |   0.55   0.39
  Material imbalance |   ---   --- |   ---   --- |   0.13   0.13
               Pawns |   ---   --- |   ---   --- |  -0.06   0.14
             Knights |  0.00  0.00 |  0.26  0.26 |  -0.26  -0.26
             Bishops | -0.28 -0.35 |  0.00  0.00 |  -0.28  -0.35
               Rooks |  0.19  0.10 |  0.10  0.05 |  +0.10  +0.05
              Queens |  0.08  0.20 |  0.00  0.00 |  +0.08  +0.20
            Mobility |  0.40  0.83 |  0.29  1.25 |  +0.11  -0.42
         King safety |  0.12  0.00 | -0.78  0.00 |  +0.90  +0.00
             Threats |  0.24  0.44 |  0.00  0.00 |  +0.24  +0.44
        Passed pawns |  0.00  0.00 |  0.00  0.00 |  +0.00  +0.00
   Unstoppable pawns |   ---   --- |   ---   --- |  +0.00  +0.00
               Space |  0.17  0.00 |  0.14  0.00 |  +0.03  +0.00
---------------------+-------------+-------------+---------------
               Total |   ---   --- |   ---   --- |  +1.53  +0.32

Uncertainty margin: White: +0.00, Black: +1.41
Scaling:  81.25% MG,  18.75% * 100.00% EG.
Total evaluation: 1.29
jdart
Posts: 4366
Joined: Fri Mar 10, 2006 5:23 am
Location: http://www.arasanchess.org

Re: king safety eval - interesting position

Post by jdart »

To clarify, I don't claim there's a win for White here - I just suspect that this and similar positions may be mis-evaluated, statically.

--Jon
A Distel
Posts: 3618
Joined: Thu Dec 30, 2010 1:33 pm

Re: king safety eval - interesting position

Post by A Distel »

[D]5rnk/r2q2pp/3p2B1/2p1pPB1/p1PnP2Q/Pp1P2RP/1P4R1/6K1 b - - 0 1

Analysis by Vitruvius_1.0H_HEM_x64:

1...Nf6 2.Bxf6 gxf6 3.Bh5 Qe7 4.Bd1 Rc7 5.Rg6 Rcc8 6.Kh1 Rc7 7.Kh2 Rcc8 8.Qh6 Rc7 9.Rg1 Rd7 10.Qh4 Ra7 11.Qh5 Qf7 12.Qh6 Re7 13.R1g2 Rc7 14.Rg1 Ra7 15.Qh4 Qe7
= (0.17) Depth: 20 00:00:01 9261kN
1...Nf6 2.Bxf6 gxf6 3.Bh5 Qe7 4.Bd1 Rc7 5.Rg6 Qd8 6.Kh2 Qe7 7.Kh1 Qd8 8.Qh6 Qe7 9.Qh4
= (0.25 --) Depth: 21 00:00:01 15291kN
1...Nf6 2.Bxf6 gxf6 3.Bh5 Qe7 4.Bd1 Rc7 5.Rg6 Qd8 6.Kh2 Qe7 7.Kh1 Qd8 8.Qh6 Qe7 9.Qh4
+/= (0.33 --) Depth: 21 00:00:02 19282kN
1...Nf6 2.Bxf6 gxf6 3.Bh5 Qe7 4.Bd1 Rc7 5.Rg6 Qd8 6.Kh2 Qe7 7.Kh1 Qd8 8.Qh6 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8 11.Rfg2 Qd8 12.Bh5 Qf8
+- (2.30) Depth: 25/27 00:00:58 396mN
1...h6 2.Rf2 Rf6 3.Bxf6 Nxf6 4.Bh5 Qd8 5.Rfg2 Qf8 6.Kh2 Qd8 7.Rg1 Re7 8.R3g2 Ra7 9.Bd1 Qf8 10.Rf2 Qc8 11.Rfg2 Qd8 12.Bh5 Qf8 13.Rg3
+- (2.30) Depth: 26/27 00:01:33 641mN
(28.03.2012)
User avatar
pocopito
Posts: 238
Joined: Tue Jul 12, 2011 1:31 pm

Re: king safety eval - interesting position

Post by pocopito »

From a human player point of view I'd take into account just the friendly pieces (black ones in this case) in order to evaluate the king security in the case of being near to a semiopen file.
Maybe counting white pieces as "semitransparent" in this kind of positions can be an approach worth to be tested.

PS: I'm assuming your question is for the general case, being this very position is a good example.
Two first meanings of the dutch word "leren":
1. leren [vc] (learn, larn, acquire) acquire or gain knowledge or skills.
2. leren [v] (teach, learn, instruct) impart skills or knowledge to.
diep
Posts: 1822
Joined: Thu Mar 09, 2006 11:54 pm
Location: The Netherlands

Re: king safety eval - interesting position

Post by diep »

jdart wrote:This one has been in my files for a while:

[D] 5rnk/r2q2pp/3p2B1/2p1pPB1/p1PnP2Q/Pp1P2RP/1P4R1/6K1 b - -

Obviously the Black king is in some serious danger but my king safety function does not currently count the doubled Rooks as attacking the King, because of the presence of the two Bishops on the same file. In fact, only the Queen, Bishop on g6, and Pawn on f5 are counted as actual or potential attackers. Overall eval for King safety is about -0.75 pawns for Black.

I'm wondering if anyone evaluates this a lot higher and if so if it's worth considering White pieces "transparent" for the purposes of king safety eval (Arasan does this for stacked Rook/Queen or Bishop/Queen attackers but not in this case, because the bishops do not move in the same direction as rooks).
Yes i don't even need to test this, Diep will give some huge major bonus for attack here for the reasons you gave and a couple of others.

It's very tricky to get that to work though. Some 'cheapo code' won't help there. Will be major slowdown of your eval to fix it. Took me years to get somehow to work.

One of first victims of this code was Uri Blass in 2004.

He was talking about hardware there in all his forumposts, but if you look at the game it was an evaluation thing that worked well :)

You only need to look at the 1 ply evaluation here of an engine.

Score obviously from side to move viewpoint:
00:00 200 2 0 1 (0,0) -MATE01 Nd4xf5 Qh4xh7
00:00 500 5 0 1 (0,0) -3.765 h7-h6
00:00 800 8 0 1 (0,0) -2.604 Ng8-f6
00:00 7600 76 0 2 (0,1) -3.483 Ng8-f6 Kg1-h2
++ g8-h6 procnr=0 terug=-3465 org=[-3483;-3482] newwindow=[-3483;520000]
00:00 25400 254 0 2 (0,1) -3.279 Ng8-h6 Bg6-h5
00:00 53000 1060 0 3 (0,2) -2.263 Ng8-h6 f5-f6 h7xg6 f6xg7 Qd7xg7 Bg5xh6
00:00 85000 3400 0 4 (0,3) -2.263 Ng8-h6 f5-f6 h7xg6 f6xg7 Qd7xg7 Bg5xh6
00:00 107221 15011 0 5 (0,4) -3.408 Ng8-h6 f5-f6 Qd7-e6 Rg2-f2 Kh8-g8
++ g8-f6 procnr=0 terug=-3407 org=[-3408;-3407] newwindow=[-3408;520000]
00:00 104276 17727 0 5 (0,4) -2.809 Ng8-f6 Kg1-h1 Kh8-g8 Bg5xf6 h7xg6 Rg3xg6

In itself each individual pattern i usually give a very careful score, the huge scores Diep produces usually are a result of the vaste amount of patterns; this is why Diep needs total retuning today as well, as in positions with just 1 simple thing where the Rybka clones just give 1 massive bonus or penalty, you want to be tuned to the same level; am guessing better tuning really can improve it a lot.

How many games do you need to play to see the difference in tuning of 1 individual pattern in diep that has very little relevance to the overall value?

100 million games?

Note here is rest of output. Doing this on my laptop single core it overheats to 100 celcius. Not sure how i managed to play some games with it back in 2007. I hardly ever run Diep at laptop :)

00:00 109664 33996 0 6 (0,5) -2.051 Ng8-f6 Kg1-f2 Qd7-b7 Kf2-f1 Kh8-g8 Bg5xf6 h7xg6 Rg3xg6
00:00 120724 54326 0 7 (0,6) -1.842 Ng8-f6 Kg1-h1 Qd7-b7 Kh1-h2 Kh8-g8 Bg5xf6 h7xg6 Rg3xg6 Nd4-f3 Kh2-g3
00:00 125316 122810 0 8 (0,7) -2.051 Ng8-f6 Kg1-f1 Qd7-c7 Kf1-f2 Qc7-b7 Kf2-f1 Kh8-g8 Bg5xf6 h7xg6 Rg3xg6
00:01 128995 248961 0 9 (0,8) -2.073 Ng8-f6 Kg1-f2 Qd7-b7 Rg2-g1 Ra7-a8 Kf2-e3 Nd4-c2 Ke3-d2 Nc2-d4 Bg5-e3
00:03 130764 407985 0 10 (0,9) -2.208 Ng8-f6 Kg1-f2 Qd7-b7 Rg2-g1 Ra7-a8 Rg3-g2 Kh8-g8 Bg5xf6 h7xg6 Bf6xg7
00:04 133873 655982 0 11 (0,10) -1.806 Ng8-f6 Kg1-f2 Qd7-b7 Rg2-g1 Qb7-d7 Kf2-e3 Nd4-c2 Ke3-e2 Nc2-d4 Ke2-f2 Kh8-g8 Bg5xf6 h7xg6 Bf6xg7 Qd7xg7 Rg3xg6 Ra7-d7

133k nps single core. Bah no good for a core2 derivative :)
diep
Posts: 1822
Joined: Thu Mar 09, 2006 11:54 pm
Location: The Netherlands

Re: king safety eval - interesting position

Post by diep »

jdart wrote:To clarify, I don't claim there's a win for White here - I just suspect that this and similar positions may be mis-evaluated, statically.

--Jon
I don't think it is relevant whether there is a win here.

h6 is a move i never play as a human here. directly 1-0 longterm i would guess.

Of course if it calculates the rest is even worse then so be it :)

The tricky thing in this position is that even if you win something kingside with white, queenside you never win here; so white needs to get through at kingside and if you manage to give away material and keep it solid closed there it's a draw.

My laptop 101C if i try h6.
That's not an eval, that's temperature of the laptop.
Macbookpro 17'', apple only designs stuff and sells it, never measures whether it's performing. Look to above when you want to complain about that.

In the small search depth diep reaches at this laptop single core with throttling (normal core2 at 2.4Ghz gets 200k nps single core handsdown here, though apple also only has oldie GCC, not the 4.7 that i use under linux in office), you see it wants to sacrafice at h6, so it is undertaking action.

Please note that anything i posted here might not win elo for your engine.

It is all nice what diep is doing here, but to win games with it, is yet another issue...

black timeleft=1:30.00.00
- = - = - r n k h7-h6 1 ...
r - = q = - o - ... 2 ...
- = - o - = B o ... 3 ...
= - o - o O B - ... 4 ...
o = O n O = - Q ... 5 ...
O o = O = - R O ... 6 ...
- O - = - = R = ... 7 ...
= - = - = - K - ... 8 ...
white timeleft=1:30.00.00
white to move type 'help' for command overview

anal
Analysis mode is on
putting engine to search errorlevel=0!
00:00 3 3 0 1 (0,0) -1.354 Bg5xh6 g7xh6
00:00 4 4 0 1 (0,0) 1.351 Rg2-h2
00:00 5 5 0 1 (0,0) 4.051 Bg5-e3
00:00 16 16 0 1 (0,0) 4.146 Kg1-h1
00:00 18 18 0 1 (0,0) 4.489 Kg1-h2
00:00 136 136 0 2 (0,1) 4.220 Kg1-h2 Ng8-e7
00:00 53600 536 0 3 (0,2) 4.341 Kg1-h2 Ng8-e7 Bg5xh6 Ne7xg6 Bh6xg7 Kh8xg7 Rg3xg6 Kg7-f7 Rg6-g7 Kf7-e8 Rg7xd7 Nd4-f3 Kh2-g3 Nf3xh4 Rd7xa7 Nh4xg2 Kg3xg2
00:00 53175 2127 0 4 (0,3) 3.717 Kg1-h2 Ng8-f6 Bg5-e3 Qd7-b7
++ g1-h1 procnr=0 terug=3718 org=[3717;3718] newwindow=[3717;520000]
00:00 55300 3871 0 4 (0,3) 4.140 Kg1-h1 Qd7-b7 Kh1-h2 Ng8-e7
00:00 63394 12045 0 5 (0,4) 3.828 Kg1-h1 Rf8-f6 Bg5-e3 Ng8-e7 Bg6-h5
++ g1-h2 procnr=0 terug=3829 org=[3828;3829] newwindow=[3828;520000]
00:00 63445 15227 0 5 (0,4) 3.944 Kg1-h2 Ng8-f6 Rg2-g1 Qd7-d8 Bg5-e3
00:00 66575 26630 0 6 (0,5) 3.692 Kg1-h2 Ng8-f6 Bg5-e3 Ra7-b7 Rg2-g1 Rb7-b8
++ g1-h1 procnr=0 terug=3693 org=[3692;3693] newwindow=[3692;520000]
00:01 75077 81834 0 7 (0,6) 3.677 Kg1-h2 Qd7-b7 Bg5-e3 Ng8-f6 Be3-d2 Ra7-a8 Bd2-e3
++ g1-h1 procnr=0 terug=3678 org=[3677;3678] newwindow=[3677;520000]
00:01 83646 159764 0 8 (0,7) 3.560 Kg1-h2 Qd7-b7 Bg5-e3 Ng8-f6 Be3-d2 Ra7-a8 Bd2-g5 Kh8-g8
++ g1-h1 procnr=0 terug=3561 org=[3560;3561] newwindow=[3560;520000]
00:02 88777 223720 0 8 (0,7) 3.627 Kg1-h1 Qd7-b7 Kh1-h2 Ng8-f6 Bg5-e3 Ra7-a8 Rg2-g1 Ra8-b8
00:04 100096 438422 0 9 (0,8) 2.720 Kg1-h1 Nd4-c6 Kh1-h2 Nc6-e7 Bg5-e3 Ne7xg6 Rg3xg6 Rf8-f6 Rg6-g4
++ g1-h2 procnr=0 terug=2721 org=[2720;2721] newwindow=[2720;520000]
00:06 108333 722584 0 9 (0,8) 2.825 Kg1-h2 Nd4-c6 Rg2-g1 Nc6-e7 Bg5-e3 Ne7xg6 Rg3xg6 Rf8-f6 Rg6-g2
00:08 114550 1002316 0 10 (0,9) 2.441 Kg1-h2 Nd4-c6 f5-f6 Rf8xf6 Bg5xf6 Ng8xf6 Bg6-f5 Qd7-e7 Rg3xg7 Qe7xg7 Rg2xg7 Kh8xg7
++ g1-h1 procnr=0 terug=2442 org=[2441;2442] newwindow=[2441;520000]
++ g2-f2 procnr=0 terug=2442 org=[2441;2442] newwindow=[2441;520000]
00:19 122405 2377109 0 11 (0,10) 2.441 Kg1-h2 Nd4-c6 f5-f6 Rf8xf6 Bg5xf6 Ng8xf6 Bg6-f5 Qd7-e7 Rg3xg7 Qe7xg7 Rg2xg7 Kh8xg7
++ g2-f2 procnr=0 terug=2442 org=[2441;2442] newwindow=[2441;520000]
00:35 127208 4575695 0 12 (0,11) 2.201 Kg1-h2 Nd4-c6 Bg5-d2 Qd7-d8 Qh4-g4 Ng8-f6 Qg4-f3 Qd8-c7 Rg2-g1 Nc6-e7 Bg6-h5 Ne7-c6
++ g1-h1 procnr=0 terug=2202 org=[2201;2202] newwindow=[2201;520000]
00:40 128823 5228962 0 12 (0,11) 2.431 Kg1-h1 Nd4-c6 f5-f6 Rf8xf6 Bg5xf6 Ng8xf6 Bg6-f5 Qd7-f7 Rg3xg7 Qf7xg7 Rg2xg7 Kh8xg7
++ g2-f2 procnr=0 terug=2432 org=[2431;2432] newwindow=[2431;520000]
01:11 130490 9268712 0 13 (0,12) 2.551 Kg1-h1 Nd4-c6 f5-f6 Rf8xf6 Bg5xf6 Ng8xf6 Bg6-f5 Qd7-f7 Rg3xg7 Qf7xg7 Rg2xg7 Kh8xg7 Qh4-f2
01:22 133921 11036488 0 14 (0,13) 2.692 Kg1-h1 Nd4-c6 f5-f6 Rf8xf6 Bg5xf6 Ng8xf6 Bg6-f5 Qd7-f7 Rg3xg7 Qf7xg7 Rg2xg7 Kh8xg7 Qh4-g3 Kg7-h8 Qg3-g6
03:36 129064 27977368 0 15 (0,14) 2.527 Kg1-h1 Qd7-c7 Bg5-e3 Qc7-d8 Qh4-g4 Ng8-f6 Qg4-d1 Nd4-c6 Qd1-d2 Nc6-e7 Be3xh6 Ne7xg6 Rg3xg6 g7xh6 Qd2xh6 Ra7-h7
diep
Posts: 1822
Joined: Thu Mar 09, 2006 11:54 pm
Location: The Netherlands

Re: king safety eval - interesting position

Post by diep »

auch i see 0 extensions turned on on laptop i don't want it another 100+ celcius though. will try one of the 8 core nodes later.
CRoberson
Posts: 2055
Joined: Mon Mar 13, 2006 2:31 am
Location: North Carolina, USA

Re: king safety eval - interesting position

Post by CRoberson »

In this position, I coded Telepath to give bonus points for the rooks being on a semi-open file, a few more bonus points for being on a
semi-open file near the opposing king where it is the opponents pawns that are the reason it being semi-open (IOW, the rooks are attacking).

As a human chess player, I consider the bishops as mobile and temporarily blocking the rooks, so the rooks must get a bonus (small one). This helps the program position the rooks there instead of another semi-open file elsewhere. Given the bonus is relatively small, points are gained by moving the bishops and getting direct attacks.

The OLD chess axiom that applies here is "... don't move the pawns on the side where you are being attacked ...". Telepath plays ...Nf6 after 21 ply.