Skip to main content
QUICK REVIEW

[Paper Review] Anatomy of Catastrophic Forgetting: Hidden Representations and Task Semantics

Vinay Ramasesh, Ethan Dyer|arXiv (Cornell University)|Jul 14, 2020
Domain Adaptation and Few-Shot LearningComputer Science39 references23 citations
TL;DR

This paper investigates catastrophic forgetting in neural networks by analyzing how sequential training distorts hidden representations, finding that deeper layers are the primary source of forgetting. It demonstrates that forgetting is most severe for tasks of intermediate semantic similarity and shows that mitigation methods like replay and elastic weight consolidation stabilize deeper representations, offering a unified explanation for their effectiveness through representational similarity analysis.

ABSTRACT

A central challenge in developing versatile machine learning systems is catastrophic forgetting: a model trained on tasks in sequence will suffer significant performance drops on earlier tasks. Despite the ubiquity of catastrophic forgetting, there is limited understanding of the underlying process and its causes. In this paper, we address this important knowledge gap, investigating how forgetting affects representations in neural network models. Through representational analysis techniques, we find that deeper layers are disproportionately the source of forgetting. Supporting this, a study of methods to mitigate forgetting illustrates that they act to stabilize deeper layers. These insights enable the development of an analytic argument and empirical picture relating the degree of forgetting to representational similarity between tasks. Consistent with this picture, we observe maximal forgetting occurs for task sequences with intermediate similarity. We perform empirical studies on the standard split CIFAR-10 setup and also introduce a novel CIFAR-100 based task approximating realistic input distribution shift.

Motivation & Objective

  • To understand the underlying mechanisms of catastrophic forgetting in deep neural networks, particularly how it affects hidden representations.
  • To investigate whether earlier tasks are forgotten uniformly across network layers or if certain layers contribute more to forgetting.
  • To examine how representational similarity between sequential tasks influences the degree of forgetting.
  • To evaluate and compare the effectiveness of common forgetting mitigation techniques (e.g., replay, EWC) through their impact on hidden representations.
  • To develop a realistic benchmark task that captures input distribution shift, a common real-world cause of forgetting.

Proposed method

  • Empirical analysis of representational changes across layers using representational similarity measures (e.g., CKA) and layer-wise ablation (freezing/resetting).
  • Introduction of a novel CIFAR-100-based task that simulates input distribution shift using hierarchical label structure to model real-world forgetting.
  • Use of a simplified analytic model with frozen features and linear readout heads to derive the dependence of forgetting on feature overlap and task similarity.
  • Explicit rotation of second-task features via rotation matrices to control representational similarity and test its effect on forgetting.
  • Application of two major mitigation techniques—replay buffers and elastic weight consolidation (EWC)—to study their impact on representation stability in deeper layers.
  • Quantitative evaluation of forgetting via accuracy drops on earlier tasks and CKA similarity between representations before and after training.

Experimental results

Research questions

  • RQ1How does catastrophic forgetting affect hidden representations across different layers of a neural network?
  • RQ2Are earlier tasks forgotten uniformly across all network parameters, or are certain layers more vulnerable?
  • RQ3How does the semantic similarity between sequential tasks influence the degree of catastrophic forgetting?
  • RQ4To what extent do established mitigation methods like replay and EWC stabilize deeper representations to reduce forgetting?
  • RQ5Can a realistic benchmark task that models input distribution shift better capture the dynamics of forgetting in real-world continual learning?

Key findings

  • Deeper layers in neural networks are the primary source of catastrophic forgetting, as they exhibit the largest changes in representations during sequential training.
  • The degree of forgetting is maximized for tasks with intermediate semantic similarity, not for very similar or very dissimilar tasks, as predicted by the analytic model.
  • Replay buffers and elastic weight regularization both mitigate forgetting by stabilizing representations in deeper layers, providing a unifying explanation for their success.
  • Even when final-layer weights change significantly, forgetting can be avoided if the representation overlap between initial and second-task data is zero, demonstrating that weight stability is not necessary to prevent forgetting.
  • The novel CIFAR-100-based task with hierarchical label structure successfully models realistic input distribution shift and reveals similar forgetting dynamics to standard benchmarks.
  • Empirical results show that representational similarity, as measured by CKA, correlates strongly with forgetting: lower similarity leads to less forgetting, especially when features are orthogonal.

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.