Tensorized Projection for High-Dimensional Binary Embedding

Weixiang Hong, Jingjing Meng, Junsong Yuan

Abstract

High-dimensional binary embedding is essential for efficient large-scale image retrieval but suffers from a "parameter explosion" in projection matrices. This paper introduces Tensorized Projection (TP), which leverages Tensor-Train (TT) decomposition to compress these matrices by up to four orders of magnitude. By representing the projection as a chain of small tensor cores, TP achieves state-of-the-art accuracy and significant speedups while acting as a natural regularizer against overfitting.

Introduction: The Challenge of High-Dimensional Hashing

In modern computer vision, deep neural networks (DNNs) generate high-dimensional feature vectors, often exceeding 4096 dimensions. To perform rapid searches across millions of images, these vectors are typically embedded into binary codes through hashing. However, maintaining accuracy requires long binary codes ($b \approx d$), leading to a massive increase in parameters. For instance, a standard projection matrix for a 4096-dimensional vector into a 4096-bit code requires over 16 million parameters. This "parameter explosion" results in high computational costs, excessive memory usage, and a high risk of overfitting.

Methodology: Tensorized Projection (TP)

To address these challenges, the authors propose Tensorized Projection (TP). Instead of a dense projection matrix $R$, the transformation is represented in the Tensor-Train (TT) format. This format decomposes the matrix into a sequence of small, 3-dimensional tensor cores. This structure allows for complex linear transformations using only a fraction of the original parameters—for a 4096-to-4096 projection, TP requires just 1,252 parameters compared to the 16.7 million required by traditional dense methods.

Optimization via Variable Splitting

Training a TT-format matrix while maintaining orthonormality is computationally difficult. The authors utilize Half-Quadratic Splitting to decompose the optimization problem into manageable steps. They then apply Alternating Least Squares (ALS) to update the tensor cores iteratively. As shown in the convergence analysis, this approach efficiently minimizes the objective function within a few iterations.

Convergence of the objective function using the proposed ALS optimization method.

Experimental Results and Insights

The TP method was evaluated on standard benchmarks including DNN-4096 (MIRFLICKR-1M), GIST-960, and CIFAR-10.

Accuracy and Regularization

TP achieved a mean Average Precision (mAP) of 49.3% on the Holidays+1M retrieval task with 8192-bit codes, nearly matching the 49.5% mAP of raw deep features. Interestingly, the restricted parameter space of the TT-format acts as a natural regularizer. By limiting the model's degrees of freedom, TP forces the learning of more robust features, often outperforming dense matrices on long binary codes.

Efficiency and Structural Sensitivity

TP demonstrates significant speed advantages, particularly in "long code" scenarios. On CIFAR-10, TP was 2x to 4x faster than competing methods like FBE or KBE. The performance is sensitive to the "shape" of the tensor cores; well-proportioned shapes (e.g., $4 \times 4 \times 4 \times 4 \times 4 \times 4$) generally yield better accuracy than lopsided configurations.

Impact of TT-rank, number of cores, and tensor shapes on mAP and encoding time.

Conclusion

Tensorized Projection provides a powerful framework for high-dimensional binary embedding, offering extreme compression without sacrificing accuracy. By reducing the parameter count to as little as 0.01% of traditional methods, TP enables efficient hashing on resource-constrained devices. Future work may involve integrating tensorized layers directly into end-to-end deep learning pipelines.

Summary updated

BibTeX
@inproceedings{hong2018tensorized,
  author = {Weixiang Hong and Jingjing Meng and Junsong Yuan},
  title = {{Tensorized Projection for High-Dimensional Binary Embedding}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2018},
  doi = {10.1609/aaai.v32i1.11292},
}
Figure