本文提出免训练的分段式 NAS 方法 Flexiffusion,通过联合搜索完整、部分和空去噪步骤及网络结构,在多个扩散模型与数据集上显著降低推理冗余并取得最高 5.1 倍加速。
摘要:
扩散模型是前沿的生成模型,擅长生成多样化、高质量的图像。尽管这些模型十分有效,但由于其包含大量顺序去噪步骤,且每一步都有显著的推理成本,因此通常需要大量计算资源。最近,神经架构搜索(NAS)技术已被用于自动搜索更快的生成过程。然而,面向扩散模型的 NAS 本质上非常耗时,因为它需要评估数千个扩散模型以搜索最优模型。本文提出 Flexiffusion,这是一种新颖的免训练 NAS 范式,旨在通过同时优化生成步骤和网络结构来加速扩散模型。具体而言,我们将生成过程划分为等长的步骤段,每个段依次由一个完整步骤、多个部分步骤和若干空步骤组成。完整步骤计算所有网络块,部分步骤只涉及部分网络块,而空步骤不进行任何计算。Flexiffusion 会自主探索每个段的灵活步骤组合,从而大幅降低搜索成本,并相较于扩散模型的最先进(SOTA)方法实现更高的加速。我们搜索得到的模型在原始 LDM-4-G 上报告了 2.6 倍加速,相对于 SOTA 报告了 1.5 倍加速;在 Stable Diffusion V1.5 上的加速因子为 5.1 倍,相对于 SOTA 为 2.0 倍。我们还在多个数据集上验证了 Flexiffusion 的性能,积极的实验结果表明 Flexiffusion 能够有效减少扩散模型中的冗余。
英文摘要:
Diffusion models are cutting-edge generative models adept at producing diverse, high-quality images. Despite their effectiveness, these models often require significant computational resources owing to their numerous sequential denoising steps and the significant inference cost of each step. Recently, Neural Architecture Search (NAS) techniques have been employed to automatically search for faster generation processes. However, NAS for diffusion is inherently time-consuming as it requires estimating thousands of diffusion models to search for the optimal one. In this paper, we introduce Flexiffusion, a novel training-free NAS paradigm designed to accelerate diffusion models by concurrently optimizing generation steps and network structures. Specifically, we partition the generation process into isometric step segments, each sequentially composed of a full step, multiple partial steps, and several null steps. The full step computes all network blocks, while the partial step involves part of the blocks, and the null step entails no computation. Flexiffusion autonomously explores flexible step combinations for each segment, substantially reducing search costs and enabling greater acceleration compared to the state-of-the-art (SOTA) method for diffusion models. Our searched models reported speedup factors of $2.6\times$ and $1.5\times$ for the original LDM-4-G and the SOTA, respectively. The factors for Stable Diffusion V1.5 and the SOTA are $5.1\times$ and $2.0\times$. We also verified the performance of Flexiffusion on multiple datasets, and positive experiment results indicate that Flexiffusion can effectively reduce redundancy in diffusion models.
Evolving Cache Schedules for Fast Diffusion Policy Inference
School of Telecommunications Engineering, Xidian University(西安电子科技大学通信工程学院);School of Computer Science and Technology, Xidian University(西安电子科技大学计算机科学与技术学院);Tsinghua Shenzhen International Graduate School, Tsinghua University(清华大学深圳国际研究生院)
Schedule On the Fly: Diffusion Time Prediction for Faster and Better Image Generation
Westlake University(西湖大学);South China University of Technology(华南理工大学);Peking University(北京大学);Institute of Advanced Technology, Westlake Institute for Advanced Study(西湖高等研究院先进技术研究院)
DeltaDeno: Zero-Shot Anomaly Generation via Delta-Denoising Attribution
Institute of Automation, Chinese Academy of Sciences, Beijing, China(中国科学院自动化研究所);School of Artificial Intelligence, University of Chinese Academy of Sciences, Beijing, China(中国科学院大学人工智能学院);CASI Vision Technology CO., LTD., Luoyang, China(CASI视觉科技有限公司);School of Artificial Intelligence and Robotics, Hunan University, Changsha, China(湖南大学人工智能与机器人学院)
Structure-Adaptive Sparse Diffusion in Voxel Space for 3D Medical Image Enhancement
Department of Electrical and Computer Engineering, University of Florida, Gainesville, FL, USA(佛罗里达大学电气与计算机工程系);Department of Medicine, University of Florida, Gainesville, FL, USA(佛罗里达大学医学系);Department of Biomedical Engineering, University of Florida, Gainesville, FL, USA(佛罗里达大学生物医学工程系);Research Computing, University of Florida, Gainesville, FL, USA(佛罗里达大学研究计算中心);NVIDIA, Santa Clara, CA, USA(英伟达)
Automated Tuning for Diffusion Inverse Problem Solvers without Generative Prior Retraining
Department of Electrical \& Computer Engineering, University of Minnesota, MN, USA;Center for Magnetic Resonance Research, University of Minnesota, MN, USA
Geodesic Diffusion Models for Efficient Medical Image Enhancement
Department of Electrical and Computer Engineering, University of Florida(电气与计算机工程系,佛罗里达大学);Department of Biomedical Engineering, University of Florida(生物医学工程系,佛罗里达大学);Department of Medicine, University of Florida(医学系,佛罗里达大学);Intelligent Clinical Care Center, University of Florida(智能临床护理中心,佛罗里达大学)
Attend to Not Attended: Structure-then-Detail Token Merging for Post-training DiT Acceleration
Institute of Computing Technology, Chinese Academy of Sciences(中国科学院计算技术研究所);University of Chinese Academy of Sciences(中国科学院大学);National Cheng-Kung University(国立成功大学)
针对 DiT 推理计算昂贵的问题,本文提出训练后即插即用的 SDTM,依据“先结构后细节”先验动态合并冗余视觉 token,实现 1.55 倍加速且几乎不损失图像质量。
Not All Frames Deserve Full Computation: Accelerating Autoregressive Video Generation via Selective Computation and Predictive Extrapolation
Institute of Artificial Intelligence and Future Networks, Beijing Normal University(北京师范大学人工智能与未来网络研究院);School of Artificial Intelligence, Beijing Normal University(北京师范大学人工智能学院);Shenzhen University of Advanced Technology(深圳理工大学)
Diffusion Sampling Path Tells More: An Efficient Plug-and-Play Strategy for Sample Filtering
School of Science and Engineering(科学与工程学院);The Chinese University of Hong Kong, Shenzhen(香港中文大学(深圳));DAMO Academy, Alibaba Group(阿里达摩院);School of Artificial Intelligence(人工智能学院)
Resfusion: Denoising Diffusion Probabilistic Models for Image Restoration Based on Prior Residual Noise
College of Computer Science, Nankai University(南开大学计算机学院);School of Statistics and Data Science, Nankai University(南开大学统计与数据科学学院);Haihe Lab of ITAI(海河人工智能研究院);Institute of High Performance Computing, A*STAR(新加坡科技研究局高性能计算研究所)
Iterating Consistency Models: Stability, Error Bounds and Noise Schedules
Université Paris Cité(巴黎西岱大学);CNRS(法国国家科学研究中心);Heriot-Watt University(赫瑞-瓦特大学);École Polytechnique(巴黎综合理工学院);EPITA(法国计算机科学与技术高等学院);Mohamed bin Zayed University of Artificial Intelligence(穆罕默德·本·扎耶德人工智能大学)
Dual Orthogonal Guidance for Robust Diffusion-based Handwritten Text Generation
Luleå University of Technology(卢莱大学);National Technical University of Athens(雅典技术大学);University of West Attica(西阿提卡大学);University of Modena and Reggio Emilia(摩德纳和雷吉奥艾米利亚大学)
MonoSE(3)-Diffusion: A Monocular SE(3) Diffusion Framework for Robust Camera-to-Robot Pose Estimation
School of Computer Science and Engineering, Nanjing University of Science and Technology(南京理工大学计算机科学与工程学院);ANGEL CorpLab and College of Computing and Data Science, Nanyang Technological University(南洋理工大学ANGEL CorpLab和计算与数据科学学院);College of Computer Science, Nankai University(南开大学计算机科学学院);School of Intelligence Science and Technology, Nanjing University(南京大学智能科学与技术学院)