Oscillatory Neural Networks Solve Sudoku with High Accuracy

Filip Sabo, Aida Todri-Sanial· July 20, 2026 View original

Summary

This paper proposes an Oscillatory Neural Network (ONN)-based solver for Sudoku puzzles, formulating the problem as a Graph Coloring task. By modifying an existing Graph Coloring solver and adding Sudoku-specific constraints, the ONN solver significantly outperforms previous HNN and ONN methods in accuracy, achieving nearly flawless results on 4x4 and high accuracy on 9x9 puzzles.

Researchers have explored the application of Oscillatory Neural Networks (ONNs) for solving constrained combinatorial optimization problems, specifically Sudoku puzzles. ONNs represent a physics-based computing paradigm where a network of coupled oscillators minimizes an underlying energy function. In this work, the Sudoku problem is ingeniously reformulated as a Graph Coloring problem, a common approach in computational optimization. The proposed ONN-based solver builds upon an existing Graph Coloring solver, introducing modifications to make it computationally more efficient and adding an explicit term to ensure all Sudoku constraints are met. Empirical evaluations demonstrate that this enhanced ONN solver significantly surpasses the accuracy of previous solvers based on both Hopfield Neural Networks (HNNs) and other ONN architectures. The system achieved nearly flawless accuracy on 4x4 Sudoku puzzles and notably high accuracy on 9x9 puzzles, even with varying numbers of unknown digits, showcasing the potential of ONNs for complex constraint satisfaction problems.

Why it matters

While Sudoku is a game, this research demonstrates the potential of Oscillatory Neural Networks for solving complex constraint satisfaction problems, which has implications for various real-world optimization challenges in logistics, scheduling, and resource allocation.

How to implement this in your domain

  1. 1Explore the foundational principles of Oscillatory Neural Networks and their application in optimization.
  2. 2Identify real-world constraint satisfaction problems within your domain that could benefit from novel computational approaches.
  3. 3Investigate the feasibility of mapping complex optimization problems into a graph coloring or similar combinatorial framework.
  4. 4Consider prototyping ONN-inspired solutions for specific, well-defined optimization sub-problems.

Who benefits

LogisticsOperations ResearchManufacturingAI/ML ResearchCybersecurity

Key takeaways

  • Oscillatory Neural Networks (ONNs) can effectively solve Sudoku puzzles.
  • The problem is framed as a Graph Coloring task with added Sudoku constraints.
  • The ONN solver significantly outperforms previous neural network approaches.
  • This demonstrates ONNs' potential for complex constraint satisfaction problems.

Original post by Filip Sabo, Aida Todri-Sanial

"arXiv:2607.15814v1 Announce Type: new Abstract: Oscillatory Neural Networks (ONNs) present an attractive physics-based computing paradigm rooted in the dynamics of a network of typically fully coupled oscillators aiming to minimize an underlying energy function. In this paper, we…"

View on X

Originally posted by Filip Sabo, Aida Todri-Sanial on X · view source

Want to go deeper?

Turn these trends into skills with Learnijoy's hands-on AI & tech courses.

Explore courses