New Stockfish contempt

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

Moderators: bob, hgm, Harvey Williamson

Forum rules
This textbox is used to restore diagrams posted with the [d] tag before the upgrade.
User avatar
MikeB
Posts: 4062
Joined: Thu Mar 09, 2006 5:34 am
Location: Pen Argyl, Pennsylvania

Re: New Stockfish contempt

Post by MikeB » Tue Jan 30, 2018 1:33 am

mjlef wrote:It is great that Stockfish has a better form of Contempt now. But switching sides without reversing the Contempt sign is going to fill the hash with contradictory information if it applies contempt to the side to move. Komodo turns off Contempt in analysis mode, unless the "White Contempt" is on. Then it uses Contempt in regular play and analysis, but applies the Contempt number .com white's point of view, switching it as needed for black. This lets you use it in analysis mode without switching analysis side messing up the hash.
+1 - there is debate right now on the SF Github page about this very topic. Hopefully they make the right decision with SF 9. It's kind of interesting those more involved with the programming aspect of SF are in direct conflict with those who have more experience with using an engine for analysis.
It's not only the switching back and forth but the analysis from black's perspective is messed as well as it delays seeing black's winning move Ne5! below by almost two minutes..
[d]2r5/8/3k2np/p2p2p1/Pp4P1/1P1N3P/2Pb1P2/3B1RK1 b - - 9 56 ; bm Ne5
current dev-SF, with contempt 20 ( default), single core, hash 64:

Code: Select all

dep	score	nodes	time	(not shown:  tbhits	knps	seldep)
 48	 -0.47!	333.7M	3:32.37	Ne5! 
 48	 -0.32!	279.4M	2:57.04	Ne5! 
 48	 -0.20!	265.3M	2:48.25	Ne5! 
 48	 -0.13!	245.6M	2:35.79	Ne5! 
 47	 -0.05 	189.3M	2:00.42	Rf8 Kg2 Bc3 Be2 Be5 Bd1 Rc8 Re1 Nh4+ Kh1 Bc3 Rf1 Ng6 Kg2 Bd2 Kh1 Nh4 Kh2 Re8 Kg1 Bc3 Kh2 Rf8 Be2 Bd4 Bd1 Be5+ Kg1 Rc8 Kh1 Ng6 Re1 Bd4 Kg2 Rh8 Kg3 Rf8 Kg2 Nh4+ Kg1 Rc8 Kf1 Bf6 Kg1 Ng6 Rf1 Bd4 
 46	 -0.05 	160.3M	1:42.05	Rf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f8 Kg2 Bc3 Be2 Bd4 Re1 Ne5 Nxe5 Rxf2+ Kg3 Kxe5 Bf3+ Kd6 Re8 Rxc2 
 11	 -0.15 	65030  	0:00.05	Rc3 Kh2 d4 Kg2 Ne5 Nxe5 Kxe5 Rh1 d3 cxd3 Rxd3 
 10	 -0.04 	31716  	0:00.02	Rc3 Kg2 Ke6 Rg1 Kf6 Kf1 Bf4 Bf3 Ne5 Nxf4 gxf4 
  9	 -0.15 	15613  	0:00.01	Rc3 Kg2 Ke6 Rh1 Kf6 Bf3 Nh4+ Kg3 Nxf3 Kxf3 
  8	 -0.32 	2135    	0:00.00	Nf4 Nxf4 Bxf4 Kg2 Be5 Rh1 Bd4 Re1 
  7	 -0.22 	1602    	0:00.00	Nf4 Nxf4 Bxf4 Kg2 Be5 Rh1 Bb2 
  6	 -0.49 	1016    	0:00.00	Nf4 Nxf4 Bxf4 Kg2 Be5 Rh1 
  5	 -0.35 	783      	0:00.00	Ne5 Nxe5 Kxe5 Kg2 Rc3 
  4	 -0.35 	636      	0:00.00	Ne5 Kg2 Rc3 Nxe5 Kxe5 
  3	 -0.49 	283      	0:00.00	Rc3 f3 Nf4 
  2	 -0.37 	188      	0:00.00	Nf4 Nxf4 
  1	 -0.36 	37        	0:00.00	Nf4 
  0	# 

and with contempt set to -20 for black , it takes even longer:

Code: Select all

