Clark Hash: 无状态稀疏Johnson-Lindenstrauss量化用于神经嵌入
Clark Hash: Stateless Sparse Johnson-Lindenstrauss Quantization for Neural Embeddings
AI总结:
提出Clark Hash方法,通过归一化、稀疏符号投影和固定宽度标量量化,将384维句子嵌入压缩至48字节,无需训练,在保持高余弦相似度相关性的同时实现32倍存储压缩。
摘要:
Clark Hash是一种用于以更少空间存储神经嵌入的小型方法。它对每个数据库向量进行归一化,应用确定性稀疏有符号Johnson-Lindenstrauss投影,裁剪结果,并存储固定宽度的标量量化码。查询保持浮点格式,并根据存储的草图进行评分。在默认的384维句子嵌入设置中,Clark Hash将余弦搜索向量存储在48字节中,而密集f32存储需要1536字节。这小了32倍。该方法在存储新向量之前不需要训练过程、学习码本、旋转或语料库统计。我们描述了编解码器、Rust实现,以及对来自29个子集的9,304个标记对进行的多语言句子相似性评估。使用多语言MiniLM编码器,48字节草图在STS17和STS22上与密集余弦评分的宏Pearson相关性分别达到0.910和0.946。Clark Hash不是一个新的Johnson-Lindenstrauss定理,也不是近似最近邻索引的替代品。它是一种用于紧凑嵌入存储的简单无状态编解码器。
英文摘要:
Clark Hash is a small method for storing neural embeddings in less space. It normalizes each database vector, applies a deterministic sparse signed Johnson-Lindenstrauss projection, clips the result, and stores a fixed-width scalar-quantized code. Queries stay in floating point and are scored against the stored sketches. In the default 384-dimensional sentence-embedding setting, Clark Hash stores a cosine-search vector in 48 bytes instead of 1536 bytes for dense f32 storage. This is 32x smaller. The method does not need a training pass, learned codebooks, rotations, or corpus statistics before new vectors can be stored. We describe the codec, the Rust implementation, and a multilingual sentence-similarity evaluation on 9,304 labeled pairs from 29 subsets. With a multilingual MiniLM encoder, the 48-byte sketches reached 0.910 and 0.946 macro Pearson correlation with dense cosine scores on STS17 and STS22. Clark Hash is not a new Johnson-Lindenstrauss theorem and it is not a replacement for approximate nearest-neighbor indexes. It is a simple stateless codec for compact embedding storage.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。