VA-π: Variational Policy Alignment for Pixel-Aware Autoregressive Generation

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

TL;DR

VA-π is a lightweight post-training framework that bridges the gap between token likelihood and pixel-space quality in autoregressive (AR) image generators. By framing alignment as a variational optimization problem and using reinforcement learning with an intrinsic reconstruction reward, it dramatically improves image fidelity and text-alignment in under 30 minutes of training without needing external reward models.

What Problem Does This Paper Address?

Autoregressive models for image generation treat visual data as sequences of discrete tokens, similar to how Large Language Models handle text. However, this pipeline suffers from a fundamental disconnect:

  1. The Tokenizer is trained to convert pixels to discrete tokens and decode them back into clean images.
  2. The AR Generator is trained purely to maximize the likelihood of the next token, completely blind to the final pixel space.

Because the generator never sees the actual pixels during training, it frequently produces "off-manifold" token sequences. These sequences look highly probable to the language model but decode into low-quality images filled with blurriness and structural artifacts. Prior solutions tried adding noise during training or modifying the tokenizer, but they failed to directly align the generator with pixel-space distributions.

Methods

The authors introduce VA-π (Variational Policy Alignment), a framework that derives a tractable Evidence Lower Bound (ELBO) to unify token modeling and pixel reconstruction.

To optimize over a non-differentiable discrete token space, VA-π reformulates the task as a reinforcement learning problem using Group Relative Policy Optimization (GRPO):

  • Teacher-Forced Intrinsic Reward: Instead of relying on expensive free-running image generation or external reward models (like human preference predictors), VA-π uses the frozen tokenizer's own teacher-forcing reconstruction loss (MSE + LPIPS) as an intrinsic reward.
  • Prior Regularization: To prevent the model from drifting too far from its original token distribution, the variational prior is enforced using a next-token cross-entropy loss augmented with contextual noise. This design naturally mitigates exposure bias without adding extra memory overhead.
Figure 2. Overview of VA-π. VA-π aligns the visual AR model with tokenizer via variational optimization. Given a reference image and its ground-truth tokens, VA-π adds context noise and lets the AR model compute logits under teacher forcing and samples target tokens. These sampled tokens are decoded back into an image, and the reconstruction reward is defined against the reference image. This reward is then used for policy updates within an RL framework such as GRPO [1]. Additionally, a likelihood regularization using cross-entropy loss between the logits and ground-truth tokens is retained to preserve the model’s original next-token prediction ability.

Datasets

The framework was evaluated across multiple tasks and architectures using the following datasets:

  • ImageNet-1K: Used for class-conditional image generation (C2I) tuning and evaluation.
  • LAION-COCO: Used for text-to-image (T2I) fine-tuning of the LlamaGen model.
  • Flux-Reason: Used to fine-tune the unified multimodal model, Janus-Pro 1B.
  • GenEval & DrawBench: Benchmarks used to evaluate compositional text-to-image alignment (e.g., object relations, counting, and color binding).

Key Insights and Ideas

  • The Power of Teacher Forcing in RL: Performing RL rollouts under teacher forcing provides a stable, low-variance reward signal. It gives the model direct pixel-level guidance while bypassing the error accumulation and heavy compute costs of free-running sampling.
  • Cross-Entropy over KL Divergence: For discrete token spaces, regularizing with a next-token cross-entropy loss (with contextual noise) maintains distribution stability and visual diversity significantly better than standard Kullback–Leibler (KL) divergence penalties.
  • Self-Contained Feedback: Pixel-level feedback can be entirely self-contained by leveraging the frozen tokenizer's decoder as the evaluator, eliminating the need for separate reward models.

Key Results

  • Massive Efficiency Gains: On LlamaGen-XXL (1.4B parameters), using just 1% of the ImageNet-1K pre-training data and 25 minutes of tuning on 8×A100 GPUs, VA-π slashed the Frechet Inception Distance (FID) from 14.36 to 7.65 and boosted the Inception Score (IS) from 86.55 to 116.70.
  • Speedup over Baselines: VA-π achieved superior image quality compared to standard Straight-Through Estimator (STE) approaches while training 15× faster.
  • Multimodal Generalization: When applied to the unified multimodal model Janus-Pro 1B on the GenEval benchmark, VA-π improved the overall score from 0.725 to 0.744, showing notable gains in complex attributes like object counting and attribute binding.
Qualitative comparisons on ImageNet and GenEval

Limitations and Future Work

The authors note that during alignment, the tokenizer's parameters are kept frozen to maintain training stability. As a result, the final generation quality is ultimately upper-bounded by the base tokenizer's inherent reconstruction capability.

Promising directions for future work include scaling this variational policy alignment to even larger unified multimodal architectures and exploring dynamic noise schedules for the prior regularization term.

Summary updated

BibTeX
@inproceedings{liao2026va,
  author = {Xinyao Liao and Qiyuan He and Kai Xu and Xiaoye Qu and Yicong Li and Wei Wei and Angela Yao},
  title = {{VA-π: Variational Policy Alignment for Pixel-Aware Autoregressive Generation}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2026},
  url = {https://openreview.net/forum?id=Ftb8EX597t},
}
Figure