跳到正文
arXiv (AI + Vision + Imaging)· Javier Conde, Xiuyuan Qi, Shanshan Liu, Pedro Reviriego·· 1 天前AI 评分48

研究显示文生图模型在GPU上固定种子仍不可复现

Reproducible by Seed? Not on GPUs: Batch-Dependent Non-Determinism in Text-to-Image Models

AI 导读

一项 arXiv 论文实测六款文生图模型(扩散与自回归)在 RTX A6000、RTX 6000 Ada 和 H100 NVL 三种 GPU、四种数值精度与量化下的表现,发现固定提示词和随机种子并不能固定输出图像。

正文 · 原文

arXiv:2611.30545v1 Announce Type: new Abstract: In text to image AI models, fixing the prompt and the random seed is widely assumed to fix the image. We show that it does not on GPUs. We evaluate six text-to-image models (diffusion and autoregressive) under four numerical precisions and quantizations on three GPU types (RTX A6000, RTX 6000 Ada, and H100 NVL), across up to 100 prompts per set for all six models. For each configuration we compare, with the prompt and seed fixed, the image generated alone with the image generated inside a batch, and we also compare across GPUs. Every replay control reported here is bit-exact, so the variation is not random noise: the execution setting, mainly the batch composition and the GPU, decides the output. The effect is large and model dependent. Structural similarity between the single-image and the batched output falls to 0.580 for an autoregressive model in bf16 and to 0.551 with int8. For a second autoregressive model in bf16 it falls to 0.261 with sampled decoding and to 0.229 with greedy decoding, and for an fp8 diffusion model to 0.68. A diffusion model in bf16 stays close to the batch-1 output (0.96-0.98) but changes every image. In most cases the batched image is a different but equally valid image; in some, such as prompts with digits and counters, it is visibly worse. Cross-GPU differences are of the same order as the batch effect: for one autoregressive model in bf16 compared across two GPU architectures (RTX 6000 Ada versus RTX A6000), no image is bit-identical and the cross-GPU LPIPS (0.355 to 0.383) matches the batch effect within one GPU (0.347 to 0.381). The consequences are direct: seeds do not make results reproducible, benchmarks and image-quality comparisons that mix batch sizes or hardware can be biased, and safety audits and A/B tests on generated images need the serving setup reported.

来源:arXiv (AI + Vision + Imaging) · arxiv.org