Boosting Text-to-Image Diffusion Models via Core Token Attention-Based Seed Selection

Yunzhe Zhang, Hongfu Liu, Pengyu HongNeurIPS 2026

TL;DR

Generating great images with diffusion models often feels like pulling a slot machine lever: the exact same text prompt can yield a masterpiece or an anatomical nightmare depending solely on the initial random noise (the "seed"). The authors discover that you don't need to wait until the image is finished to know if you've pulled a winning seed—how strongly the model attends to the prompt's main nouns during the very first few denoising steps tells the whole story. Using this insight, they build a lightweight, training-free filter that catches bad seeds early, saving massive compute while boosting image quality.

What Problem Does This Paper Address?

Text-to-image (T2I) diffusion models start with pure Gaussian noise—determined by a random seed—and iteratively sculpt it into an image guided by your text prompt. However, this starting noise heavily biases the final trajectory. A "bad seed" can cause missing subjects, weird object mashups, or broken spatial layouts. Even in cutting-edge models like Stable Diffusion 3.0 or Hunyuan-DiT, high visual polish simply masks subtle structural errors upon closer inspection.

Figure 1: Illustrative examples of generations from good and bad seeds across both earlier and recent diffusion models. In earlier models such as Stable Diffusion 1.4, the gap between good and bad seeds is visually apparent, and errors from poor seeds are easily recognizable. In contrast, recent models such as Hunyuan DiT and Stable Diffusion 3.0 produce significantly higher-quality images, making outputs from bad seeds appear visually convincing at first glance. However, this improvement can obscure underlying artifacts and inconsistencies, which only become noticeable upon closer inspection. As a result, errors are more easily overlooked, potentially leading to more harmful or misleading outcomes. These hidden errors are highlighted with pink rectangles.

Historically, researchers tackled this in two heavy-handed ways: seed optimization (burning extra GPU memory and time using gradients to nudge bad noise into good noise during generation) or dataset-level seed curation (generating thousands of test images offline to find universally "golden" seeds). Both are computationally expensive. The authors ask a simpler, more practical question: Given a pool of random seeds at inference time, how can we cheaply spot the winners before running the full generation?

Methods

Enter Attention-Based Seed Selection (ABSS), a plug-and-play, training-free screening step that requires no model fine-tuning or gradient calculations.

In diffusion models, cross-attention layers act as the bridge between text and pixels, dictating where words in your prompt show up on the canvas. Instead of modifying the noise, ABSS simply observes these cross-attention maps:

  1. Early Denoising: Given $N$ candidate seeds, ABSS runs just the first few denoising steps for all of them.
  2. Map Aggregation: It collects cross-attention maps across different network blocks and heads, averaging them and applying a temperature-scaled softmax to get a sharp probability distribution of which words the pixels care about.
  3. Core-Token Scoring: It isolates the slices corresponding to core tokens—the primary head nouns of the prompt (like dog in "a dog walk on the street"), ignoring modifiers or background words. It smooths these spatial maps with a Gaussian kernel and averages the attention concentration.
  4. Rank and Prune: Seeds are ranked by this core-token score. ABSS keeps the top-$K$ seeds to finish the remaining denoising steps and ruthlessly discards the rest.
Figure 3: Framework of our proposed Attention-Based Seed Selection (ABSS). The upper pathway illustrates the standard text-to-image generation pipeline with N seeds. After a few denoising steps (t steps), ABSS is applied to evaluate whether the intermediate feature maps effectively capture the core tokens at an early stage. It then selects the top-K intermediate feature maps based on cross-attention and continues the remaining denoising steps with them.

Datasets

Because ABSS is completely training-free, no training datasets are used. For evaluation, the authors test across three established prompt benchmarks (no new datasets are introduced):

  • DrawBench: Tests complex compositionality, spatial relations, and fine-grained attributes.
  • InitNO: A prompt suite focused on challenging subject-neglect and subject-mixing scenarios.
  • Pick-a-Pic: A large-scale benchmark tailored toward human visual and aesthetic preferences.

Key Insights and Ideas

  • The "Sketch First" Hypothesis: Think of image generation like painting—you must block in the main subject before painting the lighting or background. High-quality seeds naturally anchor attention onto core nouns right at the start, whereas bad seeds scatter attention prematurely across adjectives and background words.
