Skip to main content
QUICK REVIEW

[Paper Review] Gaussian Constrained Attention Network for Scene Text Recognition

Zhi Qiao, Xugong Qin|arXiv (Cornell University)|Oct 19, 2020
Handwritten Text Recognition TechniquesComputer Science63 references7 citations
TL;DR

This paper proposes Gaussian Constrained Attention Network (GCAN), a 2D attention-based method that introduces a Gaussian Constrained Refinement Module (GCRM) to explicitly refine attention weights by predicting Gaussian masks, reducing attention diffusion and improving localization. GCAN achieves state-of-the-art performance on multiple scene text recognition benchmarks with minimal inference overhead.

ABSTRACT

Scene text recognition has been a hot topic in computer vision. Recent methods adopt the attention mechanism for sequence prediction which achieve convincing results. However, we argue that the existing attention mechanism faces the problem of attention diffusion, in which the model may not focus on a certain character area. In this paper, we propose Gaussian Constrained Attention Network to deal with this problem. It is a 2D attention-based method integrated with a novel Gaussian Constrained Refinement Module, which predicts an additional Gaussian mask to refine the attention weights. Different from adopting an additional supervision on the attention weights simply, our proposed method introduces an explicit refinement. In this way, the attention weights will be more concentrated and the attention-based recognition network achieves better performance. The proposed Gaussian Constrained Refinement Module is flexible and can be applied to existing attention-based methods directly. The experiments on several benchmark datasets demonstrate the effectiveness of our proposed method. Our code has been available at https://github.com/Pay20Y/GCAN.

Motivation & Objective

  • To address the problem of attention diffusion in scene text recognition, where attention weights become diffuse and introduce noise into decoding.
  • To improve attention localization by explicitly refining raw attention maps using a learnable Gaussian mask instead of relying on indirect supervision.
  • To design a flexible module that can be easily integrated into existing 2D attention-based recognition frameworks.
  • To achieve better performance on long-text sequences by enhancing attention concentration and alignment.

Proposed method

  • The Gaussian Constrained Refinement Module (GCRM) predicts Gaussian parameters (mean and variance) from the RNN hidden state and a glimpse feature to generate a Gaussian mask.
  • The raw attention map is refined via element-wise multiplication with the predicted Gaussian mask, resulting in more concentrated attention weights.
  • The refined attention weights are used to generate a new, more accurate glimpse, which is fused with the original glimpse for character prediction.
  • The GCRM is plug-and-play and can be integrated into any 2D attention-based model, such as SAR, without architectural changes.
  • The method uses end-to-end training with standard cross-entropy loss and does not require additional supervision beyond standard recognition labels.
  • An ablation study compares GCRM with parameter estimation, showing that learned parameters outperform maximum likelihood estimation.

Experimental results

Research questions

  • RQ1Does explicit refinement of attention weights via a learnable Gaussian mask reduce attention diffusion in scene text recognition?
  • RQ2Can the proposed GCRM improve recognition accuracy without significantly increasing inference cost?
  • RQ3How does the GCRM perform compared to additional supervision on attention weights in terms of performance gain and robustness?
  • RQ4Does the method maintain or improve performance on long text sequences where attention mechanisms typically degrade?

Key findings

  • GCAN with GCRM achieves 94.4% accuracy on IIIT5K, a 1.4% absolute improvement over the baseline SAR and a 1.3% gain over SAR with attention supervision.
  • On SVT, GCAN reaches 90.1% accuracy, a 3.4% improvement over the baseline SAR and a 2.8% gain over SAR with attention supervision.
  • On SVTP, GCAN achieves 81.2% accuracy, a 2.1% improvement over the baseline and a 2.4% gain over the supervised SAR.
  • The method shows superior robustness on long sequences: error rates grow more slowly with increasing label length compared to baseline and supervised SAR.
  • The GCRM outperforms parameter estimation via maximum likelihood, indicating that learned Gaussian masks are more effective than estimated ones.
  • The speed cost is minimal: GCAN adds only 7.6ms during training and 8.9ms during inference on average, making it practical for real-world deployment.

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.