Natural TB

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

Moderators: hgm, Rebel, chrisw

mcostalba
Posts: 2684
Joined: Sat Jun 14, 2008 9:17 pm

Re: Natural TB

Post by mcostalba »

jhellis3 wrote:Here is the fix applied to vanilla SF if anyone is interested:

https://github.com/jhellis3/Stockfish/tree/tb_fix_1

[D]8/2P1P3/3k4/8/8/4K3/P2p1p2/8 b - -

512MB Hash, Single Thread:

Vanilla (with TBs) @ ~200 seconds: Depth 51, score +123.xx, short line displayed

Patch @ ~200 seconds: Depth 49, score Mate in 14, full line displayed (starts returning mate scores at d31)

Vanilla (sans TBs) @ ~80 seconds: Depth 40, score Mate in 14, full line displayed (starts returning mate scores at d35)

Natural TB finds the mate in 14 in at depth 46 (same conditions as yours 512MB hash, single core). Starts returning mate scores at d30

Code: Select all

1...f2-f1Q 2.c7-c8Q Qf1-e1+ 3.Ke3-f4 Qe1xe7 
  -+  (-2.06)   Depth: 2/2   00:00:00
1...d2-d1Q 2.c7-c8N+ Kd6-d7 3.e7-e8B+ Kd7xe8 
  -+  (-6.46)   Depth: 3/5   00:00:00
1...d2-d1Q 2.c7-c8N+ Kd6-d7 3.e7-e8B+ Kd7xe8 
  -+  (-6.46)   Depth: 4/6   00:00:00
1...d2-d1Q 2.c7-c8N+ Kd6-d7 3.e7-e8B+ Kd7xe8 
  -+  (-6.46)   Depth: 4/6   00:00:00
1...d2-d1Q 2.e7-e8N+ Kd6-e7 3.Ke3xf2 Qd1-c2+ 4.Kf2-e3 Ke7xe8 
  -+  (-7.87)   Depth: 5/7   00:00:00
1...d2-d1Q 2.e7-e8N+ Kd6-e7 3.Ke3xf2 Qd1-c2+ 4.Kf2-e3 Ke7xe8 5.c7-c8N Qc2xc8 
  -+  (-9.45)   Depth: 6/8   00:00:00  10kN, tb=394
1...d2-d1Q 2.e7-e8N+ Kd6-e7 3.Ke3xf2 Qd1-c2+ 4.Kf2-e3 Ke7xe8 5.c7-c8N Qc2xc8 
  -+  (-9.45)   Depth: 7/10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kN, tb=200848
1...d2-d1Q 
  -+  (-49.50)   Depth: 26/34   00:00:07  18824kN, tb=201493
1...d2-d1Q 
  -+  (-49.70)   Depth: 26/34   00:00:07  19204kN, tb=201721
1...d2-d1Q 
  -+  (-49.97)   Depth: 26/34   00:00:07  19821kN, tb=202620
1...d2-d1Q 
  -+  (-50.33)   Depth: 26/34   00:00:08  19998kN, tb=202755
1...d2-d1Q 
  -+  (-50.79)   Depth: 26/34   00:00:08  20408kN, tb=203372
1...d2-d1Q 
  -+  (-51.39)   Depth: 26/34   00:00:08  20551kN, tb=203413
1...d2-d1Q 
  -+  (-52.16)   Depth: 26/34   00:00:08  20910kN, tb=204001
1...d2-d1Q 
  -+  (-53.14)   Depth: 26/36   00:00:08  21599kN, tb=206535
1...d2-d1Q 
  -+  (-54.38)   Depth: 26/36   00:00:09  22260kN, tb=207538
1...d2-d1Q 
  -+  (-55.95)   Depth: 26/36   00:00:09  22828kN, tb=208763
1...d2-d1Q 
  -+  (-57.93)   Depth: 26/36   00:00:09  23398kN, tb=209027
1...d2-d1Q 2.e7-e8N+ 
  -+  (-54.75)   Depth: 26/36   00:00:09  24096kN, tb=226630
1...d2-d1Q 
  -+  (-58.36)   Depth: 26/36   00:00:09  24213kN, tb=226651
