[Paper Review] Solving Jigsaw Puzzles with Linear Programming
This paper proposes a novel linear programming (LP) approach to solve jigsaw puzzles by formulating the NP-hard problem as a sequence of global convex relaxations, enabling robust, globally optimal assembly that outperforms state-of-the-art greedy and global methods. The method uses weighted L1 penalties to handle mismatched pairwise matches and achieves near-perfect reconstruction on standard datasets, including 95.8% direct match accuracy on 432-piece Type 2 puzzles.
We propose a novel Linear Program (LP) based formula- tion for solving jigsaw puzzles. We formulate jigsaw solving as a set of successive global convex relaxations of the stan- dard NP-hard formulation, that can describe both jigsaws with pieces of unknown position and puzzles of unknown po- sition and orientation. The main contribution and strength of our approach comes from the LP assembly strategy. In contrast to existing greedy methods, our LP solver exploits all the pairwise matches simultaneously, and computes the position of each piece/component globally. The main ad- vantages of our LP approach include: (i) a reduced sensi- tivity to local minima compared to greedy approaches, since our successive approximations are global and convex and (ii) an increased robustness to the presence of mismatches in the pairwise matches due to the use of a weighted L1 penalty. To demonstrate the effectiveness of our approach, we test our algorithm on public jigsaw datasets and show that it outperforms state-of-the-art methods.
Motivation & Objective
- To address the challenge of solving jigsaw puzzles with unknown piece positions and orientations using a globally optimal, convex relaxation-based method.
- To reduce sensitivity to local minima and improve robustness against noisy or incorrect pairwise matches in puzzle assembly.
- To extend the applicability of LP-based solvers to both Type 1 (known orientation) and Type 2 (unknown orientation) puzzles through a transformation into equivalent Type 1 problems.
- To achieve higher reconstruction accuracy than existing greedy and global optimization methods on benchmark datasets.
Proposed method
- The method formulates jigsaw assembly as a sequence of successive linear program (LP) relaxations of the original NP-hard discrete problem, enabling global optimization.
- It uses a weighted L1 penalty in the objective function to robustly handle incorrect or low-confidence pairwise matches, reducing their influence on the solution.
- The algorithm alternates between identifying confident matches consistent with the current LP solution and resolving the LP with updated constraints, gradually building larger connected components.
- For Type 2 puzzles (unknown orientation), the method converts each piece into four rotated versions, transforming the problem into a Type 1 puzzle with known orientations.
- The approach leverages soft constraints derived from pairwise compatibility scores and progressively eliminates inconsistent matches through iterative LP resolution.
- The final solution is obtained by placing ambiguous pieces in the last step, with performance evaluated via direct, neighbor, component, and perfect match metrics.
Experimental results
Research questions
- RQ1Can a sequence of convex relaxations of the jigsaw puzzle problem yield a globally optimal solution that avoids local minima?
- RQ2How does the use of a weighted L1 penalty improve robustness to incorrect pairwise matches in puzzle assembly?
- RQ3Can the LP-based approach effectively solve Type 2 jigsaw puzzles (unknown orientation) by transforming them into equivalent Type 1 problems?
- RQ4How does the performance of the LP-based solver compare to state-of-the-art greedy and global methods under varying noise levels?
- RQ5To what extent does the iterative LP refinement strategy improve reconstruction accuracy over single-step optimization?
Key findings
- The proposed LP-based method achieves 95.8% direct match accuracy on 432-piece Type 2 puzzles from the MIT dataset, outperforming prior methods such as Gallagher [8] (82.2%) and Son et al. [16] (94.7%).
- On Type 1 puzzles, the method achieves 95.7% direct match accuracy with 14 perfect reconstructions out of 15, surpassing the upper bound of 96.7% reported by Son et al. [16] in the same setting.
- The method demonstrates superior robustness to image noise, maintaining significantly higher performance than Gallagher [8] and Son et al. [16] across increasing levels of Gaussian noise on Type 2 puzzles.
- The algorithm runs in 5 seconds for a 432-piece Type 1 puzzle and 1 minute for a Type 2 puzzle on a modern PC, with the main bottleneck being the O(n²) pairwise match computation common to all state-of-the-art methods.
- The largest source of error in reconstruction comes from the final step of placing ambiguous pieces, indicating that the core LP relaxation is highly effective for component assembly.
- The method successfully reconstructs mixed Type 2 puzzles with 864 pieces from two images, correctly identifying all four rotated versions of each piece.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.