arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2409.17020cs.CV
收藏

PTQ4RIS:面向指代表达图像分割的训练后量化

PTQ4RIS: Post-Training Quantization for Referring Image Segmentation

School of Electronic and Electrical Engineering, Shanghai University of Engineering Science(上海工程技术大学电子与电气工程学院);SenseTime(商汤科技);Carnegie Mellon University(卡内基梅隆大学)

Xiaoyan Jiang, Hang Yang, Kaiying Zhu, Xihe Qiu, Shibo Zhao, Sifan Zhou

AI总结:

针对边缘设备上RIS推理资源受限的问题,提出PTQ4RIS训练后量化框架,通过DRQ与RORQ分别缓解视觉和文本编码器的量化误差,并在多个基准与8至4位设置下验证了优越性能。

摘要:

指代表达图像分割(Referring Image Segmentation,RIS)旨在通过同时理解视觉和语言信息,在图像中分割出给定句子所指代的对象。然而,现有RIS方法往往致力于探索性能顶尖的模型,却忽视了在资源受限边缘设备上实际应用的考量。这一疏漏给设备端RIS推理带来了重大挑战。为此,我们提出了一个有效且高效的训练后量化框架,名为PTQ4RIS。具体而言,我们首先深入分析了RIS模型量化中性能下降的根本原因,并提出双区域量化(dual-region quantization,DRQ)和基于重排序的异常值保留量化(reorder-based outlier-retained quantization,RORQ),以解决视觉编码器和文本编码器中的量化难题。在三个基准上、采用从8位到4位的不同位宽设置进行的大量实验,证明了其优越性能。重要的是,我们是首个专门为RIS任务设计的PTQ方法,凸显了PTQ在RIS应用中的可行性。代码和视频可在{https://github.com/gugu511yy/PTQ4RIS}获取。

英文摘要:

Referring Image Segmentation (RIS), aims to segment the object referred by a given sentence in an image by understanding both visual and linguistic information. However, existing RIS methods tend to explore top-performance models, disregarding considerations for practical applications on resources-limited edge devices. This oversight poses a significant challenge for on-device RIS inference. To this end, we propose an effective and efficient post-training quantization framework termed PTQ4RIS. Specifically, we first conduct an in-depth analysis of the root causes of performance degradation in RIS model quantization and propose dual-region quantization (DRQ) and reorder-based outlier-retained quantization (RORQ) to address the quantization difficulties in visual and text encoders. Extensive experiments on three benchmarks with different bits settings (from 8 to 4 bits) demonstrates its superior performance. Importantly, we are the first PTQ method specifically designed for the RIS task, highlighting the feasibility of PTQ in RIS applications. Code and video are available at {https://github.com/gugu511yy/PTQ4RIS}.

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

↑