Align, Minimize and Diversify: A Source-Free Unsupervised Domain Adaptation Method for Handwritten Text Recognition
María Alfaro-Contreras, Jorge Calvo-Zaragoza
TL;DR
This work tackles handwritten text recognition under domain shift without access to source data by introducing Align, Minimize and Diversify (AMD), a three-term loss that leverages BN statistics for distribution alignment, drives confident frame-wise predictions, and preserves diversity across target sequences. A two-stage process pre-trains on a source dataset and then adapts using only unlabeled target images, with final loss $\,\mathcal{L} = w_a L_a + w_m L_m + w_d L_d$ guiding the optimization. Evaluations on IAM, GW, ESPOSALLES and synthetic data show AMD is competitive with DA methods that rely on source data, particularly excelling in OOD conditions and synthetic setups; limitations include reliance on BN for alignment and absence of language-model adaptation. The results highlight AMD as a practical SFUDA approach for HTR, while pointing to future work on language modeling integration and BN-independent alignment to handle more complex, multi-writer datasets.
Abstract
This paper serves to introduce the Align, Minimize and Diversify (AMD) method, a Source-Free Unsupervised Domain Adaptation approach for Handwritten Text Recognition (HTR). This framework decouples the adaptation process from the source data, thus not only sidestepping the resource-intensive retraining process but also making it possible to leverage the wealth of pre-trained knowledge encoded in modern Deep Learning architectures. Our method explicitly eliminates the need to revisit the source data during adaptation by incorporating three distinct regularization terms: the Align term, which reduces the feature distribution discrepancy between source and target data, ensuring the transferability of the pre-trained representation; the Minimize term, which encourages the model to make assertive predictions, pushing the outputs towards one-hot-like distributions in order to minimize prediction uncertainty, and finally, the Diversify term, which safeguards against the degeneracy in predictions by promoting varied and distinctive sequences throughout the target data, preventing informational collapse. Experimental results from several benchmarks demonstrated the effectiveness and robustness of AMD, showing it to be competitive and often outperforming DA methods in HTR.
