It is currently Thu Apr 18, 2024 2:28 am

All times are UTC - 8 hours [ DST ]




Post new topic Reply to topic  [ 6 posts ] 
Author Message
Offline
 Post subject: Board evaluations unbiased by komi
Post #1 Posted: Thu May 05, 2022 12:56 am 
Dies with sente

Posts: 100
Liked others: 0
Was liked: 15
Rank: KGS 2 dan
KGS: hakuseki
I would like to know the best way to evaluate a position using a computer. For example, this position:

Click Here To Show Diagram Code
[go]$$Wc White to play
$$ ---------------------------------------
$$ | . . . . . . . . . . . . . . . . . . . |
$$ | . . . . . . . . . . . . . . . . . . . |
$$ | . . . . . . . . . . . . . . . . . . . |
$$ | . . . X . . . . . , . . . . . X . . . |
$$ | . . . . . . . . . . . . . . . . . . . |
$$ | . . . . . . . . . . . . . . . . . . . |
$$ | . . . . . . . . . . . . . . . . . . . |
$$ | . . . . . . . . . . . . . . . . . . . |
$$ | . . . . . . . . . . . . . . . . . . . |
$$ | . . . , . . . . . , . . . . . , . . . |
$$ | . . . . . . . . . . . . . . . . . . . |
$$ | . . . . . . . . . . . . . . . . . . . |
$$ | . . . . . . . . . . . . . . . . . . . |
$$ | . . . . . . . . . . . . . . . . . . . |
$$ | . . . . . . . . . . . . . . . . . . . |
$$ | . . . X . . . . . , . . . . . X . . . |
$$ | . . . . . . . . . . . . . . . . . . . |
$$ | . . . . . . . . . . . . . . . . . . . |
$$ | . . . . . . . . . . . . . . . . . . . |
$$ ---------------------------------------[/go]

When I set up this position in KaTrain with Japanese rules, I get different estimates depending on the komi, as follows:
Code:
Komi    Value    Value+Komi
0       B+45.7   B+45.7
46      B+0.9    B+46.9
47      B+0.2    B+47.2
47.5    W+0.2    B+47.3

I am using this "Value+Komi" number as an estimate of the (mathematical) value of the position. I believe this "Value+Komi" estimate is most accurate when "Value" is closest to zero, although this is just a guess. Still my best estimate may be something like 47.2 or 47.3.

I have two questions. Is there a better way to do this? And is there a more convenient way to do this? Fiddling with the komi values and waiting for KataGo to re-analyze the SGF is not super convenient. I'd like it if there were a way to get the estimate in one shot. Perhaps something to do with the parameters winLossUtilityFactor, staticScoreUtilityFactor, dynamicScoreUtilityFactor, dynamicScoreCenterZeroWeight, and dynamicScoreCenterScale in KataGo's analysis config?

Any tips would be appreciated.

Top
 Profile  
 
Offline
 Post subject: Re: Board evaluations unbiased by komi
Post #2 Posted: Thu May 05, 2022 2:09 am 
Dies in gote

Posts: 52
Liked others: 2
Was liked: 12
Another thing you can try is to find the komi which makes the win% evaluation closest to 0.5

The argument would be that the main training target is to win the game, and therefore one would expect this number to be the most accurate.
But the score prediction has also been a target for katago, so take the above with a grain of salt :-)
And this is of course no help when it comes to convenience.

Top
 Profile  
 
Offline
 Post subject: Re: Board evaluations unbiased by komi
Post #3 Posted: Thu May 05, 2022 3:26 am 
Judan

Posts: 6136
Liked others: 0
Was liked: 786
hakuseki wrote:
I would like to know the best way to evaluate a position using a computer.


Do not expect a single best way.

First, understand that typical computer evaluations are a) computer winning probabilities or b) final score predictions but not human-like current positional judgements. Second, understand the systematic weaknesses of computer evaluations. In particular, computer evaluations of the same type tend to be relative numbers for the AI's own application but not absolute numbers for human application. If we human players want to use such numbers nevertheless, our interpretation must be cautious and defensive.

To interpret computer evaluations, a) compare relative to other computer evaluations of the same type by the same program, the same program version and preferably the same position, or b) compare to human-like current positional judgements of territory, influence, statuses, fights etc., whose territory count is not the AI's final score prediction.

Top
 Profile  
 
Offline
 Post subject: Re: Board evaluations unbiased by komi
Post #4 Posted: Thu May 05, 2022 5:55 am 
Dies with sente

Posts: 100
Liked others: 0
Was liked: 15
Rank: KGS 2 dan
KGS: hakuseki
RobertJasiek wrote:
If we human players want to use such numbers nevertheless, our interpretation must be cautious and defensive.

I have a somewhat different philosophy. I would rather accept information from AI uncritically and apply it as broadly as I can imagine. The risk is that I will make a mistake in a game. But I think this risk is less than the risk of going on with my unguided 2d amateur intuition. And when I do make a mistake, then I can go back and re-evaluate whatever lesson I may have misapplied.

Top
 Profile  
 
Offline
 Post subject: Re: Board evaluations unbiased by komi
Post #5 Posted: Thu May 05, 2022 7:52 am 
Lives in sente

Posts: 757
Liked others: 114
Was liked: 916
Rank: maybe 2d
Yes, estimates are most likely to be the best when the winrate is as close to 50% as possible. There isn't any substitute for doing multiple queries to hone in the komi that makes the game the most fair, so if you want it in one shot from a GUI from a user perspective then one way or another somewhere it has to be implemented as a bunch of separate queries.

Top
 Profile  
 
Offline
 Post subject: Re: Board evaluations unbiased by komi
Post #6 Posted: Fri May 06, 2022 8:25 am 
Honinbo

Posts: 9545
Liked others: 1600
Was liked: 1711
KGS: Kirby
Tygem: 커비라고해
hakuseki wrote:
The risk is that I will make a mistake in a game.


There's also risk in thinking less. It's easy to look at an AI evaluation and think, "Oh, AI says increase of 10% for white, so it's gotta be good". But that's more like imitating AI than coming up with your own way of evaluating.

AI can probably be good for inspiration or new ideas. But it is easy to follow what it's saying without thinking. That's a risk we need to be careful of.

_________________
be immersed

Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC - 8 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group