Neuro-Symbolic Sudoku Solver

Ashutosh Hathidara, Lalit Pandey
7/2/2023
cs.AIcs.GT

No official code found. Best implementation: ashutosh1919/neuro-symbolic-sudoku-solver (74 stars, Apache-2.0, last commit 2021-12-16). 1 more below.

Abstract

Deep Neural Networks have achieved great success in some of the complex tasks that humans can do with ease. These include image recognition/classification, natural language processing, game playing etc. However, modern Neural Networks fail or perform poorly when trained on tasks that can be solved easily using backtracking and traditional algorithms. Therefore, we use the architecture of the Neuro Logic Machine (NLM) and extend its functionality to solve a 9X9 game of Sudoku. To expand the application of NLMs, we generate a random grid of cells from a dataset of solved games and assign up to 10 new empty cells. The goal of the game is then to find a target value ranging from 1 to 9 and fill in the remaining empty cells while maintaining a valid configuration. In our study, we showcase an NLM which is capable of obtaining 100% accuracy for solving a Sudoku with empty cells ranging from 3 to 10. The purpose of this study is to demonstrate that NLMs can also be used for solving complex problems and games like Sudoku. We also analyze the behaviour of NLMs with a backtracking algorithm by comparing the convergence time using a graph plot on the same problem. With this study we show that Neural Logic Machines can be trained on the tasks that traditional Deep Learning architectures fail using Reinforcement Learning. We also aim to propose the importance of symbolic learning in explaining the systematicity in the hybrid model of NLMs.

View on arXivView PDF

Code Implementations(2)

Apache-2.0

⚙️ Solving sudoku using Deep Reinforcement learning in combination with powerful symbolic representations.

7411PythonNov 26, 20214 years agoApache-2.0
artificial-intelligenceartificial-neural-networksdeep-learningexplainable-aimachine-learning+8 more
PyTorch

A robust Neuro-Symbolic Sudoku Solver combining Graph Attention Networks (GATv2) with Dynamic Constraint Propagation. Efficiently solves NP-hard puzzles where traditional backtracking fails

00PythonNov 25, 202511 months ago
backtrackingconstraint-propagationcspgatv2gnn+7 more

Similar Papers

Cite this paper

@article{hathidara2023neurosymbolic,
  title  = {Neuro-Symbolic Sudoku Solver},
  author = {Ashutosh Hathidara and Lalit Pandey},
  year   = {2023},
  eprint = {2307.00653},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2307.00653v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2307.00653.svg)](https://codeofpaper.com/paper/2307.00653)

Discussion