[Paper Review] PP-OCRv2: Bag of Tricks for Ultra Lightweight OCR System
PP-OCRv2 improves ultra-lightweight OCR by introducing techniques like Collaborative Mutual Learning, CopyPaste, PP-LCNet, Unified-Deep Mutual Learning, and Enhanced CTCLoss, achieving higher accuracy at the same inference cost as PP-OCR. It benchmarks against both ultra-lightweight and server models and releases open-source PaddleOCR implementations.
Optical Character Recognition (OCR) systems have been widely used in various of application scenarios. Designing an OCR system is still a challenging task. In previous work, we proposed a practical ultra lightweight OCR system (PP-OCR) to balance the accuracy against the efficiency. In order to improve the accuracy of PP-OCR and keep high efficiency, in this paper, we propose a more robust OCR system, i.e. PP-OCRv2. We introduce bag of tricks to train a better text detector and a better text recognizer, which include Collaborative Mutual Learning (CML), CopyPaste, Lightweight CPUNetwork (LCNet), Unified-Deep Mutual Learning (U-DML) and Enhanced CTCLoss. Experiments on real data show that the precision of PP-OCRv2 is 7% higher than PP-OCR under the same inference cost. It is also comparable to the server models of the PP-OCR which uses ResNet series as backbones. All of the above mentioned models are open-sourced and the code is available in the GitHub repository PaddleOCR which is powered by PaddlePaddle.
Motivation & Objective
- Improve text detection and recognition accuracy without compromising efficiency in ultra-lightweight OCR.
- Introduce training tricks (CML, CopyPaste, U-DML, Enhanced CTCLoss) to strengthen detectors and recognizers.
- Develop a CPU-optimized lightweight backbone (PP-LCNet) for faster inference on Intel CPUs.
- Provide ablations and real-data experiments to validate performance gains over PP-OCR.
Proposed method
- Apply Collaborative Mutual Learning (CML) with teacher and two sub-students for text detection.
- Use CopyPaste data augmentation to balance foreground text instances in training.
- Adopt PP-LCNet as a lightweight CPU-friendly backbone for recognition.
- Extend Unified-Deep Mutual Learning (U-DML) with joint training of two identical-structure networks for recognition, including feature and distribution alignment.
- Incorporate Enhanced CTCLoss by adding a CenterLoss term to guide sequence decoding.
Experimental results
Research questions
- RQ1Can PP-OCRv2 achieve higher detection/recognition accuracy than PP-OCR at the same inference cost?
- RQ2Do techniques like CML, CopyPaste, U-DML, and Enhanced CTCLoss contribute to measurable gains in real-world data?
- RQ3Is a CPU-optimized backbone (PP-LCNet) effective for fast, accurate recognition on Intel CPUs?
- RQ4How close can ultra-lightweight OCR come to server-model performance in end-to-end metrics?
Key findings
- PP-OCRv2 yields 7% higher precision/recall balance than PP-OCR at the same inference cost for end-to-end OCR.
- Text detection gains: DML improves Hmean by ~2%, CML by ~3%, CopyPaste adds ~0.6% more.
- Text recognition gains: PP-LCNet plus U-DML and Enhanced CTCLoss improves accuracy by 8.1% over the baseline with modest model-size increase.
- PP-LCNet demonstrates superior speed-accuracy trade-offs on ImageNet against comparable lightweight models.
- End-to-end PP-OCRv2 performance is 7.3% higher Hmean than PP-OCR mobile under the same cost and comparable to server models.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.