OCTOPUS shrinks an AI model's memory cache to 2 bits, authors say

In short

0.81 long-context recall at 2 bits, vs 0.04 and 0.01; +34.7% rise in perplexity at 2 bits, vs +63% to +772%; 2.9× smaller cache at 2 bits in the language test; 8.9–11.3× slower attention step than uncompressed, language model on one H200

What problem it attacks

A transformer model works through a sequence one piece (one token) at a time. For every token it has already seen, each attention layer keeps two lists of numbers, a key and a value, so it does not have to recompute them. That store is the KV cache. It grows with the input, and the paper says reading it at every step "dominates" the cost of long-context generation, in video and audio models as well as text.

The usual fix is quantization: store each number with fewer bits. Models normally keep the cache at 16 bits per number. The bit width is how many bits each number gets after compression; at 2 bits, each number can take only one of four values. Fewer bits mean a smaller cache and less to read, but also a coarser copy of what the model stored, and at some point the model starts to fail.

How does OCTOPUS shrink the memory cache?

The authors build on a family of rotation codecs, including TurboQuant and PolarQuant. These first scramble each key with a fixed random rotation, which spreads its information evenly so that every coordinate follows a known statistical shape, and then round each coordinate on its own to the best set of levels for that shape (a Lloyd-Max quantizer).

OCTOPUS changes the rounding step:

The paper works out how to share the bits: the direction coordinates get one bit more than the nominal budget and the length one bit less. On synthetic test data this split cut the error by 31–41% compared with giving every number the same bits, the authors report.

The method needs no calibration on a model's own data. Its codebooks depend only on the size of the keys and the bit budget, so the same codec can be dropped into any model with attention.

The results

The team compared OCTOPUS with three codecs, TurboQuant-MSE, TurboQuant-QJL and PolarQuant, using the same rotation and the same handling of the values, so only the key codec changed. All the numbers below are the authors' own.

Language. On Qwen2.5-7B-Instruct-1M, an open model with a context of one million tokens, they measured perplexity (how surprised the model is by real text; lower is better) on the WikiText-2 benchmark at a context of 4,096 tokens. The table gives the rise over the uncompressed cache and how much smaller the cache became.

In a "needle in a haystack" test, a hidden fact had to be recalled from contexts of 4,000 to 128,000 tokens. At 4 bits every codec scored a perfect 1.00. At 3 bits OCTOPUS still scored 1.00 and PolarQuant fell to 0.86. At 2 bits OCTOPUS averaged 0.81 while PolarQuant and TurboQuant-QJL scored 0.04 and 0.01. TurboQuant-MSE kept some recall at 2 bits; by our average of the paper's Table 8 it scored 0.64.

Video. On two video generators built on the Wan-1.3B model (CausVid and Causal Forcing), every codec ran the same 100 prompts from identical starting noise. At 2 bits on Causal Forcing, TurboQuant-QJL's output was "effectively random noise", the authors write. OCTOPUS's frames were degraded but coherent: their average LPIPS was 0.58, where 0 means identical to the uncompressed video, and the worst prompt scored 0.82.

Audio. On the AAR audio model at 2 bits, the three earlier codecs rose to 12.6–13.2 dB of spectral distortion with negative signal-to-noise ratios. OCTOPUS stayed at 6.75 dB and +1.07 dB.

The claim of matching or beating earlier codecs "at every reported bit width and metric" has exceptions in the paper itself: at 4 bits on video, PolarQuant is within 3% (its average LPIPS is slightly better than OCTOPUS's on both video models: 0.037 against 0.038 on CausVid, 0.301 against 0.309 on Causal Forcing), and on audio at 3 bits PolarQuant is "slightly better" on average distortion and signal-to-noise (Table 3 also shows TurboQuant-MSE's mean signal-to-noise slightly higher there, 1.6 against 1.5 dB).

The costs

Three conditions sit behind the headline numbers:

Terms in plain English

Where things stand

OCTOPUS is a single preprint, version 1, with all comparisons run by its authors: Mark Boss, Vikram Voleti, Simon Donné and Shimon Vainer of Stability AI. The project page has side-by-side video and audio samples at 4, 3 and 2 bits, and lists the code as coming "Soon". We found no independent test.

Official channels of Stability AI: Website · LinkedIn · X · YouTube

Sources

Sources

Related stories

More from AI in Europe

All stories from AI in Europe