Back to AI Research

AI Research

CRAM solves two puzzle benchmarks with a fast energy-based method

Key Takeaways

  • CRAM learned to solve Sudoku-Extreme and Maze-Unique in under a second on one H200 in the authors' study.
  • The paper bounds the claim to puzzle tests.
  • CRAM learns an energy function for solving constrained puzzles.
  • Its authors report much shorter training times than looped models on two named benchmarks.
  • The authors of the CRAM paper report that a learned energy function can solve some standard reasoning puzzles with far less training time than the looped models they tested.

The authors of the CRAM paper report that a learned energy function can solve some standard reasoning puzzles with far less training time than the looped models they tested. The result comes from Sudoku-Extreme and Maze-Unique, where the structure of the problem gives the solver a way to check its progress.

What CRAM learns

CRAM learns an energy function inspired by the work of John Hopfield and David Tank. Instead of having a model repeat a general computation for a fixed number of cycles, the method searches for states with lower energy. The energy expresses constraints learned from the puzzles. A stopping test can end the search when appropriate, so an easier instance need not use the same amount of computation as a harder one.

The two headline training results

On one H200, the authors report training times of 42 milliseconds for Sudoku-Extreme and 132 milliseconds for Maze-Unique. They report 99.996% and 100% test success, respectively. In that comparison, training was at least 1,000 times faster than the looped models evaluated. On Sudoku-Extreme the authors also report that CRAM matched the best baseline accuracy with at least 282 times fewer inference floating point operations.
The training time and inference count are different measurements. The first refers to learning on a specified GPU and benchmark. The second estimates computation needed to solve a puzzle after training.

What a reasoning benchmark should distinguish

The authors caution against treating puzzles that a simpler approach can solve as evidence of general reasoning. Their result supports testing whether a benchmark can distinguish general methods from ones that learn its particular constraints. If you use these figures to compare reasoning systems, keep the problem family, the hardware and the stopping rules in view. The paper does not establish the same speed or accuracy on open-ended reasoning.

Comments