EPFL's SFPRM Beats FPRM on Sudoku With 63% Fewer Reasoning Steps
A looped transformer that reasons on a unit sphere halts earlier, uses less compute, and lifts Sudoku-Extreme accuracy to 96.6%.
Takeaways
- SFPRM runs a weight-tied looped transformer on nGPT's unit hypersphere, making each iteration a geodesic step.
- Boundedness is automatic, replacing FPRM's four coupled rescaling coefficients and relative-norm halting criterion.
- Hits 96.6% on Sudoku-Extreme, 87.9% on Maze-Hard, 59.1% on Mini-ARC at 7M parameters.
- Halts 2.7x faster than FPRM on Sudoku; 992/1000 Maze-Hard puzzles reach a halt state.
- Token-to-input angles reveal puzzle structure and, on Sudoku, predict correctness without supervision.
- Code and checkpoints: github.com/arberzela/sfprm, huggingface.co/arberzela/sfprm.
Weight-tied transformers reuse one block across multiple iterations, giving small models adaptive reasoning depth without adding parameters. Simple inputs can halt after a few passes, while harder inputs receive more computation. A SFPRM preprint from EPFL’s LIONS lab addresses two persistent problems in this design: deciding when to stop and preventing the recurrent hidden state from growing without bound. Spherical Fixed-Point Reasoners, or SFPRM, constrain the loop to a unit hypersphere, turning each update and halting decision into bounded angular geometry.
Why Euclidean Halting Gets Messy
FPRM, SFPRM’s direct predecessor, treats a weight-tied transformer block as a damped fixed-point solver. A fixed point is a hidden state that remains unchanged by another iteration. FPRM stops when the norm of the update falls below a threshold, avoiding a separately trained halting network. The approach reached 94.2% accuracy on Sudoku-Extreme with about 7 million parameters.
FPRM’s residual stream occupies unbounded Euclidean space, so its norm can grow as the loop runs. The boundedness proof must coordinate four residual-rescaling coefficients, and the halting residual needs an additional normalization factor so thresholds remain comparable across iterations. Those mechanisms add coupled hyperparameters to training and make the stopping rule depend on a moving scale.
A Bounded Loop by Construction
SFPRM replaces the backbone with nGPT, a normalized transformer whose hidden states and parameter vectors lie on unit spheres. Each sublayer applies a learned directional update and then renormalizes the result. Hidden-state norm explosion therefore cannot occur, although bounded states can still oscillate or fail to converge.
Each iteration uses a four-stage update:
- Use spherical linear interpolation, or Slerp, to move a fraction
λfrom the current state toward the normalized input. This step reinjects the problem representation into the loop. - Apply the weight-tied nGPT block to produce a candidate state.
- Use Slerp again, moving a fraction
ηtoward the candidate. This supplies damping. - Stop when the chordal residual between the state and candidate falls below a threshold for every token.
For unit vectors, chordal distance is sqrt(2 - 2 cos(θ)), so it depends only on the angle θ and remains between 0 and 2. The halting threshold is therefore scale-independent. The paper also proves fixed-point existence, local convergence under an explicit step-size condition, and global convergence when input injection is sufficiently strong. Those guarantees depend on the stated theorem assumptions; normalization alone guarantees boundedness.
Earlier Stops, Mostly Higher Scores
At roughly 7 million parameters, SFPRM scores higher than FPRM on Sudoku-Extreme, Maze-Hard, and Mini-ARC. The two models finish within 0.1 percentage point on ARC-1.
| Benchmark | SFPRM | FPRM |
|---|---|---|
| Sudoku-Extreme | 96.6% | 94.2% |
| Maze-Hard | 87.9% | 87.0% |
| Mini-ARC | 59.1% | 55.0% |
| ARC-1 | 47.4% | 47.5% |
On Sudoku-Extreme, SFPRM cuts the reported iteration count by about 63%, equivalent to a 2.7-fold reduction. In Maze-Hard runs, 992 of 1,000 puzzles satisfy the halting criterion, compared with 950 for FPRM. A recorded halt indicates that the internal state met the convergence threshold; task accuracy is measured separately.
The benchmark suite tests multistep symbolic computation under limited supervision. Sudoku requires constraint propagation, Maze-Hard requires path finding, and the ARC variants require transformations over small grids. The results support SFPRM’s use on structured problems where repeated state refinement is a natural fit.
Anchor Angles Reveal Task Structure
Unit-norm states make each token’s angle to its input embedding directly comparable across cells and iterations. The paper calls this measurement the anchor angle and uses it to inspect how representations evolve during a rollout.
- Sudoku: Clue cells rotate toward their input embeddings, while blank cells finish near orthogonal. The resulting angle map resembles the puzzle’s clue mask. Final angles also predict per-cell correctness without a separate confidence head.
- Maze-Hard: Walls settle near 90 degrees, empty cells near 113 degrees, and path cells near 102 degrees. The class distributions overlap, limiting their value as confidence estimates.
Current Scope and Limits
SFPRM currently fits small, weight-tied models for constraint solving, grid rewriting, path planning, and state tracking. Adopting the method in a standard transformer requires a normalized nGPT-style backbone, spherical interpolation, weight tying, and a per-token halting criterion. A deployment should also retain a maximum-iteration cap because bounded states may still cycle or converge too slowly.
The evaluation covers algorithmic and symbolic benchmarks with transformer backbones. The paper does not test natural-language reasoning, large-scale generative models, or other recurrent architectures. SFPRM also provides no measurable gain over FPRM on ARC-1, and the Sudoku confidence signal does not transfer cleanly to Maze-Hard.
Run the Spherical Loop
The authors released the implementation in a GitHub repository. SFPRM weights and checkpoints for the FPRM, TRM, HRM, and EqR baselines are available through Hugging Face checkpoints.
SFPRM’s practical contribution is a bounded angular state space for adaptive computation. The design removes FPRM’s four coupled residual-rescaling coefficients, makes the stopping threshold scale-independent, and reduces iteration counts on the reported tasks. The available evidence supports structured symbolic reasoning at small model scales; broader reasoning and language-model applications remain open research questions.