arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2412.18524cs.CV
收藏

HTR-JAND:基于联合注意力网络与知识蒸馏的手写文本识别

HTR-JAND: Handwritten Text Recognition with Joint Attention Network and Knowledge Distillation

École de Technologie Supérieure (ÉTS), University of Quebec(魁北克大学蒙特利尔分校工程学院(ÉTS))

Mohammed Hamdan, Abderrahmane Rahiche, Mohamed Cheriet

AI总结:

本文提出HTR-JAND框架,结合FullGatedConv2d、Combined Attention与知识蒸馏,在IAM等数据集上实现SOTA的CER,并将模型参数减少48%。

摘要:

尽管深度学习取得了重大进展,但当前的手写文本识别(HTR)系统在处理历史文档时仍面临固有复杂性的挑战,包括多样的书写风格、退化的文本质量,以及跨多种语言和时期的计算效率要求。本文提出了HTR-JAND(HTR-JAND: Handwritten Text Recognition with Joint Attention Network and Knowledge Distillation),这是一个结合了先进特征提取与知识蒸馏的高效HTR框架。我们的架构包含三个关键组件:(1)集成FullGatedConv2d层与Squeeze-and-Excitation块的CNN架构,用于自适应特征提取;(2)融合Multi-Head Self-Attention与Proxima Attention的Combined Attention机制,用于鲁棒的序列建模;(3)Knowledge Distillation框架,通过基于课程的训练在保持准确率的同时实现高效的模型压缩。HTR-JAND框架实施了一种多阶段训练方法,结合了课程学习、合成数据生成和多任务学习,以实现跨数据集的知识转移。我们通过上下文感知的T5后处理来提升识别准确率,这对历史文档尤为有效。综合评估表明了HTR-JAND的有效性,在IAM、RIMES和Bentham数据集上分别实现了1.23%、1.02%和2.02%的最先进字符错误率(CER)。我们的学生模型实现了48%的参数减少(0.75M对1.5M参数),同时通过高效的知识转移保持了有竞争力的性能。源代码和预训练模型可在Github获取。

英文摘要:

Despite significant advances in deep learning, current Handwritten Text Recognition (HTR) systems struggle with the inherent complexity of historical documents, including diverse writing styles, degraded text quality, and computational efficiency requirements across multiple languages and time periods. This paper introduces HTR-JAND (HTR-JAND: Handwritten Text Recognition with Joint Attention Network and Knowledge Distillation), an efficient HTR framework that combines advanced feature extraction with knowledge distillation. Our architecture incorporates three key components: (1) a CNN architecture integrating FullGatedConv2d layers with Squeeze-and-Excitation blocks for adaptive feature extraction, (2) a Combined Attention mechanism fusing Multi-Head Self-Attention with Proxima Attention for robust sequence modeling, and (3) a Knowledge Distillation framework enabling efficient model compression while preserving accuracy through curriculum-based training. The HTR-JAND framework implements a multi-stage training approach combining curriculum learning, synthetic data generation, and multi-task learning for cross-dataset knowledge transfer. We enhance recognition accuracy through context-aware T5 post-processing, particularly effective for historical documents. Comprehensive evaluations demonstrate HTR-JAND's effectiveness, achieving state-of-the-art Character Error Rates (CER) of 1.23\%, 1.02\%, and 2.02\% on IAM, RIMES, and Bentham datasets respectively. Our Student model achieves a 48\% parameter reduction (0.75M versus 1.5M parameters) while maintaining competitive performance through efficient knowledge transfer. Source code and pre-trained models are available at \href{https://github.com/DocumentRecognitionModels/HTR-JAND}{Github}.

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

↑