Source-linked AI summary

VA-$\pi$: Variational Policy Alignment for Pixel-Aware Autoregressive Generation

Xinyao Liao, Qiyuan He, Kai Xu, Xiaoye Qu, Yicong Li, Wei Wei, Angela Yao

arXiv:2512.19680v1cs.CV

TL;DR

Token-likelihood training can leave autoregressive visual generators without direct pixel-space supervision, even though their tokens are decoded into images. VA-π derives a variational objective and uses reconstruction quality to guide policy updates. It improves generation across class- and text-conditional tasks, with a reported 86.6% reduction in training cost versus conventional RL fine-tuning.

  • Problem

    Autoregressive generators optimize token likelihood while tokenizers optimize image reconstruction, leaving generated token sequences without direct pixel-space supervision and potentially producing poor decoded images.

    Source: §1 · p. 2
  • Method

    VA-π derives an ELBO combining pixel reconstruction with token-likelihood regularization and uses reconstruction quality as an intrinsic reward for reinforcement-based policy updates.

    Source: §1 · p. 2
  • Results

    VA-π improves visual fidelity and compositional alignment on class- and text-conditional tasks while reducing training cost by 86.6% compared with conventional RL fine-tuning.

    Source: §6 · p. 8
  • Takeaways & Limitations

    VA-π offers a lightweight, theoretically grounded approach to bridging token-level modeling and pixel-level generation in multimodal generation.

    Source: §6 · p. 8

    Because jointly tuning the AR model and tokenizer is described as unstable, the reported setup updates only the AR generator and keeps the tokenizer frozen.

    Source: §4.1 · p. 5

Abstract

from arXiv · show

Autoregressive (AR) visual generation relies on tokenizers to map images to and from discrete sequences. However, tokenizers are trained to reconstruct clean images from ground-truth tokens, while AR generators are optimized only for token likelihood. This misalignment leads to generated token sequences that may decode into low-quality images, without direct supervision from the pixel space. We propose VA-$\pi$, a lightweight post-training framework that directly optimizes AR models with a principled pixel-space objective. VA-$\pi$ formulates the generator-tokenizer alignment as a variational optimization, deriving an evidence lower bound (ELBO) that unifies pixel reconstruction and autoregressive modeling. To optimize under the discrete token space, VA-$\pi$ introduces a reinforcement-based alignment strategy that treats the AR generator as a policy, uses pixel-space reconstruction quality as its intrinsic reward. The reward is measured by how well the predicted token sequences can reconstruct the original image under teacher forcing, giving the model direct pixel-level guidance without expensive free-running sampling. The regularization term of the ELBO serves as a natural regularizer, maintaining distributional consistency of tokens. VA-$\pi$ enables rapid adaptation of existing AR generators, without neither tokenizer retraining nor external reward models. With only 1% ImageNet-1K data and 25 minutes of tuning, it reduces FID from 14.36 to 7.65 and improves IS from 86.55 to 116.70 on LlamaGen-XXL, while also yielding notable gains in the text-to-image task on GenEval for both visual generation model (LlamaGen: from 0.306 to 0.339) and unified multi-modal model (Janus-Pro: from 0.725 to 0.744). Code is available at https://github.com/Lil-Shake/VA-Pi.

1. Introduction

Token-level autoregressive training can produce sequences that decode into poor images, while direct pixel-level optimization is intractable. VA-π aligns the generator to pixel-space reconstruction through a variational objective and reinforcement-based post-training.

  • Token-only optimization can yield high-likelihood sequences that decode into visually poor images, while direct pixel-level autoregression is intractable in practice.The paper calls such sequences off-manifold because their decoded images deviate from the image manifold.Source: §1 · pp. 1–2
  • Earlier noisy-context approaches did not directly address pixel-level misalignment, and excessive noise can reduce decoder sharpness and visual fidelity.Tokenizer-centered approaches increase tolerance to off-manifold sequences rather than preventing the AR generator from producing them.Source: §1 · p. 2
  • VA-π treats sampled token sequences as latent variables of the image and derives an ELBO that combines tokenizer reconstruction with the AR model’s token-likelihood prior.The reconstruction term supplies pixel-level supervision, while the prior term retains token-level likelihood modeling.Source: §1 · p. 2
  • Because the variables are discrete, the method uses reinforcement-based policy optimization to distribute gradients across sampled sequences rather than only the ground-truth path.The tokenizer’s teacher-forcing reconstruction loss supplies the intrinsic reward, and variational regularization keeps the updated policy close to the base AR model.Source: §1 · p. 2
  • FID falls from 14.36 to 7.65 and IS rises from 86.55 to 116.70 for LlamaGen-XXL; VA-π uses 1% of pretraining data and 25 minutes of post-training.The contribution summary reports these settings without external reward models.Source: §1 · pp. 2–3

