New CLOP settings give Leela huge tactics boost

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

Moderators: hgm, Rebel, chrisw

Milos
Posts: 4190
Joined: Wed Nov 25, 2009 1:47 am

Re: New CLOP settings give Leela huge tactics boost

Post by Milos »

Albert Silver wrote: Tue Jun 05, 2018 2:30 pm
Milos wrote: Tue Jun 05, 2018 2:01 pm That looks ok but I am confused which options did you use, since difference between yours June 4 and "default" June 2 version is basically just FPUR increased from 0.2 to 0.9, which is totally opposite direction from before and very mild increase of PCUT from 3.1 to 3.4 or something.
Anyway difference is still within error margins so could be just luck or it just worked against particular engine. What I've thought you did is to test it against default LC0 settings for PCUT and FPUG which are for cudnn version something like 1.7 and 0.0.
No, there is a third you did not notice which has a similarly strong effect: Policy Softmax Temperature. I myself did not know it until its author brought it to my attention in Discord.
Well Alex is obviously playing with search and randomly introducing new parameters. This is clearly not a parameter that is either present in LCzero nor A0, nor any standard UCT papers.
I'm not saying that it might not help, but just randomly introducing search parameters is certainly not the best way to develop something.
Also since you are just playing with search parameters I really see no point in playing small amount of matches against random opponents. Much more useful and scientific would be SF testing approach, meaning playing large number of games new version vs. master, and using proper stopping criteria.
Albert Silver
Posts: 3019
Joined: Wed Mar 08, 2006 9:57 pm
Location: Rio de Janeiro, Brazil

Re: New CLOP settings give Leela huge tactics boost

Post by Albert Silver »

Milos wrote: Tue Jun 05, 2018 3:26 pm
Albert Silver wrote: Tue Jun 05, 2018 2:30 pm
Milos wrote: Tue Jun 05, 2018 2:01 pm That looks ok but I am confused which options did you use, since difference between yours June 4 and "default" June 2 version is basically just FPUR increased from 0.2 to 0.9, which is totally opposite direction from before and very mild increase of PCUT from 3.1 to 3.4 or something.
Anyway difference is still within error margins so could be just luck or it just worked against particular engine. What I've thought you did is to test it against default LC0 settings for PCUT and FPUG which are for cudnn version something like 1.7 and 0.0.
No, there is a third you did not notice which has a similarly strong effect: Policy Softmax Temperature. I myself did not know it until its author brought it to my attention in Discord.
Well Alex is obviously playing with search and randomly introducing new parameters. This is clearly not a parameter that is either present in LCzero nor A0, nor any standard UCT papers.
I'm not saying that it might not help, but just randomly introducing search parameters is certainly not the best way to develop something.
Also since you are just playing with search parameters I really see no point in playing small amount of matches against random opponents. Much more useful and scientific would be SF testing approach, meaning playing large number of games new version vs. master, and using proper stopping criteria.
Actually, it is not him, and was introduced into LCZero. No one had bothered using it or exploring its impact, so I did. You are right that it is a hacky bandaid, and once they are able to sort things out, should not be needed.
"Tactics are the bricks and sticks that make up a game, but positional play is the architectural blueprint."
Robert Flesher
Posts: 1280
Joined: Tue Aug 18, 2009 3:06 am

Re: New CLOP settings give Leela huge tactics boost

Post by Robert Flesher »

Hi Albert, can you post these new setting?
Robert Flesher
Posts: 1280
Joined: Tue Aug 18, 2009 3:06 am

Re: New CLOP settings give Leela huge tactics boost

Post by Robert Flesher »

I see now, this version is the new settings. Testing now! Thanks!
User avatar
Ozymandias
Posts: 1535
Joined: Sun Oct 25, 2009 2:30 am

Re: New CLOP settings give Leela huge tactics boost

Post by Ozymandias »

