Regularizing CNN Transfer Learning With Randomised Regression

Yang Zhong, Atsuto Maki

Abstract

This paper introduces an adaptive framework for regularizing deep convolutional networks (CNNs) during transfer learning with limited target domain data. Unlike traditional approaches that use concrete auxiliary tasks, we propose Pseudo-task Regularization (PtR). PtR dynamically regularizes a network by regressing image representations to pseudo-regression targets during fine-tuning. This method requires no additional data or domain expertise. Our experiments demonstrate that PtR provides a robust alternative for network regularization, achieving classification accuracy improvements that meet or exceed current state-of-the-art methods by balancing gradient norms online.

Introduction

Deep Convolutional Neural Networks (CNNs) are highly effective but require vast amounts of data. When adapting a pre-trained model to a small, specialized dataset, such as specific bird species or flower types, the model often overfits, memorizing the training samples rather than learning generalizable features. Existing solutions often employ multi-task learning with auxiliary "helper" tasks. However, these tasks typically demand extra data, complex manual design, or significant memory overhead. This research explores whether an auxiliary task without a concrete goal can serve as an effective regularizer, simplifying the transfer learning process.

Methods: Pseudo-task Regularization (PtR)

The proposed Pseudo-task Regularization (PtR) treats regularization as a controlled "distraction" during optimization. The architecture integrates a regression head alongside the standard classification head.

The PtR architecture incorporates a pseudo-task regression loss alongside the standard softmax cross-entropy loss to regularize the CNN during fine-tuning.

The core components of PtR include:

  1. The Pseudo-Task: For every input image, the network attempts to regress its internal feature representation to a randomly generated, constantly changing target vector. Because these targets are random, the network never "solves" the task, injecting persistent noise into the gradient descent process.
  2. Dynamic Gradient Balancing: To prevent the distraction from overwhelming the primary task, PtR calculates the gradient norms of both the classification and pseudo-tasks on-the-fly. It automatically adjusts the regularization weight ($w$) to maintain an optimal balance.
  3. Warm-up Phase: The pseudo-task is only activated once the main classification task reaches a stability threshold ($T$), ensuring the model establishes a baseline understanding of the target data before regularization begins.

Experimental Results

The researchers evaluated PtR across several challenging datasets, including CUB200-2011 (birds), Flower102, and MIT67 (indoor scenes). PtR consistently outperformed standard fine-tuning and matched complex state-of-the-art methods like Learning without Forgetting (LwF).

Qualitative comparison between standard fine-tuning (FT) and Pseudo-task Regularization (PtR). PtR correctly identifies the Myrtle Warbler, whereas standard fine-tuning misclassifies it as a Pine Warbler.

Key findings include:

  • Accuracy Gains: On the CUB200 dataset, PtR improved VGG-16 accuracy by 3.0% and ResNet-50 accuracy by 1.6%.
  • Error Reduction: The Flower102 dataset saw a 16.23% reduction in error rate compared to the baseline.
  • Efficiency: PtR requires no extra data or annotations, making it highly practical for real-world applications where data is scarce.

Discussion and Conclusion

PtR demonstrates that "meaningless" tasks can provide meaningful regularization. By providing an alternative gradient path, PtR prevents weights from becoming overly specialized to small datasets. From an optimization perspective, the random noise helps Stochastic Gradient Descent (SGD) escape sharp local minima in favor of flatter, more generalizable ones.

While PtR shows significant promise, future work could explore its impact on model calibration and refine hyperparameter tuning for diverse architectures. Overall, PtR offers a simple, data-efficient, and effective strategy for robust transfer learning.

Summary updated

BibTeX
@inproceedings{zhong2020regularizing,
  author = {Yang Zhong and Atsuto Maki},
  title = {{Regularizing CNN Transfer Learning With Randomised Regression}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2020},
  url = {https://openreview.net/forum?id=SiDgpQTo3W},
}
Figure