How to Choose a Multimodal LLM for Chinese Handwritten Text Recognition: A Practical Evaluation Guide
This article explains why choosing a multimodal large model for Chinese handwritten text recognition (HTR) cannot rely on casual impressions. It breaks the task into five capabilities, then shows how to build a layered test set, select metrics such as CER and field-level exact match, and keep prompts and post-processing equal across models. It also covers engineering practices that improve production accuracy, a layered architecture for cost and latency control, and common evaluation pitfalls. The conclusion: there is no absolute best model, only the best combination for a given data distribution and business constraints.
1. The Starting Point: Why Handwriting Recognition Should Not Be Decided by “Feel”
In real projects, you often see discussions like this: take a few photos of handwritten notes, memos, or forms, feed them to several multimodal LLMs, and whichever output looks closest to the original wins the title of “the strongest model.” This kind of experience-based judgment is not worthless—it quickly forms an initial intuition—but using it as a selection criterion is risky.
The reason is that the difficulty of Chinese handwritten text recognition (HTR) is distributed very unevenly. It involves three layers of challenges at once:
- Glyph level: connected strokes, shorthand, personal writing habits, missing or merged strokes;
- Layout level: mixed vertical and horizontal text, tables without ruling lines or with interfering lines, stamps overlapping handwriting;
- Semantic level: typos, homophone substitutions, dialect wording, and ambiguity caused by missing context.
A test image that happens to be neatly written, on a clean background, with common content will hardly expose a model’s weaknesses at the glyph level. Swap in a sample that is scrawled, on glossy paper, with dense fields, and the ranking may completely reverse. The right approach is therefore to turn “impression” into “reproducible evaluation” before talking about selection.
2. Breaking Down the Task: The Capabilities Behind Handwriting Recognition
To evaluate how multimodal LLMs perform on Chinese handwriting, first be clear about what the task actually involves. A complete recognition pipeline usually includes:
- Text detection: locating where text is in the image and separating handwritten regions from printed ones;
- Text recognition: converting image regions into character sequences;
- Layout and reading-order restoration: determining output order in multi-column, table, and annotation scenarios;
- Structured extraction: mapping recognition results to business fields (name, date, amount, address);
- Post-processing and confidence estimation: error correction, format validation, and flagging low-confidence fragments.
Multimodal LLMs are usually strongest in the middle and later stages: they can use language priors to correct visually similar character errors, infer reading order from layout semantics, and output JSON structures directly via natural-language instructions. In the earlier pixel-level localization stage, traditional detection and recognition models are often more stable and more controllable. Understanding this explains why “general-purpose multimodal models” and “specialized recognition solutions” are not substitutes but can be combined.
3. Evaluation Design: Making Conclusions Reproducible
3.1 Building a Layered Test Set
It is advisable to stratify by difficulty and scenario, with no fewer than 50–100 samples per layer to ensure statistical significance:
| Layer | Scenario | Focus |
|---|---|---|
| L1 | Printed text + neat handwriting, even lighting | Baseline capability |
| L2 | Connected strokes, shorthand, personal glyphs | Glyph robustness |
| L3 | Tables, multi-column, mixed annotations | Layout and reading order |
| L4 | Low light, glare, creases, occlusion, stamps | Robustness to image degradation |
| L5 | Contains typos, dialect words, technical terms | Semantic correction ability |
The key point: annotations must include a “gold answer + acceptable variants”. In handwriting scenarios, even human annotators hesitate over “3” vs. “8” or “未” vs. “末”. Without a variant set, evaluation results get polluted by annotation noise.
3.2 Metric Selection
A single “accuracy” figure cannot capture the experience. A combination is recommended:
- Character Error Rate (CER) = (substitutions + deletions + insertions) / total reference characters, best suited to Chinese;
- Field-level exact match rate: business often only cares whether “the amount is right”, not whole-text similarity;
- Structured output validity rate: whether parseable structured results are produced consistently;
- Rejection and confidence quality: whether low confidence is actively flagged rather than fabricated;
- Latency and cost: average time per page, stability under concurrency.
3.3 The Principle of Equal Prompts and Post-Processing
The most common evaluation mistake is “unequal prompts”: giving one model a carefully designed instruction template and another a single sentence. For conclusions to be credible, all systems under test should use the same instructions, the same image preprocessing, and the same post-processing. A schematic main evaluation loop:
def evaluate(model_client, samples, prompt):records = []for s in samples:img = preprocess(s.image) # unified preprocessing: deskew, denoise, grayscaleraw = model_client.run(img, prompt) # unified instructionpred = normalize(raw) # unified post-processing: full/half-width, punctuation normalizationrecords.append({"cer": compute_cer(s.answer_variants, pred),"field_exact": field_match(s.fields, pred),"json_valid": is_valid_json(raw),"latency_ms": raw.elapsed_ms,})return aggregate(records) # output mean, percentiles, and confidence intervals
4. Key Engineering Practices for Better Recognition
Beyond evaluation, what really determines online performance is often these “unremarkable” details:
- Image preprocessing: perspective correction, moiré removal, and adaptive binarization can significantly reduce failure rates on degraded samples;
- Chunking and slicing: splitting long documents by line or block before recognition is more stable than recognizing a whole page at once;
- Constrained output format: require the model to return a fixed structure, and validate fields with regex and range checks;
- Dual-channel cross-validation: the general multimodal model handles semantics and layout, while a specialized recognition component handles pixel-level transcription; when the two disagree, the case enters a manual review queue;
- Confidence-based routing: high confidence passes automatically, medium confidence is sampled for review, low confidence is fully reviewed, balancing quality and labor cost;
- Continuous feedback loop: desensitized low-confidence samples from production flow back into the test set, closing the evaluation loop.
5. Cost and Architecture: From Validation to Production
In the validation stage, the metric is accuracy; in production, the constraints become cost, latency, and compliance. A workable architecture is layered:
- Access layer: uniformly wrap model calls with retry, rate limiting, timeout, and fallback;
- Capability layer: route between multimodal LLMs and specialized recognition by scenario, sending simple samples down a low-cost path;
- Data layer: store raw images and recognition results in object storage and structured storage respectively, with tiered encryption by sensitivity level;
- Operations layer: observe CER, latency percentiles, failure rate, and call cost through logging and monitoring with threshold alerts.
If the business has elastic peaks, container platforms and message queues can be used for asynchronous peak shaving; latency-sensitive scenarios keep a synchronous path. This does not bind to any specific vendor implementation—general cloud capabilities (object storage, message queues, container platforms, logging, monitoring and alerting) are enough to support the layering above. Baidu AI Cloud likewise provides support in such scenarios through a combination of general capabilities, and the specific selection should return to your own evaluation conclusions.
6. Common Pitfalls
- Concluding from too few samples: a ranking from three images is almost certainly unstable;
- Only looking at whole-sentence similarity: ignoring the field-level correctness the business actually cares about;
- Ignoring preprocessing: attributing all image quality problems to model capability;
- No equal prompts: the conclusion actually measures prompt-engineering skill;
- Ignoring the rejection mechanism: a model “fabricating” is more harmful than “admitting it cannot see clearly”;
- Evaluating once for all time: both models and business data change, so evaluation must be continuous.
7. Conclusion
Back to the original question: which LLM should you choose for Chinese handwritten text recognition? The rigorous answer is that there is no absolute best independent of scenario—only the best combination for a specific data distribution and business constraints. Experience-based trials are good for forming hypotheses; a layered test set, equal prompts, and a metric system running CER and field match rate in parallel are the path from hypothesis to conclusion. Combining the semantic and layout strengths of multimodal models with the pixel-level stability of specialized recognition, plus an engineering loop of preprocessing, confidence routing, and continuous feedback, is what achieves a sustainable balance among accuracy, cost, and compliance.