1...d2-d1Q 
  -+  (-62.29)   Depth: 26/36   00:00:10  24390kN, tb=226665
1...d2-d1Q 
  -+  (-67.22)   Depth: 26/36   00:00:10  24553kN, tb=226754
1...d2-d1Q 
  -+  (-73.41)   Depth: 26/36   00:00:10  24738kN, tb=227363
1...d2-d1Q 
  -+  (-81.16)   Depth: 26/36   00:00:10  24806kN, tb=227365
1...d2-d1Q 
  -+  (-90.87)   Depth: 26/36   00:00:10  24859kN, tb=227365
1...d2-d1Q 
  -+  (-103.03)   Depth: 26/36   00:00:10  24913kN, tb=227377
1...d2-d1Q 
  -+  (-118.24)   Depth: 26/36   00:00:10  24963kN, tb=227377
1...d2-d1Q 2.e7-e8N+ 
  -+  (-69.52)   Depth: 26/36   00:00:10  25226kN, tb=229197
1...d2-d1Q 
  -+  (-114.80)   Depth: 26/36   00:00:10  25253kN, tb=229231
1...d2-d1Q 2.e7-e8N+ 
  -+  (-69.52)   Depth: 26/36   00:00:10  25541kN, tb=229497
1...d2-d1Q 
  -+  (-102.14)   Depth: 26/36   00:00:10  25546kN, tb=229498
1...d2-d1Q 2.e7-e8N+ Kd6-d7 3.c7-c8Q+ Kd7xc8 4.Ke3xf2 Qd1-d8 5.Ne8-g7 Qd8-f8+ 6.Kf2-e2 Qf8xg7 7.a2-a4 Qg7-b2+ 8.Ke2-f1 Qb2-d2 9.a4-a5 Qd2xa5 10.Kf1-e2 Kc8-d7 11.Ke2-e3 Qa5-a3+ 12.Ke3-f2 Kd7-e7 13.Kf2-g2 Qa3-a2+ 14.Kg2-f3 Qa2-a4 15.Kf3-g3 Ke7-d7 16.Kg3-f3 Qa4-a2 17.Kf3-g4 
  -+  (-80.26)   Depth: 26/36   00:00:10  25559kN, tb=229569
1...d2-d1Q 
  -+  (-80.33)   Depth: 27/36   00:00:10  26117kN, tb=234080
1...d2-d1Q 
  -+  (-80.40)   Depth: 27/36   00:00:10  26337kN, tb=234159
1...d2-d1Q 
  -+  (-80.50)   Depth: 27/36   00:00:10  26359kN, tb=234189
1...d2-d1Q 
  -+  (-80.85)   Depth: 27/36   00:00:10  26402kN, tb=234191
1...d2-d1Q 
  -+  (-80.85)   Depth: 27/36   00:00:10  26402kN, tb=234191
1...d2-d1Q 
  -+  (-81.12)   Depth: 27/36   00:00:10  26440kN, tb=234191
1...d2-d1Q 
  -+  (-81.48)   Depth: 27/38   00:00:10  26481kN, tb=234191
1...d2-d1Q 
  -+  (-81.94)   Depth: 27/38   00:00:11  26509kN, tb=234191
1...d2-d1Q 
  -+  (-82.55)   Depth: 27/38   00:00:11  26535kN, tb=234191
1...d2-d1Q 
  -+  (-83.31)   Depth: 27/38   00:00:11  26557kN, tb=234192
1...d2-d1Q 
  -+  (-84.29)   Depth: 27/38   00:00:11  26588kN, tb=234192
1...d2-d1Q 
  -+  (-85.53)   Depth: 27/38   00:00:11  26615kN, tb=234192
1...d2-d1Q 
  -+  (-87.10)   Depth: 27/38   00:00:11  26643kN, tb=234192
1...d2-d1Q 
  -+  (-89.08)   Depth: 27/38   00:00:11  26668kN, tb=234192
1...d2-d1Q 
  -+  (-91.57)   Depth: 27/38   00:00:11  26749kN, tb=234656
1...d2-d1Q 
  -+  (-94.70)   Depth: 27/38   00:00:11  26779kN, tb=234656
