Abstract
The exponential growth of streaming multi-modal data presents critical challenges for cross-modal retrieval: distribution shifts, modality gap, and scarce labels. Semi-supervised online cross-modal hashing has gained increasing interest due to its ability to encode complex streaming data and update hash functions simultaneously. Nevertheless, existing methods can hardly generate high-quality unsupervised hash codes, which fundamentally limits diversity and flexibility during the retrieval process. To this end, we propose a novel method named Prototype Evolution Online Cross-modal Hashing (PEOCH). By driving prototype evolution with semi-supervised streaming data, precise and stable hash codes are generated for both labeled and unlabeled data. Specifically, two prototype updates with stability guarantee are conducted: labeled samples push semantic knowledge into the supervised prototypes, while unlabeled samples perform clustering to generate unsupervised prototypes. Simultaneously, a co-optimization mechanism is designed to ensure the prototypes continuously evolve and preserve the consistency of the entire streaming data. Besides, an elasticity regularizer integrates discriminability and smoothness constraints, improving the reliability of prototypes. Extensive experiments on three benchmark datasets demonstrate that PEOCH outperforms state-of-the-art methods, achieving an average improvement of 6.7% in mAP@all across various retrieval tasks.
Introduction
In the era of big data, information arrives in continuous streams rather than static databases. Cross-modal retrieval—the ability to find an image using a text query or vice versa—is essential for modern search engines. However, performing this "online" as data arrives presents three primary challenges: distribution shifts over time, the mathematical modality gap between different data types, and the scarcity of human-provided labels. Existing methods often neglect the unlabeled majority, leading to unsupervised code inconsistency and poor retrieval quality. PEOCH addresses these by evolving "class prototypes" that bridge the gap between sparse labels and massive unlabeled streams.
Methodology
The core of PEOCH is the evolution of representative "prototypes" in a shared mathematical space. The framework consists of several integrated modules designed to handle streaming data in chunks.
Key Components:
- Semantics-driven Prototype Generation (SPG): Uses labeled data to anchor prototypes to real-world semantic categories.
- Clustering-based Prototype Embedding (CPE): Performs binary clustering on unlabeled data to refine prototypes based on the broader data distribution.
- Prototype Adaptive Update (PAU) & Co-optimization: Ensures prototypes evolve continuously without "forgetting" previous data by jointly optimizing using current chunks and historical summaries.
- Elasticity Regularizer: Utilizes a Hadamard matrix for initialization to ensure prototypes remain mathematically distinct and stable, preventing model collapse during adaptation.
Experimental Setup
PEOCH was evaluated on three benchmark datasets: IAPR TC-12 (20,000 image-text pairs), NUSWIDE (269,648 web images/tags), and MIRFLICKR (25,000 images/tags). To simulate realistic semi-supervised conditions, only 10% of the data in each incoming chunk was provided with labels.
Key Results and Discussion
PEOCH demonstrated significant improvements over 13 state-of-the-art methods, achieving an average increase of 6.7% in mAP@all.
Efficiency and Scalability
A critical requirement for online systems is computational efficiency. PEOCH maintains linear time complexity relative to the data volume. As shown in the training time analysis, PEOCH ("Ours") consistently outperforms most baselines in speed while maintaining high accuracy across successive data chunks.
Label Efficiency
The model's performance stabilizes even when labels are scarce. The prototype evolution mechanism effectively "pulls" unlabeled data into correct semantic neighborhoods, making it highly robust for real-world applications where labeling is expensive.
Conclusion
PEOCH provides a robust framework for semi-supervised online cross-modal hashing. By leveraging prototype evolution and a co-optimization mechanism, it ensures stable and high-quality hash code generation for streaming data. Future work will explore class-incremental scenarios where entirely new categories emerge in the data stream, further testing the flexibility of the prototype evolution approach.
Summary updated