Dimensionality reduction (PCA, Matryoshka truncation) shrinks the number of values per vector but can discard information and may need retraining or fitting.
Quantization keeps all dimensions but stores each with fewer bits: scalar quantization (FP32 to INT8) cuts memory about 4 times with a small accuracy loss; binary quantization (1 bit per dimension) cuts it about 32 times and speeds up search with Hamming distance, but loses more accuracy, so it is usually paired with rescoring using full-precision vectors.
Quantization generally preserves more quality per byte saved, and the two techniques can be combined.
Loading…