Manuscript Offprint
arXiv:2610.06545Empirical Variational Autoencoder
Abstract
We present Empirical Variational Autoencoder (EVA), a general generative framework for continuous-valued (i.e., non-vector-quantized) sequences. EVA is based on the evidence lower bound of the Variational Autoencoder (VAE) but learns autoregressive latent priors empirically from training data, which can be implemented only by an additional single linear layer on top of VAEs. By replacing the conventional standard-Gaussian constraint with the self-predicted priors, EVA significantly alleviates the latent distribution gap between prior and posterior which is typically observed in conventional VAEs, and leads to high-fidelity ancestral sampling for sequential data generation. Extensive experiments on image and sound synthesis demonstrate that EVA achieves competitive generation quality with autoregressive diffusion baselines despite its much faster inference time. Project page: https://mapoon.github.io/EVAPage.
1. Introduction
Autoregressive (AR) models are a dominant approach to sequence generation, but their standard formulation is most natural for discrete-valued data, where each predictive distribution is categorical. For continuous-valued sequences, direct regression losses such as mean squared error do not model the full next-token density and therefore struggle to capture multimodality and uncertainty. Existing continuous AR approaches address this issue by employing continuous generative heads such as Gaussian mixture model [38] and diffusion [18], but these methods either impose fixed parametric families or incur substantial inference costs. Variational autoencoders (VAEs) [16] provide a theoretically well-supported generative framework for continuous data through latent-variable modeling. However, conventional VAEs can suffer from a mismatch between the dependencies remaining across latent positions in the posterior and the factorized standard-Gaussian prior used for generation, which significantly degrades sampling quality. In practice, this limitation has contributed to a trend in which VAE-style models are more often used as latent compressors or tokenizers than as standalone generators in modern large-scale generative pipelines [27, 43].
In this work, we revisit the role of VAEs as generative models especially for sequential data. Our proposed Empirical Variational Autoencoder (EVA) is built on the evidence lower bound (ELBO) of VAEs, but replaces the traditional fixed latent prior with an autoregressive prior learned empirically from data. This simple modification significantly aligns the prior distribution with the posterior and enables high-fidelity sequential sampling. Experiments on a controlled toy benchmark, ImageNet [28], and VGGSound [6] show that EVA achieves competitive results with autoregressive generators [18, 38] while maintaining substantially more efficient ancestral inference than diffusion-based AR approaches.
AR Models in Continuous-valued Space. Beyond discretization-based approaches, another line of work models continuous-valued sequences directly in the original space. Early approaches combine Gaussian mixture models [11, 38] with AR models, but their expressiveness is limited by a predefined, fixed number of mixture components. More recent approaches introduce implicit objectives, such as diffusion-based autoregressive models [18] or likelihood-free objectives based on energy scores [31], trading off either inference efficiency or mode coverage. In contrast, our method models each conditional distribution as a continuous mixture induced by latent marginalization, while learning an autoregressive prior for high-quality ancestral sampling.
Challenges in VAEs as Generative Models. Early VAEs [16] typically represent an entire observation using a single global latent variable, resulting in an inherent trade-off between reconstruction fidelity and prior regularization. To improve this formulation, more expressive priors are introduced, including VampPrior [37], resampled priors [3], and flow-based priors [8], while some studies tried to combine VAEs with AR decoders [4, 12, 26]. However, as autoregressive decoders become more expressive, they can increasingly ignore the latent variable, leading to the posterior collapse issue. This creates a tension between maintaining latent-variable usage and scaling increasingly expressive decoders. Another direction increases latent capacity by distributing latent variables over spatial or hierarchical representations, rather than the single global latent variable. Deep hierarchical VAEs such as NVAE [39] and VDVAE [7] model dependencies across hierarchical latent groups, where each group is typically a spatial latent feature map sampled in parallel, but use factorized conditional distributions within each group. This factorization leaves dependencies within each spatial latent map unmodeled, and prior-aggregate posterior mismatch has been reported to persist even in deep hierarchical VAEs [1]. In contrast, EVA autoregressively conditions each latent token on all preceding latent positions, giving the prior the capacity to represent dependencies across the entire preceding latent sequence and enabling high-fidelity ancestral sampling.
3. Proposed Method
We present Empirical Variational Autoencoder (EVA), a general generative framework for continuous-valued sequences. EVA is based on the evidence lower bound of Variational Autoencoder (VAE) [16] but replaces the fixed standard-Gaussian constraint with a self-predicted autoregressive prior. This allows structured dependencies to remain in the latent representation while adapting the prior to the posterior, enabling ancestral sampling from a prior aligned with the learned latent structure. We start by revisiting the theory of VAE as follows.
3.1. Revisiting Variational Autoencoder
Variational Autoencoder (VAE) [16] is a latent-variable generative model that introduces a continuous latent variable z for observed data x. It assumes the following generative process: , where is a prior distribution over the latent variable. The learning objective is to maximize the marginal log-likelihood: . Since the true posterior is generally intractable, we introduce an approximate posterior . Consider the KL divergence between these distributions using Bayes' rule:
Training
Inference


