Solving Masked Jigsaw Puzzles with Diffusion Vision Transformers
Jinyang Liu, Wondmgezahu Teshome, Sandesh Ghimire, Mario Sznaier, Octavia Camps
TL;DR
The paper addresses the challenge of solving image and temporal jigsaw puzzles with many pieces and missing data. It introduces JPDVT, a unified approach that models puzzles as unordered sets of piece-content embeddings paired with positional encodings and solves them via a conditional diffusion denoising process conditioned on the visible content. By leveraging a diffusion-transformer architecture with adaptive normalization and relative positional embeddings, the method achieves state-of-the-art results on both image and video puzzles, including scenarios with missing pieces and large piece counts. The work demonstrates strong empirical performance, robust reconstruction capabilities, and applicability to downstream tasks like temporal super-resolution, offering a scalable, generalizable solution for reordering and inpainting in complex visual data.
Abstract
Solving image and video jigsaw puzzles poses the challenging task of rearranging image fragments or video frames from unordered sequences to restore meaningful images and video sequences. Existing approaches often hinge on discriminative models tasked with predicting either the absolute positions of puzzle elements or the permutation actions applied to the original data. Unfortunately, these methods face limitations in effectively solving puzzles with a large number of elements. In this paper, we propose JPDVT, an innovative approach that harnesses diffusion transformers to address this challenge. Specifically, we generate positional information for image patches or video frames, conditioned on their underlying visual content. This information is then employed to accurately assemble the puzzle pieces in their correct positions, even in scenarios involving missing pieces. Our method achieves state-of-the-art performance on several datasets.
