arXiv:2611.09077cs.CVNov 2026

Manuscript Offprint

arXiv:2611.09077

GlobalPuzzle: Globally Informed Genetic Search for Eroded Jigsaw Puzzle Reassembly

Lunyan Wang, Chuanzhi Xu, Ziyuan Tao, Weidong Cai

Abstract

Jigsaw puzzle reassembly remains a highly challenging task, particularly when piece boundaries are irregularly eroded to simulate damage to cultural artifacts. On the GAP benchmark, existing methods achieve a perfect assembly accuracy of only 0.3% on 5×55 \times 5 puzzles, whereas humans can solve jigsaw puzzles with remarkably high accuracy. Humans typically approach puzzle solving by identifying potentially adjacent pieces, evaluating the current assembly, and iteratively performing complex operations such as adding pieces, replacing incorrectly placed pieces, and moving entire connected groups of pieces. However, existing methods face a fundamental limitation: approaches that leverage global visual information typically predict piece arrangements directly, making it difficult to explicitly perform such complex iterative operations, while search based methods can rearrange pieces but primarily rely on pairwise boundary compatibility, lacking global visual information to evaluate and guide the search process. To bridge this gap, we propose GlobalPuzzle, a jigsaw puzzle reassembly framework that integrates global canvas level evaluation, action guidance, and genetic search. By incorporating global visual information into the evaluation and optimization of candidate assemblies, GlobalPuzzle aims to resolve ambiguous adjacency relationships that are difficult to determine from irregularly eroded piece boundaries alone, enabling flexible, globally informed reconstruction.

1. Introduction

Jigsaw puzzle reassembly with missing visual information is challenging due to the enormous search space and irregularly eroded piece boundaries [23]. Related reconstruction problems arise in fragmented wall paintings [28]. An N×NN \times N puzzle has (N2)!(N^2)! possible arrangements, making the probability of randomly solving a 5×55 \times 5 puzzle only 1/25!≈6.44695×10−261/25! \approx 6.44695 \times 10^{-26}. Boundary erosion disrupts vi-

Figure

Figure 1. Fragment reconstruction: the top left shows randomly shuffled irregular pieces, the top right shows the image reconstructed using LaMa after correct assembly, the bottom left illustrates position query generation, and the bottom right shows query-based piece retrieval in GlobalPuzzle.

sual continuity, while smaller pieces provide less information for determining their positions and adjacency relationships [2, 18, 30]. Even advanced AI agents such as Claude Sonnet 5.5 and Codex (GPT-6 Astra) require approximately 10 minutes on average to solve a 3×33 \times 3 GAP puzzle and nearly cannot reconstruct 5×55 \times 5 puzzles correctly.

Existing methods face two major limitations. Many deep learning approaches exchange fragment features and directly predict or refine arrangements [9, 12, 22, 23], but do not provide a visual fitness score for the assembled canvas or explicit operations for relocating connected groups. Exchanging fragment features does not itself evaluate whether the spatially rendered canvas forms a coherent image. Combinatorial solvers can rearrange pieces and preserve fragment relationships [20, 24], but commonly rely on pairwise boundary compatibility, which becomes unreliable under severe ero-

∗^{*}Equal contribution.

†^{\dagger}Corresponding author: chuanzhi.xu@sydney.edu.au sion. Learned tree search evaluates partial assemblies [19], but its placement actions do not explicitly relocate connected groups.

Genetic puzzle solvers use crossover to combine structures from two candidate assemblies into a new one, preserving shared fragment connections and internal group relationships [24]. These observations suggest that preserving connected piece groups while allowing their structures to be revised could enable more flexible search. Furthermore, global canvas information offers an opportunity to guide piece placement and evaluate candidate assemblies beyond local boundary compatibility.

Motivated by these observations, we propose GlobalPuzzle, which couples explicit fragment group operations with visual guidance from assembled canvases. GlobalPuzzle has two networks. The Policy Network uses the partial canvas to guide placement, while the Evaluation Network scores complete canvases to guide genetic search. Crossover preserves and relocates shared connections, while mutation randomly changes fragment placements, allowing incorrect structures to be revised. Figure 1 illustrates the reconstruction task and position querying. Grid pooling and position to fragment matching allow the same trained model to process different canvas sizes, fragment sizes, and grid dimensions.

Our contributions can be summarized as:

  • We propose GlobalPuzzle, a unified reassembly framework that integrates established connected group inheritance with learned global canvas evaluation and placement guidance.
  • GlobalPuzzle further incorporates a reliable evaluation network that supports arbitrary canvas and fragment sizes and assesses assemblies solely through global visual semantics, without requiring pixel alignment across fragment boundaries.
  • GlobalPuzzle accommodates different image dimensions, fragment sizes, and rectangular grids without retraining, and improves reconstruction of severely eroded puzzles over the evaluated baselines, reaching perfect assembly accuracies of 68.6% on GAP-3 and 19.4% on GAP-5.

References (32)