Lurker News
Hey HN,

We recently recorded a podcast (https://blog.ycombinator.com/scott-aaronson-on-computational-complexity-theory-and-quantum-computers/) where I discussed my research, AI, and advice for nerds in general or people who want careers in science.
We covered many but not all of the questions submitted over the internet so AMA!

Comments (356) 123 threads

Show all comments

Showing thread 20 of 123

hirundo2 replies#
Hi Scott, I'm astounded by the accomplishment of AlphaZero in quickly becoming a chess master without chess specific programming. Could a program of the same kind be adapted to infer or deduce the rules of chess from a large set of valid games? Or is that a different kind of problem?

If so, could it be adapted to learn the rules when we're not clear on them either, like those for the games of love or politics?

ScottAaronson1 reply#
You should probably wait for an AMA with someone who's actually an expert in AI, and ask them this question.

Since you asked me, though, I did a quick Google search and found the following paper:
https://arxiv.org/pdf/1711.09667.pdf
where indeed they use machine learning to induce the rules of chess from a large number of played games (and then learn to play better than any human). It doesn't surprise me at all that this would be feasible with current tools, although I haven't studied the paper yet, and would be curious to know how many games you need before you've learned all the rules around, e.g., castling, en passant, promotion of pawns, and perpetual check.
My guess is that for a machine to learn the rules of the games of love and politics will take somewhat longer. :-)

YeGoblynQueenne1 reply#
>> where indeed they use machine learning to induce the rules of chess from a large number of played games (and then learn to play better than any human).

They didn't induce the rules of chess! What they did was learn an evaluation function for chess moves, from scratch, i.e. without giving it the rules or any hand-crafted features.
So they learned a classifier for good/bad board states, which was later used in an alpha-beta minimax search. However, the classifier didn't learn the rules of the game, only a mapping from board positions to labels, good/bad. This is not made explicit in the text, but minimax typically has a rule-base to generate moves as successor states for the search; so the rules of the game were hand-crafted, but did not contribute to the learning of the evaluation function.
It's extremely hard to induce a set of rules with neural nets, or indeed any statistical machine learning algorithm. I mean, imagine representing the rules of chess as a function; let alone trying to learn that function from data.
(Full disclosure: I study algorithms that learn rules from data; they're not neural nets).

ScottAaronson7 replies#
Aha, thanks for that extremely useful clarification! I was also confused from the abstract and intro about exactly what the inputs and outputs were. Yes, the clear impression was created that they learned the rules---in the sense that they could then generate moves that would (usually? almost always?) obey the rules---when it sounds like really they just learned an evaluation function that encodes lots of implicit knowledge about the rules, of course, but that still requires a piece of code that knows the rules explicitly as a "guardrail" when generating moves.

Since you obviously know this subject, what are the best current results in the direction of inducing the rules of chess from played games?

Continue this thread — 7 replies

dreamcompiler1 reply#
Most of the rules of chess are trivial and thus should be deducible from observing less than one complete game. Rare things like castling might take a couple of games.

Love and politics have rulesets that are many orders of magnitude more complex; so complex that we don't even know how to write them all down.

YeGoblynQueenne#
>> Most of the rules of chess are trivial and thus should be deducible from observing less than one complete game. Rare things like castling might take a couple of games.

You'd think so. Try googling "chess rules induction".