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
This was probably one of the more disappointing stages, I tested gradient conflict, representation drift, representation similarity, current loss and accuracy, individually and in combination, I used leave one seed out evaluation, the best model had an AUROC of approximately 0.532, basically, barely better than random ranking, the AUPRC was around 0.169, against a positive event rate of roughly 14.3%, so, no I hadn't built a reliable forgetting predictor, instead of immediately changing everything, I went back and looked more closely at when the forgetting was actually happening one thing that stood out was the difference between task transitions and updates within a task, in my experiment, 8 out of 18 task boundary transitions had an accuracy drop of at least five percentage points, compared with only 3 out of 120 within task transitions, I then started examining what happened during the actual updates of a new task, the damage wasn't always immediate, on average, old task probe accuracy had dropped by around 0.23 percentage points after one update, but by around 7.93 points after twenty updates, Task C was particularly disruptive to Task A across all three seeds, this made me realize that looking only at the end of an epoch was missing a lot of the story, I tried another early warning experiment, this time predicting whether an old task would lose at least five percentage points by the end of the incoming task's first epoch, some results looked surprisingly good, one combined model reached approximately 0.979 AUROC at the five update checkpoint, I was excited about that result, but then I looked at the sample size again, there were only 30 task transitions and nine forgetting events, with only three seeds, that is nowhere near enough evidence to claim that the predictor generalizes, Task identity was also a strong signal so I kept it as an interesting result, not a breakthrough, then came the part I had actually wanted to achieve from the beginning trying to prevent forgetting, I compared the ordinary sequential baseline, EWC, fixed protection and my adaptive PSP approach, and this is where things went wrong, the baseline had mean forgetting of 10.17%, both fixed protection and adaptive PSP also had 10.17%. EWC was around 10.45%, my protection mechanism had basically changed nothing at first, I thought something was wrong with the risk calculation, I corrected a numerical threshold issue and ran it again still, the controller wasn't meaningfully reducing updates so I stopped trying to force the intervention to work and started investigating the risk calculation itself, I separated the parameter update magnitude from Fisher importance and compared the first ten updates with everything that came afterwards, that was probably the most useful thing I found in the final experiment, across all twelve seed and task combinations, the update RMS was lower after the first ten updates, in some cases, it was dramatically lower meanwhile, the stored Fisher importance stayed constant during each incoming task, which was expected because I wasn't updating those memories. the risk estimate depended on both the update magnitude and its importance in the old task parameters., since the update magnitude was shrinking, the estimated risk was shrinking too, my threshold had been calibrated using the first ten updates, when updates were much larger, it wasn't representing what was happening during most of the training, that gave me a much better explanation for why the controller wasn't activating, I still can't say exactly why the update magnitudes changed, it could involve Adam's behavior, changing gradients or the batches being processed, I also found a limitation in my implementation I was scaling parameter updates after the Adam step, while Adam's internal optimizer state still reflected the original step, that's something I would need to address before treating this as a proper intervention method so, after all these experiments, did I solve catastrophic forgetting? Nope did I develop a successful PSP mechanism umm Not yet
I spent a lot of time trying to make an idea work, and the final intervention produced exactly the result I didn't want no meaningful improvement over the baseline, but I also don't think the experiments were wasted, I went from simply observing forgetting, to investigating gradients and representations, to testing prediction, looking inside individual training updates, and eventually finding a problem with the way I calibrated my intervention, there is still a lot I haven't tested, I've only used MNIST, one MLP architecture, three seeds and a task incremental setup with separate task heads, I wouldn't claim that these results prove anything about continual learning in general, I wanted to share this because research isn't always a sequence of experiments that work, sometimes you spend weeks building something, run it, realize it hasn't done what you expected, and have to go back through your own results to understand why, that's pretty much where my project is right now, still not the result I wanted, but at least I understand the failure a little better than I did when I started anyway, that's where my research stands right now, I'd love to hear what you guys think, any feedback or suggestions are welcome.............................
Thank you for reading this