Autoregressive (AR) models have revolutionized generative AI, but their application in the image domain has traditionally relied on a spatial "raster-scan" order, generating pixels or patches from top-left to bottom-right. This 2D grid approach presents a significant hurdle for test-time search. If a verifier, such as CLIP, attempts to evaluate an image halfway through generation, it only sees a localized patch—perhaps just a corner of the sky or a brick wall—offering zero semantic signal about the final composition. Consequently, guiding these models mid-generation is highly inefficient.
This paper introduces a paradigm shift: utilizing 1D ordered, coarse-to-fine tokenization to transform image generation into a searchable tree. By restructuring how tokens represent visual data, the authors demonstrate that models can effectively scale performance with test-time compute and even perform "training-free" text-to-image generation using only a verifier.
The Search-over-Tokens (SoTo) Framework
To address the limitations of spatial grids, the authors propose the Search-over-Tokens (SoTo) framework. At its core is the transition from standard 2D grids to 1D ordered tokenizers, specifically utilizing FlexTok.
During training, these tokenizers employ "nested dropout" to enforce a coarse-to-fine structural hierarchy. The first few tokens capture a global, albeit blurry, semantic representation of the entire image, while subsequent tokens progressively add fine-grained details. Because the very first token acts as a semantic anchor—often resolving into a recognizable category like "plant" or "furniture"—search algorithms can immediately evaluate the generation trajectory and prune unpromising branches early in the process.
The SoTo framework systematically evaluates how different search algorithms interact with this token structure:
- Best-of-N: Sampling full images and selecting the highest-scoring output.
- Beam Search: Maintaining the top-$k$ partial sequences at each generation step.
- Lookahead Search: Rolling out partial sequences into full images before scoring them to estimate future reward.
These algorithms are guided by a suite of verifiers (or "judges"), including CLIP, ImageReward, and HPSv2, which score candidate sequences against target prompts or reference images. The authors also test search performance across a spectrum of autoregressive priors, ranging from strong text-conditional models to "no-prior" settings.
Key Findings and Results
The study evaluates this approach across three major benchmarks: MS-COCO (for general generation quality), GenEval (for compositional accuracy), and DreamBench++ (for zero-shot multimodal control). The experiments yield several striking insights:
Test-Time Compute as a Substitute for Scale
1D ordered tokens demonstrate vastly superior test-time scaling compared to their 2D grid counterparts. Using Beam Search, the FlexTok model achieved massive gains in CLIPScore as compute increased, whereas 2D grid models (like Janus) quickly hit diminishing returns. Remarkably, a 530M parameter model utilizing test-time search outperformed a 3.4B parameter model relying on standard greedy decoding. This suggests a viable pathway to trade inference-time compute for training-time parameter count.
Training-Free Generation
Because the 1D token space is semantically structured from the very first token, the authors successfully performed "pure search" without an AR model. By simply using Beam Search and a CLIP verifier to select tokens directly from a vocabulary, they were able to generate recognizable images from scratch, proving the inherent steerability of the coarse-to-fine token space.
Zero-Shot Control and Compositional Accuracy
On DreamBench++, using an image-similarity verifier (DreamSim) during search yielded an impressive +18.4 point increase in concept preservation without any fine-tuning. Furthermore, search significantly improved spatial and counting accuracy on the challenging GenEval benchmark, succeeding where standard AR models often fail to adhere to complex prompts.
Limitations and Future Directions
Despite these successes, the approach faces practical challenges. The current 1D tokenizer relies on a flow-based decoder requiring multiple denoising steps. This makes intermediate decoding during search—which happens at every beam step—computationally expensive.
Additionally, the system is vulnerable to "verifier hacking," a phenomenon well-documented in LLMs. If search is too aggressive, the model may exploit the verifier's blind spots, resulting in aesthetically degraded or "deep-fried" images. The authors found that using an ensemble of verifiers (e.g., CLIP + ImageReward + Grounded SAM) provides more robust guidance and mitigates this risk. Furthermore, the quality of the search is strictly capped by the quality of the verifier; if a verifier cannot distinguish between "two dogs" and "three dogs," search cannot correct the model.
Looking ahead, the authors suggest developing latent-space verifiers that do not require full image decoding at every step, which would drastically accelerate the search process. They also highlight the potential of extending this coarse-to-fine search strategy to video and 3D generation, where test-time steering could be even more impactful.
Summary updated