Figure 2. Framework of EVA. During training, the encoder maps the observed sequence to latent variables , the decoder reconstructs each token from the latent , and learns the autoregressive latent prior by matching it to the posterior . During inference, the model autoregressively samples the latent sequence from the empirical prior and decodes each token causally to generate a continuous-valued sequence.
Rearranging terms gives
(5)
where ELBO(x) denotes the evidence lower bound, which serves as a tractable lower bound of the marginal log-likelihood . The ELBO is optimized by parameterizing the conditional distribution and the approximate posterior with neural networks, denoted as and , respectively. A common choice is to model the approximate posterior as a diagonal Gaussian:
and to employ the reparameterization trick for gradient-based optimization.
Accordingly, the training objective is to minimize the negative ELBO, or VAE loss:
where the prior over the latent variable is typically chosen as a standard normal distribution . This conventional choice induces a trade-off between the two objectives in the ELBO: optimizing the reconstruction term encourages the posterior to capture detailed data-dependent structure, thereby widening its gap from the fixed standard-Gaussian prior, whereas optimizing the KL term reduces this gap by forcing the posterior toward the prior, often at the expense of reconstruction quality. This makes it difficult for traditional VAEs to simultaneously obtain accurate reconstructions and high-quality prior sampling.
3.2. Empirical Variational Autoencoder (EVA)
We start by considering a case where x and z are sequences with a length of T as denoted:
We assume a causal decoder, an autoregressive prior, and a mean-field posterior:
(14) where . Under these assumptions, the VAE ELBO is reformulated as:
where . We call this EVA ELBO to distinguish it from the VAE ELBO.
Then, we parameterize the conditional distributions as an encoder and a causal decoder to optimize EVA ELBO. Moreover, most importantly, EVA optimizes latent priors empirically from training data by an additional network, called predictor, , unlike the original VAE that constrains the priors simply to the standard Gaussian shared across different spatial (or temporal) indices, as formulated:
where and . Finally, the training objective for EVA is obtained as the negative EVA ELBO, denoted as the EVA loss:
where is simply defined as .
Sampling. At inference, generation is performed ancestrally in the latent space: we first sample , and then sample for . The output is decoded causally as .
Conditional Generation. Given a condition vector c, EVA is extended to conditional generation:
Using a causal conditional decoder, an autoregressive conditional prior, and a mean-field conditional posterior, substituting these factorizations into the standard conditional ELBO yields
where . We parameterize these distributions by a conditional encoder , a conditional decoder , and a conditional predictor . In particular, the predictor defines a conditional Gaussian prior:
We optimize the conditional objective
At inference, we sample and for , and decode each token causally via . The training and inference pipelines are illustrated in Fig. 2.
3.3. Multimodal Sequence Structure
To understand how EVA differs from previous generative families in capturing multimodal dependencies in sequences, we study a toy experiment on the joint distribution of two sequential observations and . We model real-world sequential data by a minimal latent-state generative process, in which observations are generated from latent states and the latent dynamics follow a conditional transition of the form . Multimodality can arise both from branching latent transitions, which produce multiple plausible futures, and from multiple observable realizations of each latent state.
Generative Families. We first compare how different generative model families represent the predictive distribution from a theoretical perspective:
- When an AR decoder is trained simply with the MSE loss, the model is interpreted to estimate the mean of a single modal Gaussian:
Under squared-error training, the optimal predictor is the conditional mean which averages over multiple plausible outcomes when the conditional distribution is multimodal. 2) When an AR decoder is equipped with a GMM head, the predictive distribution is formulated as
The limitation of the GMM head is that it represents as a finite mixture with a pre-defined number of components . In this toy experiment, we consider . 3) VAE equipped with a causal decoder represents through latent marginalization:
AR

