Measuring Representational Shifts in Continual Learning: A Linear Transformation Perspective

Joonkyu Kim, Yejin Kim, Jy-yong Sohn

TL;DR

This paper introduces representation discrepancy, the first theoretically tractable metric designed to quantify how internal neural network representations shift and degrade during continual learning. Through mathematical analysis and empirical validation, the authors prove that representation forgetting follows a distinct two-phase (forgetting and saturation) trajectory, intensifying significantly in deeper layers while being mitigated by wider network architectures.

What Problem Does This Paper Address?

In continual learning (CL), artificial neural networks sequentially learn new tasks. A notorious challenge in this setup is catastrophic forgetting, where adapting to a new task causes the model to lose performance on previously learned ones. Traditionally, researchers measure this by tracking the drop in final output accuracy.

However, a model's internal features—its hidden representations—also shift drastically during this process. Understanding this "representation forgetting" is crucial, especially for unsupervised continual learning where there is no explicit task output, or for designing better interventions to preserve knowledge.

Until now, studying representation forgetting has been purely empirical. Existing proxies, such as tracking the drop in linear probing accuracy, are mathematically complex and analytically intractable. This paper bridges the gap by providing the first rigorous theoretical framework to analyze how and why internal representations degrade over time.

Methods

The authors propose a novel metric called representation discrepancy ($D^k_t$). Instead of simply measuring the raw drift in activations (which fails to account for the fact that different features can yield identical outputs), this metric quantifies the minimum alignment error between two representation spaces (before and after learning new tasks) under an optimal linear transformation $T$.

Visual interpretation of representation discrepancy, aligning two representation spaces using an optimal linear transformation $T$.

To make this metric analytically feasible, the authors establish a theoretical upper bound ($U^k_t$) by viewing continual learning as a series of weight perturbations. Their framework relies on a key, empirically validated assumption: the weight matrices of a layer at different points in the CL timeline can be aligned via a linear transformation.

Datasets

The theoretical findings were validated using standard continual learning image benchmarks:

  • Split-CIFAR100: The classic CIFAR100 dataset split into 20 or 50 sequential tasks.
  • ImageNet1K: Downsampled to $32\times32$ pixels (ImageNet32) and split into 50 sequential tasks to evaluate scalability.

Key Insights and Ideas

  • The Two-Phase Forgetting Trajectory: The upper bound reveals that representation forgetting isn't linear. It consists of a forgetting phase, where discrepancy monotonically increases as more tasks are introduced, followed by a saturation phase, where the discrepancy stabilizes and hits an asymptotic ceiling.

    Illustration of the two-phase trajectory of the upper bound, showing the forgetting and saturation regions.
  • Deeper Layers Forget Faster and Harder: The asymptotic representation discrepancy increases linearly with the layer index $k$. Hidden layers closer to the output experience significantly higher total forgetting and transition into the saturation phase much faster than shallower layers.

  • Width is a Buffer: Increasing the width of the network ($m$) slows down the rate of forgetting. Wider networks delay the transition into the saturation phase, providing a theoretical justification for why overparameterized models tend to be more robust to catastrophic forgetting.

Key Results

  • High Correlation with Real Forgetting: The proposed representation discrepancy metric strongly correlates with actual linear probing accuracy drops, achieving an $R^2 = 0.88$ on Split-CIFAR100 and $R^2 = 0.74$ on ImageNet1K, proving its effectiveness as a tractable surrogate.
  • Linear Space Scaling: Experiments confirmed a near-perfect linear relationship ($R^2 = 1.00$) between the layer index $k$ and the size of the representation space, validating the corollary that deeper layers suffer from larger asymptotic forgetting.
Plots demonstrating the strong linear relationship between representation forgetting, representation space size, and layer depth.
  • Rate of Convergence: As predicted by Theorem 2, empirical evaluations of $\Delta t_{\text{sat}}$ confirmed that the convergence rate increases with depth $k$ and decreases with network width (number of channels).

Limitations and Future Work

While the authors provide a solid theoretical foundation, they note a few limitations:

  • Generality of Assumptions: The assumption that weight matrices can be perfectly aligned via linear transformations across task boundaries may not hold universally for all exotic architectures, though the authors showed it holds well for standard MLPs, ResNets, and Vision Transformers (ViTs).
  • Unproven Linearity: The lower bound linearity of the representation space drift ($\omega$) over task increments is assumed based on current literature trends but has not yet been formally proven.
  • Extension to CL Defenses: The current theory models standard gradient-based updates without explicit CL defenses (like experience replay or regularization). Extending this framework to analyze how specific defense mechanisms alter the representation space dynamics is a promising direction for future work.

Summary updated

BibTeX
@inproceedings{kim2025measuring,
  author = {Joonkyu Kim and Yejin Kim and Jy-yong Sohn},
  title = {{Measuring Representational Shifts in Continual Learning: A Linear Transformation Perspective}},
  booktitle = {International Conference on Machine Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=Kz1zCJRr1r},
}
Figure