基于率失真定理的非均等比特分配乘积量化

  • 骆许丽媛 ,
  • 徐小良
展开
  • 杭州电子科技大学 计算机学院,浙江 杭州 310018
骆许丽媛(1998-),女,硕士研究生,研究方向:向量检索,E-mail:221050058@hdu.edu.cn。
徐小良(1976-),男,教授,研究方向:大数据与知识图谱、向量检索,E-mail:xxl@hdu.edu.cn。

收稿日期: 2025-03-03

  网络出版日期: 2025-12-16

基金资助

浙江省重点研发计划项目(2023C03198)

Product quantization with non-uniform bit allocation based on rate-distortion theory

  • LUO Xuliyuan ,
  • XU Xiaoliang
Expand
  • School of Computer, Hangzhou Dianzi University, Hangzhou Zhejiang 310018, China

Received date: 2025-03-03

  Online published: 2025-12-16

摘要

乘积量化作为一种高效的高维向量数据压缩技术,被广泛应用于近似最近邻搜索领域。然而其现有的非均等比特分配方法缺乏理论支撑难以适应复杂的真实数据分布。为此,基于信息论中的率失真定理,推导出非均等比特分配问题的理论解,并提出了一种灵活适应子空间信息量的比特分配模型,该模型包含子空间信息量计算、比特权重生成及比特数优化三部分,旨在提升量化精度与泛化能力。此外,为提升量化后的搜索性能,设计了一种优化的子空间剪枝算法,通过预计算子空间最小距离来筛除大量非近邻向量,有效解决了子空间距离之和较短导致的剪枝失效问题。在多个真实数据集上的实验结果表明,所提方法将搜索精度最高提升了近30%,查询效率最高提升了近2.8倍。

本文引用格式

骆许丽媛 , 徐小良 . 基于率失真定理的非均等比特分配乘积量化[J]. 杭州电子科技大学学报, 2025 , 45(6) : 22 -30 . DOI: 10.13954/j.cnki.hdu.2025.06.003

Abstract

Product quantization, as an efficient high-dimensional vector data compression technique, is widely applied in the field of approximate nearest neighbor search. However, its existing non-uniform bit allocation methods struggle to adapt to complex real-world data distributions due to a lack of theoretical support. To address this, a theoretical solution to the non-uniform bit allocation problem has been derived from the rate-distortion theorem in information theory, and a bit allocation model adaptable to the information content of the subspaces has been proposed. This model consists of three parts: subspace information calculation, bit weight generation, and bit number optimization, aiming at enhancing the precision and generalization capability of quantization. Furthermore, to improve the search performance after quantization, an optimized subspace pruning algorithm has been designed. This algorithm precomputes the minimum distance of subspaces to filter out a significant number of non-neighbor vectors, effectively resolving the pruning failure issue caused by short sums of space distances. Experimental results on multiple real-world datasets indicate that the proposed method has achieved a nearly 30% improvement in search accuracy and nearly a 2.8-fold increase in query efficiency.

参考文献

[1]邵伟, 朱高宇, 于雷, 等. 高维数据的降维与检索算法[J]. 山东大学学报(理学版), 2024, 59(7): 27-43.
[2]GAO J, LONG C. High-dimensional approximate nearest neighbor search: with reliable and efficient distance comparison operations[J]. Proceedings of the ACM on Management of Data, 2023, 1(2): 1-27.
[3]LI W, ZHANG Y, SUN Y, et al. Approximate nearest neighbor search on high dimensional data: experiments, analyses, and improvement[J]. IEEE Transactions on Knowledge and Data Engineering, 2020, 32(8): 1475-1488.
[4]CHEN G, LI X, YANG Y, et al. Neural clustering based visual representation learning[C]//2024 IEEE/CVF Conference on Computer Vision and Pattern Recognition(CVPR). June 16-22, 2024, Seattle, WA, USA. IEEE, 2024: 5714-5725.
[5]KE Y, SUKTHANKAR R, HUSTON L. An efficient parts-based near-duplicate and sub-image retrieval system[C]//Proceedings of the 12th annual ACM international conference on Multimedia. October 10-16, 2004, New York, NY, USA. ACM, 2004: 869-876.
[6]WANG M, XU X, YUE Q, et al. A comprehensive survey and experimental comparison of graph-Based approximate nearest neighbor search[J]. Proceedings of the VLDB Endowment, 2021, 14(1): 1964-1978.
[7]JEGOU H, DOUZE M, SCHMID C. Product quantization for nearest neighbor search[J]. IEEETransactions on Pattern Analysis and Machine Intelligence, 2011, 33(1): 117-128.
[8]GE T, HE K, KE Q, et al. Optimized product quantization[J]. IEEETransactions on Pattern Analysis and Machine Intelligence, 2014, 36(4): 744-755.
[9]陈伟林. 基于乘积量化的近似近邻检索及异常检测[D]. 福州: 福建师范大学, 2023.
[10]PAPARRIZOS J, EDIAN I, LIU C, et al. Fast adaptive similarity search through variance-aware quantization[C]//2022 IEEE 38th International Conference on Data Engineering (ICDE). IEEE, 2022: 2969-2983.
[11]GRAY R. Vector quantization[J]. IEEE ASSP Magazine, 1984, 1(2): 4-29.
[12]GUO Q Z, ZENG Z, ZHANG S, et al. Adaptive bit allocation product quantization[J]. Neurocomputing, 2016, 171: 866-877.
[13]LI L, HU Q, HAN Y, et al. Distribution sensitive product quantization[J]. IEEE Transactions on Circuits and Systems for Video Technology, 2018, 28(12): 3504-3515.
[14]THOMAS M, JOY A T. Elements of Information Theory[M]. Hoboken: Wiley-Interscience, 2006.
[15]AMSALEG L, JEGOU H. Datasets for approximate nearest neighbor search[EB/OL]. (2010-09-01)[2025-03-03]. http://corpus-texmex.irisa.fr/.
文章导航

/

〈 〉