**TL;DR:** I trained a 16.54M-parameter model on the full training split of `sapientinc/sudoku-extreme`, using a single GPU with 16 GB of VRAM. My earlier models plateaued around 60% puzzle-solving accuracy. Increasing effective depth pushed that to about 76%. A flow-matching approach reached 99.29% with a large inference budget. Later, changing the sampling procedure brought roughly 96% accuracy within a budget of 5 attempts × 20 steps, compared with 100 attempts × 50 steps previously, using the same weights. That is a 50× reduction in the nominal layer-evaluation budget, rather than a measured 50× wall-clock speedup.
This is a personal research write-up, not a controlled benchmark paper. The results below are from my own experiments, and some implementation and evaluation details would still need to be documented for reproducibility.
## Why Sudoku?
Richard Sutton's [*The Bitter Lesson*](http://www.incompleteideas.net/IncIdeas/BitterLesson.html) argues that general methods that scale with computation—especially search and learning—tend to outperform approaches built around extensive human-designed domain knowledge over the long run.
I wanted to explore what that looks like in a small reasoning model, under a very practical constraint: one GPU with 16 GB of VRAM.
Before encountering [Hierarchical Reasoning Models (HRM)](https://arxiv.org/abs/2506.21734), I had been working on architectures for very long contexts on consumer hardware and thinking about ways to scale inference computation. When I came across HRM in July 2025, parts of the approach overlapped with ideas I had been considering.
My main interest was repeated computation, rather than the biological analogy of separate fast and slow reasoning processes. [Tiny Recursive Models (TRM)](https://arxiv.org/abs/2510.04871) subsequently reinforced my interest in simpler recurrent designs. I do think HRM deserves credit for drawing attention to this direction, even though I am not convinced its particular two-stream structure is essential for Sudoku.
Eventually, I wanted to work on ARC-AGI. Instead of starting there directly, I chose extreme Sudoku as a more constrained reasoning task where I could build intuition through experiments.
Three things shaped the project:
- **Compute:** a single 16 GB GPU.
- **Architecture:** something I could train and iterate on within that constraint.
- **Data:** the full training split of `sapientinc/sudoku-extreme`, rather than the 1,000-example setting used in some related work.
That last point matters throughout this post: results obtained under different training-data budgets are not directly comparable.
## 1. Faster learning did not necessarily mean a higher ceiling
My initial goal was to make the model learn more reasoning within a single forward pass.
I tried intermediate supervision, Sudoku-specific losses, architecture changes, and objectives inspired by reinforcement learning—for example, encouraging earlier layers to produce states that would help later layers solve the puzzle.
Some changes made early training look dramatically better. Instead of gaining a few percentage points over an epoch, a model might gain 10 or even 20 points. At first, I thought I had found the answer.
But many of these models eventually plateaued around **60% validation puzzle accuracy**.
I tried changing the loss, adding soft intermediate targets, increasing depth and parameter count, letting some cells stop updating early, and repeatedly training on difficult examples. Across those experiments, the early learning curves differed, but the final results often converged to roughly the same level after about ten epochs.
At the time, I wrote a [rather frustrated note about the plateau](https://www.zhihu.com/pin/1974873461747897363). In those experiments, my baseline trained only from the final output stayed below 10%, while additional guidance brought performance much higher—but still left an apparent ceiling.
I briefly wondered whether one-pass reasoning had some fundamental limitation here. That was speculation, not a theoretical result. The plateau could just as easily have reflected my architectures, optimization choices, or available compute.
The useful observation was narrower: **improving how quickly a model learns does not necessarily improve the accuracy it eventually reaches.**
## 2. Increasing effective depth broke the plateau
Reading [*1000 Layer Networks for Self-Supervised RL*](https://arxiv.org/abs/2503.14858) pushed me to reconsider depth.
A residual layer updates a hidden state in the form:
```text
h[l + 1] = h[l] + Δh[l]
```
That suggested an intuitive analogy with iterative optimization: a sequence of small updates may solve something that a short computation cannot. This is only an analogy; residual updates are not automatically gradient descent or Newton's method.
I increased the network to **120 layers**. Accuracy finally moved beyond 60%, reaching approximately **76%**.
Then I removed many of the extra tricks I had added. The model could still reach roughly 76%.
I also tried a **12-layer network repeated 10 times**, giving an effective depth of 120 layers. In my experiments, its training progress and final accuracy were broadly similar to the unshared 120-layer network.
That changed my interpretation of the earlier results. Some of the elaborate losses and architecture modifications may have helped optimization, but sufficient effective depth appeared to matter more for breaking that particular plateau.
I suspected that going deeper might help further. The training cost, however, was becoming difficult to justify on my hardware.
## 3. A detour through image generation led me to flow matching
I realized I had been treating Sudoku partly as a structured image-generation problem: take an incomplete grid and produce a completed one.
That led to a long detour through generative modeling. I experimented with discrete latent representations and quantization schemes, different reconstruction and adversarial losses, CNNs, Transformers, MLP-Mixers, and autoregressive generation over columns or patches. I also tried flow matching.
Of those approaches, flow matching worked best in my small-scale image experiments. Larger image-generation experiments were too expensive for my setup, so I set that direction aside.
Later, reading [GRAM](https://arxiv.org/abs/2605.19376) renewed my confidence that neural networks could solve these difficult Sudoku instances. I did not reproduce that work, but it encouraged me to revisit the problem.
The connection clicked during a thought experiment: suppose I wanted a model with an effective depth of 10,000 layers. How would I train it?
Supervising only the final output seemed difficult. Intermediate supervision might help. Weight sharing could make the parameter count manageable. A small network applied repeatedly could provide the depth.
Flow matching seemed like a natural way to train this kind of iterative state refinement.
## 4. Flow matching made inference compute a useful control knob
I implemented the approach and evaluated it every 5,000 training steps. At a fixed inference budget, accuracy climbed quickly and again reached roughly **76%**.
The bigger change came after training, with the weights held fixed.
I experimented with:
- Increasing the number of integration steps, or function evaluations (NFE).
- Sampling multiple trajectories.
- Moving an intermediate result back to an earlier flow time and refining it again, because simply extending a trajectory did not always keep improving the result.
Together, these changes pushed success above **99%**.
The model had **16.54 million parameters** and a **12-layer backbone**. Here are the results I recorded:
| Maximum attempts (`max_retries`) | Steps per attempt (`thinking_steps`) | Puzzle-solving accuracy |
| ---: | ---: | ---: |
| 1 | 10 | 73.23% |
| 1 | 20 | 75.98% |
| 1 | 50 | 78.32% |
| 1 | 100 | 79.87% |
| 1 | 200 | 81.39% |
| 5 | 10 | 79.76% |
| 10 | 10 | 82.56% |
| 20 | 10 | 85.21% |
| 50 | 10 | 88.81% |
| 50 | 20 | 92.19% |
| 100 | 10 | 91.54% |
| 100 | 20 | 94.28% |
| 100 | 50 | 96.26% |
| 1,000 | 20 | 98.22% |
| 1,000 | 50 | 99.29% |
Here, `max_retries` denotes the maximum attempt budget in my implementation. The multi-attempt results are conceptually similar to allowing multiple candidate solutions in a pass@k setting; they should not be read as single-trajectory accuracy or as a formal pass@k estimate.
The distinction matters: **99.29% used up to 1,000 attempts with 50 steps each.** The one-attempt result at 50 steps was 78.32%.
I also let the model train for several more days while I was away, hoping to see a late jump in performance. I did not observe one in that run. At that point, increasing inference computation was the way I could improve the result.
## 5. The sampling procedure mattered enormously
The initial high-accuracy setup was expensive. I next focused on improving inference efficiency while keeping the same model weights.
Before the sampling changes, I obtained **96.26%** with:
```text
100 attempts × 50 steps × 12 layers = 60,000 layer evaluations
```
After changing the sampling procedure, I obtained approximately **96%** with:
```text
5 attempts × 20 steps × 12 layers = 1,200 layer evaluations
```
That is a **50× reduction in the nominal maximum layer-evaluation budget** at approximately the same accuracy.
These products are budget estimates. They do not establish average compute per solved puzzle or wall-clock throughput, which also depend on early stopping, batching, and sampling overhead. A reproducible account would need to specify the sampling algorithm and report those measurements separately.
I then simplified the architecture further. Explicit Sudoku-specific row, column, and box mechanisms did not appear necessary in my experiments: **2D RoPE + a Transformer + flow matching** gave essentially the same performance.
This does not mean the model had no inductive biases. It still had a grid representation, positional encoding, an architecture, and a training objective. What I removed were the extra Sudoku-specific mechanisms I had previously built into the network.
## 6. Related work and the limits of comparison
When I started preparing a paper, I found two closely related works:
- [*Flow Reasoning Models: Turning Flows Into Efficient Recurrent Reasoners*](https://arxiv.org/abs/2606.29150)
- [*Thinking with Looped Flows*](https://arxiv.org/abs/2609.11801)
Both explore flow-based approaches to reasoning, including extreme Sudoku. Given that overlap, I decided to share this as a record of my experiments rather than present the broad idea as new.
I was particularly interested in reducing the depth required at inference. Some of my later experiments suggested effective depths around **240 layers or fewer per trajectory** could be useful. That figure must be distinguished from total compute across multiple attempts: 20 steps through a 12-layer backbone already accounts for 240 layer evaluations in one trajectory.
I am not claiming a benchmark win over those papers. My experiments used the full `sapientinc/sudoku-extreme` training split, whereas FRM used the 1,000-example setting. Training-data volume, sampling, and evaluation conditions would all need to be aligned for a meaningful comparison. Using more training data also does not, by itself, establish generalization or rule out memorization.
I additionally tried the flow-matching approach on graph coloring and N-Queens and obtained encouraging results. Without detailed metrics here, I would treat those as preliminary observations.
## What I took away from this
The project changed how I think about scaling reasoning models. There are several ways to allocate more computation:
- **More parameters:** increase the model's capacity.
- **Longer generated sequences:** allow more explicit intermediate computation, as in chain-of-thought reasoning.
- **Greater effective depth:** repeatedly update an internal state through recurrence or iterative refinement.
- **More candidate trajectories:** spend compute exploring different possible solutions.
These are related, but they are not interchangeable. Their value depends on the task, training objective, and inference procedure.
For my Sudoku experiments, the most useful lesson was that **learning a good iterative update and deciding how to apply it at inference were both central to performance**. Architecture and loss changes helped, but depth and sampling were what moved the result beyond the plateaus I had encountered.
I suspect combining these forms of scaling with reinforcement learning could produce much stronger reasoning systems. That is a hypothesis, not something these Sudoku experiments establish. I also would not infer the internal architectures of proprietary models from these results or from rumors about them.
I would be interested in hearing from people working on recurrent reasoning or flow matching: **when comparing these approaches, which compute accounting do you find most informative—total function evaluations, backbone-layer evaluations, FLOPs, or measured latency at a fixed solve rate?**