Abstract
In large-scale multi-modal retrieval, hashing is essential for balancing speed and memory efficiency. However, traditional methods often suffer from high computational costs due to pairwise similarity graph construction and lack the flexibility to handle varying modality importance. This paper presents Adaptive Multi-modal Fusion Hashing (AMFH), a novel framework that leverages Hadamard matrices to pre-define orthogonal hash centers. By replacing expensive similarity graphs with these fixed targets and introducing a dynamic self-weighting scheme, AMFH achieves state-of-the-art retrieval accuracy while significantly reducing training time.
Introduction
As datasets scale into the millions, multi-modal hashing has emerged as the gold standard for efficient cross-modal and multi-modal search. By compressing high-dimensional data—such as images and their corresponding text descriptions—into short binary strings, systems can perform lightning-fast retrieval in Hamming space.
Despite their success, existing multi-modal hashing algorithms face two critical bottlenecks. First, many rely on constructing similarity graphs to capture data relationships, a process with $O(n^2)$ complexity that becomes prohibitive for large datasets. Second, most models utilize static weighting, assigning a fixed importance to each modality regardless of the specific query. This fails to account for instances where one modality (e.g., a clear image) might be far more informative than another (e.g., a short, vague caption). AMFH addresses these issues through a target-based guidance system and an online adaptive weighting mechanism.
Methodology
Hadamard Matrix Guidance
To eliminate the need for $O(n^2)$ similarity graphs, AMFH utilizes a Hadamard Matrix to generate "hash centers" for semantic categories. A Hadamard matrix consists of mutually orthogonal rows and columns of +1s and -1s. By assigning these orthogonal rows as targets for different categories, the model ensures that different semantic classes are mapped to maximally distant points in Hamming space. This provides a clear, discriminative objective for the model during the training stage without requiring pairwise comparisons between every data point.
Adaptive Self-Weighting Scheme
Unlike traditional methods that learn global weights for each modality, AMFH implements a dynamic self-weighting scheme during the hash encoding stage. When new data arrives, the model evaluates the discriminative power of each modality in real-time. If a specific image is more descriptive than its associated text, the system automatically boosts the image's weight for that specific instance. This online-style update allows the model to handle noisy or less informative data streams more gracefully than static models.
Experimental Setup
The performance of AMFH was evaluated on three standard multi-modal benchmarks:
- Wiki: 2,866 documents across 10 categories, using SIFT features for images and LDA for text.
- Pascal VOC 2007: 9,963 images across 20 categories, utilizing CNN features and tag ranking.
- NUS-WIDE: A large-scale dataset of approximately 186,000 images with 81 concepts.
Results and Discussion
Retrieval Accuracy
AMFH consistently outperformed state-of-the-art (SOTA) methods like OMH-DQ and FDCMH across all datasets. On the Wiki dataset, AMFH achieved a Mean Average Precision (mAP) improvement of approximately 23% over OMH-DQ. The effectiveness of the adaptive weighting scheme is particularly evident when compared to a fixed-weight baseline.
Computational Efficiency
The shift from pairwise similarity to target-based guidance resulted in dramatic speed improvements. On the large-scale NUS-WIDE dataset, AMFH completed its training in just 1.65 seconds. In contrast, competing methods required over 1,400 seconds (nearly 25 minutes) to achieve lower accuracy. This $O(n)$ complexity makes AMFH uniquely suited for real-world, large-scale applications.
Robustness
The model demonstrated high stability across different hash code lengths (16 to 128 bits). Furthermore, it proved insensitive to its primary hyper-parameter ($\delta$), simplifying the deployment process as it requires minimal manual tuning compared to complex deep learning architectures.
Conclusion
AMFH represents a significant step forward in efficient multi-modal retrieval. By combining the mathematical elegance of Hadamard matrices with a flexible, self-weighting encoding scheme, the framework solves the dual challenges of computational complexity and static modality importance. Future work may explore integrating this target-based approach into end-to-end deep learning pipelines and extending the model to handle purely unsupervised scenarios where category labels are unavailable.
Summary updated