Disentangling and Mitigating the Impact of Task Similarity for Continual Learning
Naoki Hiratani
TL;DR
The paper addresses how task similarity in input features and readout patterns governs transfer and forgetting in continual learning. It develops a linear teacher–student model with a low-dimensional latent space to analytically disentangle feature-readout effects and to study gating and Fisher-information-based regularization as mitigation strategies. Key findings show that high feature similarity with low readout similarity can cause negative transfer and poor retention, while weight regularization in the Fisher metric provides robust retention without harming transfer; adaptive gating can further improve transfer. Numerical experiments on a latent-permuted MNIST setting corroborate the theory and offer guidance on when continual learning is difficult and how to mitigate it.
Abstract
Continual learning of partially similar tasks poses a challenge for artificial neural networks, as task similarity presents both an opportunity for knowledge transfer and a risk of interference and catastrophic forgetting. However, it remains unclear how task similarity in input features and readout patterns influences knowledge transfer and forgetting, as well as how they interact with common algorithms for continual learning. Here, we develop a linear teacher-student model with latent structure and show analytically that high input feature similarity coupled with low readout similarity is catastrophic for both knowledge transfer and retention. Conversely, the opposite scenario is relatively benign. Our analysis further reveals that task-dependent activity gating improves knowledge retention at the expense of transfer, while task-dependent plasticity gating does not affect either retention or transfer performance at the over-parameterized limit. In contrast, weight regularization based on the Fisher information metric significantly improves retention, regardless of task similarity, without compromising transfer performance. Nevertheless, its diagonal approximation and regularization in the Euclidean space are much less robust against task similarity. We demonstrate consistent results in a permuted MNIST task with latent variables. Overall, this work provides insights into when continual learning is difficult and how to mitigate it.
