Skip to main content
QUICK REVIEW

[Paper Review] Evaluation of HTR models without Ground Truth Material

Phillip Ströbel, Simon Clematide|arXiv (Cornell University)|Jan 17, 2022
Natural Language Processing TechniquesComputer Science8 citations
TL;DR

This paper proposes ground truth-free metrics for evaluating and selecting Handwritten Text Recognition (HTR) models without requiring human-annotated transcriptions. It introduces pseudo-perplexity (PPPL) using multilingual BERT and RoBERTa, showing that these transformer-based metrics correlate strongly with character error rates (CER) and outperform traditional lexicon-based and statistical language model approaches, enabling reliable model ranking and quality estimation in real-world applications.

ABSTRACT

The evaluation of Handwritten Text Recognition (HTR) models during their development is straightforward: because HTR is a supervised problem, the usual data split into training, validation, and test data sets allows the evaluation of models in terms of accuracy or error rates. However, the evaluation process becomes tricky as soon as we switch from development to application. A compilation of a new (and forcibly smaller) ground truth (GT) from a sample of the data that we want to apply the model on and the subsequent evaluation of models thereon only provides hints about the quality of the recognised text, as do confidence scores (if available) the models return. Moreover, if we have several models at hand, we face a model selection problem since we want to obtain the best possible result during the application phase. This calls for GT-free metrics to select the best model, which is why we (re-)introduce and compare different metrics, from simple, lexicon-based to more elaborate ones using standard language models and masked language models (MLM). We show that MLM-based evaluation can compete with lexicon-based methods, with the advantage that large and multilingual transformers are readily available, thus making compiling lexical resources for other metrics superfluous.

Motivation & Objective

  • To address the challenge of evaluating HTR models in real-world applications where ground truth is unavailable or impractical to produce.
  • To identify reliable, automated metrics for HTR quality estimation that do not depend on human-annotated transcriptions.
  • To compare the performance of various GT-free metrics—lexicon-based, statistical language models, and masked language models (MLMs)—in predicting actual HTR quality.
  • To evaluate the effectiveness of pseudo-perplexity (PPPL) derived from multilingual BERT and RoBERTa as a scalable, language-agnostic alternative to lexicon-dependent metrics.
  • To enable model selection among multiple HTR systems based on these metrics, supporting deployment in digital humanities and archival workflows.

Proposed method

  • Proposes pseudo-perplexity (PPPL) as a novel metric by masking tokens in HTR output and computing perplexity using multilingual BERT and RoBERTa.
  • Employs standard language models (LMs) and masked language models (MLMs) to compute perplexity scores on HTR outputs, treating them as potential language sequences.
  • Introduces a token ratio metric as a simple baseline, measuring the proportion of recognized tokens found in a predefined lexicon.
  • Uses character n-grams (2- to 7-grams) as a baseline for lexical consistency, comparing their correlation with CER.
  • Applies Spearman rank correlation to evaluate how well each metric ranks HTR models relative to their actual CER-based ranking.
  • Validates metrics on three datasets: Gwalther (433 lines), Gwalther (57 lines), and Bullinger (825 lines), using CER as the reference standard.

Experimental results

Research questions

  • RQ1Can PPPL computed from multilingual transformers serve as a reliable proxy for HTR quality without ground truth?
  • RQ2How do lexicon-based, statistical language model, and MLM-based metrics compare in predicting actual HTR error rates?
  • RQ3To what extent do GT-free metrics correlate with CER-based rankings across diverse historical handwriting corpora?
  • RQ4Can PPPL-based metrics outperform traditional lexicon-based methods, especially in low-resource or multilingual settings?
  • RQ5Can these metrics effectively select the best-performing HTR model among multiple candidates in the absence of ground truth?

Key findings

  • PPPL computed from multilingual BERT and RoBERTa shows strong correlation with CER, achieving R² values above 0.90 on the Bullinger and Gwalther datasets.
  • The token ratio metric demonstrated the highest R² values (0.98 on Gwalther 433 and 0.95 on Bullinger 825), confirming lexical consistency as a strong quality indicator.
  • PPPL-based metrics achieved Top-1 model selection in 70% of cases on the Bullinger 825 set and 60% on the Gwalther 57 set, outperforming statistical LMs and n-gram baselines.
  • The statistical language model’s PPL showed weak correlation (R² ≈ 0.65 on Bullinger), indicating limited reliability for HTR quality estimation.
  • PPPL-based metrics matched or exceeded the performance of lexicon-based methods, offering a scalable alternative without requiring language-specific lexicons.
  • The study confirms that PPPL enables effective model ranking and quality estimation, even for historical German (ENHG), despite its irregular spelling and low-resource nature.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.