MTFH: A Matrix Tri-Factorization Hashing Framework for Efficient Cross-Modal Retrieval

Xin Liu, Zhikai Hu, Haibin Ling, Yiu-ming Cheung · DOI

Introduction

Cross-modal retrieval—the ability to search for images using text queries or vice versa—is a cornerstone of modern information systems. To achieve the necessary speed for large-scale applications, researchers typically use hashing, which compresses high-dimensional data into compact binary codes. However, traditional hashing methods often enforce a "one-size-fits-all" rule, requiring all modalities to use hash codes of the same length.

This rigid approach ignores the inherent heterogeneity of data; images and text possess vastly different information densities and feature dimensions. Forcing them into equal-length codes can lead to either redundant bits for simpler modalities or significant information loss for complex ones. The Matrix Tri-Factorization Hashing (MTFH) framework addresses these limitations by allowing different modalities to be represented by hash codes of varying lengths, optimizing both retrieval accuracy and storage efficiency.

The MTFH Framework

The core innovation of MTFH lies in its departure from standard two-matrix factorization. Instead of approximating a semantic affinity matrix $S$ as the product of two matrices ($S \approx U B^T$), MTFH decomposes it into three distinct components. This tri-factorization approach allows the model to decouple the learning of modality-specific binary codes from the cross-modal semantic correlation.

The MTFH framework overview, illustrating the training stage where the affinity matrix is decomposed into modality-specific codes (U, V) and semantic correlation matrices (H1, H2), followed by the retrieval stage.

In this framework:

  • $U$ and $V$ represent the modality-specific hash code matrices. Crucially, these can have different lengths ($q_1$ and $q_2$), allowing the model to adapt to the complexity of each data type.
  • $H_1$ and $H_2$ are semantic correlation matrices that act as "bridges." They semantically correlate the different-length hash representations, making them comparable during the retrieval process without forcing them into a unified space.

Optimization and Implementation

To ensure high-quality binary codes, MTFH employs discrete optimization. Many existing methods "relax" binary constraints into continuous values during training, which introduces quantization errors when the values are eventually converted back to bits. MTFH optimizes the binary codes directly to avoid this loss of precision.

Furthermore, the authors introduced Ensemble Randomized Coordinate Descent (E-RCD), a robust updating scheme that prevents the optimization process from getting stuck in local minima. For handling new, unseen data (the "out-of-sample extension"), the framework utilizes kernel logistic regression to map raw features into the learned hash space efficiently.

Experimental Insights

The framework was rigorously tested on three benchmark datasets: Wiki, MIRFlickr, and NUS-WIDE. A key finding was that the best retrieval performance is frequently achieved when hash lengths are unequal.

mAP performance on the MIRFlickr dataset for single-modal retrieval, showing how different modalities (image and text) reach their peak accuracy at different hash bit lengths.

As shown in the experimental results, the optimal bit length for images often differs from that of text. By leveraging this flexibility, MTFH consistently outperformed eight major baselines, including CMFH and SePH. On the MIRFlickr dataset, MTFH achieved a mean Average Precision (mAP) of approximately 0.76. Beyond accuracy, this flexibility offers significant storage benefits; for example, using a 32-bit code for one modality and a 128-bit code for another can match the performance of dual 128-bit systems while saving millions of bits in large-scale databases like NUS-WIDE.

Conclusion

MTFH represents a significant step forward in cross-modal hashing by embracing the natural differences between data modalities. By utilizing matrix tri-factorization and discrete optimization, it provides a flexible, stable, and efficient framework that handles both paired and unpaired data seamlessly. Future work aims to extend this framework to support more than two modalities simultaneously and to automate the selection of optimal bit lengths for different data types.

Summary updated

BibTeX
@article{liu2018mtfh,
  author = {Xin Liu and Zhikai Hu and Haibin Ling and Yiu-ming Cheung},
  title = {{MTFH: A Matrix Tri-Factorization Hashing Framework for Efficient Cross-Modal Retrieval}},
  journal = {IEEE Trans. Pattern Anal. Mach. Intell.},
  year = {2018},
  doi = {10.1109/tpami.2019.2940446},
}
Figure