mlsanityData to 7 Oct 2026

Causal Language Modeling Can Elicit Search and Reasoning Capabilities on Logic Puzzles

arXiv 2409.10502 ↗First posted 16 Sep 2024cs.LG cs.CLcited by 35

On the map: LLM reasoning → Reasoning benchmarks and evaluation

Abstract (arXiv)

Causal language modeling using the Transformer architecture has yielded remarkable capabilities in Large Language Models (LLMs) over the last few years. However, the extent to which fundamental search and reasoning capabilities emerged within LLMs remains a topic of ongoing debate. In this work, we study if causal language modeling can learn a complex task such as solving Sudoku puzzles. To solve a Sudoku, the model is first required to search over all empty cells of the puzzle to decide on a cell to fill and then apply an appropriate strategy to fill the decided cell. Sometimes, the application of a strategy only results in thinning down the possible values in a cell rather than concluding the exact value of the cell. In such cases, multiple strategies are applied one after the other to fill a single cell. We observe that Transformer models trained on this synthetic task can indeed learn to solve Sudokus (our model solves 94.21% of the puzzles fully correctly) when trained on a logical sequence of steps taken by a solver. We find that training Transformers with the logical sequence of steps is necessary and without such training, they fail to learn Sudoku. We also extend our analysis to Zebra puzzles (known as Einstein puzzles) and show that the model solves 92.04 % of the puzzles fully correctly. In addition, we study the internal representations of the trained Transformer and find that through linear probing, we can decode information about the set of possible values in any given cell from them, pointing to the presence of a strong reasoning engine implicit in the Transformer weights.

Key facts. Cited by 35 papers in the map (data through 7 Oct 2026). Placed in Reasoning benchmarks and evaluation, one of 17 directions in LLM reasoning. Builds on 31 of its 56 references that are in the map. First posted on arXiv 16 Sep 2024.

Builds on

31 of 56 references.

Closest ancestors · 2

Same direction, newest first

  1. 2024Puzzle Solving using Reasoning of Large Language Models: A Survey17 Feb
  2. 2022ReAct: Synergizing Reasoning and Acting in Language Models6 Oct

Other references · 29

  1. 2023GPT-4 Technical Reportcited by 18,132
  2. 2021Evaluating Large Language Models Trained on Codecited by 8,053
  3. 2022Self-Consistency Improves Chain of Thought Reasoning in Language Modelscited by 5,601
  4. 2021Measuring Mathematical Problem Solving With the MATH Datasetcited by 5,203
  5. 2016SGDR: Stochastic Gradient Descent with Warm Restartscited by 4,993
  6. 2022Do As I Can, Not As I Say: Grounding Language in Robotic Affordancescited by 2,302
  7. 2016Google's Neural Machine Translation System: Bridging the Gap between Human and Machine Translationcited by 1,471
  8. 2022Least-to-Most Prompting Enables Complex Reasoning in Large Language Modelscited by 1,397
  9. 2022Inner Monologue: Embodied Reasoning through Planning with Language Modelscited by 1,057
  10. 2022Program of Thoughts Prompting: Disentangling Computation from Reasoning for Numerical Reasoning Taskscited by 1,057
  11. 2023Progress measures for grokking via mechanistic interpretabilitycited by 822
  12. 2023Gemini: A Family of Highly Capable Multimodal Modelscited by 810
17 more
  1. 2023The Linear Representation Hypothesis and the Geometry of Large Language Modelscited by 679
  2. 2016Neural Combinatorial Optimization with Reinforcement Learningcited by 600
  3. 2024TravelPlanner: A Benchmark for Real-World Planning with Language Agentscited by 385
  4. 2022PlanBench: An Extensible Benchmark for Evaluating Large Language Models on Planning and Reasoning about Changecited by 372
  5. 2023Emergent Linear Representations in World Models of Self-Supervised Sequence Modelscited by 313
  6. 2022Transformers Learn Shortcuts to Automatacited by 260
  7. 2023Large Language Model Guided Tree-of-Thoughtcited by 218
  8. 2023Planning with Large Language Models for Code Generationcited by 179
  9. 2024The pitfalls of next-token predictioncited by 156
  10. 2023Teaching Arithmetic to Small Transformerscited by 121
  11. 2024Physics of Language Models: Part 2.1, Grade-School Math and the Hidden Reasoning Processcited by 107
  12. 2024Beyond A*: Better Planning with Transformers via Search Dynamics Bootstrappingcited by 89
  13. 2023Physics of Language Models: Part 1, Learning Hierarchical Language Structurescited by 83
  14. 2024On the Origins of Linear Representations in Large Language Modelscited by 76
  15. 2024Amortized Planning with Large-Scale Transformers: A Case Study on Chesscited by 45
  16. 2023Improving Length-Generalization in Transformers via Task Hintingcited by 12
  17. 2021Puzzle Solving without Search or Human Knowledge: An Unnatural Language Approachcited by 8

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 2; 2025: 17; 2026: 16.

