Relative Piece Values

Discussion of chess software programming and technical issues.

Moderators: hgm, Harvey Williamson, bob

Forum rules
This textbox is used to restore diagrams posted with the [d] tag before the upgrade.
mjlef
Posts: 1315
Joined: Thu Mar 30, 2006 12:08 pm
Contact:

Relative Piece Values

Post by mjlef » Thu Apr 09, 2009 3:07 pm

Most strong program seem to use relative piece values of P:N:B:R:Q of roughly 1:4:4:6:12

I recently did a bunch of runs with roughly 1:4:4:5.5:12 and it did a lot better. Are these what others are using now?
Last edited by mjlef on Thu Apr 09, 2009 3:18 pm, edited 1 time in total.

User avatar
Edsel Apostol
Posts: 733
Joined: Mon Jul 17, 2006 3:53 am
Contact:

Re: Relative Piece Values

Post by Edsel Apostol » Thu Apr 09, 2009 3:15 pm

mjlef wrote:Most strong program seem to sue relative piece values of P:N:B:R:Q of roughly 1:4:4:6:12

I recently did a bunch of runs with roughly 1:4:4:5.5:12 and it did a lot better. Are these what others are using now?
I'm using 100, 325, 325, 500, 975. Strelka uses 100,300,300,500,1000 but there's a material correction table.

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

Re: Relative Piece Values

Post by hgm » Thu Apr 09, 2009 4:15 pm

mjlef wrote:I recently did a bunch of runs with roughly 1:4:4:5.5:12 and it did a lot better. Are these what others are using now?
If it did a lot better then the result is suspect to begin with. The only trades it would affect are Q vs 2R and B/N+2P vs R. For both of these the opportunity to actually do such a trade should be quite rare.

I think first you should eliminate all games from your sample that did not have a Q vs 2R or B/N+2P vs R trade, and analyze only those that remain (as to their occurrence and average result). The other games only contribute noise.

User avatar
Greg Strong
Posts: 388
Joined: Sun Dec 21, 2008 5:57 pm
Location: Washington, DC

Re: Relative Piece Values

Post by Greg Strong » Thu Apr 09, 2009 11:51 pm

Say, H.G., what values are you using for 10x8 these days? I seem to recall you did some significant research in this area.

Thanks!

bob
Posts: 20342
Joined: Mon Feb 27, 2006 6:30 pm
Location: Birmingham, AL

Re: Relative Piece Values

Post by bob » Fri Apr 10, 2009 12:05 am

mjlef wrote:Most strong program seem to use relative piece values of P:N:B:R:Q of roughly 1:4:4:6:12

I recently did a bunch of runs with roughly 1:4:4:5.5:12 and it did a lot better. Are these what others are using now?
I think those that use such values are using them as a crutch, to avoid the traditional problem of minor for three pawns (bad) and two minors for rook + pawn (also bad).

One can also dynamically adjust scores based on various combinations, or just catch the two above where I have always had a "bad trade" concept in Crafty so that I don't have to tweak with material values to solve that particular issue...

User avatar
Bill Rogers
Posts: 3562
Joined: Thu Mar 09, 2006 2:54 am
Location: San Jose, California

Re: Relative Piece Values

Post by Bill Rogers » Fri Apr 10, 2009 4:30 am

Years ago I discovered a little known fact about the value of pieces. What I did was to count the number of square that each piece could attack. I then added one point to each piece that could attack both colors with the exception of the King which I subtracted one point. When all the pieces were totaled I diveded the totals by three. It comes out to an amazingly close answer to what the pieces have been rated over the years.
Have a few spare minutes, give it a try.
Bill

Tony

Re: Relative Piece Values

Post by Tony » Fri Apr 10, 2009 5:25 am

Bill Rogers wrote:Years ago I discovered a little known fact about the value of pieces. What I did was to count the number of square that each piece could attack. I then added one point to each piece that could attack both colors with the exception of the King which I subtracted one point. When all the pieces were totaled I diveded the totals by three. It comes out to an amazingly close answer to what the pieces have been rated over the years.
Have a few spare minutes, give it a try.
Bill
If you take the number of the day of the week, take the srt 64 times, and add 2 if the piece is a jumper, add 2 if it can move diagonally, add 4 if it can move orthoganally and add 2 if the piece starts with a Q, you will get pretty close to the default values as well.

:)

Tony

User avatar
michiguel
Posts: 6264
Joined: Thu Mar 09, 2006 7:30 pm
Location: Chicago, Illinois, USA
Contact:

Re: Relative Piece Values

Post by michiguel » Fri Apr 10, 2009 6:08 am

mjlef wrote:Most strong program seem to use relative piece values of P:N:B:R:Q of roughly 1:4:4:6:12

I recently did a bunch of runs with roughly 1:4:4:5.5:12 and it did a lot better. Are these what others are using now?
IMHO, It depends a lot what else it is done in evaluation. I think that looking at these values is meaningless. For instance, if you give penalties for lack of mobility of bonuses for increased mobility, it will affect the optimal value of the piece.

Miguel

FrancoisK
Posts: 80
Joined: Tue Jul 18, 2006 8:46 pm

Re: Relative Piece Values

Post by FrancoisK » Fri Apr 10, 2009 8:12 am

Hi,

I am using 1000 : 3250 : 3250 : 5000 : 9750 in BugChess2.
However Miquel is right : the average bonus added by evaluation should be take into account if it changes with piece type.

As I think there is room for improvement in this area in my engine, i have started generating my material table.
I am not taking positions from actual games like Alessandro suggested in a very interesting thread, my positions are randomly taken from my engine's analysis trees and selfplayed by my engine to know the result. I am already seeing significant improvements in fast selfplay matches after a few weeks.

Cheers

François

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

Re: Relative Piece Values

Post by hgm » Fri Apr 10, 2009 8:31 am

Greg Strong wrote:Say, H.G., what values are you using for 10x8 these days? I seem to recall you did some significant research in this area.

Thanks!
P = 85
N = 300
B = 350 (+40 for pair)
R = 475 (w.o. open-file bonus)
A = 875
C = 900
Q = 950

still modulated by piece-square positional values, of course. These are the values the pieces have on the squares where you typically find them in games. Note that this is not the same as averaging the PST values over the board, as in practice the pieces will avoid the squares with low values. So simple averagng would overestimate the importance of very bad squares (like corner squares for Knights).

But this is opening value, and since then I have done some tests in connection with Superchess that showed that the end-game values of the heavy pieces differ by more, and that Q-A is definitely more than a Pawn there.

I have not implemented this in any of my programs yet, though. It seems what is needed is a material interaction term, which discounts the value of high pieces for every lower (non-pawn) piece the opponent has. Due to such a term a Q vs R+B trade might be favorable in the precence of 2+2 other Queens (or C/A),, but not for a single Queen.

Post Reply