2. Related Work

Prior work refines visual AR components and attempts to reduce tokenizer-generator mismatch, while reinforcement learning has been used for several visual-generation objectives. The paper positions direct RL optimization for pixel-space reconstruction as a new direction.

2.1. Auto-Regressive Visual Generation

  • Visual AR generation uses discrete tokenizers to make pixel generation tractable, but generator likelihood training and tokenizer reconstruction objectives remain separated.Prior component-level advances address tokenizer artifacts or tokenization structure without resolving this objective-level bottleneck.Source: §2.1 · p. 3

2.2. Tokenizer-Generator Alignment

  • Generator- and tokenizer-centered methods reduce mismatch through noisy contexts, randomized token order, decoder robustness, or token-structure changes, but often require costly retraining and intuitive regularization.The authors contrast those approaches with their own principled and efficient objective.Source: §2.2 · p. 3

2.3. Reinforcement Learning in Visual Generation

  • The authors state that their work is the first to apply reinforcement learning to optimize AR models directly for pixel-space reconstruction quality.Prior visual-generation RL has targeted reasoning, human preferences, controllability, or prompt alignment.Source: §2.3 · p. 3

3. Preliminaries

Visual AR models encode images as discrete token sequences, train autoregressive predictors with teacher forcing, and decode generated sequences back to images. Reinforcement learning provides a policy-optimization framework with reward-based updates and KL regularization.

3.1. Visual Autoregressive Models

  • A visual tokenizer encodes images into discrete codes and decodes them for reconstruction, using pixel, perceptual, and vector-quantization losses.The AR model learns the code distribution by maximizing sequence likelihood with ground-truth preceding tokens as teacher-forced context; conditioning inputs are omitted from the notation.Source: §3.1 · pp. 3–4
  • At inference, the AR model samples tokens sequentially in free-running mode and the decoder maps the completed sequence back to an image.The class or text input can serve as an additional condition.Source: §3.1 · pp. 3–4

3.2. Reinforcement Learning

  • GRPO samples groups of outputs, normalizes their rewards into relative advantages, and combines a clipped policy-ratio objective with a KL penalty that constrains drift from the reference policy.The paper adopts GRPO for stability through group reward normalization and KL regularization.Source: §3.2 · p. 4

4. VA-π: Variational Policy Alignment

VA-π derives an ELBO to align autoregressive token generation with pixel-space likelihood, combining reconstruction feedback with regularization that preserves the pretrained token distribution. It optimizes the non-differentiable reconstruction signal as a reward and uses GRPO to integrate the training components.

4.1. Evidence Lower Bound for Alignment

  • The ELBO treats discrete tokens as latent variables, approximates their posterior with teacher-forced predictions, and combines pixel reconstruction with prior regularization while keeping the tokenizer frozen.The pixel-space likelihood is intractable to evaluate directly; VA-π updates the AR generator rather than jointly tuning it and the tokenizer.Source: §4.1 · pp. 4–5

4.2. Regularization with Next Token Prediction

  • The prior regularization term is treated as reducing exposure bias and implemented with contextual noise and next-token prediction.The contextual noise level controls corruption of the ground-truth token sequence.Source: §4.2 · p. 5

4.3. Learning with Reconstruction Reward

  • Because quantization and discrete sampling block direct gradients, VA-π treats negative reconstruction loss on teacher-forced token samples as a policy reward.The method reuses noisy token sequences from next-token prediction regularization to avoid multiple AR-model forwards.Source: §4.3 · p. 5

4.4. VA-π Policy Optimization

  • GRPO combines reconstruction reward with next-token prediction regularization, using teacher-forced trajectories without extra reference-model storage or free-running rollouts.The authors report that VA-π outperforms GRPO models trained to maximize external rewards.Source: §4.4 · pp. 5–6
  • VA-π achieves competitive ImageNet-1K FID and IS at substantially lower training cost, and the highest overall GenEval score for LlamaGen-XL with fine-grained attribute gains for Janus-Pro.The supplied captions report these comparisons but provide no numerical values.Source: Table 3 · p. 6, Table 2 · p. 6

5. Experiments

The experiments evaluate VA-π on class- and text-conditioned generation, using ImageNet-1k and GenEval with LlamaGen and Janus-Pro. Results report gains across these settings, while ablations examine reward composition, regularization, and contextual noise.

