Lab 002 · Model

Tiny Cube Solver

A small model that learned to solve the Rubik's Cube without ever seeing a solution.

Size
33.6M parameters
Full scrambles solved
142/150 (95%)
Answer length, full scramble
22.0 movesshortest known: 21.4
Time, full scramble
89s
Watch it solve

Recorded solves, on the same cubes the language models on RubiksBench faced.

Outlined: solved. Grey: gave up.

Result
Solved
Answer
19 moves
Time
73.2s
Positions scored
223,811
move 0/39 · scrambling
Scramble
Solve
The same cube on RubiksBench
How it works

The model does not write moves. It looks at one cube and guesses how many moves it is from solved. A plain search does the rest:

  1. Try all 18 moves from every position it is keeping.
  2. Ask the model to score each new position.
  3. Keep the best 1,024.
  4. Repeat until one of them is the solved cube.
Results
ScrambleCubesSolvedMovesShortest knownTime
3 moves25/253.03.00.1s
6 moves25/256.06.010.6s
10 moves25/2510.010.029.7s
15 moves25/2520.415.080.0s
20 moves24/2522.020.089.2s
25 moves24/2521.921.888.4s
30 moves25/2521.621.785.7s
40 moves23/2523.021.994.4s
50 moves23/2521.921.689.6s
100 moves23/2521.521.787.7s

solvedgave up

Moves is the average length of the solved answers. Shortest known is the shorter of the scramble played backwards and a standard solver's answer. Time is per cube, on RTX A6000. Every cube can be solved in 20 moves or fewer, so 20 moves and up counts as a full scramble.

Against the language models

The same 10 cubes, next to the best results on RubiksBench. This is not a head-to-head score. A language model must write every move in one reply, with no tools. This model runs a search that checks thousands of positions.

ModelCubes 1–10SolvedMoves
Tiny Cube Solver10/1020.7
GPT-6 Astraxhigh9/10107.4
GPT-5.6 Solxhigh2/10126.0
GPT-6 Solmax2/1081.0
Claude Opus 5.5low1/10110.0

solvedwrong answerno answer

Language model results from RubiksBench, 2026-09-24.

How it got here

Three designs, in order, with the share of full scrambles each one solved.

1 · 0%
Write the moves. The model wrote the whole answer, like a language model. It stopped working about 8 moves from solved, and a bigger model did not help.
2 · 16%
Guess the distance, learn from a solver. A search, guided by a distance guess trained on a standard solver's answers. That solver's answers are not the shortest. It labelled almost half of all random cubes "21", so above 15 moves there was nothing to learn from.
3 · 95%
Guess the distance, learn from itself. Same network, same search, new training answers. The solved cube is 0 moves from solved. A cube next to it is 1. Each round of training pushes correct answers one move further out.
Try it

The model and a one-file solver are on Hugging Face: briscoooe/tiny-cube-solver.

pip install torch transformers safetensors huggingface_hub
python solve.py --scramble "R U F' D2 L B'"

A laptop without a GPU handles short scrambles in seconds to a minute. Full scrambles need a GPU.

Limits
Speed
A standard solver finds an answer in milliseconds. This model is far slower. It exists to show that a small network can learn the task at all.
Shortest
Answers are not always the shortest.
Size
3×3×3 only.
Measured
2026-09-24