Ask an image generator to “write ◯◯ on the signboard,” and part of the lettering may come out garbled. In video, motion can look unnatural when balls collide. If the model itself could reveal, mid-generation, where on the screen such failures are likely, we might be able to fix just those parts.

A research team led by Hyunsoo Lee proposes ProbFormer (Probabilistic Transformers), a method that works on an already-trained generative model with no additional training and gives each internal element a numerical value for how “unstable” it is[1]. The team compares it with existing methods on three tasks: image correction, video correction, and image diversification (producing more variations of an image). The paper was published on arXiv on December 3, 2026, and its peer-review status could not be confirmed.

What this study tested

Most recent image and video generators are built on the Transformer architecture. An image is split into small regions (patches), called “tokens,” and each token’s features are passed through many layers of computation as a sequence of numbers (a vector). Each token holds just one fixed value, with no information about how reliable that value is.

The team asked whether a pretrained Transformer could carry “uncertainty” in addition to the original value. Bayesian neural networks, which treat the weights themselves as probability distributions, exist, but they require training. Retraining large models such as Stable Diffusion 3, FLUX, and Wan is not realistic. So the team devised a way to attach uncertainty after the fact, without modifying either the model’s weights or its outputs.

Method: treating each token as “value + spread”

Measuring the spread and carrying it through equations

ProbFormer regards each token as a normal (Gaussian) distribution centered on its original value. The variance, which represents the width of the distribution, is the token’s uncertainty (§3.1).

The initial spread is measured as follows (§4.2). Several candidates are created by adding different noise to the estimate of the image in mid-generation, and they are passed through the Transformer only from the start up to an intermediate block. The per-token scatter of values at this point (sample variance) becomes the initial uncertainty.

Beyond that point, the candidates are not passed through any further. For each layer’s computation (linear transformation, activation function, normalization, Attention, residual connection, and so on), a first-order approximation formula gives how the input’s spread turns into the output’s spread, and these are calculated layer by layer in order (§3.2, Appendix A). In statistics this approximation is called the “delta method.” Because the computation of the original values is left completely unchanged, the model’s own output stays the same even with ProbFormer attached, and the uncertainty rides alongside as auxiliary information.

Three use cases

  • Correction (images and video): A fixed proportion of tokens is selected in descending order of uncertainty, and only those regions are re-predicted with added noise and replaced with the result. This is applied in the early steps of generation (§4.3.1).
  • Diversification (images): At an intermediate layer, each token is randomly redrawn according to the width of its uncertainty, and the remaining layers are computed as usual. Tokens with greater uncertainty fluctuate more (§4.3.2).

Findings

Where uncertainty was high overlapped with garbled text

The team first had Stable Diffusion 3 draw signboard text and looked at the distribution of uncertainty (§5.2, Figure 3). Text errors are easy to identify by comparing against the input string. In the examples the paper shows, ProbFormer’s uncertainty overlapped with the positions of garbled characters and wrongly drawn words. The existing uncertainty estimation methods compared (BayesDiff, Jazbec et al.) tended to show high values broadly, across the entire text region and even the surrounding structure. This result is a qualitative comparison based on examples shown in a figure, and the authors themselves limit their wording to “suggests.”

Image correction: stronger on prompts with many conditions

Image correction was evaluated with Stable Diffusion 3 Medium, generating 1024×1024 images (§5.3). Two benchmarks were used. OAO-AttackBench is a collection of prompts that specify unusual attributes for well-known subjects, such as “Machu Picchu made of clay.” WHOOPS! is a benchmark that asks models to depict combinations that defy common sense.

On OAO-AttackBench, ProbFormer scored highest on all five metrics measuring agreement with the prompt (Table 1). For example, on VQAScore (a score that judges whether an image matches the prompt using an AI that answers questions about the image), the original SD3 scored 0.650, Jazbec et al., the highest among the compared methods, scored 0.660, and ProbFormer scored 0.665.

On WHOOPS!, ProbFormer was best on the proportion of objects not in the prompt that appear in the generated image’s description (CHAIR-I and CHAIR-S; lower is better) and on the proportion of objects specified in the prompt that appear in the description (Recall) (Table 2). However, its VQAScore was 0.793, below the original SD3 (0.799), IR-Guidance (0.798), and BayesDiff (0.796). In other words, it did not come out ahead on every metric.

Video correction: best on four metrics, including physical plausibility

Video correction was evaluated with Wan2.2-T2V-A14B, generating videos of 832×480 pixels, 81 frames, at 16 fps (§5.4). Dynamic-bench is a collection of prompts involving interactions among multiple objects, complex human motion, and physical phenomena.

ProbFormer had the highest value on all four metrics: agreement with the text (VQAScore, ViCLIP), consistency with physical common sense (the PC score of VideoPhy2), and overall video preference (MJ-Video) (Table 3). On VQAScore, the original Wan scored 0.725, P&P, the highest among the compared methods, scored 0.734, and ProbFormer scored 0.744. The margins are small on some metrics; for example, the PC score was 3.633 for ProbFormer against 3.592 for the original Wan. In Figure 5 of the paper, there is an example in which a cat touches a hanging ball of yarn with its front paw and the ball swings like a pendulum, and ProbFormer depicts this more clearly than the other methods.

Image diversification: image quality did not drop even as variety widened

Diversification was evaluated with FLUX.1-dev, generating eight 512×512 images for each prompt selected from GenEval (§5.5). With methods that widen variation, a drop in image quality tends to be a problem.

