Handwritten Text Recognition (HTR) remains a challenging problem to date, largely due to the varying writing styles that exist amongst us. Prior works however generally operate with the assumption that there is a limited number of styles, most of which have already been captured by existing datasets. In this paper, we take a completely different perspective -- we work on the assumption that there is always a new style that is drastically different, and that we will only have very limited data during testing to perform adaptation. This results in a commercially viable solution -- the model has the best shot at adaptation being exposed to the new style, and the few samples nature makes it practical to implement. We achieve this via a novel meta-learning framework which exploits additional new-writer data through a support set, and outputs a writer-adapted model via single gradient step update, all during inference. We discover and leverage on the important insight that there exists few key characters per writer that exhibit relatively larger style discrepancies. For that, we additionally propose to meta-learn instance specific weights for a character-wise cross-entropy loss, which is specifically designed to work with the sequential nature of text data. Our writer-adaptive MetaHTR framework can be easily implemented on the top of most state-of-the-art HTR models. Experiments show an average performance gain of 5-7% can be obtained by observing very few new style data. We further demonstrate via a set of ablative studies the advantage of our meta design when compared with alternative adaption mechanisms.
翻译:手写文本识别(HTR) 至今仍是一个具有挑战性的问题,这在很大程度上是由于我们之间存在不同的写作风格。 先前的作品通常都假设有数量有限的风格, 大部分已经被现有的数据集所捕捉。 在本文中, 我们从完全不同的角度看 -- 我们的假设是, 总是有完全不同的新风格, 测试时我们只有非常有限的数据才能进行适应。 这在商业上是可行的解决方案中的结果 -- 模型在适应新风格方面拥有最佳机会, 少数样本的性质使得它可以实际执行。 我们通过一个新型的元学习框架来实现这一目标, 该框架通过支持集来利用更多的新书写数据, 并且输出一个通过单一梯度更新来适应的作者模式。 我们发现并运用了这样一个重要的认识,即每个作家在测试中都很少显示较大的风格差异。 我们还可以向元- 学习实例中少一些关于跨类型损失的具体重量, 我们专门设计了一个新版本的元- 模式, 用来通过最简单的设计模型来比较最简单的设计性能性能。 我们的实验性模型可以展示一个最高级的模型。