potentialpaper

Can a One-Layer Transformer Solve Hard Sudoku? Test-Time Compute, Generalization, and Mechanistic Analysis

Keep the title, authors and abstract in paper.json

potentialpaper · 2026-11-23 20:13 UTC · 02a4fd19d11d ·

.potentialpaper/metadata.json modified

+++ b/.potentialpaper/metadata.json
@@ -1,19 +1,5 @@
{
- "layout": 5,
- "identifiers": [
- {
- "scheme": "openreview",
- "value": "0HDtLebvI4"
- }
- ],
- "title": "Can a One-Layer Transformer Solve Hard Sudoku? Test-Time Compute, Generalization, and Mechanistic Analysis",
- "authors": [],
- "abstract": "Modern AI agents pair a language model with a harness that executes actions,\nmaintains state, and returns feedback. We study where the boundary between the\ntwo lies in its simplest form: a one-layer, one-head Transformer paired\nwith a simple harness, on Sudoku. At each step, the Transformer observes\nthe grid and the candidates of every cell and selects either a cell--digit\nplacement or $\\mathtt{REVERT}$; the harness applies the action, propagates constraints,\nand keeps the search history needed to backtrack. We train the Transformer by\nimitating a minimum-remaining-values (MRV) solver on easy puzzles only. We\nshow that the Transformer generalizes from easy to hard puzzles: applied\nrepeatedly, it solves all held-out easy, medium, and hard puzzles and $99.8\\%$\nof extreme puzzles, whose searches run to thousands of actions, and harder\npuzzles need only more test-time compute. Thanks to its simple structure, we\ncan trace how the model computes each action: attention selects the cell with\nthe fewest candidates, the MLP favors the teacher's digit at that cell, and a\ndead-end cell shifts the output to $\\mathtt{REVERT}$. With only $0.87$M parameters, the\nTransformer solves hard Sudoku almost perfectly, while prior single-model\nsolvers use $7$M to $27$M parameters.",
- "year": 2027,
- "venue": "ICLR 2027 (under review)",
- "source": "openreview",
- "license": {
- "metadata": "CC0-1.0",
- "abstract": "CC0-1.0"
- }
+ "layout": 6,
+ "kind": "paper",
+ "key": "b99dac59-1644-4ce2-8457-5726a63d87dd"
}

paper.json added

+++ b/paper.json
@@ -0,0 +1,9 @@
+{
+ "title": "Can a One-Layer Transformer Solve Hard Sudoku? Test-Time Compute, Generalization, and Mechanistic Analysis",
+ "authors": [],
+ "abstract": "Modern AI agents pair a language model with a harness that executes actions,\nmaintains state, and returns feedback. We study where the boundary between the\ntwo lies in its simplest form: a one-layer, one-head Transformer paired\nwith a simple harness, on Sudoku. At each step, the Transformer observes\nthe grid and the candidates of every cell and selects either a cell--digit\nplacement or $\\mathtt{REVERT}$; the harness applies the action, propagates constraints,\nand keeps the search history needed to backtrack. We train the Transformer by\nimitating a minimum-remaining-values (MRV) solver on easy puzzles only. We\nshow that the Transformer generalizes from easy to hard puzzles: applied\nrepeatedly, it solves all held-out easy, medium, and hard puzzles and $99.8\\%$\nof extreme puzzles, whose searches run to thousands of actions, and harder\npuzzles need only more test-time compute. Thanks to its simple structure, we\ncan trace how the model computes each action: attention selects the cell with\nthe fewest candidates, the MLP favors the teacher's digit at that cell, and a\ndead-end cell shifts the output to $\\mathtt{REVERT}$. With only $0.87$M parameters, the\nTransformer solves hard Sudoku almost perfectly, while prior single-model\nsolvers use $7$M to $27$M parameters.",
+ "license": {
+ "metadata": "CC0-1.0",
+ "abstract": "CC0-1.0"
+ }
+}