arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2605.15684cs.CV
收藏

ElasticDiT:通过弹性架构和稀疏注意力实现高效扩散变换器,用于移动设备上的高分辨率图像生成

ElasticDiT: Efficient Diffusion Transformers via Elastic Architecture and Sparse Attention for High-Resolution Image Generation on Mobile Devices

Huawei Technologies(华为技术)

Kunpeng Du, Haizhen Xie, Sen Lu, Lei Yu, Binglei Bao, Huaao Tang, Chuntao Liu, Hao Wu, Yang Zhao, Zhicai Huang, Heyuan Gao, Zhijun Tu, Jie Hu, Xinghao Chen

AI总结:

本文提出ElasticDiT,通过弹性架构和稀疏注意力机制,在移动设备上实现高效扩散变换器,平衡图像质量和计算效率,同时减少内存占用。

摘要:

扩散变换器(DiT)架构是高保真图像生成的最新范式,支撑如Stable Diffusion-3和FLUX.1等模型。然而,将这些模型部署到资源受限的移动设备上会带来极高的计算和内存开销。尽管效率驱动的方法如Linear-DiT和静态剪枝缓解了瓶颈,但通常会带来质量下降。不同于云环境,移动约束要求一种单模型范式,能够动态平衡保真度和延迟。我们引入ElasticDiT,通过调整空间压缩比和DiT块深度实现这种动态权衡。通过整合Shift Sparse Block Attention(SSBA)和Tiny DWT-Distilled VAE(T-DVAE),ElasticDiT在保持图像质量的同时减少了推理延迟和内存占用。实验表明,ElasticDiT能够在一个参数集内覆盖广泛的保真度-延迟权衡范围。通过联合调整压缩和深度,单个ElasticDiT模型可以动态重新配置以超越任务特定的基线。具体而言,我们的flex lite变体实现了32.87的HPS,超过了Flux模型,同时通过SSBA保持84.16%的平均稀疏度质量。此外,插件式的T-DVAE仅需标准VAEs的1/8计算成本即可实现SD3级的重建,而Flow-GRPO提升了语义对齐(GenEval: 66.93到73.62)。这些结果表明,ElasticDiT提供了一种多功能、硬件适应性的解决方案,消除了对多个专用模型的需求,为未来移动设备上的高分辨率图像生成提供了有前景的路径。

英文摘要:

The Diffusion Transformer (DiT) architecture is the state-of-the-art paradigm for high-fidelity image generation, underpinning models like Stable Diffusion-3 and FLUX.1. However, deploying these models on resource-constrained mobile devices entails prohibitive computational and memory overhead. While efficiency-driven approaches like Linear-DiT and static pruning alleviate bottlenecks, they often incur quality degradation. Unlike cloud environments, mobile constraints require a single-model paradigm that dynamically balances fidelity and latency. We introduce ElasticDiT, which achieves this dynamic trade-off by adjusting spatial compression ratios and DiT block depths. By integrating Shift Sparse Block Attention (SSBA) and a Tiny DWT-Distilled VAE (T-DVAE), ElasticDiT reduces inference latency and memory footprint while maintaining image quality. Experiments confirm that ElasticDiT effectively covers a wide range of fidelity-latency trade-offs within a single set of parameters. By jointly adjusting compression and depth, a single ElasticDiT model can be reconfigured on-the-fly to outperform task-specific baselines. Specifically, our flex lite variant achieves an HPS of 32.87, surpassing the Flux model, while maintaining competitive quality at 84.16 percent average sparsity through SSBA. Furthermore, the plug-and-play T-DVAE provides SD3-level reconstruction with only 1/8x the computational cost of standard VAEs, and Flow-GRPO boosts semantic alignment (GenEval: 66.93 to 73.62). These results demonstrate that ElasticDiT offers a versatile, hardware-adaptive solution that eliminates the need for multiple specialized models, providing a promising path for future high-resolution image generation on mobile devices.

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

↑