arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2503.16709cs.CVcs.AI
收藏

QuartDepth:面向边缘端实时深度估计的训练后量化

QuartDepth: Post-Training Quantization for Real-Time Depth Estimation on the Edge

Northeastern University(东北大学);Nanjing University(南京大学);Monash University(莫纳什大学);Nanjing University of Information Science and Technology(南京信息工程大学);Fudan University(复旦大学);University of Georgia(佐治亚大学);Adobe Research(奥多比研究院)

Xuan Shen, Weize Ma, Jing Liu, Changdi Yang, Rui Ding, Quanyi Wang, Henghui Ding, Wei Niu, Yanzhi Wang, Pu Zhao, Jun Lin, Jiuxiang Gu

AI总结:

针对边缘ASIC设备部署高精度单目深度估计模型的难题,提出QuartDepth训练后量化方案,结合4位量化、激活优化与权重重构方法,搭配定制硬件加速器,在保障精度的同时提升推理速度与能效。

摘要:

单目深度估计(Monocular Depth Estimation, MDE)已成为计算机视觉中的关键任务,支撑着众多现实应用。然而,由于计算和内存需求高,在资源受限的边缘设备,尤其是专用集成电路(Application-Specific Integrated Circuits, ASICs)上部署高精度深度估计模型极具挑战。近期基础深度估计领域的进展虽取得了出色效果,但进一步加大了在ASIC上部署的难度。为解决这一问题,我们提出QuartDepth,该方法采用训练后量化对MDE模型进行量化,以适配ASIC的硬件加速。我们的方法将权重和激活都量化至4位精度,从而缩减模型体积与计算成本。为缓解性能下降,我们提出了在激活力化前后分别应用的激活打磨与补偿算法,以及一种用于最小化权重量化误差的权重重构方法。此外,我们设计了一款灵活可编程的硬件加速器,支持内核融合与定制指令可编程性,提升了吞吐量与效率。实验结果表明,我们的框架在ASIC上实现了具有竞争力的精度,同时具备快速推理能力与更高的能效,填补了高性能深度估计与边缘设备实际可用性之间的缺口。代码链接:https://github.com/shawnricecake/quart-depth

英文摘要:

Monocular Depth Estimation (MDE) has emerged as a pivotal task in computer vision, supporting numerous real-world applications. However, deploying accurate depth estimation models on resource-limited edge devices, especially Application-Specific Integrated Circuits (ASICs), is challenging due to the high computational and memory demands. Recent advancements in foundational depth estimation deliver impressive results but further amplify the difficulty of deployment on ASICs. To address this, we propose QuartDepth which adopts post-training quantization to quantize MDE models with hardware accelerations for ASICs. Our approach involves quantizing both weights and activations to 4-bit precision, reducing the model size and computation cost. To mitigate the performance degradation, we introduce activation polishing and compensation algorithm applied before and after activation quantization, as well as a weight reconstruction method for minimizing errors in weight quantization. Furthermore, we design a flexible and programmable hardware accelerator by supporting kernel fusion and customized instruction programmability, enhancing throughput and efficiency. Experimental results demonstrate that our framework achieves competitive accuracy while enabling fast inference and higher energy efficiency on ASICs, bridging the gap between high-performance depth estimation and practical edge-device applicability. Code: https://github.com/shawnricecake/quart-depth

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