arXiv:2608.22521cs.CVAug 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2608.22521

VISTA: Test-Time Compositional Alignment for Visual Autoregressive Generation

Hossein Shahabadi, Niki Sepasian, Mahdieh Soleymani Baghshah

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

Visual autoregressive (VAR) models have emerged as a fast, high-quality alternative to diffusion for text-to-image generation, but like diffusion models they exhibit persistent compositional failures, producing images that violate the attribute bindings and spatial relations specified in the prompt. While a rich line of test-time alignment methods has developed for diffusion, no comparable approach exists for next-scale VAR generation, whose stateful, discrete, multi-resolution sampling process makes existing techniques inapplicable. We close this gap with VISTA (Visual Autoregressive Semantic Test-time Alignment), the first gradient-based test-time alignment framework for next-scale autoregressive image generation. Built on Infinity, VISTA intervenes directly in the generation process, optimizing intermediate representations through the frozen transformer to steer visual predictions toward compositional constraints, without modifying model parameters or requiring additional training. VISTA introduces the mechanisms needed to make such optimization stable across scales, together with an extensible objective space that any differentiable constraint on cross-attention can plug into. Across two benchmarks and two model scales, VISTA improves every targeted compositional category, raising the mean targeted score by nearly 20% on a 2B backbone and almost 6% on an 8B backbone, with the largest gains on spatial relations. Image quality is preserved: an independent preference model VISTA never optimizes scores its outputs nearly 20% higher. Notably, the 2B model with VISTA surpasses a backbone four times its size, indicating that a substantial part of the compositional gap between model scales is recoverable at test time.

1 INTRODUCTION

Text-to-image generation is dominated by two model families. Latent diffusion models Rombach et al. (2022) and their transformer-based successors remain the default choice for open-domain synthesis. More recently, visual autoregressive (VAR) models have emerged as a competitive alternative: VAR Tian et al. (2024) reformulates autoregressive image generation as coarse-to-fine next-scale prediction rather than raster-scan token-by-token prediction Esser et al. (2021), producing an image as a sequence of token maps of increasing resolution, each conditioned on all coarser ones. This let transformer-based Vaswani et al. (2017) autoregressive models surpass diffusion transformers in quality, speed, and scalability for the first time, and Infinity Han et al. (2025a) extends it with a bitwise, infinite-vocabulary tokenizer and self-correction, reaching quality competitive with top diffusion models.

Neither family, however, reliably composes. In a systematic comparison of six text-to-image systems, prior work has found that next-scale VAR models such as Infinity exhibit systematic failures in attribute binding, spatial reasoning, and relational tasks, and that these failures do not disappear with scale Shahabadi et al. (2025): visual fidelity and parameter count do not guarantee compositional understanding. Since retraining a backbone to fix compositionality is expensive and does not transfer across models, a growing body of work instead intervenes at inference time.

In diffusion models this line is well developed. Building on the finding that cross-attention encodes spatial correspondence between image regions and text Hertz et al. (2022), Attend-and-

Excite Chefer et al. (2023) and SynGen Rassin et al. (2023) optimize the diffusion latent during sampling to reshape attention toward prompt constraints, and subsequent work has refined the objective for attribute binding Meral et al. (2024); Li et al. (2023), concept separation Agarwal et al. (2023), and spatial relations Rezaei et al. (2025); Han et al. (2025b). These methods share a common premise: a frozen model's own cross-attention exposes a differentiable handle on compositional structure, and steering it at inference time is cheaper and more portable than retraining.

Test-time intervention has begun to reach VAR models as well, but along a different axis. TTS-VAR Chen et al. (2025b) treats generation as a path-search problem, using clustering-based diversity search at coarse scales and resampling-based selection at fine scales, and ScalingAR Chen et al. (2025a) adapts test-time scaling to next-token-prediction autoregressive generation. Both improve generation quality by searching over candidate trajectories under a reward model or confidence signal, so both are bounded by what the backbone already samples: when a constraint is violated in nearly every candidate, selection has nothing to select. Gradient-based steering carries no such bound, but it has no VAR counterpart, and porting it is not straightforward. Infinity generates discrete tokens across scales of increasing resolution over a persistent state that later scales depend on, rather than repeatedly updating one continuous latent at fixed resolution. Two consequences defeat a direct port: a gradient normalized as a single global vector is diluted across the far larger token maps of VAR scales until its per-element magnitude no longer changes the sampled token, and each optimization step corrupts the attention cache that every subsequent scale reads.

We close this gap with VISTA (Visual Autoregressive Semantic Test-time Alignment), the first gradient-based test-time framework for compositional alignment in next-scale VAR generation. Built on Infinity, VISTA optimizes intermediate token representations through the frozen transformer via mechanisms for differentiable cross-attention capture, cache-safe optimization, per-token gradient normalization, and adaptive step budgets, independent of which objective is optimized. A pluggable registry then lets any differentiable constraint on cross-attention plug into this same infrastructure; we instantiate it with objectives for attribute binding, planar relations, and depth ordering.

On T2I-CompBench, VISTA improves every targeted category, with an 84% relative gain on 2D spatial relations and 12–20% gains on color, texture, and shape binding; on GenEval it nearly triples object positioning accuracy, where search-based test-time scaling on the same backbone gains under 8% Chen et al. (2025b). Applied to Infinity-2B, it surpasses the 4× larger Infinity-8B on the majority of these categories and on their average, and applied to Infinity-8B it improves that model further. A preference model VISTA never optimizes scores its outputs nearly 20% higher, so the compositional gains are not bought by degrading the image. As with any test-time method, they are traded against inference cost; VISTA exposes this trade-off through two knobs and requires no additional training, trainable parameters, or task-specific data. Appendix A discusses related work in full.

Our contributions are as follows. (i) We introduce the first gradient-based test-time framework for compositional alignment in next-scale VAR generation, requiring no additional training, parameters, reward model, or candidate search. (ii) We identify the failure modes that make test-time latent optimization unstable inside stateful, multi-scale generation, and give mechanisms that resolve them independently of the objective optimized (Secs. 3.2–3.3). (iii) We cast compositional alignment as an extensible differentiable objective space over cross-attention. Existing binding and planar-relation objectives port into it directly; for depth we introduce a boundary-containment constraint that reads occlusion geometry out of attention alone, where prior work resorts to an external depth estimator and search over completed images.

References (47)