Computationally bounded retrieval

Mohammad Rastegari, Cem Keskin, Pushmeet Kohli, Shahram IzadiCVPR 2015

Abstract

The increase in size of large image databases makes the problem of efficient retrieval extremely challenging. This is especially true in the case of high dimensional data where even operations like hashing become expensive because of costly projection operators. Unlike most hashing methods that sacrifice accuracy for speed, we propose a novel method that improves the speed of high dimensional image retrieval by several orders of magnitude without any significant drop in performance. To do this, we propose to learn computationally bounded sparse projections for the encoding step. To further increase the accuracy of the method, we add an orthogonality constraint on projections to reduce bit correlation. We then introduce an iterative scheme that jointly optimizes this objective, which helps us obtain fast and efficient projections. We demonstrate this technique on large retrieval databases, specifically ImageNET, GIST1M and SUN-attribute for the task of nearest neighbor retrieval, and show that our method achieves a speed-up of up to a factor of 100 over state-of-the-art methods, while having on-par and in some cases even better accuracy.

Introduction

In modern computer vision, finding the "nearest neighbor" of an image within a database of millions is a fundamental task. While efficient in low dimensions, this problem suffers from the "curse of dimensionality." Traditional tree-based methods, such as kd-trees, become exponentially slower as dimensions increase. Hashing-based methods offer an alternative by projecting high-dimensional data into short binary codes. However, as dimensionality ($d$) and code length ($k$) grow, the encoding step—typically a dense matrix multiplication—becomes a significant computational bottleneck with $O(dk)$ complexity.

Sparse Binary Embedding (SBE)

To address this bottleneck, this work introduces Sparse Binary Embedding (SBE). The core innovation is replacing dense projection matrices with learned sparse ones. By enforcing a sparsity rate $\alpha$ (e.g., 0.01), the computational complexity of the encoding step is reduced to $O(\alpha dk)$, effectively "bounding" the computation required at test time.

Joint Optimization and Orthogonality

Unlike traditional methods that separate code learning from mapping, SBE jointly optimizes for both. It incorporates an $\ell_1$ regularization term to induce sparsity and an orthogonality constraint to ensure that the resulting bits are decorrelated and non-redundant. The optimization is handled via an iterative block-coordinate descent approach that alternates between learning the sparse mapping (using linear SVMs) and updating an orthogonal projection (solving an orthogonal Procrustes problem). This balance between sparsity and orthogonality produces codes that are both fast to compute and highly discriminative.

Experimental Results

The authors evaluated SBE on three major benchmarks: ImageNet (1.2M images, 4,096-d features), GIST1M (1M images, 960-d features), and SUN14k (19,080-d features).

Performance and Speedup

A key finding is that SBE achieves a massive speedup over traditional methods. As shown in Figure 1, SBE variants maintain high Area Under the Curve (AUC) while being significantly faster than kd-trees. Specifically, SBE can achieve a 100x speedup over a standard kd-tree with negligible loss in accuracy.

Figure 1: AUC vs. Retrieval Time. SBE methods achieve similar accuracy to kd-trees but are orders of magnitude faster.

Comparison with State-of-the-Art

SBE-opt (the jointly optimized version) consistently outperforms other state-of-the-art hashing methods, including Iterative Quantization (ITQ), Bilinear Iterative Quantization (BITQ), and Circulant Binary Embedding (CBE).

Figure 5: Recall on ImageNet for various bit lengths. SBE-opt consistently outperforms state-of-the-art methods like ITQ and CBE.

On the ImageNet dataset (Figure 5), SBE-opt shows superior recall across different bit lengths. The advantage of SBE is even more pronounced in very high-dimensional spaces, such as the SUN14k dataset, where the cost of dense projections in competing methods becomes prohibitive.

Conclusion

Sparse Binary Embedding provides a robust framework for high-dimensional image retrieval by leveraging sparsity to bound computational costs. By jointly optimizing for sparsity and bit decorrelation, SBE achieves state-of-the-art accuracy with up to a 100x speedup over traditional methods. Future work may explore hierarchical sparse hash functions to further reduce query-time complexity.

Summary updated

BibTeX
@inproceedings{rastegari2015computationally,
  author = {Mohammad Rastegari and Cem Keskin and Pushmeet Kohli and Shahram Izadi},
  title = {{Computationally bounded retrieval}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2015},
  url = {https://openreview.net/forum?id=BJbIh0bubH},
}
Figure