DocTTT: Test-Time Training for Handwritten Document Recognition Using Meta-Auxiliary Learning
Wenhao Gu, Li Gu, Ziqiang Wang, Ching Yee Suen, Yang Wang
TL;DR
DocTTT tackles handwritten document recognition by enabling test-time adaptation of the visual backbone through a self-supervised Masked Autoencoder loss, tailored per input to handle diverse handwriting and layouts. It combines model-agnostic meta-learning with a MAE auxiliary task, forming a bi-level optimization where inner updates adapt to each test instance and outer updates optimize overall HDR performance. The approach is built on a two-branch architecture sharing a backbone, with Phase 1 pre-training on synthetic data and Phase 2 meta-training with curriculum from synthetic to real data. Empirical results on READ2016, IAM, and RIMES demonstrate consistent gains over prior methods in both text and layout metrics, with ablations confirming the necessity of each component. Overall, DocTTT provides a practical, adaptable HDR solution that can quickly specialize to new documents without requiring extra annotations at test time.
Abstract
Despite recent significant advancements in Handwritten Document Recognition (HDR), the efficient and accurate recognition of text against complex backgrounds, diverse handwriting styles, and varying document layouts remains a practical challenge. Moreover, this issue is seldom addressed in academic research, particularly in scenarios with minimal annotated data available. In this paper, we introduce the DocTTT framework to address these challenges. The key innovation of our approach is that it uses test-time training to adapt the model to each specific input during testing. We propose a novel Meta-Auxiliary learning approach that combines Meta-learning and self-supervised Masked Autoencoder~(MAE). During testing, we adapt the visual representation parameters using a self-supervised MAE loss. During training, we learn the model parameters using a meta-learning framework, so that the model parameters are learned to adapt to a new input effectively. Experimental results show that our proposed method significantly outperforms existing state-of-the-art approaches on benchmark datasets.
