Abstract
Catastrophic forgetting—the tendency of neural networks to lose previously learned information upon training on new data—remains a central challenge in continual learning. This paper presents Auto DeepVis, an automated interpretability framework that utilizes Explainable AI (XAI) to localize forgetting within network architectures. By measuring the alignment between internal feature maps and ground-truth semantic segmentation, Auto DeepVis identifies the most "plastic" layers. We further propose Critical Freezing, a strategy that selectively stabilizes these layers. Experimental results on the Split MS-COCO dataset for image captioning demonstrate that targeted freezing significantly mitigates forgetting while preserving the capacity for new task acquisition.
Introduction
Continual learning requires models to learn from a non-stationary stream of data. The standard approach of global weight updates via gradient descent often leads to catastrophic forgetting, where new knowledge overwrites old representations. While various regularization and replay-based methods have been proposed, they often treat the model as a black box. This study investigates the internal dynamics of forgetting, asking which specific components of a network are most vulnerable to degradation during sequential training.
Methodology
The proposed framework consists of two primary components: an automated visualization tool and a targeted freezing strategy.
1. Auto DeepVis
Auto DeepVis automates Prediction Difference Analysis (PDA) to extract and visualize the feature maps of hidden layers. For any given input, the system identifies the most active feature maps and calculates their Intersection over Union (IoU) with ground-truth semantic segmentation masks. By comparing IoU scores before and after training on new tasks, the tool pinpoints exactly where representational drift occurs.
2. Critical Freezing
Insights from Auto DeepVis revealed that forgetting is localized rather than uniform. Specifically, in ResNet-50 architectures, middle layers (Blocks 3 and 4) exhibit the highest plasticity. Critical Freezing leverages this by selectively freezing these identified layers or applying a significantly reduced learning rate, thereby protecting the most fragile components of the model's memory.
Quantifying Representational Fidelity
The effectiveness of Auto DeepVis relies on its ability to map internal activations to semantic concepts. As illustrated in the comparison of IoU metrics, the tool provides a quantitative measure of how well a specific filter represents a known object class. This allows researchers to move beyond qualitative heatmaps to a rigorous metric for representational stability.
Experimental Evaluation
The approach was evaluated using a ResNet-50 encoder and an LSTM decoder on the Split MS-COCO dataset. This setup involves training on an initial set of 19 classes followed by incremental updates with 5 new classes.
Key Results: * Retention Performance: Critical Freezing achieved a CIDEr score of 33.0 on past tasks, a substantial improvement over the 11.3 achieved by standard fine-tuning. Similarly, it reached a BLEU1 score of 54.3 compared to 46.0. * New Task Learning: The model reached a BLEU1 score of 61.1 on new tasks, slightly outperforming the fine-tuning baseline (58.1), indicating that selective freezing does not impede the learning of new concepts. * Layer Sensitivity: Analysis showed that early convolutional blocks (detecting basic edges) are relatively stable, while middle blocks and the LSTM decoder layers are highly sensitive and require stabilization to maintain performance.
Conclusion
This work demonstrates the utility of XAI in diagnosing and solving fundamental problems in machine learning. By identifying the specific layers responsible for catastrophic forgetting, we can move from global, heuristic-based regularization to precise, architecture-aware interventions. Future research will explore more sophisticated filter selection methods and extend these interpretability techniques to complex recurrent and transformer-based architectures.
Summary updated