Manuscript Offprint

arXiv:2609.35473

Handwritten Text Recognition Lives in the High-Pixel Variance Subspace

Carlos Garrido-Munoz, Jorge Calvo-Zaragoza

Abstract

In self-supervised pretraining for Handwritten Text Recognition (HTR), pixel reconstruction methods tend to outperform contrastive ones, a pattern that sits awkwardly with recent evidence that pixel reconstruction yields uninformative features for natural-image classification. We argue this discrepancy is not an accident but a consequence of how HTR signal is distributed in pixel space. By probing the input distribution directly, we show that HTR's discriminative content is concentrated in the high-variance pixel subspace and is essentially absent from the low-variance one, the inverse of the structure observed for image classification. Under this view, the right SSL family becomes predictable: objectives that preserve high-variance pixel content should transfer best. We test this prediction across six SSL methods spanning three families (pixel-grounded MIM, JEPA-style, and contrastive image–image and image–text), under matched encoder, data, and evaluation protocols on six handwriting benchmarks across five languages. In the full-label setting, pixel-grounded SSL produces the lowest CER on every benchmark and every probe, exposes per-position character information that other families recover only via the readout, and is the only family that benefits from real-data pretraining. Pixel-grounded representations are also more label-efficient. A geometric property of the encoder, its alignment with the high-variance pixel subspace, predicts CER within every SSL method we test. With a pretrained LLM decoder, a frozen pixel-grounded encoder is already competitive with fully fine-tuned supervised baselines, and full fine-tuning beats them on the mean and ranks first or second on every benchmark. These results challenge the prevailing view that pixel reconstruction wastes capacity on irrelevant detail: whether reconstruction is wasted depends on where the discriminative signal lives in the input.

1 Introduction

Handwritten Text Recognition (HTR) aims to transcribe handwritten content into machine-readable text, supporting applications from the digitization of historical archives to form automation and document retrieval. Despite notable advances in recent years [26], performance still hinges on the availability of large quantities of labeled real handwriting, which are expensive to collect and often unavailable for the long tail of historical, regional, and low-resource scripts [25, 49]. The vast variability in human handwriting such as writing style, ligatures, slant, ink, paper, and degradation means that systems trained on one writer or one historical period generalize poorly to others, leaving the field perpetually data-hungry [26]. Synthetic data is the natural response to this shortage: rendered from a pool of fonts at essentially zero annotation cost, it can be produced in arbitrary quantities and made multilingual by construction. Yet synthetic handwriting fails to reproduce the subtle nuances of real handwriting, and models trained only on synthetic data exhibit a pronounced synthetic-to-real gap that does not close without seeing real samples. This gap is precisely the regime in which

40th Conference on Neural Information Processing Systems (NeurIPS 2026).

representation quality matters most, since no decoder, language prior, or test-time augmentation can recover information the encoder did not learn to expose.

Self-supervised pretraining (SSL) [31, 37, 36, 10] is the standard tool for closing this kind of gap, with three families dominating the literature: (1) reconstruction-based methods, also known as Masked Image Modeling (MIM), which reconstruct masked content in pixel space [31, 59]; (2) contrastive methods, which optimize an instance-discrimination loss in either an image–image [30, 16, 17] or an image–text [52, 62] setting; and (3) embedding-predictive architectures, of which Joint-Embedding Predictive Architectures (JEPA) [36, 6] are the canonical instance, predicting the representations of masked regions in a learned latent space.

In HTR, the existing SSL literature does not provide a clean answer to the question of which family is best, nor a principled understanding of why [49]. Comparisons across studies are difficult to interpret because pretraining data, evaluation protocols, and probe choices vary substantially across methods [49, 65, 3]. This question matters because the broader self-supervised literature has converged on the intuition that pixel-space reconstruction does not yield representations useful for perception [9]: the underlying assumption is that semantic tasks depend on high-level abstractions, and that recovering low-level pixel detail is incidental to that goal: that capacity spent on such detail is capacity wasted. This view has driven the field toward JEPA-style methods [36, 6, 12, 7], which by construction predict in a learned latent space and discard pixel-level reconstruction altogether. In this paper, we ask whether the same assumption holds for transcription tasks, where the unit of recognition is a character rather than an object category. We use HTR as a testbed and, to do so rigorously, adapt JEPA methods to handwriting for the first time. Our central argument, however, is sharper: HTR is structurally different from semantic understanding tasks, and the signal that determines the transcription lives, paradoxically, in exactly the low-level detail that JEPA discards. The very content the field's dominant philosophy treats as noise is, on HTR, the signal itself. We show that pixel-grounded methods outperform JEPA-style and contrastive ones across all six benchmarks and every SSL protocol we test, and we explain why through a measurable property of the encoder: alignment with the high-variance pixel subspace, which correlates strongly with downstream CER.

References (63)