1...d2-d1Q 
  -+  (-98.64)   Depth: 27/38   00:00:11  26804kN, tb=234657
1...d2-d1Q 
  -+  (-103.57)   Depth: 27/38   00:00:11  26836kN, tb=234657
1...d2-d1Q 
  -+  (-109.76)   Depth: 27/38   00:00:11  27095kN, tb=235397
1...d2-d1Q 
  -+  (-117.51)   Depth: 27/38   00:00:11  27379kN, tb=238310
1...d2-d1Q 2.e7-e8N+ Kd6-d7 3.c7-c8Q+ Kd7xc8 4.Ke3xf2 Qd1-d8 5.Ne8-g7 Qd8-f8+ 6.Kf2-e2 Qf8xg7 7.a2-a4 Qg7-b2+ 8.Ke2-e1 Qb2-a2 9.a4-a5 Qa2xa5+ 10.Ke1-e2 Qa5-a2+ 11.Ke2-d3 Kc8-d7 12.Kd3-e3 Kd7-e7 13.Ke3-f3 Ke7-d6 14.Kf3-e3 Qa2-a3+ 15.Ke3-f2 Qa3-d3 16.Kf2-g1 Qd3-b1+ 17.Kg1-f2 
  -+  (-115.57)   Depth: 27/38   00:00:11  27768kN, tb=247868
1...d2-d1Q 
  -+  (-115.64)   Depth: 28/38   00:00:12  29093kN, tb=252830
1...d2-d1Q 
  -+  (-115.71)   Depth: 28/38   00:00:12  29120kN, tb=252834
1...d2-d1Q 
  -+  (-115.82)   Depth: 28/38   00:00:12  29181kN, tb=252895
1...d2-d1Q 
  -+  (-115.96)   Depth: 28/39   00:00:12  29197kN, tb=252895
1...d2-d1Q 
  -+  (-116.17)   Depth: 28/39   00:00:12  29241kN, tb=253121
1...d2-d1Q 
  -+  (-116.44)   Depth: 28/39   00:00:12  29472kN, tb=254681
1...d2-d1Q 
  -+  (-116.79)   Depth: 28/39   00:00:12  29533kN, tb=254686
1...d2-d1Q 
  -+  (-117.26)   Depth: 28/39   00:00:12  29798kN, tb=255251
1...d2-d1Q 
  -+  (-117.86)   Depth: 28/39   00:00:12  29876kN, tb=255388
1...d2-d1Q 
  -+  (-118.63)   Depth: 28/39   00:00:12  30197kN, tb=256060
1...d2-d1Q 
  -+  (-119.60)   Depth: 28/39   00:00:12  30401kN, tb=256138
1...d2-d1Q 
  -+  (-120.84)   Depth: 28/39   00:00:12  30704kN, tb=256430
1...d2-d1Q 
  -+  (-122.41)   Depth: 28/39   00:00:13  31215kN, tb=256911
1...d2-d1Q 2.e7-e8N+ Kd6-d7 3.c7-c8Q+ Kd7xc8 4.Ke3xf2 Qd1-d8 5.Ne8-g7 Qd8-f8+ 6.Kf2-g3 Qf8xg7+ 7.Kg3-h4 Qg7-a1 8.a2-a4 Qa1xa4+ 9.Kh4-g3 Qa4-a3+ 10.Kg3-f4 Kc8-c7 11.Kf4-e4 Kc7-d6 12.Ke4-d4 Qa3-b3 13.Kd4-e4 Qb3-c2+ 14.Ke4-f3 Qc2-d3+ 15.Kf3-g2 Kd6-c7 16.Kg2-g1 Qd3-d2 17.Kg1-f1 
  -+  (-123.13)   Depth: 29/43   00:00:14  33013kN, tb=277318
