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

学习对齐:解决手写文本识别中的字符频率分布偏移问题

Learning to Align: Addressing Character Frequency Distribution Shifts in Handwritten Text Recognition

Stony Brook University(石英溪大学);Archimedes, Athena Research Center(阿基米德研究所);Athens University of Economics and Business(雅典经济与商业大学)

Panagiotis Kaliosis, John Pavlopoulos

AI总结:

本文提出一种基于Wasserstein距离对齐字符频率分布的新型损失函数,以缓解手写文本识别中的分布偏移问题,并可在推理时作为评分函数改进现有模型,无需重新训练。

摘要:

手写文本识别旨在将视觉输入转换为机器可读文本,由于手写体具有不断演变且依赖语境的特点,该任务仍然具有挑战性。字符集会随时间变化,字符频率分布在历史时期或地区之间发生偏移,这常常导致在广泛、异构语料库上训练的模型在特定子集上表现不佳。为了解决这一问题,我们提出了一种新的损失函数,该函数结合了预测文本的字符频率分布与从训练数据中经验推导出的目标分布之间的Wasserstein距离。通过惩罚与期望分布的偏离,我们的方法在时间性和语境性的数据集内偏移下提高了准确性和鲁棒性。此外,我们证明字符分布对齐还可以在推理时改进现有模型,而无需重新训练,方法是将其作为引导式解码方案中的评分函数进行集成。在多个数据集和架构上的实验结果证实了我们的方法在提升泛化能力和性能方面的有效性。我们在https://github.com/pkaliosis/fada开源了代码。

英文摘要:

Handwritten text recognition aims to convert visual input into machine-readable text, and it remains challenging due to the evolving and context-dependent nature of handwriting. Character sets change over time, and character frequency distributions shift across historical periods or regions, often causing models trained on broad, heterogeneous corpora to underperform on specific subsets. To tackle this, we propose a novel loss function that incorporates the Wasserstein distance between the character frequency distribution of the predicted text and a target distribution empirically derived from training data. By penalizing divergence from expected distributions, our approach enhances both accuracy and robustness under temporal and contextual intra-dataset shifts. Furthermore, we demonstrate that character distribution alignment can also improve existing models at inference time without requiring retraining by integrating it as a scoring function in a guided decoding scheme. Experimental results across multiple datasets and architectures confirm the effectiveness of our method in boosting generalization and performance. We open source our code at https://github.com/pkaliosis/fada.

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

↑