Live data from Hacker News

Training GPT-2 to Play Chess

slatestarcodex.com

21–30 of 39 posts

Re: Training GPT-2 to Play Chess

#21
> GPT2 Chess update: I wrote some code to calculate the probability of all valid chess moves. It can reach endgame now.[0]

Shocking. Our AI overlords will soon stumble into power, if we only point out where they're slipping up.

[0] https://twitter.com/theshawwn/status/1213559429293060099

Re: Training GPT-2 to Play Chess

#23
post #18

Earlier quoted context omitted.

Similar, but GPT-2 is better at text prediction than the Markov chains used on your phone.

Do phones use Markov chains at this point? It feels like they've gotten better recently, and I wonder if maybe they're using something fancier?

Markov chains are pretty smart - you've probably just trained yours more

Re: Training GPT-2 to Play Chess

#24
post #8

An amusing point from the comments > It’s not even trying to be competitive, it’s just guessing how the game will continue. If you blunder, it might guess that this must be a game between two blundering fools, and play accordingly. In a certain sense, GPT-2 is optimized to "look good to people interested in AI." Above all else it tries to generate plausibly-human-looking things, while completely oblivious of any othe…

It’s a pity that the common annotation for a “surprising” move is to follow the move code with an examination mark (or two) rather than preceding it; otherwise we would have a simple way of making the model generate surprising moves on command. :)

> otherwise we would have a simple way of making the model generate surprising moves on command

One method would be to just take the 3rd or 4th best move option. It wouldn't be a winning strategy but it would probably be pretty surprising and still moderately effective.

Also, I'd imagine that the most surprising moves would require the opponent to make a very precise series of moves to avoid a losing position. While the best moves usually slowly improve your position, the most surprising moves might polarize the position by giving the opponent a chance to improve but also making the chance of a costly blunder more likely.

In that sense you could look for moves that give the opponent the fewest number of positive expected value moves rather than finding moves that give your opponent the lowest possible EV response.

Re: Training GPT-2 to Play Chess

#26
post #25

This is amusing but doesn't really prove anything special about GPT-2 or general intelligence. You can probably get similar results with an n-gram model.

Though this is not particularly strong, I don't think you would get similar strength from an n-gram model. You need longer-term correlations, which is generally where transformers do well.

Re: Training GPT-2 to Play Chess

#28

An amusing point from the comments > It’s not even trying to be competitive, it’s just guessing how the game will continue. If you blunder, it might guess that this must be a game between two blundering fools, and play accordingly. In a certain sense, GPT-2 is optimized to "look good to people interested in AI." Above all else it tries to generate plausibly-human-looking things, while completely oblivious of any othe…

Plenty of human behavior is generating plausibly-human-looking things completely oblivious of any other goal.

Re: Training GPT-2 to Play Chess

#29
post #27

Reminds me of an old project of mine: n-gram chess. Similarly ok in openings, awful in endgames, and generally bad at chess. https://github.com/ElliotPenson/n-gram-chess

Love the board! I tried unicode chess pieces, but Colab made them all wonky. https://imgur.com/onVznER

Big fan of the Lisp too. Gorgeous code.

Re: Training GPT-2 to Play Chess

#30
post #26
post #25

This is amusing but doesn't really prove anything special about GPT-2 or general intelligence. You can probably get similar results with an n-gram model.

Though this is not particularly strong, I don't think you would get similar strength from an n-gram model. You need longer-term correlations, which is generally where transformers do well.

Someone apparently did it with n-grams in 2015, and it reaches move 13 or so: https://twitter.com/kcimc/status/1214713412963291136

Someone else tried this with GPT-2 a few months ago on algebraic notation and their engine seems to get to move 40 without blundering: https://www.reddit.com/r/slatestarcodex/comments/el87vo/a_ve...

Board state + algebraic notation might be the trick to make a strong engine.

Post reply on HN