E8Q: Near-Optimal Low-Bit Vector Quantization Leveraging E8 Lattice Geometry for Fast Vector Search: what it means for business leaders
E8Q replaces the hypercube codebook behind one-bit vector quantization with one built from the E8 lattice, giving more accurate distance estimates at the same memory, and working codes down to half a bit per dimension without any training.
1. What the method is
E8Q is a quantizer for vector search: it compresses each embedding to about one bit per dimension and still lets the search engine estimate distances directly from the compressed codes. It keeps the framework of RaBitQ, the current reference method, which normalizes each vector, applies a random rotation and stores a code for its direction. What changes is the codebook. RaBitQ rounds each coordinate to a sign, the corners of a hypercube. E8Q cuts the rotated vector into 8-dimensional blocks and maps each block to the nearest of 256 fixed directions: the 240 roots of the E8 lattice plus 16 axis directions, one byte per block. No codebook is learned from data. The paper adds two extensions: E8Q-FS, a variant whose lookup tables fit in SIMD registers for fast scanning, and a sub-bit mode that shrinks the codebook to 128, 64, 32 or 16 directions per block, down to 0.5 bits per dimension.
2. Why the method was developed
Memory is the dominant cost of vector search at scale, and the pressure is growing as collections move onto devices and GPUs. The authors argue that no existing quantizer offers four things at once. Scalar quantizers, including TurboQuant, treat each dimension independently and give no explicit bound on distance error. Product quantization compresses dimensions jointly and can go below one bit per dimension, but it needs codebook training and has no accuracy guarantees, so its behaviour varies by dataset. RaBitQ is training-free with an unbiased estimator and a proven error bound, but its hypercube corners crowd some directions and leave others poorly covered: in 8 dimensions its worst-case similarity between a vector and its code is 0.354, against 0.707 for the lattice codebook. RaBitQ also cannot go below one bit per dimension without first reducing dimensionality with PCA, which adds training and depends on a representative calibration set.
3. Who should care
This matters to the teams that run retrieval for us: search and recommendation infrastructure, the engineers behind retrieval-augmented generation, and whoever owns the vector database bill. For them the quantizer sets how many vectors fit in memory per machine and how many candidates must be re-checked against full-precision vectors, which drives both hardware cost and latency. Product leads planning on-device or GPU-resident search should note the sub-bit mode, since halving the code size is what makes some of those deployments fit. Procurement and platform owners who buy a vector database rather than build one should care indirectly: RaBitQ-style quantization is already in commercial engines, and a drop-in codebook change with better accuracy is the kind of improvement vendors may adopt. Because the method needs no training, it also removes a retraining step from data pipelines whose embedding distributions shift over time.
4. How the method works
For each 8-dimensional block the encoder does not scan all 256 codewords. The roots come in fixed patterns, so it builds the nearest candidate of each type directly: the two largest coordinates, the sign pattern with an even number of negatives, or the single largest coordinate, then keeps the best. At query time a lookup table holds the query block's inner product with every codeword, and distance estimation is one lookup per block, using RaBitQ's unbiased estimator. A 256-entry table is too large for a SIMD register, so E8Q-FS rotates the codebook into a form where every codeword has four nonzero coordinates, then splits each byte into two indices into tables of 64, 32 or 16 entries, matched to AVX-512, ARM NEON and AVX2. The sub-bit mode groups codewords into 16 blocks of 16 that each sum to zero and spread energy evenly across dimensions, and keeps 8, 4, 2 or 1 of them.
5. How it was evaluated
The authors tested on six public datasets spanning 128 to 1536 dimensions: SIFT, Deep, Tiny and GIST image descriptors, and GloVe and OpenAI text embeddings, mostly one million vectors each, with five million for Tiny and a billion-vector SIFT set held out for scalability. Baselines were TurboQuant, product quantization, RaBitQ, and two PCA-based RaBitQ extensions, SAQ and MRQ, each using its published library. Every method ran at one bit per dimension inside the same IVF index built with Faiss, with one query thread on an Intel Xeon Platinum 8457C; the FastScan variants were also run on an Apple M5 and an AMD EPYC 9654. Measurements covered recall against queries per second with and without exact re-ranking, relative distance error, tail latency, sub-bit budgets, and index build time. The text we had was cut off partway through the index-overhead section, so the storage, memory and billion-scale results are not reflected here.
6. How it performed
The theory gives an expected similarity of 0.825 between a vector and its code, against 0.798 for RaBitQ and at least 95.26% of the best any quantizer could achieve, with an error bound 90.67% the size of RaBitQ's. In practice, with re-ranking, E8Q ran 19.9% to 51.1% more queries per second than the strongest baseline at equal recall, with a peak gain of 77.8% on OpenAI embeddings. Without re-ranking it raised the highest reachable recall by 1.41 to 3.98 points. Distance error fell about 9%, and P99 latency fell 13.3% to 25.1% in the FastScan variant. At 0.5 bits per dimension, recall rose 8.58 to 10.83 points over a RaBitQ adapted the same way. Encoding time matched RaBitQ. The gains are uneven: on AMD AVX2 the FastScan advantage averaged only 3.6%, and the FastScan codebook gives up a little similarity (0.8225 against 0.8255). Our call: pilot it on our own embeddings wherever we already run RaBitQ-style quantization. (Source: arXiv 2612.06162, 2026)
← Back to dossier index