Abstract
Feature-based transfer is one of the most effective methodologies for transfer learning. Existing studies usually assume that the learned new feature representation is domain-invariant, and thus train a transfer model $\mathcal{M}$ on the source domain. In this paper, we consider a more realistic scenario where the new feature representation is suboptimal and small divergence still exists across domains. We propose a new transfer model called Randomized Transferable Machine (RTM) to handle such small divergence of domains. Specifically, we work on the new source and target data learned from existing feature-based transfer methods. The key idea is to enlarge source training data populations by randomly corrupting the new source data using some noises, and then train a transfer model $\widetilde{\mathcal{M}}$ that performs well on all the corrupted source data populations. In principle, the more corruptions are made, the higher the probability of the new target data can be covered by the constructed source data populations, and thus better transfer performance can be achieved by $\widetilde{\mathcal{M}}$. An ideal case is with infinite corruptions, which however is infeasible in reality. We develop a marginalized solution that enables to train an $\widetilde{\mathcal{M}}$ without conducting any corruption but equivalent to be trained using infinite source noisy data populations. We further propose two instantiations of $\widetilde{\mathcal{M}}$, which theoretically show the transfer superiority over the conventional transfer model $\mathcal{M}$. More importantly, both instantiations have closed-form solutions, leading to a fast and efficient training process. Experiments on various real-world transfer tasks show that RTM is a promising transfer model.
Introduction
Transfer learning (TL) has become a cornerstone of modern machine learning, enabling models to leverage knowledge from a source domain to improve performance in a related target domain. A prevalent strategy in feature-based transfer learning is to learn a new feature representation that is "domain-invariant," effectively aligning the source and target distributions. Once aligned, a standard classifier—the transfer model—is trained on the transformed source data.
However, this approach relies on the often-unrealistic assumption that perfect domain invariance can be achieved. In practice, lingering discrepancies between domains persist, leading to suboptimal performance when the model is deployed on target data. This paper addresses the "suboptimal invariance" problem by proposing a model that is inherently robust to these domain shifts.
The Randomized Transferable Machine (RTM)
The Randomized Transferable Machine (RTM) shifts the focus from perfect feature alignment to model robustness. Instead of training a model solely on the source data, RTM aims to perform well across a vast population of randomly corrupted versions of that data. By introducing noise (specifically dropout noise) during training, the model's decision boundary is forced to become more flexible, increasing the likelihood that it will encompass the variations present in the target domain.
A primary hurdle for such an approach is the computational cost of training on massive amounts of augmented data. RTM overcomes this through a "marginalization trick." Rather than explicitly generating noisy samples, the authors derive a closed-form solution that minimizes the expected loss over an infinite noise distribution. This allows RTM to achieve the benefits of infinite data augmentation with the speed of a standard linear system solver. The paper introduces two specific instantiations: $RTM^d_{lr}$ using Linear Regression and $RTM^d_{kr}$ using Kernel Ridge Regression.
Theoretical and Practical Insights
RTM provides several key advantages over traditional transfer models:
- Robustness over Perfection: It acknowledges that feature alignment is rarely perfect and builds a model that can handle the remaining "nuances."
- Implicit Regularization: The marginalization process acts as a form of adaptive regularization, automatically applying Frobenius and low-rank constraints based on the data's properties.
- Efficiency: The closed-form solution enables training in minutes on standard hardware, making it significantly faster than iterative deep learning methods.
- Versatility: RTM is not a replacement for existing feature-learning methods; it is an upgrade for the final step. It can be applied on top of various methods like TCA, GFK, JDA, or deep features from ResNet.
Experimental Evaluation
The authors evaluated RTM across a wide range of benchmarks, including synthetic data, subspace-based transfer (e.g., Office-Caltech10, Amazon Reviews), and deep-feature transfer (e.g., Office-31, Office-Home).
The results demonstrate that RTM consistently outperforms standard transfer models. In subspace-based methods, RTM provided an average accuracy boost of 3.69%, with gains reaching up to 11.39% in some tasks. When applied to deep features from ResNet-50, the improvement was even more pronounced, averaging 7.55%. Furthermore, analysis using Normalized Discounted Cumulative Gain (NDCG) confirmed that RTM's learned weights are significantly closer to the ideal target weights than those of standard models.
Conclusion
The Randomized Transferable Machine offers a powerful and efficient way to enhance transfer learning by accounting for suboptimal feature alignment. While it requires tuning a corruption probability hyperparameter, its speed and consistent performance gains make it a promising tool for real-world transfer tasks. Future work may explore different noise distributions and the direct integration of RTM loss into end-to-end deep learning architectures.
Summary updated