Benchmarking Content-Based Puzzle Solvers on Corrupted Jigsaw Puzzles

Richard Dirauf, Florian Wolz, Dario Zanca, Björn M. Eskofier

Introduction

Solving jigsaw puzzles computationally is a classic NP-hard problem that serves as a vital proxy for real-world applications, such as the reconstruction of shredded documents or fragmented archaeological artifacts. While traditional computer vision research has focused on "perfect" puzzles with pristine edges, real-world fragments are often eroded, faded, or missing. This study benchmarks state-of-the-art (SOTA) solvers against controlled, realistic corruptions to identify the limitations of current methods and the potential of deep learning alternatives.

Methodology

The study evaluates five SOTA solvers: three traditional heuristics (Gallagher, Paikin & Tal, and Yu et al.) and two deep learning (DL) models (a Transformer and a Positional Diffusion model). These were tested using the PuzzleWikiArts dataset, comprising 63,000 painting images split into puzzles ranging from $6\times6$ to $12\times12$ pieces.

To simulate real-world damage, three types of synthetic corruptions were introduced:

  1. Missing Pieces: Random removal of up to 50% of pieces.
  2. Eroded Edges: Replacing outer pixel rows/columns with noise.
  3. Eroded Contents: Degrading saturation, contrast, and brightness to simulate weathering.
Visual representation of a puzzle with missing pieces, simulating real-world fragmentation.

The DL models were also fine-tuned on these corrupted datasets to evaluate their adaptability to non-ideal conditions.

Robustness: Heuristics vs. Deep Learning

Traditional heuristics are inherently "near-sighted," relying on pairwise compatibility metrics at the borders of adjacent pieces. When edges are eroded, these local metrics fail. In contrast, deep learning models learn global context, semantics, and color gradients, making them more resilient to local noise. Specifically, the Positional Diffusion model—which iteratively refines piece coordinates—outperforms one-pass Transformer models in handling severe visual corruption.

Experimental Results

On pristine puzzles, the heuristic by Yu et al. remains the leader, achieving 95.63% accuracy on $12\times12$ puzzles. However, as corruptions are introduced, the performance of heuristics degrades sharply.

Performance metrics across different puzzle sizes and percentages of missing pieces.

In scenarios with eroded edges and contents, heuristics often fail completely. Conversely, the fine-tuned Positional Diffusion model demonstrates remarkable robustness, dominating reconstruction tasks across all corruption levels. While heuristics scale better to larger puzzles, DL models provide the necessary robustness for degraded content found in archaeological contexts.

Conclusion and Future Directions

While deep learning offers a path toward automated archaeological reconstruction, challenges remain regarding scalability and the requirement for massive training data. Future research should explore hybrid models that combine the global context of DL with the scalability of heuristics, as well as solvers capable of handling the irregular shapes typical of real-world fragments.

Summary updated

BibTeX
@inproceedings{dirauf2025benchmarking,
  author = {Richard Dirauf and Florian Wolz and Dario Zanca and Björn M. Eskofier},
  title = {{Benchmarking Content-Based Puzzle Solvers on Corrupted Jigsaw Puzzles}},
  booktitle = {ICIAP},
  year = {2025},
  doi = {10.1007/978-3-032-10185-3\_23},
}
Figure