Continuous Visual Autoregressive Generation via Score Maximization

Chenze Shao, Fandong Meng, Jie Zhou · DOI

Abstract

Traditional visual autoregressive (AR) models rely on Vector Quantization (VQ) to map continuous image data into discrete tokens. This discretization process introduces significant information loss and limits the model's ability to capture fine-grained visual details. We present a framework for Continuous Visual Autoregressive (VAR) generation that replaces discrete vocabularies with continuous tokens. By leveraging strictly proper scoring rules—specifically the energy score—our proposed Energy-based AutoRegression (EAR) model generates high-quality images in a single forward pass per token. EAR achieves a state-of-the-art Frechet Inception Distance (FID) of 1.97 on ImageNet 256×256 and operates nearly 10x faster than diffusion-based autoregressive methods, offering a scalable and efficient alternative for high-resolution image synthesis.

Introduction

Autoregressive models have revolutionized natural language processing by predicting discrete tokens sequentially. When adapted to the visual domain, these models typically employ a two-stage pipeline: first, an image is compressed into a grid of discrete codes using a Vector Quantized-Variational AutoEncoder (VQ-VAE); second, a Transformer is trained to predict these codes. However, the quantization step creates a fundamental bottleneck. Quantization errors are irreversible, leading to a loss of low-level texture and structural fidelity.

While recent attempts have explored continuous autoregressive modeling using Gaussian Mixtures or Diffusion-based losses, these methods often face a trade-off between expressiveness and inference speed. Diffusion-based AR models, for instance, require multiple denoising iterations for every token generated, leading to high latency. This paper introduces EAR, a method that bypasses these limitations by treating autoregression as a score maximization problem.

Methodology

Strictly Proper Scoring Rules

The core innovation of EAR lies in the application of strictly proper scoring rules to continuous data. In statistics, a scoring rule evaluates the quality of a probabilistic forecast. A rule is "strictly proper" if the expected score is maximized only when the predicted distribution exactly matches the true data distribution. While the logarithmic scoring rule (cross-entropy) is standard for discrete data, it is less effective for continuous visual tokens without assuming a specific parametric distribution (like a Gaussian).

Energy-based AutoRegression (EAR)

Instead of predicting a probability distribution over a discrete vocabulary, EAR utilizes the Energy Score. This approach offers several advantages:

  1. Likelihood-Free Modeling: The energy score does not require an explicit probability density function, allowing the model to represent complex, multi-modal distributions without the constraints of Gaussian assumptions.
  2. The MLP Generator: Rather than using a Softmax layer to select a token, the Energy Transformer employs a small Multi-Layer Perceptron (MLP) generator. This generator takes the Transformer's hidden representation and a noise vector to sample a continuous token directly.
  3. Loss Function: The energy loss function encourages the generated samples to be close to the ground-truth target while ensuring sufficient diversity among independent samples, preventing mode collapse.

Architectural Considerations

The Energy Transformer maintains a standard backbone but replaces the traditional embedding lookup table with a linear projection. A critical technical finding for stability was the implementation of differential learning rates; the authors found that the MLP generator requires a significantly lower learning rate (approximately 0.25×) than the Transformer backbone to ensure convergence.

Experimental Results

Image Quality and Reconstruction

The model was evaluated on ImageNet at 256×256 and 512×512 resolutions. The continuous tokenizer used in EAR achieves a reconstruction FID of 1.22, which is substantially better than the 5.87 FID typically seen in standard VQ-tokenizers. This confirms that continuous tokens preserve significantly more information. The largest model, EAR-H (937M parameters), achieved a generative FID of 1.97, outperforming most VQ-based AR models.

Efficiency and Speed

One of the most significant advantages of EAR is its inference efficiency. Unlike Masked Autoregressive (MAR) models that utilize diffusion and require multiple steps per token, EAR generates each token in a single pass. On a single NVIDIA A100 GPU, EAR produces high-quality images in approximately 1 second, whereas diffusion-based competitors take nearly 10 seconds to reach comparable quality.

Masked vs. Causal Modeling

The research highlights that Masked Autoregressive Generation—where the model utilizes bidirectional attention and can predict tokens in a non-sequential order—performs significantly better for images than traditional causal (left-to-right) modeling. The random masking mechanism appears to act as a regularizer, preventing the model from overfitting to specific spatial sequences.

Conclusion and Future Work

EAR demonstrates that continuous autoregressive generation is not only viable but superior to discrete methods in terms of both fidelity and speed. By moving away from the VQ bottleneck and utilizing the energy score, EAR provides a robust framework for modeling continuous signals. Future research will focus on optimizing the MLP generator architecture and extending the EAR framework to other continuous modalities, including video, audio, and latent-space language modeling.

Summary updated

BibTeX
@inproceedings{shao2025continuous,
  author = {Chenze Shao and Fandong Meng and Jie Zhou},
  title = {{Continuous Visual Autoregressive Generation via Score Maximization}},
  booktitle = {International Conference on Machine Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=avGZE46gL6},
}
Figure