Many hashing algorithms including minwise hashing (MinHash), one permutation hashing (OPH), and consistent weighted sampling (CWS) generate integers of $B$ bits. With $k$ hashes for each data vector, the storage would be $B\times k$ bits; and when used for large-scale learning, the model size would be $2^B\times k$, which can be expensive. A standard strategy is to use only the lowest $b$ bits out of the $B$ bits and somewhat increase $k$, the number of hashes. In this study, we propose to re-use the hashes by partitioning the $B$ bits into $m$ chunks, e.g., $b\times m =B$. Correspondingly, the model size becomes $m\times 2^b \times k$, which can be substantially smaller than the original $2^B\times k$.
Our theoretical analysis reveals that by partitioning the hash values into $m$ chunks, the accuracy would drop. In other words, using $m$ chunks of $B/m$ bits would not be as accurate as directly using $B$ bits. This is due to the correlation from re-using the same hash. On the other hand, our analysis also shows that the accuracy would not drop much for (e.g.,) $m=2\sim 4$. In some regions, Pb-Hash still works well even for $m$ much larger than 4. We expect Pb-Hash would be a good addition to the family of hashing methods/applications and benefit industrial practitioners.
We verify the effectiveness of Pb-Hash in machine learning tasks, for linear SVM models as well as deep learning models. Since the hashed data are essentially categorical (ID) features, we follow the standard practice of using embedding tables for each hash. With Pb-Hash, we need to design an effective strategy to combine $m$ embeddings. Our study provides an empirical evaluation on four pooling schemes: concatenation, max pooling, mean pooling, and product pooling. There is no definite answer which pooling would be always better and we leave that for future study.
Optimal Projection Guided Transfer Hashing for Image Retrieval
Learning Intelligence & Vision Essential Group(学习智能与视觉基础组);School of Microelectronics and Communication Engineering, Chongqing University, China(重庆大学微电子与通信工程学院)
Neurons Merging Layer: Towards Progressive Redundancy Reduction for Deep Supervised Hashing
Institute of Automation, Chinese Academy of Sciences(中国科学院自动化研究所);University of Chinese Academy of Sciences(中国科学院大学);Horizon Robotics(地平线机器人);Center for Excellence in Brain Science and Intelligence Technology, CAS(中国科学院脑科学与智能技术卓越创新中心)
快速相似性搜索是大规模信息检索中的关键组成部分,其中语义哈希已经成为将文档表示为二进制哈希码的流行策略。这一领域的最新进展是通过基于神经网络的模型获得的:通过学习重建原始文档来训练生成模型。我们提出了一种新的无监督生成语义哈希方法,\textit{Ranking based Semantic Hashing}(RBSH),它由一个变分和排名为基础的组件。类似于变分自编码器,变分组件被训练以根据其生成的哈希码重建原始文档,并且与先前的工作一样,它只考虑单独的文档。排名组件通过将文档间相似性并入哈希代码生成中、通过铰链损失对文档排序进行建模来解决此限制。为了避免需要标记数据来计算铰链损失,我们使用弱标记器,从而保持该方法完全无监督。针对传统基线和最近最先进的语义哈希方法对四个公开可用的数据集进行了广泛的实验评估,结果表明RBSH在所有评估的哈希码长度上都显着优于所有其他方法。事实上,RBSH哈希码能够执行类似于最先进的哈希码,同时使用2- 4倍的比特。
Institute of Intelligent Machines, Chinese Academy of Sciences(中国科学院合肥智能机械研究所);The University of Sydney(悉尼大学);Institute of Automation, Chinese Academy of Sciences(中国科学院自动化研究所)