5.1. Experimental Setup

  • Experiments cover class-conditioned generation with LlamaGen-XL and XXL, text-conditioned generation with LlamaGen-XL and Janus-Pro 1B, and GenEval’s six compositional dimensions.C2I uses ImageNet-1k; the reported training setups use 100 steps and 12.8K samples for C2I, 200 steps for LlamaGen T2I, and 100 steps for Janus-Pro 1B.Source: §5.1 · pp. 6–7

5.2. Main Results on Class-to-Image Generation

  • LlamaGen-XXL post-training reduces FID from 14.35 to 7.65 and increases IS by 30.16; VA-π also reports the best CFG-scale-1.75 FID of 2.28 and IS of 273.53.For LlamaGen-XL, VA-π improves FID from 15.55 to 9.23 and IS from 79.16 to 111.59 without CFG; its CFG variant reaches IS 299.63 and trains 7.5× faster than AR-GRPO, while the XXL model trains 15× faster than STE.Source: §5.2 · p. 7

5.3. Main Results on Text-to-Image Generation

  • On GenEval, VA-π raises LlamaGen-XL’s overall score from 0.324 to 0.339 and Janus-Pro 1B’s from 0.725 to 0.744.The LlamaGen gains include color understanding (+0.013), counting (+0.010), and two-object composition (+0.065); for Janus-Pro 1B, attribute binding improves by +0.045 and two-object relations by +0.034.Source: §5.3 · pp. 7–8

5.4. Ablation Study

  • For regularization without CFG, CE outperforms KL on FID and IS, with weight 0.1 best; for T2I contextual noise, ξ=0.5 gives the best GenEval overall score of 0.339.No regularization yields FID 38.63, while β=1.0 oversmooths gradients and suppresses diversity; no noise or ξ>0.75 is suboptimal.Source: Figure 4 · p. 8, §5.4 · p. 8, Table 5 · p. 8
  • Ablations report that reconstruction reward alone fails to align meaningfully without prior regularization, while combining reconstruction and prior regularization gives the best balance.Table 4 examines pixel reconstruction (LMSE), perceptual similarity (Lp), and token-level cross-entropy regularization (Lprior).Source: §5.4 · p. 8, Table 4 · p. 8

6. Conclusion

The conclusion presents VA-π as an RL-based post-training framework for aligning visual autoregressive generators with pixel space. It reports improvements across class- and text-conditional tasks, lower training cost, and application to a unified multimodal model.

6. Conclusion

  • VA-π substantially improves visual fidelity and compositional alignment on class-conditional and text-conditional generation tasks.The conclusion frames the method as aligning visual AR generators to pixel space through a variational objective grounded in probabilistic modeling.Source: §6 · p. 8
  • VA-π reduces training cost by 86.6% compared with conventional RL fine-tuning.Source: §6 · p. 8
  • The conclusion reports that VA-π generalizes to the unified multimodal model Janus-Pro 1B.It characterizes the framework as a lightweight, theoretically grounded path for bridging token-level modeling and pixel-level generation in scalable multimodal generation.Source: §6 · p. 8

A. Theoretical Details of VA-π

This appendix section outlines three theoretical details: an ELBO proof with discrete tokens as the latent variable, a comparison with VAE and autoregressive VQVAE formulations, and a justification of prior regularization.

A. Theoretical Details of VA-π

A.1. Proof of Alignment ELBO

The appendix derives an ELBO for image likelihood by treating the autoregressive token sequence as a latent variable and introducing a variational posterior. It then contrasts VA-π’s posterior with VAE and VQVAE formulations and relates prior regularization to next-token prediction under perturbed prefixes.

A.1. Proof of Alignment ELBO

  • The proof sets up image likelihood using a prior over token sequences and a pixel-space likelihood, noting that marginalizing over tokens is generally intractable.It introduces a variational posterior qϕ(x | I), applies Jensen’s inequality to define an ELBO, and notes that matching the true posterior makes the KL term zero and ELBO maximization equivalent to MLE.Source: §A.1 · p. 9

A.2. Comparison with VAE and AR on VQVAE

  • Unlike VQVAE’s encoder-and-quantizer posterior and uniform prior, VA-π teacher-forces the encoded discrete code through the AR model to define its posterior.This keeps the ELBO valid and gives the AR model pixel-space reconstruction supervision; the formulation uses the pretrained AR model as prior and supports post-training alignment with the tokenizer.Source: §A.2 · pp. 9–10, Table 6 · p. 10

A.3. Details of Prior Regularization

  • VA-π relates prior KL minimization to next-token prediction under perturbed prefixes, subject to assumptions that are not guaranteed in experiments.The appendix reports empirical effectiveness with a suitable corruption kernel and describes uniform token noise applied at rate ξ.Source: §A.3 · pp. 10–11

