Turbo-VAED:将视频VAE快速且稳定地迁移至移动设备
Turbo-VAED: Fast and Stable Transfer of Video-VAEs to Mobile Devices
AI总结:
本文提出Turbo-VAED,通过引入3D深度可分离卷积和解耦3D像素重排方案,并采用仅蒸馏解码器的训练方法,首次在移动端实现实时720p视频VAE解码,大幅降低参数量与延迟并保留高重建质量。
摘要:
在移动设备上部署大型生成式AI模型的需求日益增长。然而,对于近期流行的视频生成模型,变分自编码器(VAE)构成了主要的计算瓶颈之一。庞大的参数量和不匹配的卷积核会导致移动设备出现内存溢出错误或推理极其缓慢。为了解决这一问题,我们提出了一种低成本解决方案,能够将广泛使用的视频VAE高效迁移至移动设备。(1)我们分析了现有VAE架构中的冗余,并获得了经验性的设计见解。通过将3D深度可分离卷积整合到模型中,我们显著减少了参数数量。(2)我们观察到主流视频VAE中的上采样技术不适用于移动硬件,并构成了主要瓶颈。对此,我们提出了一种解耦的3D像素重排方案,大幅削减了端到端延迟。基于这些改进,我们开发了一种通用的面向移动端的VAE解码器Turbo-VAED。(3)我们提出了一种高效的VAE解码器训练方法。由于部署期间仅使用解码器,我们将其蒸馏到Turbo-VAED中,而不是重新训练完整的VAE,从而在性能损失极小的情况下实现快速的移动端适配。据我们所知,我们的方法首次在移动设备上实现了实时720p视频VAE解码。该方法广泛适用于大多数视频VAE。当集成到四个代表性模型中时,其训练成本仅为95美元,在GPU上720p分辨率下将原始VAE加速高达84.5倍,仅使用原始参数量的17.5%,并保留了96.9%的原始重建质量。与针对移动端优化的VAE相比,Turbo-VAED在iPhone 16 Pro上实现了2.9倍的FPS加速以及更好的重建质量。代码和模型将很快在https://github.com/hustvl/Turbo-VAED发布。
英文摘要:
There is a growing demand for deploying large generative AI models on mobile devices. For recent popular video generative models, however, the Variational AutoEncoder (VAE) represents one of the major computational bottlenecks. Both large parameter sizes and mismatched kernels cause out-of-memory errors or extremely slow inference on mobile devices. To address this, we propose a low-cost solution that efficiently transfers widely used video VAEs to mobile devices. (1) We analyze redundancy in existing VAE architectures and get empirical design insights. By integrating 3D depthwise separable convolutions into our model, we significantly reduce the number of parameters. (2) We observe that the upsampling techniques in mainstream video VAEs are poorly suited to mobile hardware and form the main bottleneck. In response, we propose a decoupled 3D pixel shuffle scheme that slashes end-to-end delay. Building upon these, we develop a universal mobile-oriented VAE decoder, Turbo-VAED. (3) We propose an efficient VAE decoder training method. Since only the decoder is used during deployment, we distill it to Turbo-VAED instead of retraining the full VAE, enabling fast mobile adaptation with minimal performance loss. To our knowledge, our method enables real-time 720p video VAE decoding on mobile devices for the first time. This approach is widely applicable to most video VAEs. When integrated into four representative models, with training cost as low as $95, it accelerates original VAEs by up to 84.5x at 720p resolution on GPUs, uses as low as 17.5% of original parameter count, and retains 96.9% of the original reconstruction quality. Compared to mobile-optimized VAEs, Turbo-VAED achieves a 2.9x speedup in FPS and better reconstruction quality on the iPhone 16 Pro. The code and models will soon be available at https://github.com/hustvl/Turbo-VAED.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。