Understand the TurboQuant V3 Architecture
masterTurboQuant V3 is designed to compress LLM Key-Value (KV) caches using a combination of random rotation and Lloyd-Max quantization.
Core Components:
MSECompressor: The fundamental building block. It performs single-stage compression using bit-packed storage and focuses on Mean Squared Error (MSE) minimization.TurboQuantV3: The high-level orchestrator that manages multipleMSECompressorinstances for different layers and handles the asymmetric bit allocation between Keys and Values.
Why V3 is preferred over V2: Unlike the original paper's Stage 2 (QJL), V3 removes the QJL residual correction. While QJL is unbiased for raw inner products, the softmax operation in attention exponentially amplifies its noise. V3's MSE-only approach results in lower variance, which is critical for maintaining text generation quality after the softmax layer.