Many Right Answers at the Peak: A Tiny Recursive Model as a Guide for Exact Solvers on Hard Latin-Square Completion

Tiny recursive networks solve Sudoku and other puzzles well, and recent work has used them to guide exact solvers, but only on instances that solvers already finish in milliseconds. We test whether such a model helps on instances that are hard for modern solvers: quasigroup completion (Latin squares with holes) of order 40 at the hardness peak, where CaDiCaL needs seconds to minutes. A 300k-parameter recursive model with axial attention predicts a value for every empty cell; the predictions become CaDiCaL's preferred phases, and optionally its most confident half becomes a set of retractable assumptions. On 100 unseen puzzles, phase hints make CaDiCaL 1.99x [1.52, 2.64] faster and the assumption mode 2.73x [2.03, 3.70], while a non-learned Sinkhorn baseline with the same top-1 accuracy gives almost nothing. Counting the model's inference time, the gain remains on puzzles that take an independent solver more than a second (1.60x [1.23, 2.08]) and disappears on easy ones. It does not transfer to order 44, just outside the training sizes, and CP-SAT gains nothing from any hint source. We then show why accuracy is a poor guide at the peak: puzzles there have many valid completions, and the solution CaDiCaL returns matches the planted square on only 25-45% of the empty cells once 32% or more of the cells are empty, so even 90%-accurate hints about the planted square drop from a 200x speedup to about 2x. The model's hints contain fewer row and column clashes than Sinkhorn's, but training it to avoid clashes cuts them 7-fold without making the solver any faster. Code, trained models and per-solve results: https://github.com/masooddahmedd/recursive-solver-guidance

Authors

Publication Details

Journal
Zenodo (CERN European Organization for Nuclear Research)
Published
2026-11-22
DOI
https://doi.org/10.5281/zenodo.24446970
Primary Topic
Constraint Satisfaction and Optimization
Type
preprint
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
preprint

Many Right Answers at the Peak: A Tiny Recursive Model as a Guide for Exact Solvers on Hard Latin-Square Completion

Masood Ahmed
Zenodo (CERN European Organization for Nuclear Research)
Constraint Satisfaction and Optimization
preprint

Many Right Answers at the Peak: A Tiny Recursive Model as a Guide for Exact Solvers on Hard Latin-Square Completion

Masood Ahmed
preprint en

Abstract

Tiny recursive networks solve Sudoku and other puzzles well, and recent work has used them to guide exact solvers, but only on instances that solvers already finish in milliseconds. We test whether such a model helps on instances that are hard for modern solvers: quasigroup completion (Latin squares with holes) of order 40 at the hardness peak, where CaDiCaL needs seconds to minutes. A 300k-parameter recursive model with axial attention predicts a value for every empty cell; the predictions become CaDiCaL's preferred phases, and optionally its most confident half becomes a set of retractable assumptions. On 100 unseen puzzles, phase hints make CaDiCaL 1.99x [1.52, 2.64] faster and the assumption mode 2.73x [2.03, 3.70], while a non-learned Sinkhorn baseline with the same top-1 accuracy gives almost nothing. Counting the model's inference time, the gain remains on puzzles that take an independent solver more than a second (1.60x [1.23, 2.08]) and disappears on easy ones. It does not transfer to order 44, just outside the training sizes, and CP-SAT gains nothing from any hint source. We then show why accuracy is a poor guide at the peak: puzzles there have many valid completions, and the solution CaDiCaL returns matches the planted square on only 25-45% of the empty cells once 32% or more of the cells are empty, so even 90%-accurate hints about the planted square drop from a 200x speedup to about 2x. The model's hints contain fewer row and column clashes than Sinkhorn's, but training it to avoid clashes cuts them 7-fold without making the solver any faster. Code, trained models and per-solve results: https://github.com/masooddahmedd/recursive-solver-guidance

Zenodo (CERN European Organization for Nuclear Research)
Constraint Satisfaction and Optimization
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon
Many Right Answers at the Peak: A Tiny Recursive Model as a Guide for Exact Solvers on Hard Latin-Square Completion — Masood Ahmed · Zenodo (CERN European Organization for Nuclear Research) (2026) | TGRS Research Map | TGRS