VAR-Q: Tuning-free KV Cache Quantization for Visual Autoregressive Image and Video Generation

Boxun Xu, Jiaji Lu, Yuxuan Yin, Zihu Wang, Ziyue Liu, Yu Wang, Zirui Liu, Peng LiNeurIPS 2026

TL;DR

Generating high-resolution images and long videos with autoregressive models creates a massive memory bottleneck—the working memory (KV cache) quickly dwarfs the size of the model itself. Standard compression tricks borrowed from Large Language Models (LLMs) destroy visual quality because visual caches organize their most important numbers in a unique two-dimensional grid. VAR-Q solves this by aligning quantization directly with this grid, slashing memory usage by up to 78.5% with virtually zero loss in visual quality—all without any retraining or calibration.

What Problem Does This Paper Address?

Autoregressive (AR) models have conquered text by predicting one word token at a time, and now they are coming for images and video. Instead of individual words, visual AR models generate coherent blocks of tokens—either predicting the next resolution scale (coarse-to-fine) or the next video frame.

As resolutions climb and videos stretch to hundreds of frames, the Key-Value (KV) cache—the running memory of past blocks the model needs to stay consistent—explodes, easily saturating an 80GB GPU. In the LLM world, we shrink KV caches using quantization (storing numbers in 2 to 4 bits instead of 16). However, if you apply standard LLM quantization recipes directly to visual AR models, the output collapses into garbled text and broken camera trajectories. Until now, nobody understood why visual KV caches behave so differently, leaving visual AR models bottlenecked at deployment.

Figure 1: Generation quality under quantized KV caches. Top: On Infinity-8B at INT2, VAR-Q reproduces the BF16 rendering of text and scene layout that FlexGen and KIVI corrupt. On Self- Forcing at INT4, VAR-Q tracks the camera trajectory properly.

Methods

When you quantize a group of numbers together, they share a single scaling factor. If one massive outlier sneaks into a group of small numbers, it stretches the scale and crushes the precision of everything else. Standard LLM methods like KIVI group Keys by feature channel and Values by individual token.

The authors discover that visual KV caches organize their massive outliers along two orthogonal axes: feature channels and decoding blocks (a single resolution scale or video frame). To protect precision, VAR-Q introduces a joint per-(channel, block) grouping rule:

  • Every quantization group consists of tokens belonging to a single channel within a single block, given one symmetric scaling factor.
  • Because the model's generation loop already processes one scale or frame per step, the block boundaries come completely for free—requiring no outlier detection, calibration data, or fine-tuning.
  • An optional hyperparameter ($r$) lets users split large blocks into even finer sub-blocks for an extra quality boost.
  • Because GPUs don't natively store sub-8-bit numbers, the authors pair the algorithm with custom Triton bit-packing kernels that pack 2-, 3-, or 4-bit integers into 32-bit containers on the fly, turning theoretical bit savings into actual free VRAM.

Datasets

Because VAR-Q is completely tuning-free, no datasets are used for training or calibration. Evaluation spans standard benchmarks across nine models:

  • Class-conditional image generation: ImageNet-1K ($256\times256$).
  • Text-to-image generation: GenEval and DPG benchmarks.
  • Text-to-video generation: VBench and MovieGen prompts (scored via CLIP and Claude Opus 4.7 as a VLM judge). No new benchmarks were introduced.

Key Insights and Ideas

  • Less than 1% of channels do the heavy lifting: Visual KV caches aren't uniform memories. Zeroing out just the top 0.5% of channels by magnitude completely collapses video generation into solid-colored blocks, whereas zeroing out 10× as many normal ("inlier") channels leaves the output virtually untouched.
  • The two-axis "plaid" structure: Plotting cache magnitudes reveals persistent stripes along specific channels and sharp, step-like bands across block boundaries. Massive values sit exclusively at the intersections of these stripes and bands.
  • Keys are architectural; Values are input-driven: Across completely different text prompts, ~53–62% of Key cache outliers stay in the exact same channels, seeded by heavy-tailed projection weights and RMSNorm gains. Value cache outliers, by contrast, drift based on what the image actually depicts.
  • RoPE creates block bands out of thin air: Rotary Position Embeddings (RoPE) rotate channel pairs by an angle determined by the block index. Fast-rotating channel pairs swing wildly in magnitude from frame to frame, creating sharp cross-block shifts purely from geometry—even if the visual input hasn't changed!

Key Results

Tested across nine models spanning five architectures (VAR, Infinity, InfinityStar, Self-Forcing, and LongLive) on an NVIDIA A100 80GB GPU:

  • Massive Memory & Batch Scaling: Cuts realized KV cache memory by up to 78.5% (and up to 87.25% at INT2 on Infinity-8B), enabling 6× larger inference batch sizes.
  • Image Generation: At INT4, VAR-Q matches the 16-bit (BF16) baseline on ImageNet FID across VAR models and keeps GenEval/DPG scores within 0.3 points on Infinity-2B/8B. Even pushed down to INT2, Infinity-8B remains highly usable (74.38 GenEval) and cleanly renders text on whiteboards that KIVI and FlexGen turn into gibberish.
  • Video Generation: On 720p next-scale video (InfinityStar) at INT3, KIVI drops 6.87 VBench points while VAR-Q stays within 1.74 points of BF16. On 5-second and 30-second next-frame video (Self-Forcing and LongLive), INT6 is indistinguishable from BF16, and INT4 cuts memory by ~75% while staying within 2 VBench points of full precision.

Limitations and Future Work

Not explicitly discussed in a dedicated section of the main text. However, the experiments surface a couple of natural boundaries: smaller backbones tolerate ultra-low bit-widths less gracefully than 8B-scale models, and next-frame video models show slight degradation at INT4 compared to next-scale models (requiring INT6 to remain completely indistinguishable from BF16). Additionally, the authors note that VAR-Q only compresses the precision of retained tokens, pointing to a natural synergy with concurrent KV-cache eviction and sparse-attention methods that reduce how many tokens are kept.

Summary updated

Abstract

Visual autoregressive generation spans two dominant paradigms: next-scale prediction for images and video, and next-frame prediction for video. Both decode block-by-block rather than token-by-token, yielding KV caches whose statistics diverge from those of language models. At scale, KV memory exceeds the weights and limits large-scale deployment caused by a large amount of visual tokens. Our analysis of these caches reveals three findings. First, a small set of massive-value channels carries the functional load: ablating these outlier channels collapses generation, whereas ablating a matched set of inlier channels leaves quality intact. Second, the outliers organize along two axes, feature and block, with magnitudes persistent within each cell and shifting across cells. Third, this structure arises from two independent mechanisms: projection bias and RoPE-induced scattering. Guided by these findings, we propose VAR-Q, a tuning-free KV-cache quantization framework that groups along the same two axes. The generation loop provides block boundaries for free, removing the need for outlier detection or calibration. Paired with bit-packing kernels for runtime memory reduction, VAR-Q delivers low-bit quantization across nine models spanning both paradigms, cutting KV memory by up to 78.5% with negligible quality degradation and enabling 6× larger inference batches. Code and demos are available on our Project Page: https://boxunxu.top/VARQ/.
BibTeX
@inproceedings{xu2026var,
  author = {Boxun Xu and Jiaji Lu and Yuxuan Yin and Zihu Wang and Ziyue Liu and Yu Wang and Zirui Liu and Peng Li},
  title = {{VAR-Q: Tuning-free KV Cache Quantization for Visual Autoregressive Image and Video Generation}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=cKR2ed5g34},
}
Figure