VISTA: Test-Time Compositional Alignment for Visual Autoregressive Generation

Hossein Shahabadi, Niki Sepasian, Mahdieh Soleymani BaghshaharXiv 2026

TL;DR

VISTA is the first gradient-based test-time alignment framework for Visual Autoregressive (VAR) models, fixing common "compositional failures" where models ignore parts of a prompt. By optimizing intermediate representations at coarse generation scales, VISTA allows a 2B-parameter model to outperform a model four times its size in attribute binding and spatial reasoning, all without any additional training.

What Problem Does This Paper Address?

While text-to-image generation has reached incredible heights, models still frequently "hallucinate" or misinterpret prompts. You might ask for a "red banana and a green strawberry," only to get a yellow banana and a red strawberry (attribute leakage) or two red fruits (binding failure).

In the world of Diffusion models, researchers have developed "test-time alignment" techniques to steer the model during inference. However, a new class of models called Visual Autoregressive (VAR) models—which generate images as a sequence of increasingly detailed token maps—presents a unique challenge. Unlike Diffusion, VAR models are stateful and discrete; once a coarse resolution scale is sampled, its "mistakes" are baked into the persistent state that all subsequent fine-grained scales rely on. Existing diffusion-based steering methods simply don't work here because they can't handle the multi-resolution, stateful nature of the VAR sampling process.

Methods

The authors introduce VISTA (Visual Autoregressive Semantic Test-time Alignment), which intervenes directly in the generation loop of the Infinity VAR backbone.

Figure 1: VISTA on “a white crow and a black flower”. Generation proceeds coarse to fine, each scale conditioned on all coarser ones; VISTA steers only the outlined coarse scales, scoring the model’s own cross-attention with a differentiable compositional loss and taking normalized gradient steps on that scale’s input zs until the objectives converge or the step budget is spent. Right: flower and crow attention at Res 3 and Res 4 (the 6×6 and 8×8 grids), with and without steering. Without it the maps stay collapsed onto one another and a second bird appears in place of the flower; with it they separate and remain separated through the unsteered fine scales. Lentity is shown but not instantiated (Sec. 3.4).

The core technical innovations include:

  • Differentiable Cross-Attention Capture: Since VAR models usually cache their attention, VISTA recomputes a differentiable path from the loss back to the input embeddings ($z_s$) on the fly.
  • Stable Multi-Scale Optimization: To prevent optimization from becoming unstable across different resolutions, VISTA uses per-token gradient normalization. This ensures that updates to the representation are meaningful even when the tensor size grows at finer scales.
  • Adaptive Step Budgets: Instead of a fixed number of steps, VISTA calculates how many optimization steps to take based on the initial "severity" of the constraint violation, saving computation time on easy prompts.
  • Compositional Objectives: VISTA uses a pluggable registry of objectives. This includes standard attribute binding and 2D spatial losses, plus a novel Boundary Containment (BC) loss for depth. BC forces the "occluded" object's attention to wrap around the "occluder's" silhouette, achieving 3D spatial relations without needing an external depth estimation model.

Datasets

The researchers evaluated VISTA using two primary benchmarks designed to test compositional understanding:

  1. T2I-CompBench: A comprehensive benchmark covering color, texture, and shape binding, as well as 2D/3D spatial relations and complex prompts.
  2. GenEval: An object-focused framework that evaluates how well models handle positioning, counting, and attribute attribution.

Key Insights and Ideas

  • Coarse Scales Rule the Layout: A major finding is that you only need to steer the coarsest "non-degenerate" scales (e.g., 4x4 to 8x8 grids). Once the high-level layout is corrected at these scales, the finer scales (up to 64x64) naturally inherit and refine the correct structure.
  • Sub-additive Costs: Optimizing for multiple constraints (e.g., color binding AND spatial relations) simultaneously is significantly cheaper than the sum of their individual costs. This is because all active objectives share a single forward and backward pass per optimization step.
  • Recovering the Scale Gap: Perhaps the most striking insight is that test-time steering can compensate for a lack of raw parameters. VISTA allows a 2B model to behave like a much larger 8B model, suggesting that compositional failures are often a "search" problem at inference time rather than a fundamental lack of knowledge in the weights.

Key Results

VISTA shows dramatic improvements across the board, particularly in spatial reasoning where VAR models typically struggle.

  • Spatial Accuracy: On T2I-CompBench, VISTA achieved an 84% relative gain in 2D spatial relations for the Infinity-2B backbone.
  • Surpassing Larger Models: Infinity-2B equipped with VISTA outperformed the baseline Infinity-8B on the majority of targeted categories, including Color, 2D/3D Spatial, and Complex prompts.
  • Human Preference: Even though VISTA doesn't explicitly optimize for "beauty," an independent preference model (ImageReward) scored VISTA's outputs 20% higher than the baseline, indicating that better prompt alignment correlates with perceived image quality.
Table 1: T2I-CompBench, four seeds. Prior-system rows are from Shahabadi et al. (2025) and use no cache compression; every Infinity row does (Sec. 4.1). VISTA applies Lbind + L2D + Ldepth over three scales; TTS-VAR is the authors’ implementation at N=1 under our setup. Numeracy and Non-Spatial (shaded) are untargeted and unchanged by construction; Avg.6 covers the six targeted categories, Avg.8 all eight. Bold: best per group; underline: best overall.

Limitations and Future Work

  • Inference Latency: While VISTA is more efficient than search-based methods, it still adds overhead. At the default setting, it roughly doubles the generation time (from ~3s to ~6s on a 2B model).
  • Objective Coverage: The current implementation does not yet include objectives for Numeracy (counting) or Non-Spatial relations (e.g., "wearing," "holding"), though the authors note these could be added to the framework.
  • Model Specificity: While the principles are general to VAR, the specific mechanisms were only verified on the Infinity model family. Testing on other autoregressive architectures remains future work.
  • Complex Prompts: Gains on "Complex" prompts were lower than on isolated categories, suggesting that more work is needed to handle prompts where many constraints interact simultaneously.

Summary updated

BibTeX
@misc{shahabadi2026vista,
  author = {Hossein Shahabadi and Niki Sepasian and Mahdieh Soleymani Baghshah},
  title = {{VISTA: Test-Time Compositional Alignment for Visual Autoregressive Generation}},
  year = {2026},
  eprint = {2608.22521},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2608.22521},
}
Figure