atlas

Research map / Large language models / Agents, code and math

Causal language modeling can elicit search and reasoning capabilities on logic puzzles

NeurIPS 2024 · Large language models › Agents, code and math · approach: Inductive and abstract reasoning evaluation · 1 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Trains a 42M GPT-2-style causal Transformer on Sudoku and Zebra puzzles using solver-generated decomposed reasoning orders, reaching 94.21% full-puzzle Sudoku accuracy with beam search and showing candidate sets are linearly/logit-decodable.

Problem

Whether causal language modeling Transformers trained from scratch can learn search and reasoning on logic puzzles such as Sudoku and Zebra puzzles, which frontier LLMs fail at.

Approach

Train next-token-prediction Transformers on cell-fill sequences ordered by a human-like strategy solver (decomposed reasoning order) instead of fixed or random orders, so the model learns both where to search and which value to fill; beam search and candidate-set probing then reveal the learned reasoning.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Train using solver-decomposed reasoning order instead of fixed cell order (ablation)GPT-2 Sudoku solver · Sudoku test setcomplete puzzle accuracy: around 8% to 87.18%Helped
Train using solver-decomposed reasoning order instead of random cell order (ablation)GPT-2 Sudoku solver · Sudoku test setcomplete puzzle accuracy: around 1% to 87.18%Helped
Use beam search with width 3 instead of greedy decoding (ablation)Solver-order GPT-2 Sudoku solver · Sudoku test setcomplete puzzle accuracy: 87.18 % -> 91.36 %Helped
Increase beam width from 3 to 5 (ablation)Solver-order GPT-2 Sudoku solver · Sudoku test setcomplete puzzle accuracy: 91.36 % -> 94.21 %Helped
Provide solver-selected position hints during inference (ablation)Random-order GPT-2 Sudoku solver · Sudoku test setcell accuracy: around 3 %Helped
Provide solver-selected position hints during inference (ablation)Solver-order GPT-2 Sudoku solver · Sudoku test setcell accuracy: 94.23 % -> 99.02 %Helped
Use fixed cell order rather than solver-decomposed reasoning order (ablation)GPT-2 Sudoku solver · Sudoku test setcell accuracy: 94.23 % -> 58.64%Hurt
Use random cell order rather than solver-decomposed reasoning order (ablation)GPT-2 Sudoku solver · Sudoku test setcomplete puzzle accuracy: 87.18% -> 1%Hurt
Use beam search with width 3 instead of greedy decoding (ablation)Solver-order GPT-2 Zebra solver · Zebra puzzle evaluation seteval complete puzzle accuracy: 91.17 % -> 91.83 %Helped
Increase beam width from 3 to 5 (ablation)Solver-order GPT-2 Zebra solver · Zebra puzzle evaluation seteval complete puzzle accuracy: 91.83 % -> 92.04 %Helped
Train using solver-decomposed reasoning order instead of fixed solution order (ablation)GPT-2 Zebra solver · Zebra puzzle evaluation seteval complete puzzle accuracy: 79.36 % -> 91.17 %Helped
Increase beam width from 1 to 5 (ablation)Solver-order GPT-2 Sudoku solver · Sudoku RRN evaluation seteval complete puzzle accuracy: 94.76 % -> 95.43 %Helped

Surprising findings

Limitations

Experimental setup

Datasets: Sudoku dataset (Kaggle, difficulty-rated) Zebra puzzles generated by authors RRN Sudoku test set (18k puzzles)

Benchmarks: Sudoku validation set (0.1M) RRN Sudoku evaluation set (18k) Zebra puzzle eval set (15k)

Metrics: cell accuracy complete puzzle accuracy hinted cell accuracy candidate set equivalence accuracy

Baselines: GPT-4o Gemini-1.5 Pro Recurrent Relational Network fixed-order training random-order training

Builds on: GPT-2 Chain-of-Thought prompting Recurrent Relational Network

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy