Paper Reading AI Learner

Flexiffusion: Training-Free Segment-Wise Neural Architecture Search for Efficient Diffusion Models

2025-06-03 06:02:50
Hongtao Huang, Xiaojun Chang, Lina Yao

Abstract

Diffusion models (DMs) are powerful generative models capable of producing high-fidelity images but are constrained by high computational costs due to iterative multi-step inference. While Neural Architecture Search (NAS) can optimize DMs, existing methods are hindered by retraining requirements, exponential search complexity from step-wise optimization, and slow evaluation relying on massive image generation. To address these challenges, we propose Flexiffusion, a training-free NAS framework that jointly optimizes generation schedules and model architectures without modifying pre-trained parameters. Our key insight is to decompose the generation process into flexible segments of equal length, where each segment dynamically combines three step types: full (complete computation), partial (cache-reused computation), and null (skipped computation). This segment-wise search space reduces the candidate pool exponentially compared to step-wise NAS while preserving architectural diversity. Further, we introduce relative FID (rFID), a lightweight evaluation metric for NAS that measures divergence from a teacher model's outputs instead of ground truth, slashing evaluation time by over $90\%$. In practice, Flexiffusion achieves at least $2\times$ acceleration across LDMs, Stable Diffusion, and DDPMs on ImageNet and MS-COCO, with FID degradation under $5\%$, outperforming prior NAS and caching methods. Notably, it attains $5.1\times$ speedup on Stable Diffusion with near-identical CLIP scores. Our work pioneers a resource-efficient paradigm for searching high-speed DMs without sacrificing quality.

Abstract (translated)

扩散模型(DM)是一种强大的生成式模型,能够产生高质量的图像,但由于其迭代多步推理过程中的高计算成本而受到限制。虽然神经架构搜索(NAS)可以优化扩散模型,但现有方法面临着重新训练需求、基于步骤级优化的指数级搜索复杂性以及依赖大规模图像生成导致的评估速度慢等问题。为解决这些挑战,我们提出了Flexiffusion,这是一种无需训练即可进行NAS框架的方法,能够在不修改预训练参数的情况下同时优化生成调度和模型架构。 我们的关键洞察是将生成过程分解为长度相等但灵活的段落,在每个段落中动态结合三种步骤类型:完整(完整的计算)、部分(利用缓存重复的计算)和空缺(跳过的计算)。这种基于段落的搜索空间与步长NAS相比,候选池的数量呈指数级减少,同时保持架构多样性。此外,我们引入了相对FID(rFID),这是一种轻量级的NAS评估指标,通过衡量模型输出相对于教师模型输出而非真实值的差异来测量发散度,从而将评估时间减少了超过90%。 在实践中,Flexiffusion在LDMs、Stable Diffusion和DDPMs上对ImageNet和MS-COCO数据集实现了至少两倍的速度提升,并且FID退化不超过5%,优于先前的NAS和缓存方法。值得注意的是,在Stable Diffusion中,它达到了近似相等CLIP得分的五点一次加速效果。 我们的工作开创了一种资源高效的范式,用于在不牺牲质量的情况下搜索高速扩散模型。

URL

https://arxiv.org/abs/2506.02488

PDF

https://arxiv.org/pdf/2506.02488.pdf


Tags
3D Action Action_Localization Action_Recognition Activity Adversarial Agent Attention Autonomous Bert Boundary_Detection Caption Chat Classification CNN Compressive_Sensing Contour Contrastive_Learning Deep_Learning Denoising Detection Dialog Diffusion Drone Dynamic_Memory_Network Edge_Detection Embedding Embodied Emotion Enhancement Face Face_Detection Face_Recognition Facial_Landmark Few-Shot Gait_Recognition GAN Gaze_Estimation Gesture Gradient_Descent Handwriting Human_Parsing Image_Caption Image_Classification Image_Compression Image_Enhancement Image_Generation Image_Matting Image_Retrieval Inference Inpainting Intelligent_Chip Knowledge Knowledge_Graph Language_Model LLM Matching Medical Memory_Networks Multi_Modal Multi_Task NAS NMT Object_Detection Object_Tracking OCR Ontology Optical_Character Optical_Flow Optimization Person_Re-identification Point_Cloud Portrait_Generation Pose Pose_Estimation Prediction QA Quantitative Quantitative_Finance Quantization Re-identification Recognition Recommendation Reconstruction Regularization Reinforcement_Learning Relation Relation_Extraction Represenation Represenation_Learning Restoration Review RNN Robot Salient Scene_Classification Scene_Generation Scene_Parsing Scene_Text Segmentation Self-Supervised Semantic_Instance_Segmentation Semantic_Segmentation Semi_Global Semi_Supervised Sence_graph Sentiment Sentiment_Classification Sketch SLAM Sparse Speech Speech_Recognition Style_Transfer Summarization Super_Resolution Surveillance Survey Text_Classification Text_Generation Time_Series Tracking Transfer_Learning Transformer Unsupervised Video_Caption Video_Classification Video_Indexing Video_Prediction Video_Retrieval Visual_Relation VQA Weakly_Supervised Zero-Shot