Skip to main navigation Skip to search Skip to main content

Ultra-quantisation: Efficient embedding search via 1.58-bit encodings

Research output: Working paperPreprint

Abstract

Many modern search domains comprise high-dimensional vectors of floating point numbers derived from neural networks, in the form of embeddings. Typical embeddings range in size from hundreds to thousands of dimensions, making the size of the embeddings, and the speed of comparison, a significant issue.

Quantisation is a class of mechanism which replaces the floating point values with a smaller representation, for example a short integer. This gives an approximation of the embedding space in return for a smaller data representation and a faster comparison function.

Here we take this idea almost to its extreme: we show how vectors of arbitrary-precision floating point values can be replaced by vectors whose elements are drawn from the set {-1,0,1}. This yields very significant savings in space and metric evaluation cost, while maintaining a strong correlation for similarity measurements.

This is achieved by way of a class of convex polytopes which exist in the high-dimensional space. In this article we give an outline description of these objects, and show how they can be used for the basis of such radical quantisation while maintaining a surprising degree of accuracy.
Original languageEnglish
PublisherarXiv
Number of pages17
Publication statusPublished - 31 May 2025

Keywords

  • High-dimensional search
  • Quantisation
  • Ternary quantisation
  • 1.58 bit quantisation
  • Convex polytope

Fingerprint

Dive into the research topics of 'Ultra-quantisation: Efficient embedding search via 1.58-bit encodings'. Together they form a unique fingerprint.

Cite this