ProbFormer outperformed the seven compared methods and the original FLUX on both diversity metrics (DINO feature distance, Vendi score) and both image quality metrics (LAION-Aesthetic, MUSIQ) (Table 4). The Vendi score expresses “effectively how many distinct images there are.” Against 2.817 for the original FLUX, Bhat et al., the highest among the compared methods, scored 3.591, and ProbFormer scored 3.871. The image quality metrics also stayed at or above the original FLUX’s values.

How is this different from generating many times and looking at the spread?

A natural question is whether one could simply run every noise-varied candidate to the end and look at the spread of the outputs. The team tried this as a comparison condition called “Empirical Output” (§5.6, Table 5). They also compared a condition that fixes the initial spread to a constant value, and a condition that uses the values at the intermediate point as they are, without propagating the spread forward.

In image correction (OAO-AttackBench), ProbFormer outperformed all three comparison conditions on all five metrics. The authors state that deriving the spread directly from candidates does not necessarily give a useful signal for correction. The result suggests that the combination of “measure midway, then carry it forward with equations” is what works.

Task (model / benchmark) Metric Original model Best among compared methods ProbFormer
Image correction (SD3 / OAO-AttackBench) VQAScore ↑ 0.650 0.660 (Jazbec et al.) 0.665
Image correction (SD3 / OAO-AttackBench) TIFA ↑ 0.604 0.625 (Jazbec et al.) 0.629
Image correction (SD3 / WHOOPS!) VQAScore ↑ 0.799 0.798 (IR-Guidance) 0.793
Image correction (SD3 / WHOOPS!) CHAIR-S ↓ 0.222 0.198 (IR-Guidance) 0.181
Video correction (Wan2.2 / Dynamic-bench) VQAScore ↑ 0.725 0.734 (P&P) 0.744
Video correction (Wan2.2 / Dynamic-bench) PC ↑ 3.592 3.583 (P&P) 3.633
Diversification (FLUX / GenEval) Vendi ↑ 2.817 3.591 (Bhat et al.) 3.871
Diversification (FLUX / GenEval) MUSIQ ↑ 74.236 75.268 (DAVE) 75.811

This table was created by ScienSeeds by extracting the main metrics from Tables 1–4 of the original paper. “Best among compared methods” is the best value among the compared methods, excluding the original model. ↑ means higher is better, and ↓ means lower is better. Only on VQAScore for WHOOPS! is ProbFormer’s value lower than the original model’s.

Source: Created by ScienSeeds (values from Tables 1–4 of the original paper)

Points to consider before using it

This study confirmed the effect of using uncertainty for correction in visual generation (images and video) and for image diversification. The underlying idea, attaching the auxiliary information of spread after the fact to the intermediate computations of a trained Transformer, is general. However, this paper does not verify its effect outside visual generation, such as in language models or classification models.

If you plan to use it in practice, the following points need to be checked separately.

  • Computational cost: No additional training is needed, but that does not mean the computation does not increase. It adds the computation of passing candidates through to an intermediate block, the computation of propagating variance, and the re-prediction of the selected regions. How much inference time and memory increase has not been confirmed.
  • Tuning of settings: The number of candidates, the position of the block where measurement of the spread starts, the proportion of tokens to correct, and the strength of diversification use different values for each task and benchmark (Appendix C). Tuning would probably be needed for your own use case.
  • Capability of the original model: The authors state that when the original model is insufficiently trained or has systematic errors, uncertainty alone cannot fully make up for it (Appendix E).
  • Differences by metric: Some metrics, such as VQAScore on WHOOPS!, were below the original model. The evaluation metric should be chosen according to what you want to improve.

Implementation guide

  • Tasks: image correction (improving agreement with the prompt), video correction, image diversification
  • Comparison targets and evaluation metrics: for image correction, IR-Guidance, BayesDiff, Jazbec et al., and others (VQAScore, TIFA, CHAIR, and others). For video correction, CFG-Zero*, FlowMo, and P&P (VQAScore, ViCLIP, PC, MJ-Video). For diversification, Particle Guidance, CNO, Group Inference, DAVE, and others (DINO, Vendi, LAION-Aesthetic, MUSIQ)
  • Required models: checkpoints of Stable Diffusion 3 Medium, FLUX.1-dev, and Wan2.2-T2V-A14B (the terms of use of each model have not been checked)
  • Computing environment: the official repository specifies Python 3.10 and CUDA-enabled PyTorch. The required GPU performance has not been confirmed
  • Code: the official implementation is released on GitHub under the MIT license. Image correction and diversification can be used from the command line and the Python API. Video correction is listed as “Coming soon” as of December 5, 2026
  • Settings: Appendix C of the original paper (number of candidates, boundary block, selection ratio, and steps to apply for each task)
  • Method equations: §3–4 and Appendix A of the original paper (propagation rules for each operation)

Conditions and limitations

  • Scope tested: three visual generation models (SD3 Medium, FLUX.1-dev, Wan2.2-T2V-A14B) and four benchmarks (OAO-AttackBench, WHOOPS!, Dynamic-bench, GenEval). Evaluation relies on automatic metrics.
  • The finding that uncertainty overlaps with generation errors is a qualitative comparison based on the text-rendering examples in SD3 (Figure 3).
  • The result that it “outperformed existing methods” has exceptions: on VQAScore for WHOOPS!, it fell below the original SD3 and others.
  • The number of trials, variability of results (such as standard deviations), and the amount of increase in computational cost have not been confirmed.
  • Hyperparameters differ by task and benchmark.
  • Application beyond visual generation (such as to language models) has not been verified.
  • The paper is an arXiv preprint, and its peer-review status could not be confirmed.

Sources

  1. Lee et al. "Probabilistic Transformers for Generative Models." arXiv:2612.05810 (2026)
  2. ProbFormer project site
  3. ProbFormer official implementation (GitHub)