1...d2-d1Q 2.e7-e8N+ Kd6-d7 3.c7-c8Q+ Kd7xc8 4.Ke3xf2 Qd1-d8 5.Ne8-g7 Qd8-f8+ 6.Kf2-g3 Qf8xg7+ 7.Kg3-h4 Qg7-a1 8.a2-a4 Qa1xa4+ 9.Kh4-g3 Qa4-a3+ 10.Kg3-f4 Kc8-c7 11.Kf4-e4 Kc7-d6 12.Ke4-d4 Qa3-b3 13.Kd4-e4 Qb3-c2+ 14.Ke4-f3 Qc2-d3+ 15.Kf3-g2 Kd6-c7 16.Kg2-g1 Qd3-d2 17.Kg1-f1 
  -+  (-123.13)   Depth: 29/43   00:00:15  36428kN, tb=296265
1...d2-d1Q 
  -+  (-123.20)   Depth: 30/43   00:00:16  37414kN, tb=297882
1...d2-d1Q 
  -+  (-123.27)   Depth: 30/43   00:00:16  37909kN, tb=298092
1...d2-d1Q 
  -+  (-123.38)   Depth: 30/43   00:00:16  38321kN, tb=298153
1...d2-d1Q 
  -+  (-123.53)   Depth: 30/43   00:00:16  38684kN, tb=298308
