Glaurung wrong mate scores

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

Moderators: hgm, Rebel, chrisw

Uri Blass
Posts: 10267
Joined: Thu Mar 09, 2006 12:37 am
Location: Tel-Aviv Israel

Glaurung wrong mate scores

Post by Uri Blass »

It seems that glaurung's evaluation is too high in the following position and it see mate scores at small depth(when the depth is big enough it can see the draw)

New game - Rybka 2.3.2a 32-bit
[D]8/6kR/8/8/8/bq6/1rqqqqqq/K1nqnbrq b - - 0 1

Analysis by Glaurung 2-epsilon/4:

1...Qc2xh7
= (0.00) Depth: 2 00:00:00
1...Kg7-g8
# (#0) Depth: 2 00:00:00
1...Kg7-g8
# (#0) Depth: 3 00:00:00
1...Kg7-g8 2.Rh7-a7 Rb2-b1#
-+ (-#2) Depth: 4 00:00:00
1...Kg7-g8 2.Rh7-h8+ Kg8-f7 3.Rh8-h7+ Kf7-f8 4.Rh7-a7 Rb2-b1#
-+ (-#4) Depth: 5 00:00:00
1...Kg7-g8 2.Rh7-h8+ Kg8-f7 3.Rh8-h7+ Kf7-f8 4.Rh7-f7+ Kf8-e8 5.Rf7xf2 Rb2-b1#
-+ (-#5) Depth: 6 00:00:01 5kN
1...Kg7-g8 2.Rh7-h8+ Kg8-f7 3.Rh8-h7+ Kf7-f8 4.Rh7-f7+ Kf8-e8 5.Rf7-e7+ Ke8-d8 6.Re7xe2 Nc1xe2#
-+ (-#6) Depth: 7 00:00:01 9kN
1...Kg7-g8 2.Rh7-h8+ Kg8-f7 3.Rh8-f8+ Kf7-e7 4.Rf8-e8+ Ke7-d7 5.Re8-d8+ Kd7-c7 6.Rd8-c8+ Kc7-b7 7.Rc8xc2 Ne1xc2#
-+ (-#7) Depth: 8 00:00:01 16kN
1...Kg7-g8 2.Rh7-g7+ Kg8-f8 3.Rg7-f7+ Kf8-e8 4.Rf7-e7+ Ke8-d8 5.Re7-d7+ Kd8-c8 6.Rd7-c7+ Kc8-b8 7.Rc7-b7+ Kb8-a8 8.Rb7-a7+ Ka8xa7
= (0.00)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8.Rf4-f6+ Ke6-e5 9.Rf6-e6+ Ke5-d5
= (0.00) Depth: 30 00:01:19 67158kN
1...Kg7-f6 2.Rh7-f7+ Kf6-e5 3.Rf7-e7+ Qb3-e6 4.Re7xe6+ Ke5-d5 5.Re6-d6+ Kd5-e4 6.Rd6-d4+ Ke4-f5 7.Rd4-f4+ Kf5-e6 8.Rf4-f6+ Ke6-e5 9.Rf6-e6+ Ke5-d5
= (0.00) Depth: 31 00:01:26 74705kN
1...Kg7-f6 2.Rh7-f7+ Kf6-e5 3.Rf7-e7+ Qb3-e6 4.Re7xe6+ Ke5-d5 5.Re6-d6+ Kd5-e4 6.Rd6-d4+ Ke4-f5 7.Rd4-f4+ Kf5-e6 8.Rf4-f6+ Ke6-e5 9.Rf6-e6+ Ke5-d5
= (0.00) Depth: 32 00:01:34 84977kN
1...Kg7-f6 2.Rh7-f7+ Kf6-e5 3.Rf7-e7+ Qb3-e6 4.Re7xe6+ Ke5-d5 5.Re6-d6+ Kd5-e4 6.Rd6-d4+ Ke4-f5 7.Rd4-f4+ Kf5-e6 8.Rf4-f6+ Ke6-e5 9.Rf6-e6+ Ke5-d5
= (0.00) Depth: 33 00:01:48 98911kN

(, 23.06.2007)
bob
Posts: 20943
Joined: Mon Feb 27, 2006 7:30 pm
Location: Birmingham, AL

Re: Glaurung wrong mate scores

Post by bob »

Uri Blass wrote:It seems that glaurung's evaluation is too high in the following position and it see mate scores at small depth(when the depth is big enough it can see the draw)

New game - Rybka 2.3.2a 32-bit
[D]8/6kR/8/8/8/bq6/1rqqqqqq/K1nqnbrq b - - 0 1

Analysis by Glaurung 2-epsilon/4:

1...Qc2xh7
= (0.00) Depth: 2 00:00:00
1...Kg7-g8
# (#0) Depth: 2 00:00:00
1...Kg7-g8
# (#0) Depth: 3 00:00:00
1...Kg7-g8 2.Rh7-a7 Rb2-b1#
-+ (-#2) Depth: 4 00:00:00
1...Kg7-g8 2.Rh7-h8+ Kg8-f7 3.Rh8-h7+ Kf7-f8 4.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Kf6-e5 3.Rf7-e7+ Qb3-e6 4.Re7xe6+ Ke5-d5 5.Re6-d6+ Kd5-e4 6.Rd6-d4+ Ke4-f5 7.Rd4-f4+ Kf5-e6 8.Rf4-f6+ Ke6-e5 9.Rf6-e6+ Ke5-d5
= (0.00) Depth: 33 00:01:48 98911kN

(, 23.06.2007)
programs have many sorts of bugs. In my cluster testing, Arasan (as but one example) has problems resigning and tries to resign but give the wrong result (it plays white, and sends "1-0 Black resigns" in some cases, I had to make my referee program handle that nonsense correctly.
Tord Romstad
Posts: 1808
Joined: Wed Mar 08, 2006 9:19 pm
Location: Oslo, Norway

Re: Glaurung wrong mate scores

Post by Tord Romstad »

Uri Blass wrote:It seems that glaurung's evaluation is too high in the following position and it see mate scores at small depth(when the depth is big enough it can see the draw)
Hello Uri,

Thanks for reporting this! I haven't looked at my code, but I am fairly sure I understand what is happening here: Black is so far ahead in material that the static evaluation function returns a score that is better than a mate score. The program therefore thinks it is better for white to accept being mated rather than accepting a static evaluation which is even worse (from white's point of view).

The bug should be easy to fix, of course: Just crop that the static evaluation score so that the absolute value is never bigger than a mate score.

Fortunately, this bug isn't likely to have a big impact on practical playing strength. :wink:

Tord
glorfindel

Re: Glaurung wrong mate scores

Post by glorfindel »

Tord Romstad wrote: The bug should be easy to fix, of course: Just crop that the static evaluation score so that the absolute value is never bigger than a mate score.
Is that why many engines are reporting a score of +327.66 when they see a mate? I always wondered what is the significance of this number.
Tord Romstad
Posts: 1808
Joined: Wed Mar 08, 2006 9:19 pm
Location: Oslo, Norway

Re: Glaurung wrong mate scores

Post by Tord Romstad »

glorfindel wrote:Is that why many engines are reporting a score of +327.66 when they see a mate? I always wondered what is the significance of this number.
You are probably right. If an engine uses signed 16-bit integers to represent scores (which is probably a common choice), the possible range of scores is from -32768 to +32767 (the number 32768 is equal to 2 to the power of 15). It is therefore natural to use 32767 (or something similar) to represent the best possible score, i.e. a mate. If the value of a pawn is represented by the number 100, a mate score will be printed as something close to +327.66.

In Glaurung, it looks a bit different: The value of mate is +30000, and the value of a pawn is 256. When the scores are printed to the standard output, they are converted to the scale pawn = 1.00, and mate scores are displayed as "mate in n" rather than as a numerical score.

Tord
User avatar
geots
Posts: 4790
Joined: Sat Mar 11, 2006 12:42 am

Re: Glaurung wrong mate scores

Post by geots »

Uri Blass wrote:It seems that glaurung's evaluation is too high in the following position and it see mate scores at small depth(when the depth is big enough it can see the draw)

New game - Rybka 2.3.2a 32-bit
[D]8/6kR/8/8/8/bq6/1rqqqqqq/K1nqnbrq b - - 0 1

Analysis by Glaurung 2-epsilon/4:

1...Qc2xh7
= (0.00) Depth: 2 00:00:00
1...Kg7-g8
# (#0) Depth: 2 00:00:00
1...Kg7-g8
# (#0) Depth: 3 00:00:00
1...Kg7-g8 2.Rh7-a7 Rb2-b1#
-+ (-#2) Depth: 4 00:00:00
1...Kg7-g8 2.Rh7-h8+ Kg8-f7 3.Rh8-h7+ Kf7-f8 4.Rh7-a7 Rb2-b1#
-+ (-#4) Depth: 5 00:00:00
1...Kg7-g8 2.Rh7-h8+ Kg8-f7 3.Rh8-h7+ Kf7-f8 4.Rh7-f7+ Kf8-e8 5.Rf7xf2 Rb2-b1#
-+ (-#5) Depth: 6 00:00:01 5kN
1...Kg7-g8 2.Rh7-h8+ Kg8-f7 3.Rh8-h7+ Kf7-f8 4.Rh7-f7+ Kf8-e8 5.Rf7-e7+ Ke8-d8 6.Re7xe2 Nc1xe2#
-+ (-#6) Depth: 7 00:00:01 9kN
1...Kg7-g8 2.Rh7-h8+ Kg8-f7 3.Rh8-f8+ Kf7-e7 4.Rf8-e8+ Ke7-d7 5.Re8-d8+ Kd7-c7 6.Rd8-c8+ Kc7-b7 7.Rc8xc2 Ne1xc2#
-+ (-#7) Depth: 8 00:00:01 16kN
1...Kg7-g8 2.Rh7-g7+ Kg8-f8 3.Rg7-f7+ Kf8-e8 4.Rf7-e7+ Ke8-d8 5.Re7-d7+ Kd8-c8 6.Rd7-c7+ Kc8-b8 7.Rc7-b7+ Kb8-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 Ke4-f5 7.Rd4-f4+ Kf5-e6 8.Rf4-f6+ Ke6-e5 9.Rf6-e6+ Ke5-d5
= (0.00) Depth: 30 00:01:19 67158kN
1...Kg7-f6 2.Rh7-f7+ Kf6-e5 3.Rf7-e7+ Qb3-e6 4.Re7xe6+ Ke5-d5 5.Re6-d6+ Kd5-e4 6.Rd6-d4+ Ke4-f5 7.Rd4-f4+ Kf5-e6 8.Rf4-f6+ Ke6-e5 9.Rf6-e6+ Ke5-d5
= (0.00) Depth: 31 00:01:26 74705kN
1...Kg7-f6 2.Rh7-f7+ Kf6-e5 3.Rf7-e7+ Qb3-e6 4.Re7xe6+ Ke5-d5 5.Re6-d6+ Kd5-e4 6.Rd6-d4+ Ke4-f5 7.Rd4-f4+ Kf5-e6 8.Rf4-f6+ Ke6-e5 9.Rf6-e6+ Ke5-d5
= (0.00) Depth: 32 00:01:34 84977kN
1...Kg7-f6 2.Rh7-f7+ Kf6-e5 3.Rf7-e7+ Qb3-e6 4.Re7xe6+ Ke5-d5 5.Re6-d6+ Kd5-e4 6.Rd6-d4+ Ke4-f5 7.Rd4-f4+ Kf5-e6 8.Rf4-f6+ Ke6-e5 9.Rf6-e6+ Ke5-d5
= (0.00) Depth: 33 00:01:48 98911kN

(, 23.06.2007)


No offense meant here, Uri. But if you are going to show me a bug found in a program, please show me where you found it in a position that actually came up or could easily come up in game play. All these weird positions that are impossible to reproduce in game play are just a waste of time and bandwidth IMHO.

Best regards,
Alessandro Scotti

Re: Glaurung wrong mate scores

Post by Alessandro Scotti »

geots wrote:No offense meant here, Uri. But if you are going to show me a bug found in a program, please show me where you found it in a position that actually came up or could easily come up in game play. All these weird positions that are impossible to reproduce in game play are just a waste of time and bandwidth IMHO.
Well a bug is always a bug... Personally, I am interested in any kind of bug reports as several of those have helped find bugs in my own engines in the past. Because of this, I tend to welcome posts like Uri's.
User avatar
geots
Posts: 4790
Joined: Sat Mar 11, 2006 12:42 am

Re: Glaurung wrong mate scores

Post by geots »

Alessandro Scotti wrote:
geots wrote:No offense meant here, Uri. But if you are going to show me a bug found in a program, please show me where you found it in a position that actually came up or could easily come up in game play. All these weird positions that are impossible to reproduce in game play are just a waste of time and bandwidth IMHO.
Well a bug is always a bug... Personally, I am interested in any kind of bug reports as several of those have helped find bugs in my own engines in the past. Because of this, I tend to welcome posts like Uri's.
I probably have to agree, when realizing posts like Uri's are meant more for programmers as yourself rather than people like me who have no concept of programming issues. Another case of my speaking too soon w/o thinking it thru.

Regards,
Tord Romstad
Posts: 1808
Joined: Wed Mar 08, 2006 9:19 pm
Location: Oslo, Norway

Re: Glaurung wrong mate scores

Post by Tord Romstad »

geots wrote:No offense meant here, Uri. But if you are going to show me a bug found in a program, please show me where you found it in a position that actually came up or could easily come up in game play. All these weird positions that are impossible to reproduce in game play are just a waste of time and bandwidth IMHO.
Not necessarily: Sometimes it could happen that the bugs you see in such extremely artificial positions can have a negative effect in some normal chess positions, too, but be much more difficult to spot there. In this particular case, the bug has zero importance for practical game play (the bug can only occur when one side has a material advantage worth more than 100 pawns), but in other cases it could be different.

Tord
Dann Corbit
Posts: 12537
Joined: Wed Mar 08, 2006 8:57 pm
Location: Redmond, WA USA

Re: Glaurung wrong mate scores

Post by Dann Corbit »

Tord Romstad wrote:
glorfindel wrote:Is that why many engines are reporting a score of +327.66 when they see a mate? I always wondered what is the significance of this number.
You are probably right. If an engine uses signed 16-bit integers to represent scores (which is probably a common choice), the possible range of scores is from -32768 to +32767 (the number 32768 is equal to 2 to the power of 15). It is therefore natural to use 32767 (or something similar) to represent the best possible score, i.e. a mate. If the value of a pawn is represented by the number 100, a mate score will be printed as something close to +327.66.

In Glaurung, it looks a bit different: The value of mate is +30000, and the value of a pawn is 256. When the scores are printed to the standard output, they are converted to the scale pawn = 1.00, and mate scores are displayed as "mate in n" rather than as a numerical score.

Tord
The frequently seen 32766 is directly from the PGN standard:

"16.2.5.6: Opcode "ce": centipawn evaluation

The opcode "ce" indicates the evaluation of the indicated position in centipawn
units. It takes a single operand, an optionally signed integer that gives an
evaluation of the position from the viewpoint of the active player; i.e., the
player with the move. Positive values indicate a position favorable to the
moving player while negative values indicate a position favorable to the
passive player; i.e., the player without the move. A centipawn evaluation
value close to zero indicates a neutral positional evaluation.

Values are restricted to integers that are equal to or greater than -32767 and
are less than or equal to 32766.

A value greater than 32000 indicates the availability of a forced mate to the
active player. The number of plies until mate is given by subtracting the
evaluation from the value 32767. Thus, a winning mate in N fullmoves is a mate
in ((2 * N) - 1) halfmoves (or ply) and has a corresponding centipawn
evaluation of (32767 - ((2 * N) - 1)). For example, a mate on the move (mate
in one) has a centipawn evaluation of 32766 while a mate in five has a
centipawn evaluation of 32758.

A value less than -32000 indicates the availability of a forced mate to the
passive player. The number of plies until mate is given by subtracting the
evaluation from the value -32767 and then negating the result. Thus, a losing
mate in N fullmoves is a mate in (2 * N) halfmoves (or ply) and has a
corresponding centipawn evaluation of (-32767 + (2 * N)). For example, a mate
after the move (losing mate in one) has a centipawn evaluation of -32765 while
a losing mate in five has a centipawn evaluation of -32757.

A value of -32767 indicates an illegal position. A stalemate position has a
centipawn evaluation of zero as does a position drawn due to insufficient
mating material. Any other position known to be a certain forced draw also has
a centipawn evaluation of zero."