arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1906.06699cs.CV
收藏

生成序列二元码的深度递归Quantization

Deep Recurrent Quantization for Generating Sequential Binary Codes

University of Electronic Science and Technology of China(电子科技大学);Shandong University(山东大学);JD AI Research(京东人工智能研究院)

Jingkuan Song, Xiaosu Zhu, Lianli Gao, Xin-Shun Xu, Wu Liu, Heng Tao Shen

摘要:

量化技术具有精度高、搜索速度快等优点,已成为人工神经网络(ANN)搜索中的一种有效技术。为了满足不同应用的需求,检索的准确性和速度之间总是有一个折衷,反映在可变的代码长度。然而,为了将数据集编码成不同的代码长度,现有方法需要训练多个模型,其中每个模型只能产生特定的代码长度。这导致了相当大的训练时间成本,并大大降低了在实际应用中部署的量化方法的灵活性。为了解决这个问题,我们提出了一种深度递归量化(DRQ)架构,可以生成顺序二进制代码。最后,当模型被训练时,可以生成二进制码序列,并且可以通过调整递归迭代的次数来容易地控制码长度。在深度递归量化块中设计了一个共享码本和一个标量因子作为可学习的权值,整个框架可以端到端的方式进行训练。据我们所知,这是第一种可以训练一次并生成序列二进制代码的量化方法。在基准数据集上的实验结果表明,我们的模型实现了与最先进的图像检索相比,相当甚至更好的性能。但它需要的参数数量和训练时间要少得多。我们的代码在线发布:https://github.com/cfm-uestc/DRQ。

英文摘要:

Quantization has been an effective technology in ANN (approximate nearest neighbour) search due to its high accuracy and fast search speed. To meet the requirement of different applications, there is always a trade-off between retrieval accuracy and speed, reflected by variable code lengths. However, to encode the dataset into different code lengths, existing methods need to train several models, where each model can only produce a specific code length. This incurs a considerable training time cost, and largely reduces the flexibility of quantization methods to be deployed in real applications. To address this issue, we propose a Deep Recurrent Quantization (DRQ) architecture which can generate sequential binary codes. To the end, when the model is trained, a sequence of binary codes can be generated and the code length can be easily controlled by adjusting the number of recurrent iterations. A shared codebook and a scalar factor is designed to be the learnable weights in the deep recurrent quantization block, and the whole framework can be trained in an end-to-end manner. As far as we know, this is the first quantization method that can be trained once and generate sequential binary codes. Experimental results on the benchmark datasets show that our model achieves comparable or even better performance compared with the state-of-the-art for image retrieval. But it requires significantly less number of parameters and training times. Our code is published online: https://github.com/cfm-uestc/DRQ.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