Robert Flesher wrote: Tue Jun 05, 2018 4:49 pm Hi Albert, can you post these new setting?
They're in the changelog:
* Experimental default settings:
cPUCT: 3.4
FPU reduction: 0.9
policy Softmax: 2.2
User avatar
Laskos
Posts: 10948
Joined: Wed Jul 26, 2006 10:21 pm
Full name: Kai Laskos

Re: New CLOP settings give Leela huge tactics boost

Post by Laskos »

Albert Silver wrote: Mon Jun 04, 2018 9:02 pm In view of the many settings in LC0, I ran a deep CLOP on three big ones at the same time. CLOP is designed to tune for the best playing performance, not best tactics or anything. The old default settings were nearly catastrophic giving NN369 a mere 109/200 solved in my corrected WAC set. The new settings yield... 159/200.

Image

You can try them without any work, by downloading the latest LC0 June 4 build at https://crem.xyz/lc0/ dubbed experimental.
Congratulations, seems to work at Longer TC too:
10'+ 10'' LC0 on GTX 1060 and Komodo 10.2 on 1 core (3369 Elo CCRL points 40/4').

Experimental, just finished now:

Code: Select all

Score of LC0_exp_NN373 vs Komodo 10.2: 3 - 6 - 11 [0.425]
Elo difference: -52.51 +/- 105.00

20 of 20 games finished.
+3 -6 =11
8.5/20

Default:
+1 -14 =5
3.5/20

My "extreme tactical settings":
+0 -13 =7
3.5/20

The performance is more than 200 Elo points better, the samples are small, but there is still 97%-98% confidence that "experimental" performs better in these conditions than each of them. By the way, the performance here is about 3300 CCRL Elo points at longer TC.
Kanizsa
Posts: 51
Joined: Mon Feb 20, 2017 8:29 am
Location: Rialto, Venice

Re: New CLOP settings give Leela huge tactics boost

Post by Kanizsa »

hi, did you collect these 20 games vs. Komodo 10.2 ?

+3 -6 =11
8.5/20

However, thanks in advance for your work of tester.
User avatar
Laskos
Posts: 10948
Joined: Wed Jul 26, 2006 10:21 pm
Full name: Kai Laskos

Re: New CLOP settings give Leela huge tactics boost

Post by Laskos »

Kanizsa wrote: Wed Jun 06, 2018 8:53 am hi, did you collect these 20 games vs. Komodo 10.2 ?

+3 -6 =11
8.5/20

However, thanks in advance for your work of tester.
You mean PGN file? Yes, I have it. Do you want I upload it?
Kanizsa
Posts: 51
Joined: Mon Feb 20, 2017 8:29 am
Location: Rialto, Venice

Re: New CLOP settings give Leela huge tactics boost

Post by Kanizsa »

PGN ok,
Thanks
User avatar
Laskos
Posts: 10948
Joined: Wed Jul 26, 2006 10:21 pm
Full name: Kai Laskos

Re: New CLOP settings give Leela huge tactics boost

Post by Laskos »

Kanizsa wrote: Wed Jun 06, 2018 11:30 am PGN ok,
Thanks
Here is the 20 games match against Komodo 10.2 (PGN)
http://s000.tinyupload.com/?file_id=068 ... 2644616369

I also tested overnight at shorter 1'+ 1'' time control against Houdini 1.5a (1 thread), experimental was again significantly better than default:

Experimental:

Code: Select all

Score of LC0_exp_NN373 vs Houdini 1.5a: 49 - 27 - 24 [0.610]
Elo difference: 77.71 +/- 60.99

100 of 100 games finished.
+49 -27 =24
61.0/100

Default:
+37 -33 =30
52.0/100

More than 60 Elo points improvement, almost outside error margins. Performance LC0_exp NN373 of about 3240 CCRL Elo points at 1'+ 1'' and 3320 CCRL Elo points at 10'+ 10'', so it seems to scale well too.