AI
AI Learns to Solve Witness Puzzles Six Times Faster by Predicting Solvability
Researchers demonstrate that automatically learned predicates can accelerate combinatorial puzzle solving while remaining explainable and provably sound.
Researchers working with The Witness—a notoriously difficult puzzle game—have devised a way to speed up AI solvers by teaching them to recognize when a partial puzzle path can reach a solution. Their approach cuts search time by roughly six-fold while preserving the guarantee that solutions will still be found.
The Challenge#
The Witness presents combinatorial puzzles that stymie both human players and algorithmic solvers. Traditional search-based AI approaches can take impractical amounts of time to find solutions, making the game an interesting testbed for optimization techniques in artificial intelligence.
Learning to Prune the Search Space#
Rather than relying on hand-written heuristics, the team developed a method to automatically learn a predicate—a rule that evaluates whether a partially-drawn path can plausibly be extended into a valid solution. The innovation lies in two key features:
- The learned predicate is human-interpretable, making it suitable for mathematical proof
- The researchers proved a critical property that allows the predicate to safely eliminate (or "prune") dead-end search branches without missing solutions
This soundness guarantee means the search remains complete: no valid solutions get accidentally thrown away.
Results and Performance#
The empirical findings show clear benefits:
- Search acceleration of approximately 6× speedup compared to baseline methods
- Under time constraints, the predicate-enhanced solver tackles larger puzzles than alternatives
- The approach outperforms two competing methods: weighted A* search and Levin tree search with neural networks, in both execution time and number of nodes explored
The research is available on arXiv, demonstrating how machine-learned components can enhance classical search algorithms when they remain mathematically grounded and interpretable.

