arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2510.11117cs.CV
收藏

揭秘扩散模型中的数量感知——局限性与补救措施

Demystifying Numerosity in Diffusion Models -- Limitations and Remedies

Peking University(北京大学);Microsoft Research Asia(微软亚洲研究院)

Yaqi Zhao, Xiaochen Wang, Li Dong, Wentao Zhang, Yuhui Yuan

AI总结:

本文研究了扩散模型在文本到图像生成中的数量感知局限性,发现仅扩大模型和数据集无法提升计数准确率,并提出了注入计数感知布局信息到噪声先验的有效补救策略。

摘要:

数量感知对于像FLUX和GPT-4o这样最先进的文本到图像生成模型仍然是一个挑战,这些模型经常无法准确遵循文本提示中的计数指令。在本文中,我们旨在研究一个基本却常被忽视的问题:扩散模型能否仅通过扩大数据集和模型规模,就固有地生成文本提示所指定数量的正确物体?为了实现严格且可复现的评估,我们构建了一个干净合成的数量感知基准,包含两个互补的数据集:用于受控缩放研究的GrayCount250,以及具有复杂自然场景的NaturalCount6。其次,我们通过实证表明缩放假设并不成立:仅靠更大的模型和数据集无法提高我们基准上的计数准确率。我们的分析指出了一个关键原因:扩散模型倾向于严重依赖噪声初始化,而不是提示中明确指定的数量。我们观察到噪声先验表现出对特定物体计数的偏差。此外,我们提出了一种有效的策略,通过将计数感知的布局信息注入噪声先验来控制数量感知。我们的方法取得了显著提升,将GrayCount250上的准确率从20.0%提高到85.3%,NaturalCount6上的准确率从74.8%提高到86.3%,证明了在不同设置下的有效泛化。

英文摘要:

Numerosity remains a challenge for state-of-the-art text-to-image generation models like FLUX and GPT-4o, which often fail to accurately follow counting instructions in text prompts. In this paper, we aim to study a fundamental yet often overlooked question: Can diffusion models inherently generate the correct number of objects specified by a textual prompt simply by scaling up the dataset and model size? To enable rigorous and reproducible evaluation, we construct a clean synthetic numerosity benchmark comprising two complementary datasets: GrayCount250 for controlled scaling studies, and NaturalCount6 featuring complex naturalistic scenes. Second, we empirically show that the scaling hypothesis does not hold: larger models and datasets alone fail to improve counting accuracy on our benchmark. Our analysis identifies a key reason: diffusion models tend to rely heavily on the noise initialization rather than the explicit numerosity specified in the prompt. We observe that noise priors exhibit biases toward specific object counts. In addition, we propose an effective strategy for controlling numerosity by injecting count-aware layout information into the noise prior. Our method achieves significant gains, improving accuracy on GrayCount250 from 20.0\% to 85.3\% and on NaturalCount6 from 74.8\% to 86.3\%, demonstrating effective generalization across settings.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