Abstract
Competitive sliding window detectors require vast training sets. Since a pool of natural images provides a nearly endless supply of negative samples, in the form of patches at different scales and locations, training with all the available data is considered impractical. A staple of current approaches is hard negative mining, a method of selecting relevant samples, which is nevertheless expensive. Given that samples at slightly different locations have overlapping support, there seems to be an enormous amount of duplicated work. It is natural, then, to ask whether these redundancies can be eliminated. In this paper, we show that the Gram matrix describing such data is block-circulant. We derive a transformation based on the Fourier transform that block-diagonalizes the Gram matrix, at once eliminating redundancies and partitioning the learning problem. This decomposition is valid for any dense features and several learning algorithms, and takes full advantage of modern parallel architectures. Surprisingly, it allows training with all the potential samples in sets of thousands of images. By considering the full set, we generate in a single shot the optimal solution, which is usually obtained only after several rounds of hard negative mining. We report speed gains on Caltech Pedestrians and INRIA Pedestrians of over an order of magnitude, allowing training on a desktop computer in a couple of minutes.
Introduction
Object detectors, such as those utilizing Histogram of Oriented Gradients (HOG) filters, typically operate by sliding a window across an image to identify matches. Training these filters requires a robust set of positive and negative examples. However, the volume of potential negative data is overwhelming; a few hundred images can yield millions of background patches.
Standard learning algorithms like Support Vector Machines (SVMs) struggle to process $10^8$ training examples simultaneously. Consequently, the industry has relied on Hard Negative Mining (HNM)—an iterative process of training on a subset, identifying false positives, and retraining. While effective, HNM is slow and only approximates the full dataset. This paper proposes a mathematical breakthrough to bypass HNM entirely by leveraging the inherent redundancy in overlapping image windows.
Methodology: The Fourier Shortcut
The authors' core insight is that overlapping subwindows are highly redundant because they are simply translated versions of one another. By modeling these translations as cyclic shifts, the resulting set of all possible shifts forms a block-circulant Gram matrix.
Mathematically, circulant matrices are diagonalized by the Discrete Fourier Transform (DFT). This transformation converts a massive, complex optimization problem in the spatial domain into a set of small, independent sub-problems in the frequency domain. This "Fourier shortcut" allows the model to account for every possible translation of every training image efficiently, enabling "single-shot" learning on the entire dense set of subwindows without explicit cropping or storage. This technique generalizes across several models, including Ridge Regression, Support Vector Regression (SVR), and Logistic Regression.
Experimental Evaluation
The proposed method was evaluated on three benchmarks: INRIA Pedestrians, Caltech Pedestrians, and ETHZ Shapes. The latter is particularly challenging due to having very few positive training examples (22–45 per class).
Performance and Speed
On the Caltech Pedestrian dataset, the Circulant Decomposition method required only 139 seconds to train, compared to 1901 seconds for three rounds of traditional HNM—a speedup exceeding 13x.
As shown in the Precision-Recall curves for the INRIA dataset, the circulant method achieved an Average Precision (AP) of 0.805, surpassing the best HNM result of 0.796. The most significant improvement occurred on the ETHZ Shapes dataset, where the method achieved 0.719 AP versus 0.596 AP for traditional mining, demonstrating that including all translated positive samples acts as a powerful regularizer for small datasets.
Discussion and Key Insights
This research demonstrates that redundancy, usually viewed as a computational burden, can be a mathematical advantage. By using a "virtual" dataset, the method finds the exact global optimum for the entire dataset in one pass, avoiding the heuristics of HNM.
While the use of cyclic shifts introduces minor "wrap-around" artifacts at patch edges, the gains in speed and accuracy are substantial. Future work may extend this translation machinery to handle other transformations, such as in-plane rotations and local shape deformations, potentially replacing more complex part-based models.
Summary updated