NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Inter- and Intra-domain Knowledge Transfer for Related Tasks in Deep Character Recognition

Nishai Kooverjee, Steven James, Terence L. van Zyl2020

Abstract

Pre-training a deep neural network on the ImageNet dataset is a common practice for training deep learning models, and generally yields improved performance and faster training times. The technique of pre-training on one task and then retraining on a new one is called transfer learning. In this paper we analyse the effectiveness of using deep transfer learning for character recognition tasks. We perform three sets of experiments with varying levels of similarity between source and target tasks to investigate the behaviour of different types of knowledge transfer. We transfer both parameters and features and analyse their behaviour. Our results demonstrate that no significant advantage is gained by using a transfer learning approach over a traditional machine learning approach for our character recognition tasks. This suggests that using transfer learning does not necessarily presuppose a better performing model in all cases.

Introduction

While transfer learning is often treated as a "default" strategy for boosting deep learning performance, this research reveals it isn't a universal silver bullet. In the domain of character recognition, the authors found that pre-training provides almost no significant advantage over training from scratch, and in some cases, transferring "frozen" features actually cripples the model's ability to learn.

In the deep learning world, the standard operating procedure is to take a model pre-trained on ImageNet and fine-tune it for a specific task. This works well for complex natural images because the model has already learned to recognize edges, textures, and shapes. However, this paper asks a critical question: Does this intuition hold up for simpler, more specialized domains like character recognition? If you want to recognize handwritten letters, does it actually help to start with a model that already knows handwritten digits? The study explores the nuances of inter-domain (different data, same task) and intra-domain (related tasks within the same field) knowledge transfer.

Methods

The researchers employed a ResNet-18 architecture and compared three distinct training strategies:

  1. Control: Training from scratch with random weight initialization.
  2. Frozen-weight Transfer: Using a pre-trained model as a fixed feature extractor and only training the final classification layer.
  3. Fine-tuned Transfer: Starting with pre-trained weights but allowing all weights in the network to be updated during training on the new task.

Datasets

The study utilized two staples of the computer vision world:

  • MNIST: The classic dataset of 70,000 handwritten digits (0-9), sized at 28x28 pixels (upsampled to 128x128 for these experiments).
  • NIST Special Database 19: A much larger and more complex dataset containing handwritten digits, as well as uppercase and lowercase Latin characters.

Key Results and Discussion

The core finding is that the "head start" provided by transfer learning is negligible in this domain. While fine-tuning offered a slight speedup in convergence—reaching peak performance in about 2 epochs—the final accuracy was virtually identical to training from scratch.

F1-scores for MNIST to NIST Digits transfer

As shown in the figure above, for the Digits to Digits task, both fine-tuned and control models converged to a mean F1-score of approximately 0.98. Transfer learning provided a better starting point for the first two epochs, but no long-term benefit.

In more complex scenarios, such as transferring from NIST Digits to NIST Characters, the results were even more striking.

F1-scores for NIST Digits to NIST Characters transfer

Here, both the control and fine-tuned models reached a peak F1-score of just above 0.68. The fine-tuned model showed less variance in early training, but again, no superior final performance.

The Failure of Frozen Weights

Across all experiments, Frozen-weight Transfer performed significantly worse. This suggests that the "general" features learned in early layers of a character recognizer are too specific to the source task to be useful as a static foundation for a new task. For example, features learned on simple digits are not "complex" enough to distinguish between the 52 classes of uppercase and lowercase letters. In the frozen-weight experiments, the model consistently failed on lowercase letters like "c", "o", and "s", likely because it was trying to use features optimized for their uppercase counterparts without the ability to "tweak" its understanding of scale or subtle curvature.

Conclusion and Future Work

The authors acknowledge that these findings might be specific to character recognition. Characters are inherently lower-dimensional and less complex than the natural images found in ImageNet.

Future research could investigate:

  • Downscaling vs. Upsampling: Testing if downscaling NIST digits instead of upsampling MNIST changes frozen-weight performance.
  • Architecture Depth: Exploring whether deeper or shallower architectures change the "transferability" of these specific features.
  • Negative Transfer: Further quantifying when transferring knowledge actually hurts the model, as hinted at in the NIST Digits → NIST Characters experiment where fine-tuning initially performed worse than random initialization.

Summary updated

BibTeX
@misc{kooverjee2020inter,
  author = {Nishai Kooverjee and Steven James and Terence L. van Zyl},
  title = {{Inter- and Intra-domain Knowledge Transfer for Related Tasks in Deep Character Recognition}},
  year = {2020},
  eprint = {2001.00448},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2001.00448},
}
Figure