AR-GMM (K=3)
Causal VAE
EVA (Ours)
Figure 3. Toy Experiment on Multimodal Sequence Structure. Each panel shows samples in the two-dimensional space, with the horizontal axis corresponding to and the vertical axis corresponding to . The blue points are sampled from the true data distribution while the orange points are generated by each model. AR tends to average over plausible modes and fails to recover the multimodal joint structure. GMM fails once the multimodal structure exceeds its finite mixture capacity. Causal VAE captures the major modes, but still produces noticeable inter-mode samples. In contrast, EVA concentrates samples on the true modes and substantially suppresses inter-mode samples, indicating that the learned autoregressive prior better represents latent dependencies across sequence steps. Best viewed in zoom.
Since is continuous, this marginalization induces a continuous mixture of Gaussian components, allowing the predictive distribution to be multimodal.
- Our EVA uses the same latent-variable predictive family as VAE (Eq. 26), but it replaces the fixed prior of VAE with an empirical autoregressive prior . Therefore, the key difference from causal VAE is whether the prior represents dependencies across latent positions , which in turn allows latent marginalization to preserve multimodal predictive structure.
Toy Setting. We construct a synthetic process on a one-dimensional latent sequence and one-dimensional observations. First, we sample and then is generated from through a state-dependent branching transition as and , where is a discrete branch variable, denotes the number of latent transition modes, and are fixed scalar coefficients, is a branch-specific latent offset, and is Gaussian noise. Observations are then generated via multimodal offsets: and , where are discrete observation-mode indices, denotes the number of observable modes per latent state, and are the corresponding observation offsets, and are Gaussian noise terms. Thus, controls the branching complexity of the latent transition, while controls the visible multimodality in the observation space. We set to , , or . All the hyperparameters and training details can be found in Appendix B.1.
Results. Fig. 3 shows that the four model families exhibit clearly different behaviors on multimodal sequence generation. Each sample is visualized in the two-dimensional space, where the horizontal and vertical axes correspond to and , respectively. As shown in the figure, AR trained with the MSE loss falls into the averaging trap and fails to recover the multimodal joint structure. GMM head improves over AR and can represent with , since both and have three visible modes.
| Method | ImageNet | VGGSound | |||||
|---|---|---|---|---|---|---|---|
| #Params (M) Train | Infer | FID↓ | IS↑ | Time↓ | FID↓ | IS↑ | |
| AR | 170.9 | 170.9 | 200.50 | 3.60 | 1.91 | 4.51 | 4.45 |
| AR-GMM | 171.3 | 171.3 | 21.71 | 124.23 | 2.10 | 3.05 | 6.30 |
| AR-Diff. (12 blocks) | 236.2 | 236.2 | 29.96 | 51.09 | 23.46 | 0.57 | 26.59 |
| AR-Diff. (24 blocks) | 321.3 | 321.3 | 5.44 | 262.80 | 24.76 | 0.54 | 26.96 |
| Causal VAE | 171.5 | 86.0 | 100.27 | 13.13 | 0.97 | 1.84 | 7.45 |
| Causal VAE w/ NF | 259.9 | 174.6 | 12.43 | 215.04 | 1.15 | 0.65 | 28.95 |
| EVA | 171.8 | 86.4 | 7.68 | 178.60 | 1.00 | 0.64 | 25.26 |

Table 1. Comparison with Baselines on ImageNet (256×256) and VGGSound. AR-Diffusion (12 blocks) has the same number of Transformer blocks as EVA at inference time while AR-Diffusion (24 blocks) has the same number of Transformer blocks at training time. In the right, we visualize AR-Diffusion with different denoising steps {10, 15, 20, 30, 40, 50}. Despite the fewer inference parameters and faster inference time, our method achieves competitive generation fidelity.
. However, when , has two modes whereas has four, because each of the two latent branches is further split into two observation modes. Since this exceeds the fixed mixture capacity , GMM is forced to cover multiple modes with a single component. The same limitation is even more pronounced for . Causal VAE captures the major clusters in all settings, confirming the flexibility of latent marginalization, but it still generates a noticeable amount of inter-mode samples. In contrast, EVA produces much fewer samples between clusters and places its mass more tightly on the true modes.
4. Experiments
We here validate our method on two different generation tasks including image generation on ImageNet [28] and sound generation on VGGSound [6]. The generated images can be seen in Fig. 1 and Appendix. The generated sounds are included in the project page.
4.1. Setup.
Implementation. We implement EVA on PyTorch [23]. We use mean squared error (MSE) as a reconstruction loss.
The encoder and decoder consist of full-attention and causal Transformer layers, respectively. Importantly, we found in practice that the latent prior predictor can share the backbone with the decoder ; therefore, we employ two different linear heads to predict and on top of causal Transformer backbone as illustrated in Fig. 2.
Our model can benefit from classifier-free guidance (CFG) [14] as well as previous models. Because EVA is a latent-AR model that represents rather than observation-AR models that represent , we apply CFG to the mean of the predicted latent distribution:
where is a scalar to control the strength of conditions. Unless otherwise stated, we use .
Datasets and Tokenizers. For image synthesis, we follow the traditional ImageNet [28] benchmarking widely adopted in previous work [18, 36, 38] with a resolution of . The images are tokenized into tokens with 16 channels by a pre-trained VAE from [27]. For sound synthesis, we adopt VGGSound [6] dataset that includes 309 classes. The waveforms are trimmed into nine seconds and tokenized into 215 tokens with 32 channels by a pre-trained VAE from [10]. Models are trained on the tokenized sequences and the final outputs are obtained using the pretrained VAE decoders. Models. We refer to previous generative approaches: AR is a traditional AR Transformer model which is trained with MSE loss. AR-GMM is a variant of AR Transformer where a Gaussian mixture model (GMM) is built on top of the Transformer to represent multi-modal density, as explored in GIVT [38]. AR-Diffusion employs a diffusion MLP head [18] to learn implicit density. Causal VAE is a VAE [16] for sequential data by adopting a causal decoder that accesses only preceding information, which performs as our baseline model. EVA just adds a single linear layer on top of Causal VAE to predict the latent prior. Causal VAE w/ NF is another baseline that learns prior by normalizing flow [45].
For fair comparisons, all the models including EVA have the same size of Transformer backbone (170M parameters consisting of 24 blocks with a hidden width of 768), excluding method-specific designs, e.g., the prior prediction head
This dataset is currently provided only by third-parties and lacks a part of the original dataset.
- Source Point
Image

