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

面向场景文本识别的上下文感知并行解码器

Context Perception Parallel Decoder for Scene Text Recognition

Fudan University(复旦大学);Beijing Jiaotong University(北京交通大学);Baidu Inc.(百度公司)

Yongkun Du, Zhineng Chen, Caiyan Jia, Xiaoting Yin, Chenxia Li, Yuning Du, Yu-Gang Jiang

AI总结:

针对场景文本识别中自回归模型速度慢、并行解码模型准确率低的问题,提出上下文感知并行解码器CPPD,通过字符计数、排序与预测模块构建完整识别上下文,在中英基准上实现高准确率且速度约为AR模型的8倍,模块嵌入现有模型也能显著提准。

摘要:

场景文本识别(STR)方法一直难以同时实现高精度与快速推理。基于自回归(AR)的模型以逐字符方式执行识别,在准确率上表现优异,但推理速度较慢。作为替代方案,基于并行解码(PD)的模型可在单次解码步骤中推理出所有字符,推理速度更快,但准确率通常更低。我们首先对STR中的AR解码开展了实证研究,发现AR解码器不仅能对语言上下文建模,还能为视觉上下文感知提供引导。据此,我们提出上下文感知并行解码器(Context Perception Parallel Decoder, CPPD),以单次PD步骤预测字符序列。CPPD设计了字符计数模块用于推断每个字符的出现次数,以及字符排序模块用于推导无内容的阅读顺序和占位符。同时,字符预测任务将占位符与字符关联起来,三者共同构建了完整的识别上下文。我们构建了一系列CPPD模型,还将所提出的模块嵌入到现有STR解码器中。在英文和中文基准数据集上的实验表明,CPPD模型取得了极具竞争力的准确率,同时运行速度比对应的AR模型快约8倍。此外,嵌入了该模块的模型也实现了显著的准确率提升。代码位于此https URL:https://github.com/PaddlePaddle/PaddleOCR/blob/dygraph/doc/doc_en/algorithm_rec_cppd_en.md

英文摘要:

Scene text recognition (STR) methods have struggled to attain high accuracy and fast inference speed. Autoregressive (AR)-based models implement the recognition in a character-by-character manner, showing superiority in accuracy but with slow inference speed. Alternatively, parallel decoding (PD)-based models infer all characters in a single decoding pass, offering faster inference speed but generally worse accuracy. We first present an empirical study of AR decoding in STR, and discover that the AR decoder not only models linguistic context, but also provides guidance on visual context perception. Consequently, we propose Context Perception Parallel Decoder (CPPD) to predict the character sequence in a PD pass. CPPD devises a character counting module to infer the occurrence count of each character, and a character ordering module to deduce the content-free reading order and placeholders. Meanwhile, the character prediction task associates the placeholders with characters. They together build a comprehensive recognition context. We construct a series of CPPD models and also plug the proposed modules into existing STR decoders. Experiments on both English and Chinese benchmarks demonstrate that the CPPD models achieve highly competitive accuracy while running approximately 8x faster than their AR-based counterparts. Moreover, the plugged models achieve significant accuracy improvements. Code is at \href{https://github.com/PaddlePaddle/PaddleOCR/blob/dygraph/doc/doc_en/algorithm_rec_cppd_en.md}{this https URL}.

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

↑