Domain Adaptive Hashing Retrieval via VLM Assisted Pseudo-Labeling and Dual Space Adaptation

Jingyao Li, Zhanshan Li, Shuai LüNeurIPS 2025

TL;DR

VPDS (Vision-Language model assisted Pseudo-labeling and Dual Space adaptation) significantly improves cross-domain image retrieval by using pre-trained models like CLIP to "fix" noisy labels during training. By decoupling the alignment of high-dimensional features and low-dimensional binary codes, the method achieves a new state-of-the-art in making search both fast and accurate across different data distributions.

What Problem Does This Paper Address?

In the world of big data, hashing retrieval is a lifesaver. It maps complex images into compact binary codes (like 10110...), allowing for lightning-fast searches using minimal memory. However, these systems often struggle with "domain shift"—for example, a model trained on professional studio photos (source domain) might fail to retrieve similar items from hand-drawn sketches (target domain).

To solve this without expensive manual labeling, researchers use Unsupervised Domain Adaptation (UDA). Standard UDA relies on "pseudo-labeling" (the model guessing the labels of the new data), but these guesses are often wrong and biased toward the original training data. Furthermore, existing methods try to force the high-dimensional image features and the low-dimensional binary codes to align perfectly, which often leads to information loss and poor performance.

Methods

The authors introduce VPDS, which tackles these issues with two main innovations:

VPDS Architecture
  1. VLM-Assisted Pseudo-Labeling: Instead of letting the model "grade its own homework," the authors bring in a pre-trained Vision-Language Model (VLM), specifically CLIP. Early in training, the VLM provides reliable "zero-shot" labels to calibrate the model's guesses. As the model becomes more specialized for the target domain, a dynamic parameter gradually shifts the reliance from the VLM back to the model’s own predictions.
  2. Dual Space Adaptation: Most methods tightly couple the feature space (rich semantic info) and the Hamming space (binary codes). VPDS argues this is too restrictive. Instead, it performs independent alignment in both spaces using memory banks and class prototypes. This "decoupled" approach allows the model to exploit the unique strengths of each space without one distorting the other.
  3. Information Maximization: To prevent the model from taking the easy way out and labeling everything as the same class (class collapse), the authors use an entropy-based loss to encourage diverse and confident predictions.

Datasets

The researchers evaluated VPDS on three standard benchmarks:

  • Office-Home: A challenging dataset with 4 domains (Art, Clipart, Product, Real-world) and 65 classes.
  • Office-31: Contains 31 categories of objects found in an office environment across 3 domains (Amazon, DSLR, Webcam).
  • Digits: A classic test involving the transfer between MNIST and USPS handwritten digit datasets.

Key Insights and Ideas

  • VLMs as Stabilizers: The "aha moment" here is using VLMs not just for features, but as a corrective teacher. This prevents the "error accumulation" common in pseudo-labeling where a model's early mistakes lead it down a path of permanent bias.
  • The Power of Decoupling: While it seems intuitive to force features and hash codes to match perfectly, the paper proves that flexibility wins. By letting the two spaces align independently, the model preserves more semantic detail in the features while maintaining sharp discriminative power in the hash codes.
  • Model-Agnostic Strategy: The VLM-assisted labeling strategy is "plug-and-play." It can be integrated into almost any other unsupervised learning framework to improve label reliability.

Key Results

VPDS consistently outperformed state-of-the-art (SOTA) methods across the board:

Retrieval Performance on Office-Home and Office-31
  • Office-Home & Office-31: Achieved a notable average improvement of 7.25% in Mean Average Precision (MAP) over the previous best method (CPH).
  • Digits: On the MNIST $\to$ USPS task, VPDS reached an average MAP of 85.83%, a massive 17.30% jump over the second-best competitor.
  • Efficiency: Despite the extra VLM step, the computational overhead is minimal because the VLM predictions for the target domain only need to be calculated once at the start of training.

Limitations and Future Work

The authors identify a few areas for growth:

  • Two-Domain Limit: Currently, the method focuses on adapting from one source domain to one target domain. In the real world, data often comes from multiple sources simultaneously.
  • Future Direction: The team plans to explore multi-domain adaptive retrieval, which is more complex but more practical for large-scale industrial applications.
  • Gradient Issues: The authors noted that in specific tasks (like MNIST $\to$ USPS), high values of certain trade-off parameters could lead to gradient vanishing, suggesting the need for careful hyperparameter tuning in specific scenarios.

Summary updated

BibTeX
@inproceedings{li2025domain,
  author = {Jingyao Li and Zhanshan Li and Shuai Lü},
  title = {{Domain Adaptive Hashing Retrieval via VLM Assisted Pseudo-Labeling and Dual Space Adaptation}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=X7ak8ohJPg},
}
Figure