arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2606.24302cs.CVcs.DL
收藏

TrOCR 用于中世纪手写文本识别:基于跨数据集验证的系统消融研究

TrOCR for Medieval HTR: A Systematic Ablation Study with Cross-Dataset Validation

GSSI – Gran Sasso Science Institute(格兰萨索科学研究所)

Sachin Sharma, Michele Flammini, Federico Simonetta

AI总结:

研究通过对比度归一化、数据增强和层冻结三种可控微调策略,提升TrOCR在中世纪手稿上的识别精度,在13世纪意大利手稿上达到8.03%字符错误率,并验证了跨数据集的鲁棒性。

摘要:

将基于Transformer的手写文本识别(HTR)模型微调应用于中世纪手稿具有挑战性,因为这些模型在现代文本上预训练,必须适应截然不同的视觉领域。本文研究了三种可控微调选择(对比度归一化、数据增强和层冻结)在将TrOCR适配到小型历史数据集时如何影响识别精度。我们在13世纪意大利手稿(I-CT 91 "Cortonese")上进行受控实验,并在公共READ-16基准上重复相同的实验网格作为鲁棒性证据。在Cortonese上,我们的最佳配置实现了8.03%的字符错误率(CER)。对13种配置的统计比较表明,冻结最多三个编码器层或六个解码器层不会显著损害精度,而更深的冻结会逐渐产生不利影响。移除对比度归一化(CLAHE)得到7.84%的CER,与领域特化基线相当,表明强优化可以减少对图像预处理的依赖。在READ-16上的跨数据集验证表明,解码器冻结阈值比编码器阈值更具鲁棒性,而组合冻结策略需要数据集特定的重新验证。最后,我们使用Grad-CAM梯度归因和解码器交叉注意力图来诊断消融揭示的错误模式和失败类型。源代码见https://this URL。

英文摘要:

Fine-tuning transformer-based handwritten text recognition (HTR) models on medieval manuscripts is challenging because these models are pre-trained on modern text and must adapt to a very different visual domain. This paper studies how three controllable fine-tuning choices (contrast normalization, data augmentation, and layer freezing) affect recognition accuracy when adapting TrOCR to small historical datasets. We run controlled experiments on a 13th-century Italian manuscript (I-CT 91 "Cortonese") and replicate the same experimental grid on the public READ-16 benchmark as robustness evidence. On Cortonese, our best configuration achieves 8.03% character error rate (CER). Statistical comparisons across 13 configurations show that freezing up to three encoder layers or six decoder layers does not significantly harm accuracy, while deeper freezing becomes progressively detrimental. Removing contrast normalization (CLAHE) yields 7.84% CER, comparable to a domain-specialized baseline, suggesting strong optimization can reduce reliance on image preprocessing. Cross-dataset validation on READ-16 shows that decoder freezing thresholds transfer more robustly than encoder thresholds, and combined freezing strategies require dataset-specific re-validation. Finally, we use Grad-CAM gradient attributions and decoder cross-attention maps to diagnose error patterns and failure modes revealed by the ablations. Source code is available at https://github.com/LaudareProject/TrOCR-analysis

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

↑