B. Tokenizer Training Objectives

The tokenizer objective combines image reconstruction with quantization to produce discrete tokens that balance reconstruction quality and stable codebook learning.

B. Tokenizer Training Objectives

  • The tokenizer’s total objective combines reconstruction and quantization terms to support high-fidelity image reconstruction and stable codebook learning.The resulting discrete tokens balance compression and visual quality for subsequent autoregressive modeling.Source: B. Tokenizer Training Objectives · p. 11
  • Pixel-wise reconstruction uses mean squared error between the original image and its reconstruction, while perceptual loss compares their pretrained VGG feature activations.Perceptual loss follows.Source: B. Tokenizer Training Objectives · p. 11
  • Vector quantization encourages encoder outputs to commit to the closest codebook embedding; its terms update codebook entries and penalize deviations from assigned embeddings.The commitment strength is controlled by β.Source: B. Tokenizer Training Objectives · p. 11

C. Implementation Details

The implementation details describe STE-based fine-tuning as a baseline and its surrogate gradient mechanism for optimizing an autoregressive generator through a frozen tokenizer.

C. Implementation Details

  • The implementation covers STE fine-tuning and tokenizer-decoder fine-tuning baselines, then VA-π experiments with LlamaGen for class-to-image and text-to-image generation and Janus-Pro for text-to-image.The STE baseline uses more data and training time than VA-π, which updates the model under the ground-truth path.Source: C. Implementation Details · p. 11, §C.1 · p. 12

C.1. Straight-Throught Estimator Variant

  • STE decodes discrete hard tokens in the forward pass but reuses soft-token gradients in backpropagation, copying decoder reconstruction gradients to generator logits through the frozen tokenizer.The method applies this mechanism to reconstruction and regularization objectives.Source: §C.1 · p. 12

C.2. Tokenizer Post-training

Tokenizer post-training adapts the decoder to autoregressive-generated tokens while keeping the generator and quantizer fixed; implementation settings and learning curves cover three model scenarios.

C.2. Tokenizer Post-training

  • Tokenizer post-training freezes the autoregressive model, quantizer, and codebook while updating only the decoder to improve reconstruction of autoregressive-generated tokens.The resulting tokenizer is described as a drop-in replacement that improves decoding fidelity without inducing distributional mismatch.Source: §C.2 · p. 12

C.3. Implementaton Details of VA-π

  • LlamaGen fine-tuning uses AdamW with a 1 × 10^-6 learning rate, while Janus-Pro 1B uses 1 × 10^-7; training runs range from 100 to 200 steps across the three settings.LlamaGen models use 384 × 384 resolution and Janus-Pro 1B uses 256 × 256 resolution.Source: §C.3 · p. 12, Table 7 · p. 13

D.1. Visualization of Learning Curves

  • Reward steadily increases during VA-π fine-tuning across C2I LlamaGen-XXL and T2I LlamaGen-XL and Janus-Pro 1B scenarios.Figure 5 presents the learning curves for these three scenarios.Source: §D.1 · p. 13, Figure 5 · p. 13

D.2. Class-to-Image Generation

Class-to-image comparisons report more class-consistent, structurally faithful, and realistic VA-π generations than the pretrained LlamaGen-XXL baseline. Additional comparisons cover tokenizer post-training, STE, and text-to-image prompts across several tasks.

D.2. Class-to-Image Generation

  • Decoder-only fine-tuning cannot correct off-manifold token sequences and instead amplifies train–inference mismatch while smoothing away meaningful details.The reported degradation can leave coarse structure intact while reducing sharpness and perceptual richness.Source: §D.2 · p. 13
  • Tokenizer post-training preserves coarse structure but smooths textures, while STE partly improves details yet retains off-manifold transitions; VA-π yields sharper textures and more coherent semantics.The comparisons use identical decoding configurations with CFG scale 1.0.Source: §D.2 · pp. 13–14
  • VA-π generations are more consistent with class semantics and show improved structural fidelity and perceptual realism than pretrained LlamaGen-XXL.The qualitative comparison also reports better semantic alignment and image quality against LlamaGen-XXL, tokenizer post-training, and STE-based post-training.Source: §D.2 · p. 14, Figure 6 · p. 14

D.3. Text-to-Image Generation

  • GenEval text-to-image comparisons show Jans-Pro 1B and VA-π generations for attribute binding, counting, position, and two-object combination, using CFG scale 5.0, temperature 1.0, top-k 0, and top-p 1.0.Source: §D.3 · p. 14
Loading 2512.19680v1…