arXiv:2610.27309cs.CVOct 2026

Manuscript Offprint

arXiv:2610.27309

What Not to Erase: Saliency-Constrained Augmentation for Low-Resource Handwritten Character Recognition

Paraskevi Platanou, John Pavlopoulos

Abstract

Optical Character Recognition (OCR) and handwritten character recognition (HCR) in low-resource historical material collections often rely on data augmentation, yet augmentation strategies are typically evaluated almost exclusively through predictive accuracy. This leaves open whether a model's improved performance is accompanied by saliency stability. This question is particularly important in low-resource historical HCR, where recognition is performed on variable and partially degraded letterforms and two models with similar predictive performance may differ substantially in how consistently their saliency patterns respond to such variation. We therefore study saliency-guided augmentation as an explanation-aware strategy for low-resource HCR. In this work, we study saliency-guided augmentation as an explanation-aware strategy for low-resource HCR. Rather than treating saliency maps only as post-hoc interpretations, we use them to define augmentation variants that perturb, preserve, or constrain visually informative regions of character images. We compare classical document-style transformations, random lacunae, and several saliency-constrained lacuna variants across multiple low-resource handwritten datasets and ImageNet-pretrained model families, including ResNet, Vision Transformers, and ConvNeXt-style architectures. Our experiments examine how different augmentation variants affect both recognition performance and explanation stability, showing that similar accuracy scores may correspond to substantially different attribution behavior. The results support a broader view of explainability: saliency can serve not only as a diagnostic tool after training, but also as a design and evaluation principle for robust augmentation in low-resource optical recognition. To evaluate the effect of augmentation beyond accuracy, we introduce the Explainability Consistency Index (ECI), a character-level metric that quantifies the stability of saliency patterns under controlled visual perturbations. We find that saliency-constrained augmentation can improve recognition over classical augmentation, but no single saliency strategy is consistently best. The preferred form of the constraint varies with both architecture and corpus, indicating that saliency is better treated as a mechanism for controlling augmentation than as a fixed augmentation strategy. In some settings, saliency-constrained training improves explanation consistency even when predictive performance is similar. This shows that predictive metrics alone can obscure differences in model sensitivity under perturbation, motivating explanation consistency as a complementary evaluation dimension.

Introduction

Handwritten text recognition (HTR) in historical material collections remains a challenging problem for machine learning. Historical scripts exhibit substantial variation in writing style, material condition, ink density, stroke degradation, and visual fragmentation. At the same time, annotated training data are often scarce, since character- or line-level annotation requires expert knowledge and is expensive to produce. In such low-resource scenarios, data augmentation is a central strategy for improving generalization by artificially increasing the visual variability available during training.

Most augmentation strategies, however, are evaluated primarily through predictive performance metrics such as accuracy, macro-F1, or character error rate (CER). While these metrics are essential, they provide limited information about how a model reaches its decisions. This limitation is particularly important in low-resource optical recognition, where two models may obtain similar test scores while relying on different visual evidence. A model may perform well by using local features, background artifacts, or dataset-specific features rather than stable and morphologically meaningful features of the character shape.

In parallel, explainability methods for computer vision, including saliency maps, LIME, and Grad-CAM, have become widely used for inspecting model decisions. Yet such methods are most often applied post hoc, that is, they are used after training to visualize which input regions most influence a model's prediction, but they are rarely integrated into the design or evaluation of augmentation strategies themselves. This raises two questions: can explanation signals be used not only to interpret models, but also to guide and evaluate the augmentations used to train them, and can explanation stability provide information about trained models that recognition metrics alone do not reveal?

We address this question in the scenario of low-resource handwritten character recognition (HCR). Character-level recognition provides a controlled example for studying how augmentation affects saliency stability before moving to full HTR pipelines. We propose an explainability-aware augmentation framework that compares classical document-style transformations, random lacunae, and several saliency-constrained lacuna variants. Rather than treating saliency as a simple target for erasure, we investigate how saliency can constrain where degradation is allowed to occur, including variants that perturb low-saliency regions, high-saliency regions, or protect high-saliency regions while applying foreground degradation.

To evaluate augmentation beyond predictive accuracy, we introduce the Explainability Consistency Index (ECI), a character-level metric that measures the stability of the visual evidence used by the model under controlled visual perturbations. ECI allows us to compare augmentation strategies not only by their recognition performance, but also by the consistency of the visual evidence used by the model. This is especially important in low-resource historical scripts, where robust recognition should depend on stable character morphology rather than accidental visual features.

We evaluate the proposed framework on two primary low-resource Greek character datasets and three pretrained model families: ResNet18, ViT-B/16, and ConvNeXt-Tiny. The primary datasets cover Hellenistic papyrological writing and Byzantine Greek manuscript writing, providing distinct material and visual domains. An extended ten-seed evaluation additionally introduces a Latin manuscript corpus as a cross-language robustness setting. The three-seed primary experiments show that saliency-constrained conditions can improve on classical augmentation, while the extended evaluation demonstrates that the magnitude and optimal form of this benefit depend on architecture and corpus. We therefore frame saliency not as a single universally best augmentation rule, but as a constraint space for controlling synthetic degradation in low-resource HCR.

Our contributions are summarized as follows:

• We propose an explainability-aware augmentation framework for low-resource HCR, systematically comparing classical augmentation, random foreground lacunae, and saliency-constrained degradation policies that target, mix, or protect model-sensitive regions.

• We introduce the Explainability Consistency Index (ECI), combining top-region overlap and saliency correlation to characterize the stability of attribution patterns under controlled visual perturbations.

• We evaluate the framework across distinct historical writing domains and three pretrained architecture families, complemented by an extended ten-seed cross-language analysis that reveals substantial architecture- and corpus-dependence in the effect of saliency-guided augmentation.

References (29)