Editing
TurboQuant
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== How TurboQuant Works == TurboQuant applies vector quantization to the KV cache in two sequential stages, using PolarQuant and QJL as complementary mechanisms. === Stage 1: PolarQuant β High-Quality Compression === The first stage applies PolarQuant, a novel quantization method that transforms vector data into [[polar coordinates]] (angle and radius) rather than standard Cartesian coordinates (X, Y, Z axes). This geometry change is significant because: * The angular distribution of attention vectors is highly concentrated and predictable * This concentrated, circular geometry has known boundaries β no per-block normalization is required * The overhead that traditional quantization methods must carry (codebooks, per-block constants) is eliminated The radius (signal strength) and angle (directional meaning) of each vector are quantized separately. The angular quantization requires no additional lookup tables because the grid boundaries are fixed and known. === Stage 2: QJL β Eliminating Residual Error === The first stage captures the bulk of the vector information using most of the available bits. A small residual error remains β the amount of signal not captured by the first stage. Rather than discarding this error or storing it in full precision, TurboQuant applies the Quantized Johnson-Lindenstrauss (QJL) algorithm to encode the residual using '''just 1 bit per value'''. QJL uses the [[Johnson-Lindenstrauss lemma]] β a mathematical result stating that high-dimensional vectors can be projected to lower dimensions while approximately preserving their pairwise distances. Each vector number is reduced to a single sign bit (+1 or -1), creating a high-speed shorthand that requires zero memory overhead for the quantization constants themselves. The combination of PolarQuant (capturing the primary signal) and QJL (capturing the residual error with 1 bit) achieves true ~3-bit effective precision without the accuracy loss that naive quantization introduces. === Result === The two-stage approach achieves: * '''6x reduction''' in KV cache memory size * '''8x speedup''' in attention logit computation on NVIDIA H100 GPUs (4-bit TurboQuant vs 32-bit unquantized) * '''Zero accuracy loss''' on standard benchmarks including LongBench, Needle in a Haystack, ZeroSCROLLS, RULER, and L-Eval * No fine-tuning or retraining required β works directly on existing models
Summary:
Please note that all contributions to PredictiveHistory may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
PredictiveHistory:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
What links here
Related changes
Special pages
Page information