Flash-Unified: 一种无需训练且任务感知的加速框架用于原生统一模型
Flash-Unified: A Training-Free and Task-Aware Acceleration Framework for Native Unified Models
AI总结:
本文提出FlashU框架,通过任务感知的网络剪枝和动态层跳过,减少统一模型的计算冗余,提升生成和理解任务的推理速度,实验表明在Show-o2数据集上加速1.78至2.01倍,保持SOTA性能。
摘要:
原生统一多模态模型,整合生成和理解能力,面临显著的计算开销,阻碍其实际部署。现有加速技术通常采用静态、单一大策略,忽视生成任务(如图像生成)与单次理解任务(如VQA)之间计算剖面的根本差异。本文首次系统分析统一模型,揭示显著的参数专业化现象,不同神经元集对每个任务至关重要。这表明,在参数层面,统一模型已隐含地在单一架构内内部化了生成和理解的独立推理路径。基于这些见解,我们引入一种无需训练且任务感知的加速框架FlashU,针对每个任务的需求进行优化。在两项任务中,我们引入任务特定的网络剪枝和动态层跳过,旨在消除层间和任务特定的冗余。对于视觉生成,我们实现一个随时间变化的控制信号用于指导尺度,并通过扩散头缓存进行时间近似。对于多模态理解,基于剪枝模型,我们引入动态令牌剪枝,通过V-Norm代理利用视觉输入的空间冗余。在Show-o2上的广泛实验表明,FlashU在生成和理解任务中均实现1.78×至2.01×的推理加速,同时保持SOTA性能,优于其他统一模型,验证了我们的任务感知加速范式。我们的代码已公开在https://github.com/Rirayh/FlashU。
英文摘要:
Native unified multimodal models, which integrate both generative and understanding capabilities, face substantial computational overhead that hinders their real-world deployment. Existing acceleration techniques typically employ a static, monolithic strategy, ignoring the fundamental divergence in computational profiles between iterative generation tasks (e.g., image generation) and single-pass understanding tasks (e.g., VQA). In this work, we present the first systematic analysis of unified models, revealing pronounced parameter specialization, where distinct neuron sets are critical for each task. This implies that, at the parameter level, unified models have implicitly internalized separate inference pathways for generation and understanding within a single architecture. Based on these insights, we introduce a training-free and task-aware acceleration framework, FlashU, that tailors optimization to each task's demands. Across both tasks, we introduce Task-Specific Network Pruning and Dynamic Layer Skipping, aiming to eliminate inter-layer and task-specific redundancy. For visual generation, we implement a time-varying control signal for the guidance scale and a temporal approximation for the diffusion head via Diffusion Head Cache. For multimodal understanding, building upon the pruned model, we introduce Dynamic Token Pruning via a V-Norm Proxy to exploit the spatial redundancy of visual inputs. Extensive experiments on Show-o2 demonstrate that FlashU achieves 1.78$\times$ to 2.01$\times$ inference acceleration across both understanding and generation tasks while maintaining SOTA performance, outperforming competing unified models and validating our task-aware acceleration paradigm. Our code is publicly available at https://github.com/Rirayh/FlashU.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。