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

FastFLUX: 通过块级替换和 sandwich 训练进行 FLUX 剪枝

FastFLUX: Pruning FLUX with Block-wise Replacement and Sandwich Training

Shanghai Jiao Tong University(上海交通大学);Max Planck Institute for Informatics(马克斯·普朗克研究所(信息学));South China University of Technology(华南理工大学);Chinese University of Hong Kong(香港中文大学)

Fuhan Cai, Yong Guo, Jie Li, Wenbo Li, Jian Chen, Xiangzhong Fang

AI总结:

FastFLUX 通过块级替换和 sandwich 训练方法,提高 FLUX 模型的推理效率和图像质量。

摘要:

最近在文本到图像(T2I)生成领域的发展催生了高度表达性模型,如扩散变压器(DiTs),以 FLUX 为代表。然而,这些模型庞大的参数规模导致推理缓慢、内存使用高以及部署困难。现有的加速方法(如单步蒸馏和注意力剪枝)往往导致显著的性能下降,并带来显著的训练成本。为了解决这些限制,我们提出了 FastFLUX,一种架构级剪枝框架,旨在提高 FLUX 的推理效率。其核心是块级替换与线性层(BRLL)方法,该方法通过将 ResBlock 中结构复杂的残差分支替换为轻量级线性层,同时保留原始捷径连接以确保稳定性。此外,我们引入了 Sandwich 训练(ST),一种局部微调策略,利用 LoRA 监督相邻块,缓解结构替换导致的性能下降。实验表明,我们的 FastFLUX 在定性和定量评估中均保持高质量图像,同时显著提高了推理速度,即使在 20% 的层次剪枝下也是如此。我们的代码将在不久后发布。

英文摘要:

Recent advancements in text-to-image (T2I) generation have led to the emergence of highly expressive models such as diffusion transformers (DiTs), exemplified by FLUX. However, their massive parameter sizes lead to slow inference, high memory usage, and poor deployability. Existing acceleration methods (e.g., single-step distillation and attention pruning) often suffer from significant performance degradation and incur substantial training costs. To address these limitations, we propose FastFLUX, an architecture-level pruning framework designed to enhance the inference efficiency of FLUX. At its core is the Block-wise Replacement with Linear Layers (BRLL) method, which replaces structurally complex residual branches in ResBlocks with lightweight linear layers while preserving the original shortcut connections for stability. Furthermore, we introduce Sandwich Training (ST), a localized fine-tuning strategy that leverages LoRA to supervise neighboring blocks, mitigating performance drops caused by structural replacement. Experiments show that our FastFLUX maintains high image quality under both qualitative and quantitative evaluations, while significantly improving inference speed, even with 20\% of the hierarchy pruned. Our code will be available soon.

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

↑