Knowledge Distillation for Visual Autoregressive Models

Elia Peruzzo, Aritra Bhowmik, Guillaume Sautiere, Yuki M Asano, Amirhossein HabibianarXiv 2026

TL;DR

This paper presents the first systematic study of knowledge distillation (KD) for visual autoregressive (AR) models, revealing that standard language-focused distillation techniques fail due to long decoding horizons and visual token ambiguity. To solve this, the authors introduce VARKD, a novel framework that stabilizes on-policy distillation using mixed student-data rollouts, confidence-based loss reweighting, and compressed-space token supervision. VARKD consistently outperforms existing distillation baselines on ImageNet, significantly narrowing the performance gap between compact student models and large-scale teachers.

What Problem Does This Paper Address?

Autoregressive (AR) models have taken over sequence generation. While they dominate language modeling, they are increasingly being applied to vision by tokenizing images into discrete grids and predicting them sequentially. However, generating an image this way is computationally expensive, often requiring hundreds or thousands of sequential decoding steps.

To make these models practical for edge devices or low-latency applications, we need smaller, more efficient "student" models. A natural way to train them is Knowledge Distillation (KD), where a large "teacher" model guides the student. While KD is well-understood in NLP, directly transferring language distillation methods to vision fails. Visual AR models suffer from two unique challenges:

  1. Long Decoding Horizons: Errors made early in generation compound over thousands of steps, causing the student to drift completely off the realistic data manifold.
  2. Visual Token Ambiguity: Discrete visual codebooks often contain many tokens that look nearly identical in pixel space. This ambiguity makes the teacher's probability distributions diffuse and noisy when evaluating a drifting student.

Methods

The authors propose VARKD (Visual Autoregressive Knowledge Distillation) to provide a cleaner, more reliable training signal for compact visual AR models.

Figure 1: Comparison of training paradigms for autoregressive (AR) image models. We assume access to a dataset of real images (left), represented as sequences of discrete tokens. In standard maximum-likelihood training, the model is trained via teacher forcing, optimizing a cross-entropy loss against ground-truth tokens. In knowledge distillation (KD), a pre-trained teacher guides training by matching the student’s predictive distribution under ground-truth prefixes. In VARKD (right), we instead generate samples from the student conditioned on a partial ground-truth context and use the teacher to score these rollouts. We further introduce confidence-based reweighting to improve the reliability of the distillation signal.

VARKD introduces four key components during the training phase:

  • Mixed Data–Student Rollouts: Instead of letting the student generate fully free-running sequences during training (which leads to rapid drift), VARKD seeds each sequence with a partial ground-truth prefix. The student then autoregressively completes the rest of the image. This anchors the generation to realistic contexts while still exposing the student to its own inference-time behavior.
  • Selective Supervision via Entropy Reweighting: To prevent the teacher from providing noisy guidance on highly ambiguous or heavily drifted tokens, VARKD calculates the teacher's predictive entropy. Low-confidence (high-entropy) teacher predictions are down-weighted. Furthermore, if confidence drops below a certain threshold, distillation is truncated for the rest of that sequence.
  • Codebook Relaxation (Compressed-Space Distillation): To combat token-level ambiguity, the authors cluster the discrete visual token embeddings using K-means. The distillation loss is then computed in this compressed, grouped token space rather than the massive original vocabulary. This ensures the student isn't penalized for picking a token that is perceptually identical to the teacher's choice.
  • Parallel Decoding for Training Efficiency: Generating student rollouts online during training is slow. VARKD utilizes blockwise parallel decoding to accelerate rollout construction by roughly 1.3× without affecting the standard next-token decoding used at inference.

Datasets

The framework was evaluated on ImageNet for class-conditional image generation. The authors utilized two representative autoregressive backbones for their experiments: LlamaGen (a standard next-token AR Transformer) and ARPG (a recent AR model designed for randomized parallel decoding). Performance was measured using Frechet Inception Distance (FID), Inception Score (IS), Precision, and Recall on the validation set.

Key Insights and Ideas

  • On-Policy Language KD Doesn't Natively Translate to Vision: In text, Generalized KD (GKD) works well because text tokens are highly distinct. In vision, unconstrained student rollouts quickly become garbage, causing the teacher to give uninformative, flat probability distributions as feedback.
  • Bigger Teachers Aren't Always Better: In an interesting ablation study, the authors found that scaling the teacher from Large (L) to XL or XXL actually degraded student performance in standard KD. Ultra-large teachers produce highly complex, sharp distributions that a compact student simply lacks the capacity to mimic.
  • The Two-Stage Training Recipe: Online student sampling is computationally heavy. The authors discovered a highly efficient workflow: first, train the student using standard, fast supervised KD (on fixed data) until it saturates, then switch to VARKD to fine-tune the model under its own rollout distribution.

Key Results

VARKD consistently matched or outperformed prior distillation baselines (Supervised KD, SeqKD, GKD) across multiple student sizes and architectures.

Table 1: Comparison to knowledge distillation methods (KD, SeqKD, GKD) adapted for visual au- toregressive models. Results are reported on ImageNet across multiple student sizes and architectures (LlamaGen and ARPG). VARKD consistently matches or surpasses prior baselines.
  • LlamaGen-B: VARKD improved the baseline FID from 6.51 down to 4.58, outperforming standard supervised KD (4.92) and GKD (4.94).
  • LlamaGen-L: VARKD achieved an FID of 2.83, down from the baseline of 3.07.
  • ARPG-L: VARKD pushed the FID down to 2.15 (from 2.30).

Qualitatively, images generated by VARKD-trained students exhibit significantly fewer spatial artifacts and much stronger global coherence compared to other distillation methods.

Figure 2: Qualitative comparison showing that VARKD reduces spatial artifacts and improves global coherence over prior distillation baselines.

Limitations and Future Work

While VARKD marks a major step forward for visual AR compression, the authors note a few limitations:

  • Task Scope: The evaluation was strictly limited to class-conditional ImageNet generation. Extending this framework to open-ended text-to-image generation (e.g., Janus-style architectures) remains an open challenge.
  • Heuristic Proxies: The method relies on teacher entropy and K-means token clustering as proxies for supervision reliability. These statistical metrics might not fully capture high-level semantic correctness or complex prompt alignment in multimodal tasks.

Summary updated

BibTeX
@misc{peruzzo2026knowledge,
  author = {Elia Peruzzo and Aritra Bhowmik and Guillaume Sautiere and Yuki M Asano and Amirhossein Habibian},
  title = {{Knowledge Distillation for Visual Autoregressive Models}},
  year = {2026},
  eprint = {2606.06078},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2606.06078},
}
Figure