35 papers.

Sort:

By area:

  1. 2025Gemma 3 Technical Reportcited by 1,686
  2. 2025Train for the Worst, Plan for the Best: Understanding Token Ordering in Masked Diffusionscited by 208
  3. 2025BIG-Bench Extra Hardcited by 123
  4. 2025Inverse Scaling in Test-Time Computecited by 49
  5. 2025To Backtrack or Not to Backtrack: When Sequential Search Limits Model Reasoningcited by 24
  6. 2025Sudoku-Bench: Evaluating creative reasoning with Sudoku variantscited by 21
  7. 2025Improving Discrete Diffusion Unmasking Policies Beyond Explicit Reference Policiescited by 21
  8. 2024Transformers Struggle to Learn to Searchcited by 19
  9. 2024Chasing Progress, Not Perfection: Revisiting Strategies for End-to-End LLM Plan Generationcited by 11
  10. 2025Insertion Language Models: Sequence Generation with Arbitrary-Position Insertionscited by 11
  11. 2026Reasoning with Latent Tokens in Diffusion Language Modelscited by 8
  12. 2026Stop Training for the Worst: Progressive Unmasking Accelerates Masked Diffusion Trainingcited by 8
23 more
  1. 2025Scalable Autoregressive 3D Molecule Generationcited by 7
  2. 2026Flow Reasoning Models: Turning Flows Into Efficient Recurrent Reasonerscited by 5
  3. 2025Variational Masked Diffusion Modelscited by 4
  4. 2025Are Language Models Efficient Reasoners? A Perspective from Logic Programmingcited by 4
  5. 2025Language Models, Graph Searching, and Supervision Adulteration: When More Supervision is Less and How to Make More Morecited by 3
  6. 2026When Does Intrinsic Self-Correction Help? A Task-Sensitive Analysiscited by 3
  7. 2025LogiPlan: A Structured Benchmark for Logical Planning and Relational Reasoning in LLMscited by 2
  8. 2025Teaching Transformers to Solve Combinatorial Problems through Efficient Trial & Errorcited by 2
  9. 2026Leveraging Pretrained Language Models as Energy Functions for Glauber Dynamics Text Diffusioncited by 1
  10. 2026The Confidence Shortcut: A Reasoning Failure Mode of Masked Diffusion Modelscited by 1
  11. 2026Scheduling Thoughts: Learning the Order of Thought in Diffusion Language Modelscited by 1
  12. 2026Formalizing Latent Thoughts: Four Axioms of Thought Representation in LLMscited by 1
  13. 2025Learning Model Successorscited by 0
  14. 2025Project Patti: Why can You Solve Diabolical Puzzles on one Sudoku Website but not Easy Puzzles on another Sudoku Website?cited by 0
  15. 2025Bootstrapped Mixed Rewards for RL Post-Training: Injecting Canonical Action Ordercited by 0
  16. 2026Recursive Scaling in Masked Diffusion Modelscited by 0
  17. 2026Understanding Parallel Samplers in Masked Diffusion via Random Walks on Graphscited by 0
  18. 2026Sticky Jump Diffusions: A Unifying View of Masked, Continuous, and Hybrid Diffusioncited by 0
  19. 2026Token Time Continuous Diffusion for Language Modelingcited by 0
  20. 2026From Interface to Inference: Eliciting Any-Order Inference from Any-Order Modelscited by 0
  21. 2026Position: Certified Correctness in Neural Constraint Reasoning Requires Symbolic Integrationcited by 0
  22. 2026Random Recursive Modelscited by 0
  23. 2026Hierarchical Continuous Diffusion Language Modelscited by 0

Similar, not cited

Close in wording, no citation either way

  1. 2026Transformers Linearly Represent Highly Structured World Models
  2. 2026Not Too Hard, Not Too Easy: Learning from Intermediate States for LLM Structured Reasoning
  3. 2026MaxSAT-Based Feedback for Guiding Vision-Language Models in Sudoku
  4. 2025Liquid Reasoning Transformers: A Sudoku-Based Prototype for Chess-Scale Algorithmic Tasks
  5. 2025Enigmata: Scaling Logical Reasoning in Large Language Models with Synthetic Verifiable Puzzles
  6. 2023Assessing Logical Puzzle Solving in Large Language Models: Insights from a Minesweeper Case Study
  7. 2026Recurrent Reasoning on Symbolic Puzzles with Sequence Models
  8. 2025LLM-First Search: Self-Guided Exploration of the Solution Space