LCZero: Progress and Scaling. Relation to CCRL Elo

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

Moderators: hgm, Rebel, chrisw

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

Re: LCZero: Progress and Scaling. Relation to CCRL Elo

Post by Laskos »

CMCanavessi wrote:Well, finally the 128 network has been made public. I'm broadcasting right now a 10-game match between LCZero ID 123 Vs. Fruit 1.0

Time control is 40/40, 5-move book with reverse games and Fruit has ponder on (which LCZero doesn't support). Even with that advantage in favor of Fruit, Leela is winning 1-0 and about to win the reverse game also, which would be 2-0.

Fruit 1.0 is 2400 elo btw.

You can follow the games live at https://www.twitch.tv/ccls
You look like an insider there, so you might know about some upcoming changes. Do you know when the the v0.5 client will be updated? It seems buggy is some respects, for example "go infinite" doesn't work, which impedes me to test on test-suites in Polyglot.

Then, as my GT 730 GPU is an utter crap, with the new 128x10 networks CPU speed gets hit hard. A factor of 2 or so at its peak on initial positions (from 2000 NPS to 1000 or so). But even worse at short time controls I was testing before, maybe a factor of 4-5. Look at this progression in NPS with the new net:

Code: Select all

FEN: rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1

LC0 CPU 4 threads ID123:

 d      t      n      nps   
=============================================================
 6	00:00	 2		37	-2.21	e2-e4 c7-c5
 7	00:00	 3		50	-1.84	e2-e4 c7-c5 c2-c3
 9	00:00	 8		103	-1.07	e2-e4 c7-c5 c2-c3 e7-e6 d2-d4
 10	00:00	 14		138	-0.73	e2-e4 c7-c5 c2-c3 e7-e6 d2-d4
 11	00:00	 25		185	-0.49	e2-e4 c7-c5 c2-c3 e7-e6 d2-d4 d7-d5
 12	00:00	 46		216	-0.27	e2-e4 e7-e6 d2-d4 d7-d5 e4-e5 c7-c5 c2-c3
 13	00:00	 80		239	-0.15	e2-e4 c7-c5 c2-c3 e7-e6 d2-d4 d7-d5 e4xd5
 14	00:00	 141	253	-0.07	e2-e4 e7-e6 c2-c4 c7-c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 d7-d5 c4xd5 e6xd5 Bf1-e2 c5xd4 e3xd4 Bf8-e7 O-O O-O h2-h3 h7-h6 a2-a3 a7-a6 Bc1-e3
NPS maxes at depth 27 after a whopping 4 minutes on 4 threads (i7 Haswell 3.8 GHz). And the increase in NPS is 3-fold from 1-3 seconds per move to 4 minutes per move. I will have some difficulty checking for "absolute" (say CCRL) strength without a very strong GPU, I hope the progress will be visible even in short tc games on CPU, although "absolute" ratings will be way off (by hundreds of Elo points).
User avatar
Laskos
Posts: 10948
Joined: Wed Jul 26, 2006 10:21 pm
Full name: Kai Laskos

Re: LCZero: Progress and Scaling. Relation to CCRL Elo

Post by Laskos »

Laskos wrote:
NPS maxes at depth 27 after a whopping 4 minutes on 4 threads (i7 Haswell 3.8 GHz). And the increase in NPS is 3-fold from 1-3 seconds per move to 4 minutes per move. I will have some difficulty checking for "absolute" (say CCRL) strength without a very strong GPU, I hope the progress will be visible even in short tc games on CPU, although "absolute" ratings will be way off (by hundreds of Elo points).
I am still tracking the progress with my meager CPU means. At 1s/move, I took Jabba 1.0 (about 2050 Elo CCRL) reference in matches of 200 games. First and second "bignets" performed as:

ID123: 57.5/200
ID124: 65.0/200

Although still within error margins, it seems it progresses fast, about +30 Elo points from one net to the successive one. I will maybe do a larger test when more progress accumulates (after several nets).
User avatar
AdminX
Posts: 6340
Joined: Mon Mar 13, 2006 2:34 pm
Location: Acworth, GA

Re: LCZero: Progress and Scaling. Relation to CCRL Elo

Post by AdminX »

"Good decisions come from experience, and experience comes from bad decisions."
__________________________________________________________________
Ted Summers
JJJ
Posts: 1346
Joined: Sat Apr 19, 2014 1:47 pm

Re: LCZero: Progress and Scaling. Relation to CCRL Elo

Post by JJJ »

I don't know about the human FIDE estimate, but it would be nice to see some official matches at each version to check !
Werewolf
Posts: 1796
Joined: Thu Sep 18, 2008 10:24 pm

Re: LCZero: Progress and Scaling. Relation to CCRL Elo

Post by Werewolf »

Laskos wrote:
Laskos wrote:
NPS maxes at depth 27 after a whopping 4 minutes on 4 threads (i7 Haswell 3.8 GHz). And the increase in NPS is 3-fold from 1-3 seconds per move to 4 minutes per move. I will have some difficulty checking for "absolute" (say CCRL) strength without a very strong GPU, I hope the progress will be visible even in short tc games on CPU, although "absolute" ratings will be way off (by hundreds of Elo points).
I am still tracking the progress with my meager CPU means. At 1s/move, I took Jabba 1.0 (about 2050 Elo CCRL) reference in matches of 200 games. First and second "bignets" performed as:

ID123: 57.5/200
ID124: 65.0/200

Although still within error margins, it seems it progresses fast, about +30 Elo points from one net to the successive one. I will maybe do a larger test when more progress accumulates (after several nets).
I'm currently testing against Colossus 2008b - CCRL 2642

I'm using Noomen short and 15 seconds per move each.

Currently LCZero 127 is leading...
Werewolf
Posts: 1796
Joined: Thu Sep 18, 2008 10:24 pm

Re: LCZero: Progress and Scaling. Relation to CCRL Elo

Post by Werewolf »

Very early days, but current result for LCZero 127 on NVidia 1060 vs Colossus 2008b @ 15 sec / move below. Colossus is single Intel Broadwell core @ 4.2 GHz.

4 wins
2 losses
1 draw

for LCZero

:twisted:
User avatar
hgm
Posts: 27796
Joined: Fri Mar 10, 2006 10:06 am
Location: Amsterdam
Full name: H G Muller

Re: LCZero: Progress and Scaling. Relation to CCRL Elo

Post by hgm »

CMCanavessi wrote:No progress? We have just tested a new bigger net (128x10) and it's 200+ elo stronger.
What kind of filters are these networks using? Is that 3x3 convolutions like AlphaZero? These might be very good for Go, but for Chess, where there are sliders, they are blind to a lot of elementary patterns, such as pins and discovered threats. They would have to make up for that by cascading many blocks to even get the whole significant part 'in view' (e.g. a Rook on e1 pinning a Queen on e4 against a King on e8).

I wonder what would happen if you used filters that each examined one file, one rank and one diagonal as well. These would only look at 8 squares, instead of 9, so it is not more complex. E.g. of every 8 filters you could put 1 on each ray, and leave 4 to examine the local 3x3 neighborhood. That might give you a much more powerful network for the same number of weights.
JJJ
Posts: 1346
Joined: Sat Apr 19, 2014 1:47 pm

Re: LCZero: Progress and Scaling. Relation to CCRL Elo

Post by JJJ »

I managed to have a boring dra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joined: Wed Jul 26, 2006 10:21 pm
Full name: Kai Laskos

Re: LCZero: Progress and Scaling. Relation to CCRL Elo

Post by Laskos »


Thanks! Very strong computer, and LC0 benefits from that, I cannot achieve such high results. TC seems to be 1+1, right?
User avatar
Laskos
Posts: 10948
Joined: Wed Jul 26, 2006 10:21 pm
Full name: Kai Laskos

Re: LCZero: Progress and Scaling. Relation to CCRL Elo

Post by Laskos »

Werewolf wrote:Very early days, but current result for LCZero 127 on NVidia 1060 vs Colossus 2008b @ 15 sec / move below. Colossus is single Intel Broadwell core @ 4.2 GHz.

4 wins
2 losses
1 draw

for LCZero

:twisted:
Wow, on a good GPU and longer time control, LC0 rocks. It scales completely differently from standard engines, give it strong hardware and LTC, and it soares.