DualHash: A Stochastic Primal-Dual Algorithm with Theoretical Guarantee for Deep Hashing

Luxuan Li, Xiao Wang, Chunfeng Cui
10/21/2025
math.OCcs.CV

No confident code implementation found for this paper.

Abstract

Deep hashing converts high-dimensional feature vectors into compact binary codes, enabling efficient large-scale retrieval. A fundamental challenge in deep hashing stems from the discrete nature of quantization in generating the codes. W-type regularizations, such as $||z|-1|$, have been proven effective as they encourage variables toward binary values. However, existing methods often directly optimize these regularizations without convergence guarantees. While proximal gradient methods offer a promising solution, the coupling between W-type regularizers and neural network outputs results in composite forms that generally lack closed-form proximal solutions. In this paper, we present a stochastic primal-dual hashing algorithm, referred to as DualHash, that provides rigorous complexity bounds. Using Fenchel duality, we partially transform the nonconvex W-type regularization optimization into the dual space, which results in a proximal operator that admits closed-form solutions. We derive two algorithm instances: a momentum-accelerated version with $\mathcal{O}(\varepsilon^{-4})$ complexity and an improved $\mathcal{O}(\varepsilon^{-3})$ version using variance reduction. Experiments on three image retrieval databases demonstrate the superior performance of DualHash.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{li2025dualhash,
  title  = {DualHash: A Stochastic Primal-Dual Algorithm with Theoretical Guarantee for Deep Hashing},
  author = {Luxuan Li and Xiao Wang and Chunfeng Cui},
  year   = {2025},
  eprint = {2510.18218},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2510.18218v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2510.18218.svg)](https://codeofpaper.com/paper/2510.18218)

Discussion