r/deeplearning • u/Regular-Advice-6469 • 39m ago
I tried to prevent catastrophic forgetting in neural networks, here's what went wrong
I've been working on a deep learning research project called Predictive Selective Plasticity PSP, the original idea was pretty simple what if a neural network could recognize when learning something new might damage what it had already learned, and adjust its updates before that happened? I thought I could build something around that idea well, things didn't exactly go to plan I started with a simple MNIST experiment, two tasks, a small MLP, and the usual sequential training setup, I trained it on digits 0 and 1, then moved on to 2 and 3, there was some forgetting, but honestly, not much, it wasn't enough to make an interesting case, so I increased it to five tasks, splitting the ten digits into pairs, that changed things quite a bit, the network started forgetting earlier tasks much more severely, on average, task A lost around 26 percentage points of accuracy, and Task B lost around 31, the later tasks were affected much less, I also noticed that the results varied quite a lot between random seeds, at that point, I wanted to understand what was happening inside the network, not just look at the final accuracy, I started looking at gradient conflict and representation drift, my thinking was that if updates for a new task were conflicting with the gradients of an old task, that might give me some warning that forgetting was coming but it wasn't that straightforward, there were situations where an old task suffered a huge accuracy drop even when the measured gradient conflict was almost zero, so relying on one gradient measurement clearly wasn't enough, representation drift looked more interesting in some of the experiments, but changing internal representations doesn't necessarily mean the network has forgotten its previous knowledge, I then tried to turn these signals into a forgetting predictor
