Abstract
Discovering recurring visual patterns in unlabeled image sets is a fundamental challenge in computer vision. Traditional methods relying on "Visual Words" often suffer from quantization errors and high computational costs. This paper introduces Spatial Random Partition, a "word-free" approach that identifies common patterns by repeatedly partitioning images at random and employing fast, high-dimensional matching via Locality Sensitive Hashing (LSH). Our method effectively localizes shared objects or textures without pre-defined dictionaries or complex segmentation, achieving high accuracy and robustness to occlusion and rotation.
Introduction
Common Visual Pattern Discovery aims to identify recurring elements—such as landmarks, logos, or specific objects—across a collection of images without prior labels. The standard "Bag-of-Words" (BoW) paradigm quantizes local features into a discrete dictionary, which introduces two significant issues: quantization errors (synonyms and polysemy) and the combinatorial explosion of searching for patterns of varying shapes and sizes. To address these, we propose a method that operates directly on continuous visual primitives and leverages the statistical power of random partitioning.
Methodology
The proposed framework is built upon three core components designed for efficiency and precision.
1. Word-Free Visual Primitives
Instead of quantizing features into a fixed vocabulary, we utilize continuous visual primitives, specifically SIFT descriptors. This "word-free" representation preserves the full discriminative power of the descriptors, avoiding the information loss typical of BoW models.
2. Spatial Random Partitioning
The central innovation is the use of random grids to segment images. Each image is divided into a $G \times H$ grid of subimages, a process repeated $K$ times with different random offsets and scales.
As illustrated in the figure above, while a single grid might fail to capture an object perfectly, multiple random trials significantly increase the probability that at least one subimage will neatly frame the common pattern. We prove that as $K$ increases, the probability of successful discovery approaches 1.
3. Fast Matching via LSH
To identify recurring subimages across the dataset, we employ Locality Sensitive Hashing (LSH). LSH allows for the rapid identification of "popular" subimages—those with numerous matches in the image pool—without exhaustive pairwise comparisons. These popular subimages then "vote" on the pixels they cover, generating a heatmap where the common pattern emerges at the intersection of high-vote regions.
Experimental Evaluation
The method was evaluated on eight datasets, each containing 4 to 8 images with 1 to 3 common patterns. These datasets included challenging real-world scenarios such as brand logos, signs, and various office objects.
Results
The algorithm achieved an average Hit Ratio of 0.84, successfully recovering the majority of ground-truth pattern areas. Notably, the system demonstrated high efficiency; for a dataset with approximately 3,400 visual primitives, pattern discovery was completed in under 13 seconds (including LSH overhead). The method proved robust against partial occlusion and rotation, successfully localizing posters in cluttered environments like the one shown above.
Conclusion
Spatial Random Partitioning offers a robust and efficient alternative to dictionary-based pattern discovery. By combining the statistical reliability of random sampling with the speed of LSH, the framework achieves high-quality localization with minimal computational overhead. Future work will focus on refining the rough boundaries of the discovered patterns and optimizing the approach for web-scale image collections.
Summary updated