1...d2-d1Q 
  -+  (-#39)   Depth: 30/43   00:00:17  39385kN, tb=299421
1...d2-d1Q 2.e7-e8N+ Kd6-d7 3.c7-c8Q+ Kd7xc8 4.Ke3xf2 Qd1-d8 5.Ne8-g7 Qd8-f8+ 6.Kf2-g3 Qf8xg7+ 7.Kg3-h4 Qg7-a1 8.a2-a4 Qa1xa4+ 9.Kh4-g3 Kc8-d7 10.Kg3-f2 Kd7-e8 11.Kf2-e3 Qa4-a3+ 12.Ke3-d4 Qa3-a2 13.Kd4-c5 Ke8-e7 14.Kc5-b6 Qa2-d5 15.Kb6-a6 Qd5-c6+ 16.Ka6-a5 Qc6-c4 17.Ka5-b6 
  -+  (-#44)   Depth: 31/46   00:00:18  40853kN, tb=324040
1...d2-d1Q 
  -+  (-#35)   Depth: 31/46   00:00:19  42658kN, tb=327382
1...d2-d1Q 2.e7-e8N+ Kd6-d7 3.c7-c8Q+ Kd7xc8 4.Ke3xf2 Qd1-d5 5.Ne8-f6 Qd5-d4+ 6.Kf2-g2 Qd4xf6 7.a2-a4 Qf6-c6+ 8.Kg2-h3 Qc6-d7+ 9.Kh3-g3 Qd7xa4 10.Kg3-f3 Qa4-a3+ 11.Kf3-e2 Qa3-g3 12.Ke2-d2 Qg3-f3 13.Kd2-c2 Qf3-e3 14.Kc2-b2 Qe3-d3 15.Kb2-c1 Kc8-c7 16.Kc1-b2 Kc7-d6 17.Kb2-a1 
  -+  (-#28)   Depth: 31/46   00:00:21  46462kN, tb=358588
1...d2-d1Q 2.e7-e8N+ Kd6-d7 3.c7-c8Q+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qg3-h3# 
  -+  (-#15)   Depth: 44/46   00:02:48  384mN, tb=2806124
1...f2-f1Q 2.c7-c8N+ Kd6-d7 3.Ke3xd2 Qf1-a6 4.Nc8-b6+ Qa6xb6 5.e7-e8R Kd7xe8 6.Kd2-e2 Qb6-e6+ 7.Ke2-d2 Qe6xa2+ 8.Kd2-d3 Ke8-e7 9.Kd3-e3 Qa2-c2 10.Ke3-f4 Qc2-e2 11.Kf4-f5 Qe2-e3 12.Kf5-g6 Ke7-e6 13.Kg6-h5 Qe3-g3 14.Kh5-h6 Ke6-f6 15.Kh6-h5 Qg3-h3# 
  -+  (-#15)   Depth: 45/46   00:03:04  420mN, tb=3134809
1...d2-d1Q 2.c7-c8N+ Kd6-c5 3.Ke3xf2 Qd1-d7 4.Kf2-e3 Qd7xc8 5.a2-a4 Qc8-h3+ 6.Ke3-d2 Qh3-d7+ 7.Kd2-e3 Qd7xe7+ 8.Ke3-d3 Kc5-d5 9.a4-a5 Qe7-a3+ 10.Kd3-e2 Kd5-e4 11.Ke2-f2 Qa3-f3+ 12.Kf2-g1 Qf3-g3+ 13.Kg1-h1 Ke4-f3 14.a5-a6 Qg3-g2# 
  -+  (-#14)   Depth: 46/46   00:04:17  593mN, tb=4143001
1...d2-d1Q 2.c7-c8N+ Kd6-c5 3.Ke3xf2 Qd1-d7 4.Kf2-e3 Qd7xc8 5.a2-a4 Qc8-h3+ 6.Ke3-d2 Qh3-d7+ 7.Kd2-e3 Qd7xe7+ 8.Ke3-d3 Kc5-d5 9.a4-a5 Qe7-a3+ 10.Kd3-e2 Kd5-e4 11.Ke2-f2 Qa3-f3+ 12.Kf2-g1 Qf3-g3+ 
mcostalba
Posts: 2684
Joined: Sat Jun 14, 2008 9:17 pm

Re: Natural TB

Post by mcostalba »

petero2 wrote:
bob wrote:(1) sacrificing your queen takes you into a won 6 piece ending, but one which is harder to win than keeping the queen on. Unfortunately, you can't search nearly deep enough to see the win with the queen kept on the board, so transitioning to the egtb win is the only winning option you can see;
Do you have an example of such a position? It seems to me that if you are enough ahead to still be able to win after a queen sacrifice, you will also often be able to force a more advantageous trade if you keep searching.

The hardest position I could find after arbitrarily trying some positions was this:
[D]8/4bk2/4br2/8/8/8/8/QRRK4 w - - 0 1
Even in this position it only takes texel about 2.5 seconds to find something better than the queen sacrifice:
For Natural TB queen sacrifice is never an option (even at shallowest depths), insetad it finds rather quickly mate in 14

Code: Select all

  +-  (#14)   Depth: 32/84   00:01:16  143mN, tb=1957882
1.Rc1-c7 Be6-g4+ 2.Kd1-d2 Rf6-d6+ 3.Kd2-c3 Rd6-e6 4.Rb1-f1+ Kf7-g6 5.Qa1-b1+ Kg6-h6 6.Rc7xe7 Re6xe7 7.Rf1-f6+ Kh6-g5 8.Qb1-g6+ Kg5-h4 9.Qg6-h6+ Kh4-g3 10.Qh6-f4+ Kg3-h3 11.Rf6-h6+ Bg4-h5 12.Rh6xh5+ Kh3-g2 13.Rh5-g5+ Kg2-h3 14.Qf4-g3# 
How much it takes Texel to find mate in 14?
jhellis3
Posts: 546
Joined: Sat Aug 17, 2013 12:36 am

Re: Natural TB

Post by jhellis3 »

Very nice Marco, good work with the early draw detection and return too :) .
User avatar
Evert
Posts: 2929
Joined: Sat Jan 22, 2011 12:42 am
Location: NL

Re: Natural TB

Post by Evert »

syzygy wrote:
Evert wrote:But a Multi-PV like approach seems more reasonable, and fits better with what one could already do for analysis purposes.
Multi-PV is not going to help where the only win that the engine can see is by a conversion into TBs. Basically the engine will need to decide that it does not want the TB win...
That's why I said Multi-PV like. The engine would need to operate in a mode where it will consider the TB result as a type of bound, to answer the question: ok, I found this conversion to a won TB position by tossing my Queen. Is there a faster/alternate win if I don't do that? This being up to the search, it may not find it, so the conversion to the TB win stands.
mcostalba
Posts: 2684
Joined: Sat Jun 14, 2008 9:17 pm

Re: Natural TB

Post by mcostalba »

jhellis3 wrote:Very nice Marco, good work with the early draw detection and return too :) .
Thanks!

We achieve same result in different ways, you with a smart blending of TB and evaluation scores, I with a new(*) approach to TB usage in the search.

(*) I am not sure it is new, but when the usual "scholars" label it: absurd, ilogic, useless, etc. for me it is comforting and a sign that I am really doing something new.

Scholars just understand legacy and always lack behind new developments (never anticipate or foresee them), sometime even many years later...
Michel
Posts: 2272
Joined: Mon Sep 29, 2008 1:50 am

Re: Natural TB

Post by Michel »

That's why I said Multi-PV like. The engine would need to operate in a mode where it will consider the TB result as a type of bound, to answer the question: ok, I found this conversion to a won TB position by tossing my Queen. Is there a faster/alternate win if I don't do that? This being up to the search, it may not find it, so the conversion to the TB win stands.
Well this aspect does not need multipv with Joseph Ellis's approach to adjust the TB score with the current evaluation.
Ideas=science. Simplification=engineering.
Without ideas there is nothing to simplify.
syzygy
Posts: 5557
Joined: Tue Feb 28, 2012 11:56 pm

Re: Natural TB

Post by syzygy »

Evert wrote:
syzygy wrote:
Evert wrote:But a Multi-PV like approach seems more reasonable, and fits better with what one could already do for analysis purposes.
Multi-PV is not going to help where the only win that the engine can see is by a conversion into TBs. Basically the engine will need to decide that it does not want the TB win...
That's why I said Multi-PV like. The engine would need to operate in a mode where it will consider the TB result as a type of bound, to answer the question: ok, I found this conversion to a won TB position by tossing my Queen. Is there a faster/alternate win if I don't do that? This being up to the search, it may not find it, so the conversion to the TB win stands.
Yes, and then it still makes the "unnatural" move. To avoid that, the engine will somehow have to decide that it does not want the TB win: "My position is so good that there must be a win that does not involve sacking my queen". That should be possible to implement, but of course it will then fail to win won games in certain circumstances.
User avatar
Evert
Posts: 2929
Joined: Sat Jan 22, 2011 12:42 am
Location: NL

Re: Natural TB

Post by Evert »

syzygy wrote: Yes, and then it still makes the "unnatural" move. To avoid that, the engine will somehow have to decide that it does not want the TB win: "My position is so good that there must be a win that does not involve sacking my queen". That should be possible to implement, but of course it will then fail to win won games in certain circumstances.
Of course you play the "unnatural" move if you don't find an alternate win; I don't think anyone argues doing anything different.
If you don't look for an alternative win, you're sure not to find it. That you look for it doesn't mean that you will find it (assuming it does exists).

Again though, I think it's only remotely relevant for analysis. If you just want to win the game and don't care how, none of these cosmetic effects matter.

I think there was a discussion a while back about mate-distance pruning. Does it serve a purpose? Yes, but it doesn't change the outcome of the game. Does it add Elo? No, because it doesn't change the outcome of the game. This is not so different.
Michel
Posts: 2272
Joined: Mon Sep 29, 2008 1:50 am

Re: Natural TB

Post by Michel »

Yes, and then it still makes the "unnatural" move. To avoid that, the engine will somehow have to decide that it does not want the TB win: "My position is so good that there must be a win that does not involve sacking my queen". That should be possible to implement, but of course it will then fail to win won games in certain circumstances.
As I have explained the engine doesn't have to go that far. It can conceivable just postpone the sacrifice, if the search shows that the sacrifice can still be done later.

The PV will still be ugly (it will contain the sacrifice), but the sacrifice is not made on the board. Of course doing this is pointless if there is not some other measure of progress, otherwise the engine will just play randomly until it runs out of options by the 50move rule and then it will make the sacrifice anyway.
Ideas=science. Simplification=engineering.
Without ideas there is nothing to simplify.
Michel
Posts: 2272
Joined: Mon Sep 29, 2008 1:50 am

Re: Natural TB

Post by Michel »

Scholars just understand legacy and always lack behind new developments (never anticipate or foresee them), sometime even many years later...
Remember when you were pushing for dynamic contempt in SF as a magic bullet?

When people said caution was required (extra ordinary claims require extra ordinary proof) you made similar comments.

But in the end dynamic contempt didn't work did it?
Ideas=science. Simplification=engineering.
Without ideas there is nothing to simplify.