Skip to main content
Back

LSU's PAINE Beats Golden Noise by Scoring Bad Images Before Generating Them

A lightweight predictor scores random noise before diffusion runs, picking winning seeds and flagging prompts a model cannot handle.

Pro

  • Naïve PAINE predicts image preference scores from prompt and initial noise, before running any diffusion steps.
  • Samples N=100 candidate noises, ranks them cheaply, forwards only the top few to the full diffusion pipeline.
  • Beats Golden Noise on 30+ of 64 benchmark combinations across SDXL, DreamShaper, Hunyuan-DiT, and PixArt-Sigma.
  • Masking the noise encoder yields a prompt-difficulty prior with under 4% MAPE on all four models tested.
  • Trained on 100k (prompt, noise, score) tuples per model using PickScore targets and Spearman rank loss.
  • Faster than Golden Noise at batch inference: 44ms vs 64ms for ten SDXL noises on an RTX 6000.

Anyone who has spent time coaxing images out of Stable Diffusion knows the routine: type a prompt, click generate, wait, sigh, click again. Because diffusion models start from randomly sampled Gaussian noise, every run is a fresh roll of the dice, and the only way to get a good picture is often to burn GPU cycles on a dozen bad ones. A team from LSU's ATHENA and Vision labs is proposing a way to skip most of those bad rolls entirely.

Their method, called Naïve PAINE (Prompt-Aware Initial Noise Evaluator), is a small predictor that looks at the initial noise tensor and the encoded prompt, then estimates what human-preference score the resulting image would get if you actually ran the full denoising loop. Sample a hundred noises, score them cheaply, keep the best handful, and only run diffusion on those. The authors report it beats the current lightweight baseline, Golden Noise, on most benchmark combinations they tested.

The gambler's burden

Diffusion models generate content by sampling a Gaussian noise tensor and iteratively refining it through a reverse diffusion process. Because that starting noise is random, different initializations yield qualitatively and quantitatively different results. The prompt is not the only knob that matters, and worse, the effect of the noise is entangled with the prompt in ways that are hard to predict.

The paper's background experiments make this concrete. The mean of the preference-score distribution depends heavily on the prompt and varies greatly with prompt index, and the standard deviation also depends on the prompt and noise even when the random seed is fixed. In other words, some prompts are just harder for a given model, and a noise tensor that produces a great image for one prompt has essentially no correlation with how it performs on another prompt.

Correlation heatmap of mean PickScore across four diffusion models

Prior noise-optimization work has generally taken one of two paths. Attention-editing methods like InitNO mutate the generation trajectory mid-run. Reinforcement-learning approaches like ReNO, NoiseAR, and HyperNoise fine-tune the denoiser or a noise policy, which is expensive and often tied to specific step-distilled models. The closest lightweight competitor, Golden Noise, trains a network that maps a prompt to a single optimal noise tensor. PAINE's authors argue this whole framing is off: image quality is a distribution conditioned on the prompt, not a single point, so the right move is to sample from it and pick the top of the tail.

How the predictor works

The architecture is deliberately simple, which is the whole point. The predictor has three modules. The prompt encoder is a single transformer layer that appends a learnable summary token to the prompt embedding and keeps only that token after self-attention. The noise encoder is a four-stage ResNet that downsamples the latent's spatial dimensions and expands the channels, ending in an adaptive max-pool to produce a vector. The score head concatenates the two vectors and passes them through an MLP to output a scalar preference prediction.

Architecture diagram of the Naïve PAINE pipeline showing prompt encoder, noise encoder, score predictor, and diffusion integration

Training data is built once per diffusion model. For each model the authors sample 5,000 prompts from the Pick-a-Pic training set and generate 20 images per prompt using independent Gaussian noise tensors, yielding 100k (prompt, noise, score) tuples. Preference scores are computed with PickScore before training begins, and prompt embeddings and noise tensors are pre-encoded and cached to disk. The loss combines mean absolute error with a differentiable Spearman rank correlation term, so the model learns both to hit the right score magnitude and, more importantly, to rank noises correctly within a prompt group.

At inference the workflow looks roughly like this:

  1. Encode the user's prompt once (the diffusion pipeline was going to do this anyway).
  2. Sample N candidate noise tensors, typically N=100.
  3. Run PAINE on every (prompt, noise) pair to get a predicted score.
  4. Sort, keep the top |B| noises, and forward only those to full diffusion.

A Bayesian trick for prompt difficulty

The word Naïve in the name is a nod to naïve Bayes. If you zero out the noise-encoder's output and feed only the prompt vector into the score head, the predictor is forced to estimate the mean of the score distribution for that prompt, independent of any specific noise. That gives you a prior on how well the model can handle the prompt at all. On the test set the paper reports the prompt-only predictor achieves under 4% mean absolute percentage error on all four diffusion models it was trained on, and Spearman rank correlation above 0.7 on three of them. Practically, that means you can tell a user "this prompt is going to be a struggle for SDXL" before spending a single denoising step.

Results and hardware cost

The authors evaluate on four backbones: SDXL, DreamShaper-XL-v2-Turbo, Hunyuan-DiT, and PixArt-Sigma, across four prompt sets (Pick-a-Pic, HPDv2, HPSv2, DrawBench) and four preference metrics (HPSv2, HPSv3, ImageReward, PickScore). Across 64 comparisons, Naïve PAINE takes the top spot on more than 30 and second place on more than 20. Notably, it was trained only on PickScore, but the gains generalize to HPSv2 and HPSv3 as well, suggesting it is not just memorizing one reward model's quirks.

On hardware, the pitch is straightforward: even though PAINE has more parameters than Golden Noise's NPNet, its architecture is more inference-friendly. For generating ten optimal noises on SDXL, Golden Noise takes 64.46ms on an RTX 6000 Ada and 111.97ms on a DGX Spark, while Naïve PAINE takes 44.47ms and 67.25ms respectively. That is a modest but real speedup, and it comes on top of the much larger savings from not running diffusion on rejected noises.

Where it falls short

The paper is honest about the limits. Both the training target and the evaluation metrics are learned preference predictors, so gains could partly reflect correlated biases across those reward models rather than genuine improvement in human perception. On GenEval, which tests semantic composition like object counts and spatial relations, PAINE is only marginally better than a standard baseline and generally trails NoiseAR, an RL-fine-tuned method. That is unsurprising since PAINE is trained on PickScore rather than composition, but if your use case is "four dogs on a street," a reward-tuned approach may still win.

There are also diminishing returns on N, the candidate pool size. Going from 20 to 1,280 candidates keeps improving image quality, but the curve flattens quickly. And the predictor is diffusion-model-specific: you train one PAINE per backbone, which is cheap compared to fine-tuning the denoiser but not free.

What is useful here

The practical case for PAINE is that it slots into existing Diffusers pipelines or GUI tools like ComfyUI without touching the denoiser. If you are already generating multiple candidates per prompt, replacing the random-seed loop with a scored top-|B| selection is close to free and, according to the numbers, meaningfully better than picking randomly. The prompt-difficulty prior is arguably the more interesting piece: it turns the diffusion pipeline into something that can tell you, before you commit compute, whether it is worth pulling the lever at all.