DOORMAX, a rule learner from the literature — result

Report · File revision
  • Plan: spec
  • Status: done
  • Date: 2026-11-23

Result #

100 runs of the same 300 puzzles as 001-02. Brackets are 95% confidence intervals for the median across runs.

Is it DOORMAX? On our build of the paper's Taxi world it needed 432 steps on average over 100 runs (median 427.5 [405 to 449], range 317 to 608), against the paper's 529. That is inside the half-to-double range set in the plan, with no wrong predictions.

On the puzzle. Two versions of DOORMAX are reported, because the 2008 paper's printed predict step and its own proof differ (see "The paper" below). The first is the planned run. The second was added after it, on the reviewer's finding.

Elephant (001-02) DOORMAX, following the proof DOORMAX, as printed Oracle
Presses it could not predict n/a 36 [36 to 36], 35 in one run 28 in all 100 runs 0
Last press it could not predict n/a 44 [41 to 65] 35 [34 to 58] n/a
Presses on its first impossible puzzle 862,470 38 [10 to 39] 33 [13 to 33] 0
Presses on its first solvable puzzle 360,239 27 [25 to 56] 27 [25 to 47] 22
Presses on a typical solvable puzzle 36.5 22 22 22
Presses per shortest-route press, last 50 1.90 1.00 1.00 1.00
Stored at the end of a run 1,047,568 facts 40 rules 40 rules n/a
Total presses in a run 1,229,082 3,338 3,329 n/a
Boards examined in its head, per run 37.0 million 39.7 million 39.8 million n/a

For both versions: no wrong prediction on any real press; at the end of every run all 1,451,520 board-and-button predictions were right (145,152,000 over 100 runs), including the half of the boards never visited; every solvable puzzle was solved and every impossible one called; and all 100 runs ended with the same rules. To call a later impossible puzzle it examines 181,440 boards in its head, every time.

Checks. Runs 0 to 9 done with both shortcuts off are identical to the main runs, 10 of 10. Runs 0 to 9 in ordinary Python are identical to the PyPy runs, 10 of 10. 35 tests pass. An independent reviewer read the code and the paper; its findings are below.

Time on a 10-core MacBook Air: main run 9.5 minutes under PyPy on 8 processes; the no-shortcuts reference 70 minutes on 10; the as-printed run 11.5 minutes; the Taxi check 3 seconds.

Conclusion #

  • The prediction held. We expected every rule learned in 30 to 70 presses; the last unpredicted press came at press 44 in a typical run.
  • The number measures the description we handed over, not DOORMAX's learning. The twelve facts never mention which tile is where, so across all 362,880 boards DOORMAX sees only 9 different situations, one per gap square. Times 4 buttons that is 36 questions. Following the proof it paid for all 36 (35 in one run), as a plain 36-row table would. As printed it paid for 28, working out the other 8.
  • So the drop from 862,470 presses to about 30 was made by the person who chose the facts. That choice turned 181,440 boards into 9 situations before any learning. On a tray this small there is little left to generalise.
  • The mark for later agents is 28 presses, with the seven handed items listed in the plan. An agent of ours should be compared on both: presses, and how much shorter its list is.
  • Rules did not make thinking cheaper. Saying "impossible" still costs 181,440 boards examined, about what the Elephant pays. Only a rule like odd-or-even removes that.

Hypothesis it suggests: an agent told only "nine cells, and same or different" can find those 9 situations for itself and still learn the rules in a few dozen presses.

The paper #

Two steps are not as the 2008 paper prints them. Each printed version can be switched back on, and a test shows it failing on our Taxi.

  • Predicting. Printed: answer when the rules that speak agree. Proof of Corollary 1, and the author's 2010 thesis (Algorithm 10): answer only if every kind of effect still in play can predict. As printed it made 44 wrong predictions in 44 of 100 Taxi runs as we built Taxi, and none on the puzzle. The reviewer found no wrong predictions on a Taxi where a carried passenger keeps the pick-up position, so this may come from our build, which the paper leaves open.
  • Overlap. Printed (and in the thesis): discard a kind of effect when one rule's condition contains another's. As printed the learner looped without end in 8 of 20 Taxi try-outs. We discard on any overlap. The plan's reason for this was worded wrongly: the paper's text is about containment, and it is the proof that the printed test falls short of. Our test is also wider than needed: the reviewer built a small world where it discards a correct kind, and a narrower test that gives the same numbers on Taxi and on the puzzle samples.

A search of the thesis and of public code found no earlier note of either point.

Limits #

  • The Taxi check is weak. Our 432 is 18% below the paper's 529, and every variant the reviewer tried also fell in the accepted range, including the as-printed one that predicts wrongly. It shows "close to the paper", not "the same method". Our Taxi also never starts the passenger at the destination, which Dietterich's original allows.
  • The plan was amended after try-out runs, which bends the rule that a plan is frozen first. The amendments say what had been seen. They did not say that the second change would move the puzzle's number from 28 to 36.
  • One measure in the plan is two names for one thing. Following the proof, rules only ever change on a press it could not predict, so "last rule change" equals "last unpredicted press" in every run. As printed they differ (78 against 35).
  • "40 rules" depends on the paper's k. With k = 3 it behaves the same and stores 52.
  • Not done at scale: "several processes give the same numbers as one" is a test, not a run. The table comparison and the alternative Taxi are the reviewer's checks on a few small runs, not part of this experiment.
  • One world, one description. A different choice of facts would give a different number.