Hypothesis Transfer Learning via Transformation Functions

Simon S. Du, Jayanth Koushik, Aarti Singh, Barnabás Póczos · DOI

Abstract

We consider the Hypothesis Transfer Learning (HTL) problem where one incorporates a hypothesis trained on the source domain into the learning procedure of the target domain. Existing theoretical analysis either only studies specific algorithms or only presents upper bounds on the generalization error but not on the excess risk. In this paper, we propose a unified algorithm-dependent framework for HTL through a novel notion of transformation function, which characterizes the relation between the source and the target domains. We conduct a general risk analysis of this framework and in particular, we show for the first time, if two domains are related, HTL enjoys faster convergence rates of excess risks for Kernel Smoothing and Kernel Ridge Regression than those of the classical non-transfer learning settings. Experiments on real world data demonstrate the effectiveness of our framework.

Introduction

In many machine learning applications, acquiring sufficient labeled data for a specific target task is prohibitively expensive or time-consuming. However, abundant data may exist for a related source task. Hypothesis Transfer Learning (HTL) aims to leverage a pre-trained source hypothesis to improve learning on the target domain. While intuitively appealing, the theoretical foundations of HTL—specifically regarding why and when it provides a statistical advantage—have remained underdeveloped. This paper introduces a unified framework using "transformation functions" to bridge this gap, providing the first theoretical proof that HTL can achieve faster convergence rates for excess risk than standard supervised learning.

The Transformation Function Framework

The core of the proposed framework is the Transformation Function ($G$). Instead of learning the target function $f^{ta}$ from scratch, we model it as a transformation of the source function $f^{so}$:

$$f^{ta}(x) = G(f^{so}(x), w_G(x))$$

where $w_G(x)$ is an auxiliary function representing the "correction" or relationship between the two domains.

Conceptual illustration of source and target functions and their respective data points.

The learning process follows a three-step meta-algorithm:

  1. Source Training: Train a hypothesis $\hat{f}^{so}$ using the large source dataset.
  2. Auxiliary Learning: Use the limited target dataset to estimate the auxiliary function $\hat{w}_G$. This effectively learns the relationship between the tasks rather than the task itself.
  3. Synthesis: Combine the source hypothesis and the estimated relationship to form the final target model: $\hat{f}^{ta}(x) = G(\hat{f}^{so}(x), \hat{w}_G(x))$.

Common transformations include Offset Transfer ($G(a, b) = a + b$), where the target is a shifted version of the source, and Scale Transfer ($G(a, b) = ab$), where the target is a scaled version.

Key Insights: Simplicity and Stability

The success of HTL hinges on two primary factors:

  • Relationship Simplicity: Transfer learning is most effective when the relationship $w_G$ is "smoother" or simpler to learn than the target function $f^{ta}$ itself. If it is easier to learn the difference between two tasks than the second task from scratch, transfer learning wins.
  • Algorithmic Stability: The framework relies on the stability of the underlying learners (e.g., Kernel Smoothing or Kernel Ridge Regression). If the algorithm is stable, small errors in the source hypothesis do not catastrophically impact the target model.

By leveraging these properties, the authors prove that HTL can break standard statistical "speed limits," requiring significantly fewer target samples to reach a desired accuracy level compared to non-transfer methods.

Empirical Results

The framework was evaluated on synthetic "Doppler" functions, robotics kinematics data, and fMRI neural imaging.

Comparison of Mean Squared Error (MSE) across different target sample sizes ($n_{ta}$) for various transfer and non-transfer methods.

In the robotics tasks (kin-8fm and kin-8nh), HTL methods like Offset KRR and Scale KS consistently outperformed models trained only on target data, particularly when the target sample size was small (e.g., $n_{ta} \leq 40$). In the fMRI domain, where predicting reaction times from brain activity is notoriously difficult, the Offset KS method was the only one to achieve a positive R-squared (~0.119), whereas standard methods failed to capture any meaningful signal.

Conclusion and Future Work

This work provides a robust theoretical and practical foundation for Hypothesis Transfer Learning. By formalizing the domain relationship through transformation functions, it demonstrates that transferring knowledge is mathematically advantageous when the cross-domain relationship is simpler than the target task. Future research directions include extending the framework to utilize unlabeled target data and exploring methods to automatically discover the optimal transformation function $G$.

Summary updated

Abstract

We consider the Hypothesis Transfer Learning (HTL) problem where one incorporates a hypothesis trained on the source domain into the learning procedure of the target domain. Existing theoretical analysis either only studies specific algorithms or only presents upper bounds on the generalization error but not on the excess risk. In this paper, we propose a unified algorithm-dependent framework for HTL through a novel notion of transformation function, which characterizes the relation between the source and the target domains. We conduct a general risk analysis of this framework and in particular, we show for the first time, if two domains are related, HTL enjoys faster convergence rates of excess risks for Kernel Smoothing and Kernel Ridge Regression than those of the classical non-transfer learning settings. Experiments on real world data demonstrate the effectiveness of our framework.
BibTeX
@inproceedings{du2017hypothesis,
  author = {Simon S. Du and Jayanth Koushik and Aarti Singh and Barnabás Póczos},
  title = {{Hypothesis Transfer Learning via Transformation Functions}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2017},
  url = {https://openreview.net/forum?id=rk-40OZdWr},
}
Figure