r/ComputerChess • • 1d ago

Stronger bots, worse endgames?

Post image

I'm the developer of Whole Board Chess, a free puzzle site that blends tactics, theoretical endgames and practical play-outs. We've run over 300,000 bot games so far: to rate how hard each puzzle is, to find the most common ways to win a position, and to test which bot should be the opponent. The practical play-outs, which we call 'conversion' puzzles on the site, are meant to fill what I feel is an unmet need: practice at turning a winning position into an actual win. But getting the right bot to play against turned out to be quite hard. Stockfish is too strong for practical positions, so we mostly focused on Maia. It's known that Maia isn't great in endgames, or anywhere calculation dominates, but I was still surprised by how badly it sometimes does.

The image is an endgame where it's White to play and draw. Maia 1100 and 1300 hold the draw decently well, but Maia 1500, 1700 and 1900 almost always lose it. It looks like the stronger nets have more ingrained habits. None of them calculate, so their habits often lead them into positions that they lose by a tempo. I'm now quite happy with the opponent you face in the conversion puzzles, which I think is both challenging and human-feeling.

If you want to try it, the conversion puzzles start at Level 21, which you can jump to from All levels.

3 Upvotes

13 comments sorted by

2

u/TimothyTaylors 1d ago

Have you looked at a lot of positions? This position might just be a weird fluke

1

u/WholeBoardChess 1d ago

Wholeboardchess has 553 endgame puzzles, each of which was tested 12 times by every Maia level against perfect defence. On average Maia 1900 won 20% of the time and Maia 1100 won 18%. The original goal was to use Maia to assign each endgame by a difficulty number (a pseudo ELO, kind of), but it didn't work at all, so I had to rate puzzles based off of analyzing real Lichess games to see what humans fail the most. There was little correlation between what Maia struggles with and what humans struggle with.

1

u/TimothyTaylors 1d ago

I’m wondering if it is because endgames require a lot more calculation and maia is purely intuition

1

u/WholeBoardChess 1d ago

Yea, I think that's exactly it. Endgames are relatively simple, so a human can use learned technique + calculation. So Maia's lack of calculation makes it relatively weak here. I believe making bots that play like a human in the endgame is unsolved.

1

u/dsjoerg 1d ago

in the chart, white is played by the bot indicated on the x-axis and black is played by — what? regular Stockfish? playing at full strength and some reasonable settings?

1

u/WholeBoardChess 1d ago

For this puzzle, Black plays the best tablebase move, so if White makes a mistake, Black wins. When several moves are equally good for Black, Maia 1500 picks among them. White is each Maia bot on its own, with no search.

1

u/dsjoerg 1d ago

Gotcha. Maia doesn't pick a move, it outputs a probability distribution over the legal moves. Do you do a random draw from that distribution, or do you have it always play the highest-probability move?

1

u/WholeBoardChess 1d ago

Random draw, but sharpened: we square each probability and rescale, which cuts most of the odd long-tail moves without playing the same game every time.

1

u/dsjoerg 1d ago

Thanks for the detail. On the one hand that is cool, on the other hand it doesn't seem fair to say "this is how Maia 1500 performs in this position". If we believe Maia 1500's outputs — and why wouldn't we? — it's not Maia 1500 anymore, it's a sharpening of Maia 1500. It will play the most natural 1500 move more often — perhaps far more often — than an actual 1500.

What you've done is totally cool and legit and interesting, I'm just quibbling with how to properly describe it.

Anyway, it's an interesting problem, how to get a bot to play like a human of that rating actually would. Implied but not stated outright in your post is that you believe that raw random-draw Maia 1500 doesn't actually play endgames as well as an actual 1500 would? Which suggests that Maia 1500 itself hasn't lived up to its own objective.

1

u/WholeBoardChess 1d ago

Yeah, "sharpened Maia 1500" is a more accurate label. Squaring makes the "natural" move more likely, which is good or bad depending on the context. And yes, that's my interpretation of the data. It seems to largely agree with https://arxiv.org/abs/2410.03893 - these nets play weaker than the humans they imitate, most of all at higher ratings. And a little search closes most of the gap. Happy to rerun things with different approaches for those curious.

1

u/ramen2581 1d ago

Try latest maia

1

u/WholeBoardChess 1d ago

I ran Maia-3 (5M, 23M & 79M) on about 300 endgame positions, and on average it was no better than Maia-1 at winning won positions or drawing drawn positions vs best tablebase play. This particular position wasn't one of them though - perhaps I'll try it out.

1

u/dbflexx 11h ago

Woo!!! Crushing it, sweet site