# PP-OCRv6 recognition uses CTC and NRTR heads to curb hallucination

> Original title: 🧵PP-OCRv6 Tech Deep Dive Ep.3: How CTC + NRTR Dual-Head Architecture Prevents Hallucination in Text Recognition — PP-OCRv6 Recognition M...

- Source: PaddlePaddle
- Published: 2026-06-25T13:22:53.000Z
- Bad Influence: https://badinfluence.news/items/xilqx20pf8g6b1t0jnmrzgyt4
- Original: https://x.com/PaddlePaddle/status/2070135642617782531

## Summary

PP-OCRv6's recognition module uses a CTC plus NRTR dual-head design so text is decoded from visual features rather than language priors, reducing hallucination. In hallucination tests, PP-OCRv6_medium reaches 93.2%, versus 85.0% for the best VLM, and recognition accuracy across 15 scenarios is 83.2%, above PP-OCRv5_server's 78.1%. NRTR is used only during training, adding language regularization at no inference cost, and it contributes +1.16% accuracy.

## Post

🧵PP-OCRv6 Tech Deep Dive Ep.3: How CTC + NRTR Dual-Head Architecture Prevents Hallucination in Text Recognition — PP-OCRv6 Recognition Module Deep Dive

When VLMs read text, they may guess, OCR can't afford that.
PP-OCRv6 Tech Deep Dive Ep.3: after detection locks the location, recognition must read it right.
In hallucination tests, best VLM reaches only 85.0%, while PP-OCRv6_medium hits 93.2%.

The recognition design is built on visual evidence, not language priors:
🔸 LightSVTR neck: 1×7 depthwise conv scans local text structures before global attention — +0.47% accuracy. Additive skip connections replace Concat, reducing parameters and stabilizing training.
🔸 CTC + NRTR dual-head training: CTC decodes purely from visual features at inference — no language prior, no hallucination. NRTR joins only during training, providing language regularization at zero inference cost — +1.16% accuracy.
🔸 Knowledge distillation boosts Tiny from 71.83% to 74.52% — recovering the capacity loss from removing the neck.

Result: 83.2% recognition accuracy across 15 scenarios, surpassing PP-OCRv5_server (78.1%), with especially strong gains on Japanese (+16.8%), ancient Chinese (+12.0%), and screen text (+14.4%).

💬 What's your deployment environment — cloud GPU, on-prem CPU, or edge device?
📅 Next in the final episode (Ep.4): 3.9x Faster on CPU, 0.13s per Image on A100 — PP-OCRv6 Deployment & Model Selection Guide
#PPOCRv6 #OCR #TextRecognition #AntiHallucination #VLM

![](https://badinfluence.news/api/img-proxy?u=https%3A%2F%2Fpbs.twimg.com%2Fmedia%2FHLqZSF6awAAlewS.jpg&mode=thumb&exp=1795651200&sig=d39c7e1b97d36bc7)

![](https://badinfluence.news/api/img-proxy?u=https%3A%2F%2Fpbs.twimg.com%2Fmedia%2FHLqZSFwbUAAmINt.jpg&mode=thumb&exp=1795651200&sig=8615fd82e137b3a0)
