arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2009.10874cs.CVcs.AIcs.LG
收藏

Hamming OCR:一种用于场景文本识别的局部敏感哈希神经网络

Hamming OCR: A Locality Sensitive Hashing Neural Network for Scene Text Recognition

Ping An Property & Casualty Insurance(平安财产保险)

Bingcong Li, Xin Tang, Xianbiao Qi, Yihao Chen, Rong Xiao

摘要:

近年来,受Transformer的启发,基于自注意的场景文本识别方法取得了优异的性能。然而,我们发现,随着词典的增加,模型的规模迅速扩大。具体来说,softmax分类层和输出嵌入层的参数数量与词汇大小成正比。它阻碍了轻量级文本识别模型的发展,特别是适用于中文和多种语言。因此,我们提出了一个轻量级的场景文本识别模型命名为汉明OCR。在该模型中,提出了一种新的Hamming分类器,该分类器采用局部敏感哈希(LSH)算法对每个字符进行编码,以代替softmax回归,并直接使用生成的LSH码代替输出嵌入。我们也提出了一个简化的Transformer解码器,以减少参数的数量,通过去除前馈网络和使用跨层参数共享技术。与传统方法相比,分类层和嵌入层的参数个数与词汇量无关,在保证准确率的前提下,大大降低了存储量。实验结果表明,Hamming OCR在4个公共基准测试集和一个由SynthText合成的超过20,000个字符的中文文本数据集上取得了较好的效果。

英文摘要:

Recently, inspired by Transformer, self-attention-based scene text recognition approaches have achieved outstanding performance. However, we find that the size of model expands rapidly with the lexicon increasing. Specifically, the number of parameters for softmax classification layer and output embedding layer are proportional to the vocabulary size. It hinders the development of a lightweight text recognition model especially applied for Chinese and multiple languages. Thus, we propose a lightweight scene text recognition model named Hamming OCR. In this model, a novel Hamming classifier, which adopts locality sensitive hashing (LSH) algorithm to encode each character, is proposed to replace the softmax regression and the generated LSH code is directly employed to replace the output embedding. We also present a simplified transformer decoder to reduce the number of parameters by removing the feed-forward network and using cross-layer parameter sharing technique. Compared with traditional methods, the number of parameters in both classification and embedding layers is independent on the size of vocabulary, which significantly reduces the storage requirement without loss of accuracy. Experimental results on several datasets, including four public benchmaks and a Chinese text dataset synthesized by SynthText with more than 20,000 characters, shows that Hamming OCR achieves competitive results.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