A Theory for Knowledge Transfer in Continual Learning

Diana Benavides Prado, Patricia Riddle · DOI

Abstract

While the field of Continual Learning (CL) has historically focused on mitigating "catastrophic forgetting," this research shifts the paradigm toward the constructive benefits of knowledge transfer. We present a formal theoretical framework that utilizes implementation-agnostic error bounds to demonstrate how forward and backward transfer allow a learner to become increasingly efficient. By treating a sequence of tasks as an incremental search for an environmental bias, the theory proves that a learner can improve its performance on both new and old tasks as it encounters more related data.

Introduction

In machine learning, Continual Learning (CL) describes the challenge of training a model on a stream of tasks. Traditionally, the primary objective in CL research has been the prevention of catastrophic forgetting—the phenomenon where learning a new task causes a model to lose its proficiency in previously learned tasks.

However, this focus overlooks the potential for synergy between tasks. Just as a human's ability to ride a bicycle informs their ability to balance on a motorcycle (forward transfer), and the motorcycle experience might subsequently refine their bicycle handling (backward transfer), machine learning models should ideally benefit from a sequence of related tasks. This paper provides a rigorous mathematical foundation for this intuition, moving beyond architecture-specific observations to a general theory of how relatedness facilitates learning.

Theoretical Framework

The authors build their theory on three fundamental pillars designed to be independent of specific model architectures, such as Deep Neural Networks or Support Vector Machines.

1. Task Environments and Relatedness

The theory assumes that tasks are not isolated random variables but belong to a specific "environment" of related problems. To quantify this, the researchers introduce Transformation Functions ($F$). Two tasks are considered $F$-related if the data distribution of one can be mapped to the other via a function within a defined set. This allows the learner to treat the task sequence as a search for a shared "bias" or hypothesis space that is optimal for the entire environment.

2. Mechanisms of Transfer

  • Forward Transfer: This occurs when knowledge from previous tasks is used to narrow down the hypothesis space for a new, incoming task. By starting with a more informed set of assumptions, the learner requires fewer examples to achieve proficiency.
  • Backward Transfer: This occurs when a new task provides information that helps refine the hypothesis space of an old task. Crucially, this allows for performance improvements on previous tasks without necessarily revisiting their original training data.

3. Implementation-Agnostic Error Bounds

Using the framework of VC-dimension (Vapnik–Chervonenkis dimension), the authors derive mathematical bounds on expected error. These bounds show that as the number of tasks ($n$) increases, the total error of the continual learner decreases, provided the tasks share environmental relatedness.

Empirical Validation

To validate the mathematical proofs, the researchers utilized a synthetic regression environment. The setup involved four regression functions: three linear and related functions ($y_1, y_2, y_3$) and one quadratic, unrelated function ($y_4$). Each task was provided with 30 random examples and Gaussian noise to simulate a non-trivial learning challenge.

Key Results

The experiments confirmed the theoretical predictions regarding the benefits of transfer:

  • Performance Gains: In a noisy environment, isolated learning (learning each task from scratch) on Task 1 achieved an $R^2$ of 0.84. However, after performing backward transfer from Tasks 2 and 3, the performance on Task 1 improved significantly to 0.96.
  • Negative Transfer: The model also demonstrated the risks of unrelated data. Attempting to transfer knowledge from the quadratic Task 4 to the linear Task 1 caused performance to drop to an $R^2$ of 0.70, highlighting that the "relatedness" assumption is a necessary guardrail for effective CL.

Insights and Implications

The "Knowledgeable Learner"

The theory proves that as a learner observes more tasks within an environment, the sample complexity for new tasks decreases. The learner effectively "learns to learn," becoming more efficient at identifying the correct hypothesis for new problems based on its accumulated environmental bias.

The Flexibility Requirement

A critical practical insight emerged regarding model convergence: for transfer to be effective, source tasks should only be partially trained. If a model converges too strictly on a single task, its hypothesis space becomes too rigid to accommodate the "hints" provided by subsequent tasks. Maintaining a degree of flexibility is essential for the cross-pollination of knowledge.

The Importance of Task Order

The derived error bounds suggest that the position of a task in a sequence matters. Tasks appearing later in the stream benefit from a more refined environmental bias, leading to lower error rates compared to those encountered early in the learning process.

Limitations and Future Directions

While providing a robust foundation, the authors note that the VC-dimension framework may be too conservative for modern, overparameterized deep neural networks. Future research may explore infinite-width networks or robustness-based frameworks to better model large-scale AI systems. Additionally, while the theory is implementation-agnostic, practical applications often require memory mechanisms (such as exemplars) to facilitate backward transfer. Finally, the problem of autonomously determining task relatedness in a high-dimensional "wild" environment remains a significant open challenge for the field.

Summary updated

BibTeX
@inproceedings{prado2022theory,
  author = {Diana Benavides Prado and Patricia Riddle},
  title = {{A Theory for Knowledge Transfer in Continual Learning}},
  booktitle = {Collas},
  year = {2022},
}
Figure