Skip to main content
QUICK REVIEW

[论文解读] PP-OCRv3: More Attempts for the Improvement of Ultra Lightweight OCR System

Chenxia Li, Weiwei Liu|arXiv (Cornell University)|Jun 7, 2022
Handwritten Text Recognition TechniquesComputer Science被引用 69
一句话总结

PP-OCRv3 是一款超轻量级的 OCR 系统,在 PP-OCRv2 的基础上新增九项改进(检测三项,识别六项),在相近推理成本下实现约 5% 的 Hmean 提升,且 GPU 性能更快。

ABSTRACT

Optical character recognition (OCR) technology has been widely used in various scenes, as shown in Figure 1. Designing a practical OCR system is still a meaningful but challenging task. In previous work, considering the efficiency and accuracy, we proposed a practical ultra lightweight OCR system (PP-OCR), and an optimized version PP-OCRv2. In order to further improve the performance of PP-OCRv2, a more robust OCR system PP-OCRv3 is proposed in this paper. PP-OCRv3 upgrades the text detection model and text recognition model in 9 aspects based on PP-OCRv2. For text detector, we introduce a PAN module with large receptive field named LK-PAN, a FPN module with residual attention mechanism named RSE-FPN, and DML distillation strategy. For text recognizer, the base model is replaced from CRNN to SVTR, and we introduce lightweight text recognition network SVTR LCNet, guided training of CTC by attention, data augmentation strategy TextConAug, better pre-trained model by self-supervised TextRotNet, UDML, and UIM to accelerate the model and improve the effect. Experiments on real data show that the hmean of PP-OCRv3 is 5% higher than PP-OCRv2 under comparable inference speed. All the above mentioned models are open-sourced and the code is available in the GitHub repository PaddleOCR which is powered by PaddlePaddle.

研究动机与目标

  • 在不增加预测成本的前提下,提升超轻量级 OCR(PP-OCR)的鲁棒性和准确性。
  • 通过更强的师生蒸馏框架和更好的特征表示来提升文本检测。
  • 使用基于变换器的轻量化骨干网络以及保持高效的训练策略来加强文本识别。
  • 提供面向移动和边缘设备的开源、对硬件友好的 OCR 方案。

提出的方法

  • 采用协同互学习(CML)的蒸馏用于文本检测,使用更强的教师(LK-PAN + DML)和更轻的学生(RSE-FPN)。
  • 引入 LK-PAN(大核 PAN)以增大文本检测的感受野。
  • 使用 RSE-FPN(残差 SE FPN)来改善学生检测器的特征表示。
  • 用 SVTR-LCNet(基于 SVTR 的轻量识别器)替代 CRNN,并对其进行高效优化。
  • 应用通过注意力引导的 CTC 训练(GTC),将注意力引导融入 CTC 且不增加额外推理成本。
  • 开发 TextConAug,通过批量级图像拼接来丰富上下文,灵感来自 ConCLR。
  • 使用 TextRotNet 进行预训练,以改善收敛性和初始化。
  • 采用 U-DML(Unified Deep Mutual Learning)来联合监督多个识别器分支。
  • 使用 UIM(Unlabeled Images Mining)对未标记数据进行伪标签,以持续改进。
  • 在保持性能的同时,利用极小变体(PP-OCRv3 tiny)对模型进行压缩和加速。

实验结果

研究问题

  • RQ1在可比的预测成本下,PP-OCRv3 是否实现比 PP-OCRv2 更高的端到端 OCR 性能(Hmean)?
  • RQ2提出的检测器改进(LK-PAN、RSE-FPN、DML)如何影响检测精度和速度?
  • RQ3结合所述识别策略的 SVTR-LCNet 相较于之前的识别器在准确性和速度方面有何表现?
  • RQ4训练策略(GTC、TextConAug、TextRotNet、U-DML、UIM)在不增加推理成本的前提下对识别准确性有何影响?

主要发现

  • PP-OCRv3 在相同推理成本下,在 CPU/GPU 设置下将端到端 Hmean 提升约 5% 相比于 PP-OCRv2。
  • 检测器消融显示 LK-PAN 将 Hmean 从 83.5% 提升至 85.0%,并带来中等程度的速度提升;在教师设置下,DML 进一步提升到 86.0%。
  • 使用 RSE-FPN 的学生检测器在几乎无速度损失的情况下达到 84.5% Hmean,且与教师结合的 CML 蒸馏使学生变体达到 85.4%。
  • SVTR-LCNet 在识别精度方面具有竞争力,并在相较于 SVTR-Tiny 的速度方面有显著提升,与 GTC、TextConAug、TextRotNet、U-DML 和 UIM 结合后显示出改进。
  • 总体而言,PP-OCRv3 在端到端 OCR 中实现 62.9% 的 Hmean,模型体积更小(相比 PP-OCRv2 的 57.6% Hmean),且 GPU 推理速度比 PP-OCRv2 提高至多 22% 。
  • Compared to previous PP-OCR systems, PP-OCRv3 delivers 5.3% higher Hmean at the same cost and 22% faster T4 GPU inference.

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。