Figure 2: (A) Trends of cross-attention on core to- ken "kitten" for 100 seeds throughout the denoising process. Red/blue curves represent high/low-quality outputs. Notably, as early as t = 800, good and bad seeds become roughly separable based on their cross-attention. (B) Intermediate images of the best and worst seed with corresponding cross-attention values within boxes on word kitten at timestep 800.
  • Nouns Rule, Modifiers Drool (Early On): In an ablation study, the authors tested ranking seeds by early attention to verbs, adjectives, and prepositions instead of core nouns. Focusing on adjectives caused colors to bleed into the background; focusing on verbs created motion cues at the expense of mangled bodies. Only core nouns preserved subject integrity.
  • Garbage In, Garbage Out for Optimizers: Existing inference-time noise optimizers (like InitNO) try to rescue bad seeds during generation, but if a seed is truly terrible, you still end up with fused "chair-horses" or missing subjects. Pre-filtering seeds with ABSS gives these optimizers much healthier starting latents.

Key Results

Tested across U-Net models (SD 1.4–2.1) and modern Diffusion Transformers/Rectified Flow models (SD 3/3.5-Large, Hunyuan-DiT, FLUX.1), ABSS consistently hits the sweet spot between image quality and speed:

  • Better Quality at a Fraction of the Cost: Standard generation takes 50 function evaluations (NFE). Heavy noise-optimization baselines like Noise Diffusion require 550 NFE, and Noise Selection takes 333 NFE. ABSS requires only 71–73 NFE while matching or beating them across human-preference metrics (HPSv2, ImageReward, PickScore) and CLIP alignment.
  • Superior Latency Trade-off: On SD 1.4 (InitNO dataset), ABSS boosts ImageReward from 0.0612 (Random) to 0.1972 and HPSv2 from 0.2711 to 0.2782, achieving the highest quality score at a tiny fraction of the wall-clock GPU time required by optimization methods.
  • Plug-in Multiplier: Dropping ABSS in front of Attend-and-Excite (SD 1.5) jumps ImageReward from 0.1494 to 0.3250, proving it works seamlessly as an add-on.
Figure 5: GPU latency comparison of average per-image generation on the InitNO dataset across different backbones. ABSS achieves the best quality-latency trade-off, obtaining the highest score with relatively low latency. GOLDEN is omitted because its main overhead comes from validation-set seed search, while its per-image inference cost remains standard 50-step generation.

Limitations and Future Work

  • White-Box Requirement: ABSS needs under-the-hood access to early cross-attention maps, meaning you can't use it on closed-source, API-only generators (like Midjourney or DALL-E 3).
  • Core Token Ambiguity: The method assumes you can cleanly identify primary subject nouns. While robust to minor annotation noise, seed ranking becomes less reliable on ambiguous prompts.
  • Complex Relationships: Because ABSS averages attention across the whole image grid, its gains shrink on highly intricate prompts with complex multi-object relationships. Designing smarter spatial scoring beyond simple averaging is a key next step.

Summary updated

Abstract

Text-to-image diffusion models can synthesize high-quality images, yet the outcome is notoriously sensitive to the random seed: different initial seeds often yield large variations in image quality and prompt–image alignment. We revisit this “seed effect” and show that attention dynamics over prompt core tokens, the content-bearing words, measured during the first few denoising steps, strongly predict final generation quality. Building on this observation, we introduce Attention-Based Seed Selection (ABSS), a training-free, plug-and-play method that ranks seeds for a given prompt by leveraging cross-attention to core tokens during the denoising process. ABSS requires no finetuning and does not alter the initial noise; it scores and ranks all candidate seeds, keeps only the top-k for full generation, and discards the rest, without relying on a fixed accept/reject threshold. Operating purely at inference time, ABSS can serve as a lightweight pre-selection add-on for existing seed-optimization pipelines, enabling additional gains. Across three benchmarks, extensive experiments show that ABSS enables consistent improvements in text–image alignment and visual quality for Stable Diffusion variants, as corroborated by human preference and alignment metrics.
BibTeX
@inproceedings{zhang2026boosting,
  author = {Yunzhe Zhang and Hongfu Liu and Pengyu Hong},
  title = {{Boosting Text-to-Image Diffusion Models via Core Token Attention-Based Seed Selection}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=TK7VVYFzeK},
}
Figure