Skip to main content
QUICK REVIEW

[Paper Review] Theory on Forgetting and Generalization of Continual Learning

Sen Lin, Peizhong Ju|arXiv (Cornell University)|Feb 12, 2023
Domain Adaptation and Few-Shot LearningComputer Science12 citations
TL;DR

The paper provides the first explicit closed-form expressions for forgetting and generalization error in continual learning under overparameterized linear models, and analyzes how overparameterization, task similarity, and task ordering affect these metrics, with validation on deep networks.

ABSTRACT

Continual learning (CL), which aims to learn a sequence of tasks, has attracted significant recent attention. However, most work has focused on the experimental performance of CL, and theoretical studies of CL are still limited. In particular, there is a lack of understanding on what factors are important and how they affect "catastrophic forgetting" and generalization performance. To fill this gap, our theoretical analysis, under overparameterized linear models, provides the first-known explicit form of the expected forgetting and generalization error. Further analysis of such a key result yields a number of theoretical explanations about how overparameterization, task similarity, and task ordering affect both forgetting and generalization error of CL. More interestingly, by conducting experiments on real datasets using deep neural networks (DNNs), we show that some of these insights even go beyond the linear models and can be carried over to practical setups. In particular, we use concrete examples to show that our results not only explain some interesting empirical observations in recent studies, but also motivate better practical algorithm designs of CL.

Motivation & Objective

  • Provide explicit characterization of forgetting and generalization error in continual learning under a linear regression setup.
  • Show how system parameters (number of tasks/samples/parameters, noise, task similarity/order) influence forgetting and generalization.
  • Explain how overparameterization and task relations affect CL performance and guide practical algorithm designs.
  • Bridge theory with practical CL design by validating linear-model insights on deep networks.

Proposed method

  • Model continual learning as sequential linear regression with i.i.d. Gaussian features and noise.
  • Define training and evaluation metrics including forgetting F_t and overall generalization G_T using testing loss.
  • Derive explicit expressions for E[F_T] and E[G_T] in overparameterized regime (p ≥ n+2) in Theorem 4.1.
  • Analyze under parameter regimes (overparameterized vs underparameterized) via Theorem 4.3.
  • Use corollaries (e.g., T=2) to interpret task similarity and its impact on forgetting and generalization.
  • Validate insights with experiments on MNIST using DNNs to study task similarity and task ordering.

Experimental results

Research questions

  • RQ1How do overparameterization, task similarity, and task ordering quantitatively affect forgetting and generalization in continual learning?
  • RQ2Can explicit closed-form expressions for forgetting and generalization error be derived in a linear, overparameterized CL setting?
  • RQ3Do linear-model insights generalize to practical deep learning setups and guide algorithm design?

Key findings

  • Explicit closed-form expressions for forgetting and generalization error in the overparameterized linear CL setting (Theorem 4.1).
  • Forgetting and generalization error exhibit distinct dependencies on task similarity and can exhibit benign overfitting under certain noise and similarity conditions.
  • Generalization error decreases with higher task similarity, while forgetting may not be monotonic in similarity due to task-order coefficients.
  • Optimal task ordering tends to diversify early tasks by learning more dissimilar tasks adjacently, with special-case results suggesting alternating category learning can minimize forgetting.
  • In underparameterized regimes, forgetting and generalization follow different expressions (Theorem 4.3), illustrating conditions for benign overfitting.
  • Experiments on MNIST with DNNs corroborate linear-model insights, showing similar trends for task similarity and task ordering.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.