Causal VAE
EVA (Ours)
Figure 4. Latent Space Visualization. Each patch represents bidirectional KL divergence between the source latent (+) and each latent. Lighter indicates similar to the source patch.
for EVA and diffusion MLP head for AR-Diffusion. We set the latent size to 128 for Causal VAE, Causal VAE w/ NF, and EVA. Because we keep the number of parameters comparable across the models at training, the parameters of Causal VAE, Causal VAE w/ NF, and EVA at inference are approximately less than those of the AR baselines due to the dispensability of their encoders.
For further comparison with AR-Diffusion, we also train it with a backbone with half the number of Transformer blocks, so that EVA and AR-Diffusion have the same number of blocks at inference.
The models are trained for 400 epochs with AdamW optimizer [19] whose learning rate and are set to 1.0e-4 and (0.9, 0.95), respectively.
Metrics. We report (FID) [13] and Inception Score (IS) [29] following the convention [18]. For ImageNet we generate 50k samples while for VGGSound we generate 15446 (up to 50 samples per class, depending on the number of test samples). We use the same number of test samples for target distributions for FID. We additionally report the respective numbers of parameters at training and inference, excluding the tokenizer's parameters shared across models, and the inference time per single image generation normalized by ours.
4.2. Comparison with Baselines
Table 1 shows the numerical comparisons on ImageNet and VGGSound. Consistent with the toy study in Sec. 3.3, the vanilla AR model trained with the MSE loss fails, indicating that direct regression is insufficient for multimodal next-token prediction in continuous space. Adding a GMM head [38] substantially improves generation quality, but its finite mixture family remains restrictive.

Figure 5. Image Completion. The darker regions (like ) in the first row indicate the areas to be re-generated.
AR-Diffusion (321M), which has the same number of Transformer blocks at training time as EVA, achieves the best metrics but it requires the iterative denoising steps, at the cost of substantially slower inference (10 times slower than EVA with a comparable FID as shown in the right figure of Table 1). Moreover, we observe that AR-Diffusion (236M), which has the same number of blocks at inference time as EVA, remains at much worse FID. This result indicates that under matched Transformer depth at inference, EVA achieves substantially lower FID with fewer inference parameters.
Causal VAE performs poorly, demonstrating that simply making a VAE decoder causal is not sufficient for high-quality sequential generation. In contrast, EVA achieves the competitive FID among methods with comparable inference cost. These results suggest that learning an autoregressive latent prior is critical for high-fidelity continuous autoregressive generation. Curated images are shown in Fig. 1. We include uncurated images in Appendix and sounds in the project page.
4.3. Framework Analysis
Latent Space Visualization. We found that EVA obtains a well-structured latent space after training. In Fig. 4, we compute bi-directional KL divergence, i.e., , between a source patch (+) and other patches in the posterior latent space. The lighter patches indicate being more similar to the source patch. We can see 1) that in EVA's latent space, the semantically similar patches tend to have similar latent distributions, implying that learning generation naturally encourages the model to learn semantics, and 2) that Causal VAE still exhibits a few spatially structured variations in its posterior latent distributions despite regularization toward the standard Gaussian, indicating residual mismatch with the
| Method | ImageNet | VGGSound | ||
|---|---|---|---|---|
| FID↓ | rFID↓ | FID↓ | rFID↓ | |
| Causal VAE | 100.27 | 2.49 | 1.84 | 0.63 |
| Causal VAE w/ NF | 12.43 | 2.64 | 0.65 | 1.08 |
| EVA | 7.68 | 2.42 | 0.64 | 0.64 |
Table 2. Generation vs. Reconstruction. EVA outperforms the baselines in generation fidelity (FID) while maintaining reconstruction fidelity (rFID).
factorized prior used for generation.
Image Completion. Our model is capable of image completion as shown in Fig. 5. We here use the first posterior latents from an original image , i.e., , to generate subsequent latents . In the first two rows, we give the same class conditions to the model as the original images while in the last two rows, we give the different class conditions, i.e., from “vacuum” to “pot” and from “wreck” to “liner”. We observe that EVA generates diverse samples from the same prefix contexts while the completed patches are aligned with the class conditions.
Generation vs. Reconstruction. Classical VAEs with a single global latent bottleneck are often characterized by a trade-off between reconstruction fidelity and prior regularization. In the multi-latent setting, as in our work, however, Causal VAE and EVA achieve comparable reconstruction fidelity, as reflected by their similar rFID in Table 2, while EVA substantially improves generation FID. This result shows that generation fidelity can be substantially improved without sacrificing reconstruction fidelity, suggesting that the two objectives need not be tightly coupled when sufficient latent capacity is available. By learning an autoregressive prior that captures dependencies across latent positions, EVA preserves the reconstruction capability of the VAE while significantly improving prior sampling.
Latent Size and Model Size. Fig. 6 analyzes two practical factors of EVA on ImageNet: the latent dimensionality and the backbone size over different CFG scales. In Fig. 6a, we vary the latent size from 16 to 256. A too-small latent bottleneck degrades FID indicating insufficient capacity to represent multimodal predictive structure. Increasing the latent size improves generation quality up to 128 dimensions, which gives the best FID on ImageNet. Further increasing the latent size does not yield additional gains and can even hurt performance, suggesting that excessively large latent spaces make prior modeling and sampling more difficult.
We next study the effect of the model size in Fig. 6b. The small variant (denoted as EVA-S) has 16 Transformer blocks each for encoder and decoder with a hidden width of 512 while the large variant (denoted as EVA-L) has 32 Transformer blocks each for encoder and decoder with a hidden width of 1024. All variants have the latent size of 64.

