用蒸馏方法让Mamba模型高效生成高分辨率图像
Diffusion Transformer-to-Mamba Distillation for High-Resolution Image Generation
- 通过层级教师强制与特征蒸馏,实现Transformer到Mamba的平稳迁移
- 512×512基础模型经轻量适配后可生成2048×2048高清图像
- 首次验证因果Mamba模型生成非因果视觉输出的可行性
扩散模型中的自注意力机制因二次计算复杂度,在高分辨率图像生成中带来巨大算力开销。尽管线性复杂度的Mamba模型是潜在替代方案,但其直接训练仍具挑战性。本文提出扩散Transformer-to-Mamba蒸馏(T2MD),构建从基于自注意力的Transformer到线性复杂度状态空间模型Mamba的高效训练流程。通过引入扩散自注意力与Mamba混合模型,同时兼顾效率与全局依赖性。结合层级教师强制与基于特征的知识蒸馏,显著降低从零开始训练Mamba的难度与成本。基于已蒸馏的512×512基础模型,通过轻量级适配与高分辨率微调,成功推进至2048×2048图像生成。实验表明,该训练路径在低开销下实现高质量文生图效果。更重要的是,结果验证了序列化、因果结构的Mamba模型可用于生成非因果视觉输出,为未来探索提供可能。
原文摘要 · Abstract (English)
The quadratic computational complexity of self-attention in diffusion transformers (DiT) introduces substantial computational costs in high-resolution image generation. While the linear-complexity Mamba model emerges as a potential alternative, direct Mamba training remains empirically challenging. To address this issue, this paper introduces diffusion transformer-to-mamba distillation (T2MD), forming an efficient training pipeline that facilitates the transition from the self-attention-based transformer to the linear complexity state-space model Mamba. We establish a diffusion self-attention and Mamba hybrid model that simultaneously achieves efficiency and global dependencies. With the proposed layer-level teacher forcing and feature-based knowledge distillation, T2MD alleviates the training difficulty and high cost of a state space model from scratch. Starting from the distilled 512$\times$512 resolution base model, we push the generation towards 2048$\times$2048 images via lightweight adaptation and high-resolution fine-tuning. Experiments demonstrate that our training path leads to low overhead but high-quality text-to-image generation. Importantly, our results also justify the feasibility of using sequential and causal Mamba models for generating non-causal visual output, suggesting the potential for future exploration.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。