# Transformer-FSQ: Discrete Latents for Extreme KV-Cache Compression

DevFeed: [Transformer-FSQ: Discrete Latents for Extreme KV-Cache Compression](<https://devfeed.tech/articles/transformer-fsq-discrete-latents-for-extreme-kv-cache-compression-123427.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2611.09598>)

Author: Andras Szecsenyi, Thomas L. Lee, Vaisakh Shaj, Elliot J. Crowley, Amos Storkey

Published: 2026-11-09T05:00:00Z

Content type: article

Language: en

Sources: [arXiv: Machine Learning](<https://devfeed.tech/sources/arxiv-machine-learning.md>)

Topics: [Compression](<https://devfeed.tech/topics/compression.md>), [Cache](<https://devfeed.tech/topics/cache.md>), [quantization](<https://devfeed.tech/topics/quantization.md>), [Local AI](<https://devfeed.tech/topics/local-ai.md>), [long-context](<https://devfeed.tech/topics/long-context.md>), [context window](<https://devfeed.tech/topics/context-window.md>)

Tags: [attention](<https://devfeed.tech/tags/attention.md>), [cache](<https://devfeed.tech/tags/cache.md>), [compression](<https://devfeed.tech/tags/compression.md>), [context](<https://devfeed.tech/tags/context.md>), [cs-lg](<https://devfeed.tech/tags/cs-lg.md>), [device](<https://devfeed.tech/tags/device.md>), [kernel](<https://devfeed.tech/tags/kernel.md>), [kernels](<https://devfeed.tech/tags/kernels.md>), [kv-cache](<https://devfeed.tech/tags/kv-cache.md>), [long-context](<https://devfeed.tech/tags/long-context.md>), [memory](<https://devfeed.tech/tags/memory.md>), [metadata](<https://devfeed.tech/tags/metadata.md>), [qwen3](<https://devfeed.tech/tags/qwen3.md>), [retrieval](<https://devfeed.tech/tags/retrieval.md>), [ruler](<https://devfeed.tech/tags/ruler.md>), [scalar](<https://devfeed.tech/tags/scalar.md>), [throughput](<https://devfeed.tech/tags/throughput.md>), [token](<https://devfeed.tech/tags/token.md>), [tokens](<https://devfeed.tech/tags/tokens.md>), [transformer](<https://devfeed.tech/tags/transformer.md>), [triton](<https://devfeed.tech/tags/triton.md>)

## AI overview

Transformer-FSQ compresses a transformer's KV cache by replacing its key and value projections with a finite scalar quantisation bottleneck. Each token is stored as packed discrete integer codes without per-token quantisation metadata; adapting a pretrained model trains only those projections, using 0.25 tokens per original parameter. Across models from 0.6B to 8B parameters, the authors report the highest long-context retrieval accuracy among five baseline families evaluated, at compression ratios from 12x to 97.5x. A fused Triton decoder reached 1.01x native SDPA throughput (95% interval 0.98-1.05) on Qwen3-8B-Base at 32x compression and 1.54x at 97.5x, with baselines using their authors' kernels where available. These results are reported for the evaluated models and RULER retrieval benchmark.

## Source excerpt

arXiv:2611.09598v1 Announce Type: new Abstract: Private, personalised language models must run on local consumer devices, where large, frontier models cannot fit, and retaining long contexts is non-trivial. Sequential memory---the key-value (KV) cache---grows linearly with context length, quickly dwarfing the model itself: for Qwen3-1.7B-Base, 200,000 retained entries require 21 GiB, 6.6 times more than the model weights. Yet the KV-cache compression methods we measured fail beyond moderate compression ratios. We introduce Transformer-FSQ, addressing extreme KV-cache compression by replacing standard key and value projections with a finite scalar quantisation bottleneck. Our cache stores a packed vector of discrete integer codes per token, with no per-token quantisation metadata. Converting a pretrained transformer trains only these projections on 0.25 tokens per original parameter. We evaluate Transformer-FSQ against five baseline families on models from 0.6B to 8B parameters. On long-context retrieval (RULER), from 12$\times$ to 97.5$\times$ Transformer-FSQ is the most accurate method we evaluate, across scales. A fused Triton kernel decodes directly from the integer codes; with baselines given their authors' kernels where available, it decodes at $1.01\times$ (95% interval $0.98$--$1.05$) the throughput of native SDPA attention on the uncompressed Qwen3-8B-Base at $32\times$ and $1.54\times$ at $97.5\times$. Extreme KV-cache compression is therefore a practical way to extend how much context a fixed device can hold.