[论文解读] Dimba: Transformer-Mamba Diffusion Models
Dimba 引入了一种混合扩散模型,将 Transformer 与 Mamba 层堆叠并采用跨注意力用于文本到图像生成,在降低内存占用和提高吞吐量的灵活性下实现了具竞争力的质量。它还探讨数据集构建、质量调优和分辨率自适应,以实现高效的大规模生成。
This paper unveils Dimba, a new text-to-image diffusion model that employs a distinctive hybrid architecture combining Transformer and Mamba elements. Specifically, Dimba sequentially stacked blocks alternate between Transformer and Mamba layers, and integrate conditional information through the cross-attention layer, thus capitalizing on the advantages of both architectural paradigms. We investigate several optimization strategies, including quality tuning, resolution adaption, and identify critical configurations necessary for large-scale image generation. The model's flexible design supports scenarios that cater to specific resource constraints and objectives. When scaled appropriately, Dimba offers substantial throughput and a reduced memory footprint relative to conventional pure Transformers-based benchmarks. Extensive experiments indicate that Dimba achieves comparable performance compared with benchmarks in terms of image quality, artistic rendering, and semantic control. We also report several intriguing properties of architecture discovered during evaluation and release checkpoints in experiments. Our findings emphasize the promise of large-scale hybrid Transformer-Mamba architectures in the foundational stage of diffusion models, suggesting a bright future for text-to-image generation.
研究动机与目标
- 提出混合注意力–状态空间架构,以平衡扩散模型中的内存与吞吐量。
- 开发 Dimba,一个交替使用 Transformer 和 Mamba 层并带有用于条件控制的跨注意力的扩散骨干网络。
- 整理高质量、美学导向的图像-文本数据,并应用质量调优和分辨率自适应。
- 证明 Dimba 在资源消耗减少的同时实现具竞争力的图像质量和语义控制。
提出的方法
- 部署一个 Dimba 块,交错 Transformer 与 Mamba 层,并配有用于条件控制的注意力跨链路。
- 使用全局共享的 MLP 获取时间步信息,并使用 AdaLN 层进行稳定化。
- 在一个大规模内部数据集上训练,筛选出与美学和语义密集的说明相符的图像-文本对,使用自动标注的 Share-Captioner 与 LAION 美学预测器。
- 通过在高质量数据上进行小批量微调并采用早停来应用质量调优,以避免过拟合。
- 研究使用 PE 插值的分辨率缩放,以在不从零开始训练的情况下实现高分辨率输出。
- 使用 COCO zero-shot 的 FID、T2I-CompBench 对齐以及人机偏好研究进行评估。
实验结果
研究问题
- RQ1混合 Transformer–Mamba 架构如何影响扩散模型的内存使用和吞吐量?
- RQ2跨注意力是否能有效地为文本到图像生成的混合架构骨干网络进行条件控制?
- RQ3哪些数据筛选与训练策略能在图像质量、语义对齐和效率之间取得最佳平衡?
- RQ4分辨率自适应如何与混合骨干网络协同工作以实现高分辨率生成?
主要发现
- Dimba 在 COCO 零-shot 上的 FID-30K 为 8.93,训练时间为选定基线的 11.2%,训练样本量为 2.0%。
- Dimba-G 在 T2I-CompBench 的图像文本对齐指标(属性绑定、对象关系与复杂构图)方面表现出色。
- 质量调优和长文本描述的数据筛选提升了美学与语义质量,而 PE 插值则加速了高分辨率输出的收敛。
- Dimba 通过调整注意力与 Mamba 的比率(K)并利用 AdaLN 提供稳定性,提供灵活的内存/吞吐权衡。
- 与大型纯 Transformer 基线相比,Dimba 仅使用约 2% 的训练资源,同时达到可比的 FID 分数。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。