Skip to main content
QUICK REVIEW

[Paper Review] A Probabilistic Framework for Lexicon-based Keyword Spotting in Handwritten Text Images

Enrique Vidal, Alejandro H. Toselli|arXiv (Cornell University)|Apr 9, 2021
Handwritten Text Recognition TechniquesComputer Science64 references6 citations
TL;DR

This paper proposes a probabilistic, segmentation-free, lexicon-based keyword spotting (KWS) framework for handwritten text images, leveraging statistical models from modern handwritten text recognition to directly estimate word likelihoods in image regions without prior transcription. The method achieves state-of-the-art performance on multiple benchmark and large-scale datasets, significantly outperforming prior approaches.

ABSTRACT

Query by String Keyword Spotting (KWS) is here considered as a key technology for indexing large collections of handwritten text images to allow fast textual access to the contents of these collections. Under this perspective, a probabilistic framework for lexicon-based KWS in text images is presented. The presentation aims at providing a tutorial view that helps to understand the relations between classical statements of KWS and the relative challenges entailed by these statements. More specifically, the development of the proposed framework makes it self-evident that word recognition or classification implicitly or explicitly underlies any formulation of KWS. Moreover, it clearly suggests that the same statistical models and training methods successfully used for handwriting text recognition can advantageously be used also for KWS, even though KWS does not generally require or rely on any kind of previously produced image transcripts. These ideas are developed into a specific, probabilistically sound approach for segmentation-free, lexicon-based, query-by-string KWS. Experiments carried out using this approach are presented, which support the consistency and general interest of the proposed framework. Several datasets, traditionally used for KWS benchmarking are considered, with results significantly better than those previously published for these datasets. In addition, results on two new, larger handwritten text image datasets are reported, showing the great potential of the methods proposed in this paper for indexing and textual search in large collections of handwritten documents.

Motivation & Objective

  • To develop a robust, scalable keyword spotting system for large collections of handwritten text images where manual transcription is infeasible.
  • To address the limitations of traditional KWS methods that rely on word-level segmentation or full transcription, which are error-prone in historical manuscripts.
  • To demonstrate that word recognition models can be directly adapted for KWS without requiring prior image transcripts.
  • To enable efficient and accurate textual search in massive handwritten document collections using probabilistic inference on image-text joint distributions.
  • To evaluate the framework on both standard benchmarks and new, larger datasets to validate its generalization and scalability.

Proposed method

  • The framework models the joint probability distribution of an image region and its content using a word-graph representation, enabling end-to-end probabilistic inference.
  • It leverages the same statistical models and training procedures used in modern segmentation-free handwritten text recognition (HTR), such as HMMs or DNNs, for KWS.
  • Relevance scores for query words are computed as posterior probabilities using the joint image-text model, avoiding explicit segmentation or recognition.
  • The method operates at the line or block level, treating these as search units to reduce segmentation complexity.
  • A lexicon-based approach is used, with query words drawn from a predefined vocabulary derived from training data.
  • For OOV words, the framework explores smoothing techniques using similar in-vocabulary words, and is extending toward full character-level (lexicon-free) indexing.

Experimental results

Research questions

  • RQ1Can a unified probabilistic framework based on HTR models be effectively applied to keyword spotting without requiring prior image transcripts?
  • RQ2How does the performance of segmentation-free, lexicon-based KWS compare to existing methods on standard and large-scale handwritten document datasets?
  • RQ3To what extent can the same statistical models used in HTR be repurposed for KWS with minimal modification?
  • RQ4How does the framework handle out-of-vocabulary (OOV) queries, and what are the trade-offs in query response time and accuracy?
  • RQ5Can the framework scale effectively to large collections of millions of pages while maintaining high retrieval accuracy?

Key findings

  • The proposed KWS framework achieves state-of-the-art results on multiple standard benchmark datasets for handwritten text image keyword spotting.
  • On two new, larger handwritten document datasets, the method demonstrates strong generalization and scalability, significantly outperforming previously published results.
  • The framework's performance is consistently superior to prior lexicon-based and lexicon-free KWS methods, particularly in terms of accuracy and efficiency.
  • The use of joint image-text probability modeling via word-graphs enables robust keyword detection without explicit word segmentation or full transcription.
  • The method shows strong potential for real-world deployment, as evidenced by its integration into the HIMANIS search system, which supports large-scale (75,000 page) indexing and live querying.
  • Preliminary work on lexicon-free KWS using character-level modeling within the same probabilistic framework shows promise for handling OOV queries without sacrificing performance.

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.