(a) Latent Size.
(b) Model Size.
Figure 6. Latent Size and Model Size. (a) Different latent sizes with EVA-B. The variant with a latent dimension of 128 achieves the best FID of 7.68 with a CFG scale of 7. (b) Different backbone sizes with a latent size of 64. EVA-L achieves an FID of 6.04 with a CFG scale of 7.
We observe that larger backbones successfully improve FID; EVA-B achieves an FID of 8.41 with a CFG scale of 7 while EVA-L achieves an FID of 6.04.
5. Limitations and Future Work
We identify two main limitations. First, EVA currently linearizes spatial latent maps into a 1D causal sequence and therefore does not explicitly exploit their 2D spatial structure. Designing autoregressive priors specialized for spatial data may further improve image generation. Second, we focus on closed-set generation benchmarks on ImageNet and VGGSound, and moderate model scales in this paper. A natural next step is to validate the method on larger-scale and more diverse downstream tasks, such as text-to-image [27], text-to-speech [21], and multimodal data generation [46].
6. Conclusion
We presented Empirical Variational Autoencoder (EVA) for efficient sequence generation with continuous-valued tokens. Unlike traditional VAEs, EVA learns the latent prior empirically from data only with an additional single linear layer on top of VAEs, which addresses the distribution gap between the prior and posterior and leads to high-fidelity sampling. We demonstrated on ImageNet and VGGSound that our method achieves competitive generation quality with efficient ancestral sampling against autoregressive diffusion models. We hope this work encourages the research community to re-examine the potential of VAEs as standalone generative models.
A. Additional Experiments
System-level Comparison. We compare our method with recent state-of-the-art models, including VAR [36], SiT [20], JiT [17], and LlamaGen [34]. We report inference parameters (including tokenizers), FID, and IS in Table 3. Note that bidirectional models such as VAR and SiT allow information exchange across the full spatial extent of the image representation at each generation stage, whereas causal models such as LlamaGen and our model condition each prediction only on previously generated tokens in raster-scan order.
Uncurated Generated Examples. We show the uncurated images generated by EVA-L in Figs. 7, and 8. Each block indicates the same class condition. We also strongly recommend the readers listen to the generated sounds in the project page.
| Method | #Params (M) | FID↓ | IS↑ |
|---|---|---|---|
| Bi-directional | |||
| VAR-B | 197.9 | 12.82 | 126.34 |
| SiT-B | 179.9 | 5.88 | 215.03 |
| JiT-B | 131.3 | 3.72 | 267.87 |
| Causal | |||
| LlamaGen-B | 153.4 | 8.68 | 120.37 |
| EVA-B | 124.6 | 7.68 | 178.60 |
Table 3. Comparison with the recent SOTA models on ImageNet-256.


Figure 7. Uncurated Examples.