dep	score	nodes	time	(not shown:  tbhits	knps	seldep)
 50	 -0.07!	291.2M	3:05.35	Ne5! 
 49	  0.00 	189.4M	2:00.13	Rc7 Kg2 Rf7 Rh1 Bc3 Kg3 Rc7 Kg2 Rf7 
 48	  0.00 	155.9M	1:39.05	Rc7 Kg2 Rf7 Rh1 Bc3 Kg3 Rc7 Kg2 Rf7 
 47	  0.00 	139.6M	1:28.60	Rc7 Kg2 Rf7 Rh1 Bc3 Kg3 Rc7 Kg2 Rf7 
 46	  0.00 	79.7M  	0:50.17	Rc7 Kg2 Rf7 Rh1 Bc3 Kg3 Rc7 Kg2 Rf7 
 45	  0.00 	66.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.10	Rc7 Kg2 Rf7 Rh1 Bc3 Kg3 Rc7 Rf1 Bd4 Rh1 Bc3 
 13	  0.00 	111421	0:00.08	Rc7 Kg2 Rf7 Rh1 Bc3 Be2 Bd4 Kg3 Rc7 Bd1 Bc3 Bf3 Bd4 Bd1 
 12	  0.00 	102338	0:00.08	Rc7 Kg2 Rf7 Rh1 Bc3 Be2 Bd4 Rd1 Nh4+ Kg1 Ng6 Kg2 
 11	 -0.10 	53576  	0:00.04	Rc7 Kg2 Rf7 Rh1 Bc3 Be2 Bd4 Rc1 Rf8 Kg3 Rf7 Re1 
 10	  0.00 	24428  	0:00.02	Rc3 Kg2 Rc7 Rg1 Rc3 Rh1 Rc7 Rg1 
  9	 -0.32 	6151    	0:00.01	Rc3 Kg2 Ne5 Be2 Rxc2 Rd1 Bc3 Nxe5 Bxe5 Bd3 
  8	 -0.40 	2470    	0:00.00	Rc3 Kg2 Nf4+ Nxf4 Bxf4 Rg1 Be5 Rf1 Bd4 
  7	 -0.44 	1629    	0:00.00	Rc3 Kg2 Nf4+ Nxf4 Bxf4 Bf3 Be5 Re1 
  6	 -0.38 	833      	0:00.00	Ne5 Kg2 Nxd3 cxd3 Rc3 d4 
  5	 -0.27 	676      	0:00.00	Ne5 Nxe5 Kxe5 Kg2 Rc3 
  4	 -0.27 	522      	0:00.00	Ne5 Kg2 Rc3 Nxe5 Kxe5 
  3	 -0.40 	271      	0:00.00	Rc3 f3 Nf4 
  2	 -0.30 	180      	0:00.00	Nf4 Nxf4 
  1	 -0.27 	37        	0:00.00	Nf4 
  0	# 

Dann Corbit
Posts: 11169
Joined: Wed Mar 08, 2006 7:57 pm
Location: Redmond, WA USA
Contact:

Re: New Stockfish contempt

Post by Dann Corbit » Tue Jan 30, 2018 2:10 am

Since I use SF almost exclusively for analysis, I simply change the default to 0 for contempt in ucioptions.cpp.
That way, I don't have to remember to set it.
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.

User avatar
MikeB
Posts: 4062
Joined: Thu Mar 09, 2006 5:34 am
Location: Pen Argyl, Pennsylvania

Re: New Stockfish contempt

Post by MikeB » Tue Jan 30, 2018 3:04 am

Dann Corbit wrote:Since I use SF almost exclusively for analysis, I simply change the default to 0 for contempt in ucioptions.cpp.
That way, I don't have to remember to set it.
Right, we 're ok since we do our own compiles anyway Likewise all the folks on Github will be fine as well. But they should assume the worst case scenario and that is the common user will not know know or understand the issues. This is a type of issue where the maintainers should take into consideration the lowest common denominator, which is one who would not understand the implications.

corres
Posts: 2961
Joined: Wed Nov 18, 2015 10:41 am
Location: hungary

Re: New Stockfish contempt

Post by corres » Tue Jan 30, 2018 11:11 pm

I have a proposal to the developers of Stockfish:
Please, give one plus switcher to UCI options to switch on and to switch off the contempt with default = ON.
In this case all user will have the opportunity to choose their favorite playing and analyzing mode with only one click.

Toadofsky
Posts: 27
Joined: Sat Dec 03, 2016 1:20 pm
Contact:

Re: New Stockfish contempt

Post by Toadofsky » Wed Jan 31, 2018 12:33 pm

MikeB wrote:
Dann Corbit wrote:Since I use SF almost exclusively for analysis, I simply change the default to 0 for contempt in ucioptions.cpp.
That way, I don't have to remember to set it.
Right, we 're ok since we do our own compiles anyway Likewise all the folks on Github will be fine as well. But they should assume the worst case scenario and that is the common user will not know know or understand the issues. This is a type of issue where the maintainers should take into consideration the lowest common denominator, which is one who would not understand the implications.
GUIs should offer a contempt setting for users capable of noticing the implications.

Teemu Pudas
Posts: 88
Joined: Wed Mar 25, 2009 11:49 am

Re: New Stockfish contempt

Post by Teemu Pudas » Thu Feb 01, 2018 5:56 pm

...by default. There's a case for using contempt in analysis (as long as there's no sign-flipping when switching sides) so users shouldn't be prevented from doing it, but analysis contempt should definitely be 0 at default settings.

Post Reply