Skip to main content
QUICK REVIEW

[Paper Review] Sequence to Sequence Learning for Optical Character Recognition

D. K. Sahu, Mohak Sukhwani|arXiv (Cornell University)|Nov 13, 2015
Speech Recognition and SynthesisComputer Science12 references12 citations
TL;DR

This paper proposes an end-to-end recurrent encoder-decoder architecture for printed text OCR that maps variable-length word images to variable-length text sequences using LSTM-based encoding and decoding. The method achieves competitive performance against CTC-based models and produces expressive, fixed-dimensional word embeddings that significantly improve retrieval efficiency and accuracy over traditional bag-of-words and SIFT-based methods.

ABSTRACT

We propose an end-to-end recurrent encoder-decoder based sequence learning approach for printed text Optical Character Recognition (OCR). In contrast to present day existing state-of-art OCR solution which uses connectionist temporal classification (CTC) output layer, our approach makes minimalistic assumptions on the structure and length of the sequence. We use a two step encoder-decoder approach -- (a) A recurrent encoder reads a variable length printed text word image and encodes it to a fixed dimensional embedding. (b) This fixed dimensional embedding is subsequently comprehended by decoder structure which converts it into a variable length text output. Our architecture gives competitive performance relative to connectionist temporal classification (CTC) output layer while being executed in more natural settings. The learnt deep word image embedding from encoder can be used for printed text based retrieval systems. The expressive fixed dimensional embedding for any variable length input expedites the task of retrieval and makes it more efficient which is not possible with other recurrent neural network architectures. We empirically investigate the expressiveness and the learnability of long short term memory (LSTMs) in the sequence to sequence learning regime by training our network for prediction tasks in segmentation free printed text OCR. The utility of the proposed architecture for printed text is demonstrated by quantitative and qualitative evaluation of two tasks -- word prediction and retrieval.

Motivation & Objective

  • To develop an end-to-end deep learning model for printed text OCR that avoids segmentation and handles variable-length inputs.
  • To investigate the expressiveness and learnability of LSTMs in sequence-to-sequence learning for OCR.
  • To enable efficient and accurate word retrieval using fixed-dimensional deep word image embeddings from the encoder.
  • To demonstrate the utility of the proposed architecture in both word prediction and image-based text retrieval.

Proposed method

  • Uses a bidirectional LSTM encoder to process variable-length word images and generate a fixed-dimensional context vector.
  • Employs a conditional LSTM decoder to generate variable-length text output from the fixed-dimensional embedding.
  • Learns the encoder-decoder architecture end-to-end via sequence-to-sequence training with cross-entropy loss.
  • Extracts the final hidden state of the encoder as a deep word image embedding (DwIE) for retrieval tasks.
  • Applies approximate nearest neighbor search using DwIE features for efficient retrieval.
  • Evaluates performance using CTC-based LSTMs, Tesseract, and Abbyy as baselines.

Experimental results

Research questions

  • RQ1Can a sequence-to-sequence LSTM encoder-decoder model achieve competitive performance in segmentation-free printed text OCR compared to CTC-based models?
  • RQ2How expressive are the fixed-dimensional embeddings learned by the encoder for downstream retrieval tasks?
  • RQ3Can the proposed architecture outperform traditional bag-of-words and SIFT-based representations in word image retrieval?
  • RQ4How does the model handle variations in word length and character structure during prediction and embedding learning?

Key findings

  • The LSTM encoder-decoder model outperforms vanilla RNN and achieves comparable or better word prediction accuracy than CTC-based LSTMs and commercial tools like Abbyy.
  • The deep word image embeddings (DwIE) significantly outperform SIFT-based bag-of-words and augmented profile features in top-100 and top-5000 retrieval accuracy.
  • For top-5000 retrieval, DwIE features outperform Abbyy's commercial OCR, while performing comparably in top-100 retrieval.
  • t-SNE visualization confirms that DwIE embeddings capture structural and linguistic similarities, clustering characters like 'm' and 'M', 'a' and 'A', and numbers together.
  • The model shows high sensitivity to small image components, such as periods, which improves retrieval precision for queries like 'A.' where bag-of-words fails entirely.
  • Convergence curves show stable training with the encoder-decoder model, and the architecture enables faster retrieval due to fixed-dimensional embeddings.

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.