Large language models generate text one word at a time. To speed up generation, they store keys and values from previous words in a cache. But this cache grows with text length and can limit how many requests fit in memory.
The researchers noticed that values are often predictable from keys. LowRAM fits a small predictor for each attention head (a component that focuses on different input positions) at test time to reconstruct values from keys, storing corrections only for the hardest tokens. Keys are compressed using a low-rank technique (representing them with fewer numbers) shared across layers.
LowRAM stays close to baseline quality at four times value compression. Combined with other methods, it achieves 26.9 times total compression while keeping 94.5% of baseline performance on long texts, making long-context inference more efficient.
