Mutual Learning for Hashing: Unlocking Strong Hash Functions from Weak Supervision
Xiaoxu Ma, Runhao Li, Zhenyu Weng
TL;DR
MLH addresses the gap between global semantic modeling and local similarity preservation in deep hashing by coupling a strong center-based branch with a weaker pairwise-based branch through mutual learning. It introduces a hashing-focused Mixture-of-Hash-Experts module to enable effective cross-branch interaction while keeping a shared backbone, optimizing three losses: center-based $L_C$, pairwise $L_P$, and cosine-based mutual loss $L_M$. The approach yields consistent mAP gains across CIFAR-10, ImageNet, and MSCOCO, outperforming state-of-the-art methods by up to roughly 1–2 percentage points across 16/32/64-bit codes. This work demonstrates the practical value of combining global and local supervision signals via mutual learning and expert sharing for scalable image retrieval tasks.
Abstract
Deep hashing has been widely adopted for large-scale image retrieval, with numerous strategies proposed to optimize hash function learning. Pairwise-based methods are effective in learning hash functions that preserve local similarity relationships, whereas center-based methods typically achieve superior performance by more effectively capturing global data distributions. However, the strength of center-based methods in modeling global structures often comes at the expense of underutilizing important local similarity information. To address this limitation, we propose Mutual Learning for Hashing (MLH), a novel weak-to-strong framework that enhances a center-based hashing branch by transferring knowledge from a weaker pairwise-based branch. MLH consists of two branches: a strong center-based branch and a weaker pairwise-based branch. Through an iterative mutual learning process, the center-based branch leverages local similarity cues learned by the pairwise-based branch. Furthermore, inspired by the mixture-of-experts paradigm, we introduce a novel mixture-of-hash-experts module that enables effective cross-branch interaction, further enhancing the performance of both branches. Extensive experiments demonstrate that MLH consistently outperforms state-of-the-art hashing methods across multiple benchmark datasets.