Figure 8. Uncurated Examples.
B. Implementation Details
B.1. On the Toy Problem
Data Generation. The toy benchmark is defined on a one-dimensional latent process and one-dimensional observations. Let denote a fixed BOS token. We first sample the initial latent variable
with . The next latent variable is generated through a state-dependent multimodal transition. Specifically, for a given number of latent modes , we define mode logits
where are linearly spaced between -2.2 and 2.2, and
A latent mode is then sampled as
Given m, the next latent is generated by
where is a mode-specific latent offset and with . The offsets are placed uniformly on a one-dimensional grid with spacing 1.6.
Observations are generated from each latent state using observation-level multimodal offsets. For a given number of observation modes , we define offsets on a one-dimensional grid with spacing 2.4, and sample
The observations are then generated as
where with . In this construction, controls the number of branching transition modes in latent space, while controls the visible multimodality in observation space.
AR and GMM Parameterizations. For the autoregressive baselines, we model
In the deterministic AR baseline, each conditional distribution is parameterized by a separate multilayer perceptron (MLP). The network for takes a one-dimensional input and uses three hidden layers of width 128 with ReLU activations, followed by a scalar output head. The network for takes a two-dimensional input and uses the same hidden architecture.
For GMM, we use the same backbone MLPs, but replace the scalar output head with Gaussian mixture parameters. For each conditional distribution, the network outputs mixture logits, component means, and component log-standard-deviations for a K-component Gaussian mixture.
Causal VAE Parameterization. The VAE baseline models
with an unconditional prior
The encoder is an MLP that takes the two-dimensional input and uses three hidden layers of width 128 with ReLU activations. It outputs the means and log-variances for both and . We use latent dimension 8 for each latent variable. The decoder for is an MLP with two hidden layers of width 128, mapping an 8-dimensional latent input to a scalar output. The decoder for has the same hidden architecture and takes the concatenated 16-dimensional latent vector as input.
The VAE is trained with the objective
where reconstruction terms are implemented as Gaussian negative log-likelihoods with fixed .
EVA Parameterization. EVA uses the same encoder and decoder structure as the VAE, but replaces the unconditional latent prior with predictive latent priors
The prior network for is an MLP with three hidden layers of width 128 and ReLU activations, taking a one-dimensional BOS input and outputting the mean and log-variance of an 8-dimensional Gaussian. The prior network for uses the same hidden architecture, takes a dimensional input, and outputs the mean and log-variance of an 8-dimensional Gaussian for .
EVA is trained with
As in the VAE, we use .
Training Details. All neural networks use ReLU activations. We train all models with Adam, learning rate , batch size 512, and 20,000 gradient steps. For VAE and EVA, latent variables are sampled using the reparameterization trick. During evaluation, we generate samples unconditionally by following each model's native generative pathway from the BOS token.
B.2. On the ImageNet and VGGSound
Transformer Backbone for Causal VAE and EVA. Both encoder and decoder transformers operate at a hidden width of 768 with 12 attention heads and 12 Transformer blocks each, using an MLP expansion ratio of 4.0 and LayerNorm [2]. Attention and projection dropouts are set to 0.1, and QKV projections include bias terms. The model prepends a single class token and additional four register tokens to the token sequence. On the encoder side, token embeddings are projected from the VAE latent token space into the 768-dimensional Transformer space, and the encoder applies full-attention. On the decoder side, attention is strictly causal, and latent variables are projected into the same 768-dimensional space before autoregressive decoding. RoPE [33] is used in both encoder and decoder.
Transformer Backbone for AR Baselines. We use a causal Transformer backbone with 24 blocks to keep the training parameters comparable with Causal VAE and EVA. Other configurations follow Causal VAE and Empirical Variational Autoencoder.
AR-GMM. We follow GIVT [38] for the implementation of the GMM head. Each autoregressive Transformer state is projected by a linear head to the parameters of a Gaussian mixture distribution for the next latent token, namely mixture weights and component-wise means and scales. The scale parameters are transformed by a square-plus function and lower-bounded by to ensure positivity and numerical stability. The model is trained by minimizing the negative log-likelihood of this mixture distribution.
At inference time, we follow the same sampling scheme as GIVT and use a temperature of 1.0 for the mixture weights and 1.0 for the component scales. Under classifier-free guidance, we adopt the same density combination rule as GIVT and perform rejection sampling with 1000 proposals.
AR-Diffusion. We follow MAR [18] for the implementation of the diffusion head. Concretely, an AdaLN-conditioned MLP [24] is employed as the diffusion head on top of the autoregressive transformer. The conditioning dimension is 768, the MLP hidden width is 1536, and the head depth is 12 residual blocks. The MLP jointly predicts the mean-related (noise) term and the variance term in the diffusion parameterization. Temporal conditioning uses a sinusoidal embedding of size 256 followed by a 2-layer MLP, which is combined additively with the AR conditioning signal and injected through AdaLN in each residual block. Training uses a cosine diffusion noise schedule. Differently from the original implementation [18], we use the DDIM [32] sampler instead of DDPM [15] during inference because of its efficiency and fidelity.
Causal VAE w/ NF. We follow SimFlow [45] to implement normalizing flow (NF) prior. It has additional 88.1M parameters consisting of six transformations, each parameterized by a two-layer Transformer with hidden dimension 768, 12 attention heads, and an MLP expansion ratio of 4. The affine output layer predicts 256-dimensional log-scales and shifts. We train the prior by minimizing the change-of-variables negative log-likelihood of posterior samples under a standard Gaussian base distribution, jointly with the latent reconstruction objective.
Additional Training Details. Optimization follows AdamW with a weight decay of 0.02. We use linear learning-rate warmup for the first 50 epochs. For stability, we maintain an exponential moving average (EMA) of model weights, updated after each optimizer step with a decay of 0.9999. We drop the class condition with a probability of 0.1 and insert a learnable unconditional token for CFG. The training takes about 3 days for ImageNet and 12 hours for VGGSound with eight NVIDIA RTX5090 (32GB) GPUs.
References
[1] Jyoti Aneja, Alex Schwing, Jan Kautz, and Arash Vahdat. A contrastive learning approach for training variational autoencoder priors. In NeurIPS, 2021. 2
[2] Jimmy Lei Ba, Jamie Ryan Kiros, and Geoffrey E Hinton. Layer normalization. arXiv:1607.06450, 2016. 12
[3] Matthias Bauer and Andriy Mnih. Resampled priors for variational autoencoders. In AISTATS, 2019. 2
[4] Samuel R Bowman, Luke Vilnis, Oriol Vinyals, Andrew M Dai, Rafal Jozefowicz, and Samy Bengio. Generating sentences from a continuous space. In CoNLL, 2016. 2
[5] Tom Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah, Jared D Kaplan, Prafulla Dhariwal, Arvind Neelakantan, Pranav Shyam, Girish Sastry, Amanda Askell, et al. Language models are few-shot learners. NeurIPS, 2020. 2
[6] Honglie Chen, Weidi Xie, Andrea Vedaldi, and Andrew Zisserman. Vggsound: A large-scale audio-visual dataset. In ICASSP, 2020. 2, 6
[7] Rewon Child. Very deep vaes generalize autoregressive models and can outperform them on images. arXiv:2011.10650, 2020. 2
[8] Xiaoan Ding and Kevin Gimpel. FlowPrior: Learning expressive priors for latent variable sentence models. In NACLL, 2021. 2
[9] Patrick Esser, Robin Rombach, and Bjorn Ommer. Taming transformers for high-resolution image synthesis. In CVPR, 2021. 2
[10] Zach Evans, Julian D Parker, CJ Carr, Zack Zukowski, Josiah Taylor, and Jordi Pons. Stable audio open. In ICASSP, 2025. 6
[11] Alex Graves. Generating sequences with recurrent neural networks. arXiv:1308.0850, 2013. 2
[12] Ishaan Gulrajani, Kundan Kumar, Faruk Ahmed, Adrien Ali Taiga, Francesco Visin, David Vazquez, and Aaron Courville. Pixelvae: A latent variable model for natural images. arXiv:1611.05013, 2016. 2
[13] Martin Heusel, Hubert Ramsauer, Thomas Unterthiner, Bernhard Nessler, and Sepp Hochreiter. Gans trained by a two time-scale update rule converge to a local nash equilibrium. NeurIPS, 2017. 7
[14] Jonathan Ho and Tim Salimans. Classifier-free diffusion guidance. In NeurIPS Workshop, 2021. 6
[15] Jonathan Ho, Ajay Jain, and Pieter Abbeel. Denoising diffusion probabilistic models. In NeurIPS, 2020. 12
[16] Diederik P Kingma and Max Welling. Auto-encoding variational bayes. arXiv:1312.6114, 2013. 1, 2, 6
[17] Tianhong Li and Kaiming He. Back to basics: Let denoising generative models denoise. In CVPR, 2026. 9
[18] Tianhong Li, Yonglong Tian, He Li, Mingyang Deng, and Kaiming He. Autoregressive image generation without vector quantization. NeurIPS, 2024. 1, 2, 6, 7, 12
[19] Ilya Loshchilov and Frank Hutter. Decoupled weight decay regularization. In ICLR, 2019. 7
[20] Nanye Ma, Mark Goldstein, Michael S Albergo, Nicholas M Boffi, Eric Vanden-Eijnden, and Saining Xie. Sit: Exploring flow and diffusion-based generative models with scalable interpolant transformers. In ECCV, 2024. 9
[21] Lingwei Meng, Long Zhou, Shujie Liu, Sanyuan Chen, Bing Han, Shujie Hu, Yanqing Liu, Jinyu Li, Sheng Zhao, Xixin Wu, et al. Autoregressive speech synthesis without vector quantization. In ACL, 2025. 8
[22] Fabian Mentzer, David Minnen, Eirikur Agustsson, and Michael Tschannen. Finite scalar quantization: VQ-VAE made simple. In ICLR, 2024. 2
[23] Adam Paszke, Sam Gross, Francisco Massa, Adam Lerer, James Bradbury, Gregory Chanan, Trevor Killeen, Zeming Lin, Natalia Gimelshein, Luca Antiga, et al. Pytorch: An imperative style, high-performance deep learning library. NeurIPS, 2019. 6
[24] William Peebles and Saining Xie. Scalable diffusion models with transformers. In ICCV, 2023. 12
[25] Alec Radford, Jeff Wu, Rewon Child, David Luan, Dario Amodei, and Ilya Sutskever. Language models are unsupervised multitask learners. OpenAI, 2019. 2
[26] Ali Razavi, Aaron van den Oord, Ben Poole, and Oriol Vinyals. Preventing posterior collapse with delta-VAEs. In ICLR, 2019. 2
[27] Robin Rombach, Andreas Blattmann, Dominik Lorenz, Patrick Esser, and Björn Ommer. High-resolution image synthesis with latent diffusion models. In CVPR, 2022. 2, 6, 8
[28] Olga Russakovsky, Jia Deng, Hao Su, Jonathan Krause, Sanjeev Satheesh, Sean Ma, Zhiheng Huang, Andrej Karpathy, Aditya Khosla, Michael Bernstein, et al. Imagenet large scale visual recognition challenge. IJCV, 2015. 2, 6
[29] Tim Salimans, Ian Goodfellow, Wojciech Zaremba, Vicki Cheung, Alec Radford, and Xi Chen. Improved techniques for training gans. NeurIPS, 2016. 7
[30] Tim Salimans, Andrej Karpathy, Xi Chen, and Diederik P. Kingma. PixelCNN++: Improving the pixelCNN with discretized logistic mixture likelihood and other modifications. In ICLR, 2017. 2
[31] Chenze Shao, Fandong Meng, and Jie Zhou. Continuous visual autoregressive generation via score maximization. In ICML, 2025. 2
[32] Jiaming Song, Chenlin Meng, and Stefano Ermon. Denoising diffusion implicit models. In ICLR, 2021. 12
[33] Jianlin Su, Murtadha Ahmed, Yu Lu, Shengfeng Pan, Wen Bo, and Yunfeng Liu. Roformer: Enhanced transformer with rotary position embedding. Neurocomputing, 2024. 12
[34] Peize Sun, Yi Jiang, Shoufa Chen, Shilong Zhang, Bingyue Peng, Ping Luo, and Zehuan Yuan. Autoregressive model beats diffusion: Llama for scalable image generation. arXiv:2406.06525, 2024. 9
[35] Ilya Sutskever, James Martens, and Geoffrey Hinton. Generating text with recurrent neural networks. In ICML, 2011. 2
[36] Keyu Tian, Yi Jiang, Zehuan Yuan, BINGYUE PENG, and Liwei Wang. Visual autoregressive modeling: Scalable image generation via next-scale prediction. In NeurIPS, 2024. 2, 6, 9
[37] Jakub Tomczak and Max Welling. Vae with a vampprior. In AISTATS, 2018. 2
[38] Michael Tschannen, Cian Eastwood, and Fabian Mentzer. Givt: Generative infinite-vocabulary transformers. In ECCV, 2024. 1, 2, 6, 7, 12
[39] Arash Vahdat and Jan Kautz. NVAE: A deep hierarchical variational autoencoder. In NeurIPS, 2020. 2
[40] Aaron Van Den Oord, Sander Dieleman, Heiga Zen, Karen Simonyan, Oriol Vinyals, Alex Graves, Nal Kalchbrenner, Andrew Senior, Koray Kavukcuoglu, et al. Wavenet: A generative model for raw audio. arXiv:1609.03499, 2016. 2
[41] Aaron Van den Oord, Nal Kalchbrenner, Lasse Espeholt, Oriol Vinyals, Alex Graves, et al. Conditional image generation with pixelcnn decoders. NeurIPS, 29, 2016. 2
[42] Aäron Van Den Oord, Nal Kalchbrenner, and Koray Kavukcuoglu. Pixel recurrent neural networks. In ICML, 2016. 2
[43] Aaron Van den Oord, Oriol Vinyals, and Koray Kavukcuoglu. Neural discrete representation learning. NeurIPS, 2017. 2
[44] Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Łukasz Kaiser, and Illia Polosukhin. Attention is all you need. In NeurIPS, 2017. 2
[45] Qinyu Zhao, Guangting Zheng, Tao Yang, Rui Zhu, Xingjian Leng, Stephen Gould, and Liang Zheng. Simflow: Simplified and end-to-end training of latent normalizing flows. arXiv:2512.04084, 2025. 6, 12
[46] Chunting Zhou, Lili Yu, Arun Babu, Kushal Tirumala, Michihiro Yasunaga, Leonid Shamis, Jacob Kahn, Xuezhe Ma, Luke Zettlemoyer, and Omer Levy. Transfusion: Predict the next token and diffuse images with one multi-modal model. arXiv:2408.11039, 2024. 8