Tiny Cube Solver
A small model that learned to solve the Rubik's Cube without ever seeing a solution.
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
- Scramble
- Solve
- GPT-6 Astra (xhigh): solved in 85 moves
- GPT-5.6 Sol (xhigh): wrong answer
- GPT-6 Sol (max): no answer
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:
- Try all 18 moves from every position it is keeping.
- Ask the model to score each new position.
- Keep the best 1,024.
- Repeat until one of them is the solved cube.
| Scramble | Cubes | Solved | Moves | Shortest known | Time |
|---|---|---|---|---|---|
| 3 moves | 25/25 | 3.0 | 3.0 | 0.1s | |
| 6 moves | 25/25 | 6.0 | 6.0 | 10.6s | |
| 10 moves | 25/25 | 10.0 | 10.0 | 29.7s | |
| 15 moves | 25/25 | 20.4 | 15.0 | 80.0s | |
| 20 moves | 24/25 | 22.0 | 20.0 | 89.2s | |
| 25 moves | 24/25 | 21.9 | 21.8 | 88.4s | |
| 30 moves | 25/25 | 21.6 | 21.7 | 85.7s | |
| 40 moves | 23/25 | 23.0 | 21.9 | 94.4s | |
| 50 moves | 23/25 | 21.9 | 21.6 | 89.6s | |
| 100 moves | 23/25 | 21.5 | 21.7 | 87.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.
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.
| Model | Cubes 1–10 | Solved | Moves |
|---|---|---|---|
| Tiny Cube Solver | 10/10 | 20.7 | |
| GPT-6 Astraxhigh | 9/10 | 107.4 | |
| GPT-5.6 Solxhigh | 2/10 | 126.0 | |
| GPT-6 Solmax | 2/10 | 81.0 | |
| Claude Opus 5.5low | 1/10 | 110.0 |
solvedwrong answerno answer
Language model results from RubiksBench, 2026-09-24.
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.
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.
- 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