Abstract
In the real world, multi-modal data often appears in a streaming fashion, and there is a growing demand for similarity retrieval from such non-stationary data, especially at a large scale. In response to this need, online multi-modal hashing has gained significant attention. However, existing online multi-modal hashing methods face challenges related to the inconsistency of hash codes during long-term learning and inefficient fusion of different modalities. In this paper, we present a novel approach to supervised online multi-modal hashing, called High-level Codes, Fine-grained Weights (HCFW). To address these problems, HCFW is designed by its non-trivial contributions from two primary dimensions: 1) Online Hashing Perspective. To ensure the long-term consistency of hash codes, especially in incremental learning scenarios, HCFW learns high-level codes derived from category-level semantics. Besides, these codes are adept at handling the category-incremental challenge. 2) Multi-modal Hashing Aspect. HCFW introduces the concept of fine-grained weights designed to facilitate the seamless fusion of complementary multi-modal data, thereby generating multi-modal weights at the instance level and enhancing the overall hashing performance. A comprehensive battery of experiments conducted on two benchmark datasets convincingly underscores the effectiveness and efficiency of HCFW.
Introduction
In our data-saturated world, the ability to perform cross-modal retrieval—such as finding an image matching a text description—is critical. Hashing techniques are widely used for this purpose because they compress complex data into short binary strings, enabling fast and storage-efficient searches. However, traditional hashing models are typically "batch-based," requiring access to the entire dataset at once. In contrast, real-world data often arrives in a continuous stream, necessitating online multi-modal hashing.
Existing online methods face two primary challenges: code inconsistency and inefficient fusion. Code inconsistency occurs when the semantic meaning of hash codes drifts as new data and categories arrive, making old codes incompatible with new ones. Inefficient fusion arises when models assign uniform importance to different modalities (e.g., image vs. text) regardless of the specific instance's quality or descriptiveness.
Methodology: The HCFW Framework
To address these issues, we propose HCFW (High-level Codes, Fine-grained Weights), a framework designed for stable and efficient online multi-modal hashing. The architecture is divided into two primary components that handle semantic anchoring and adaptive modality fusion.
High-level Codes (Semantic Anchors)
Instead of learning hash codes for individual instances first, HCFW learns codes for categories (e.g., "dog", "sunset"). By utilizing text embeddings (such as Word2Vec or BERT), the model captures semantic relationships between categories. These category-level codes serve as stable anchors. When a new instance arrives, its hash code is generated as a linear combination of these high-level category codes. This ensures long-term consistency even as new categories are introduced into the stream, preventing the "catastrophic forgetting" common in online learning.
Fine-grained Weights (Instance-level Fusion)
HCFW moves beyond global modality weighting by learning an auxiliary projection to calculate weights for each specific instance. This allows the model to adaptively prioritize the more descriptive modality for a given sample—for example, giving more weight to a clear image when the accompanying text is vague. This approach bridges the "natural gap" between binary hash codes and the continuous features of different modalities.
Optimization
The framework employs an alternating optimization strategy that is computationally efficient. Its time complexity scales linearly with the number of new samples, making it truly suitable for real-time, online applications.
Experimental Evaluation
HCFW was evaluated on two gold-standard benchmark datasets for multi-modal retrieval:
- MIRFlickr: 20,015 image-text pairs across 24 categories.
- NUS-WIDE: A larger set of 195,834 instances spanning 21 categories.
The researchers tested these datasets across three scenarios: Standard (IID), Category Incremental (Overlap), and Category Incremental (Non-overlap). The latter is particularly challenging as it simulates the appearance of entirely new classes of data in the stream.
Results and Discussion
HCFW demonstrated superior performance and efficiency across all tested scenarios:
- Superior Accuracy: On the NUS-WIDE dataset (128-bit), HCFW achieved a Mean Average Precision (MAP) of 0.8668, significantly outperforming existing methods like OASIS (0.8055).
- Robustness to New Categories: In the "Non-overlap" incremental scenario on MIRFlickr, HCFW achieved 0.5228 MAP, while the next best method (OASIS) trailed at 0.3624.
- Efficiency and Convergence: The model is highly efficient, taking approximately 1.1 to 1.3 seconds per training round on MIRFlickr. The optimization strategy is stable, typically converging in just 5 iterations.
Limitations
At very low bit lengths (e.g., 32-bit), HCFW's performance can slightly decrease, as the limited bit space may struggle to fully encapsulate the complex semantic information of the high-level codes. Additionally, the model's performance is linked to the quality of the initial text embeddings for category names.
Conclusion
HCFW provides a robust solution for online multi-modal hashing by anchoring hash codes in category semantics and employing adaptive instance-level fusion. Its ability to handle streaming data and new categories with high efficiency makes it a powerful tool for large-scale, real-world retrieval systems.
Summary updated