[Paper Review] Pseudo-Rehearsal for Continual Learning with Normalizing Flows
This paper proposes PRER, a continual learning method that uses normalizing flows to generate past task embeddings for regularization, enabling efficient pseudo-rehearsal in the embedding space. By training a normalizing flow on internal network activations and using it to regularize embeddings, PRER achieves state-of-the-art performance with constant memory overhead and low computational cost.
Catastrophic forgetting (CF) happens whenever a neural network overwrites past knowledge while being trained on new tasks. Common techniques to handle CF include regularization of the weights (using, e.g., their importance on past tasks), and rehearsal strategies, where the network is constantly re-trained on past data. Generative models have also been applied for the latter, in order to have endless sources of data. In this paper, we propose a novel method that combines the strengths of regularization and generative-based rehearsal approaches. Our generative model consists of a normalizing flow (NF), a probabilistic and invertible neural network, trained on the internal embeddings of the network. By keeping a single NF conditioned on the task, we show that our memory overhead remains constant. In addition, exploiting the invertibility of the NF, we propose a simple approach to regularize the network's embeddings with respect to past tasks. We show that our method performs favorably with respect to state-of-the-art approaches in the literature, with bounded computational power and memory overheads.
Motivation & Objective
- Address catastrophic forgetting in continual learning by combining generative rehearsal with embedding-level regularization.
- Overcome limitations of input-space pseudo-rehearsal, which requires complex generative models and high memory for large datasets.
- Reduce memory and computational overhead by training the generative model on lower-dimensional embeddings rather than raw inputs.
- Improve robustness to weight initialization and generalization across diverse continual learning benchmarks.
- Demonstrate that regularization using generated embeddings is more effective than simple data replay in mini-batches.
Proposed method
- Train a normalizing flow (NF) on the internal embeddings (post-convolutional features) of the classifier network, rather than on input images.
- Use the NF as a generative model to sample past-task embeddings during training, enabling continuous pseudo-rehearsal without storing raw data.
- Condition the NF on task identity to generate embeddings corresponding to previously learned classes.
- Regularize the encoder by minimizing the L2 distance between newly extracted embeddings and those sampled from the NF, enforcing consistency with past knowledge.
- Train the classifier and NF jointly during the learning phase, with the NF updated to better reconstruct past embeddings.
- Leverage the invertibility of NFs to enable efficient density estimation and sampling, avoiding training instability common in GANs.
Experimental results
Research questions
- RQ1Can normalizing flows trained on internal embeddings effectively generate representative samples for past tasks in continual learning?
- RQ2Does regularization using generated embeddings outperform standard data replay or weight regularization in mitigating catastrophic forgetting?
- RQ3Can a single, task-conditioned normalizing flow maintain constant memory overhead across an increasing number of tasks?
- RQ4How does the method scale in terms of memory and computation compared to existing rehearsal and regularization baselines?
- RQ5Does the approach improve robustness to weight initialization and dataset complexity?
Key findings
- PRER achieves the best backward transfer (BWT) score among all compared methods, significantly outperforming LWF, EWC, GEM, and ER on MNIST and CIFAR10.
- On MNIST, PRER achieves a BWT of approximately 1.8, compared to 4.5 for ER and 6.0 for LWF, indicating superior knowledge retention.
- Memory requirements for PRER are minimal—only ~148K floats on MNIST—due to the constant-size normalizing flow, outperforming ER (834K) and GEM (1960K).
- Training time for PRER is competitive at ~20 minutes on MNIST, comparable to LWF and EWC, and significantly lower than GEM (~60 minutes).
- The method is robust to weight initialization, showing low variance across 5 random seeds, unlike LWF and EWC which are sensitive to initialization.
- The use of embedding-space generation reduces the complexity of the generative model, enabling efficient training and sampling without GAN-style instability.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.