用FPGA加速生成式人脸视频编码,能效比传统芯片高24倍
GRACE: Designing Generative Face Video Codec via Agile Hardware-Centric Workflow
- 基于FPGA设计软硬件协同的加速器,实现生成式人脸视频解码
- 在PYNQ-Z1上达成24.9倍于CPU、4.1倍于GPU的能效提升
- 每像素重构仅需11.7微焦,适合边缘设备实时部署
基于动画的生成式编码(AGC)是新兴的说话人脸视频压缩范式。然而,其复杂的解码器在资源与功耗受限的边缘设备上部署面临挑战,主要源于参数量大、算法难以动态适应以及计算和数据传输带来的高功耗。本文首次提出面向现场可编程门阵列(FPGA)的AGC边缘部署方案。首先分析AGC算法,采用训练后静态量化和层融合等网络压缩方法;随后设计一种基于协处理器架构的重叠加速器,通过软硬件协同设计实现计算。硬件处理单元包含卷积、网格采样、上采样等引擎,采用双缓冲流水线和循环展开等并行优化策略,充分挖掘FPGA资源。最终,在PYNQ-Z1平台上构建了AGC FPGA原型系统,相较商用中央处理器(CPU)和图形处理器(GPU),分别实现24.9×和4.1×的能效提升。具体而言,该系统每像素重构仅需11.7微焦(μJ)。
原文摘要 · Abstract (English)
The Animation-based Generative Codec (AGC) is an emerging paradigm for talking-face video compression. However, deploying its intricate decoder on resource and power-constrained edge devices presents challenges due to numerous parameters, the inflexibility to adapt to dynamically evolving algorithms, and the high power consumption induced by extensive computations and data transmission. This paper for the first time proposes a novel field programmable gate arrays (FPGAs)-oriented AGC deployment scheme for edge-computing video services. Initially, we analyze the AGC algorithm and employ network compression methods including post-training static quantization and layer fusion techniques. Subsequently, we design an overlapped accelerator utilizing the co-processor paradigm to perform computations through software-hardware co-design. The hardware processing unit comprises engines such as convolution, grid sampling, upsample, etc. Parallelization optimization strategies like double-buffered pipelines and loop unrolling are employed to fully exploit the resources of FPGA. Ultimately, we establish an AGC FPGA prototype on the PYNQ-Z1 platform using the proposed scheme, achieving \textbf{24.9$\times$} and \textbf{4.1$\times$} higher energy efficiency against commercial Central Processing Unit (CPU) and Graphic Processing Unit (GPU), respectively. Specifically, only \textbf{11.7} microjoules ($\upmu$J) are required for one pixel reconstructed by this FPGA system.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。