Manuscript Offprint
arXiv:2608.27662Unsupervised Continual Learning with Growing Self-Organizing Maps and Synthetic Replay
Pujan Thapa
Department of Computer Science
Rochester Institute of Technology
Rochester, NY, USA
Alexander Ororbia
Department of Computer Science
Rochester Institute of Technology
Rochester, NY, USA
Travis Desell
Department of Computer Science
Rochester Institute of Technology
Rochester, NY, USA
Abstract
This work presents a generative continual learning framework based on growing self-organizing maps (GSOMs) that are augmented with learned distributional statistics as well as encoder–decoder models for class-incremental learning. The proposed approach enables exemplar-free replay using distributional statistical memory, which eliminates the need to store raw data. Each GSOM unit maintains its own mean, variance, and covariance estimates, which are subsequently used to generate synthetic samples for replay; in encoder–decoder configurations, these samples are then decoded back into the input space (via ancestral sampling) for subsequent training. Our method is fully unsupervised, as it does not rely on explicit task boundaries or class labels during training. Results across multiple benchmarks show that the proposed approach achieves performance competitive even with supervised state-of-the-art memory-based methods while consistently outperforming memory-free approaches. In several settings, our framework matches or exceeds existing baselines, particularly in challenging single-class incremental scenarios. We also provide baseline results for single-class incremental TinyImageNet and MiniImageNet, offering a useful reference for future work. This work highlights the effectiveness of an unsupervised, adaptive, topology-driven neural form of statistical replay as a scalable, flexible approach to continual learning.
1 Introduction
Computational intelligent systems operating in real-world environments are often exposed to continuous streams of data, where the underlying data distribution may change over time. In these settings, adaptive systems must extract and incorporate new information as it arrives while preserving previously acquired knowledge. This ability, commonly referred to as continual learning (CL) or lifelong learning [1], is essential for building systems that remain functional and reliable under non-stationary data streams. A key challenge in continual learning is catastrophic forgetting [2], where artificial neural networks (ANNs) tend to overwrite previously-acquired knowledge when trained on new data. This problem is closely tied to the stability–plasticity dilemma [3], which governs the trade-off between learning new information and preserving prior knowledge (encoded as internal representations). Among the categories of CL, class incremental learning (CIL) is one of the
Preprint.
most challenging, as the model must continuously discriminate among all previously seen classes without access to task identification information [4].
In general, most CL benchmarks assume clearly defined task boundaries, where new tasks introduce several classes simultaneously, e.g., as in Split-MNIST or Split-CIFAR [5, 6, 7]. However, such assumptions rarely hold in real-world data streams, where task boundaries are often unknown or ill-defined. Most existing approaches address forgetting through one of three strategies: (1) regularization, (2) architectural expansion, or (3) replay. Regularization-based methods, such as elastic weight consolidation (EWC) [8, 9], constrain parameter updates to preserve important knowledge. Expansion-based approaches, including progressive neural networks [10], increase model capacity to accommodate new information. Replay-based methods, such as DER++ [11] and MEMO [12], mitigate forgetting by revisiting past samples (or approximations of them). While effective, these approaches rely on assumptions that are difficult to satisfy in real-world settings; these include known task boundaries, access to labeled data, or the ability to store and manage growing memory buffers.
As a result, recent work has shifted to task-free CL (TFCL), where data is presented as a continuous stream without explicit task boundaries or identities [13, 14, 15]. Early work by Aljundi et al.[13] proposed one of the first TFCL formulations, extending importance-weight regularization to online settings by detecting stable learning regimes from the loss surface and updating parameter importance only when the model reached plateau regions. Memory-based task-free methods, e.g., GMED [16] and ODDL [17], demonstrated that replay can be strengthened not only by selecting past samples but also by actively “editing” stored examples to make them more useful for future replay. Other more recent memory-based schemes in this direction include those based on neural Dirichlet mixture processes [18] as well as those that continuously organize and maintain samples/prototypes per class [19]. Although effective, memory-based methods underscore a broader reliance on stored samples and replay heuristics, raising concerns regarding memory growth, privacy, and long-term scalability. More recently, memory-free task-free approaches have been explored that avoid explicit replay buffers and instead rely on implicit knowledge retention and adaptive optimization strategies [20]. Nevertheless, such methods often struggle to maintain stable representations over long data streams due to the absence of explicit mechanisms to preserve past information.
Most CL research has focused on deep ANNs [21]; however, self-organizing maps (SOMs) [22], which come from a broader class of competitive neural models [15], offer a topology-preserving, unsupervised alternative with inherently local updates that can reduce interference between past and new knowledge. Prior SOM-based CL approaches, such as SOMLP [23], DendSOM [24], and c-SOM [25], demonstrate this potential yet are limited by fixed capacity or lack an adaptive, scalable replay mechanisms. To address these limitations for task-free settings, we propose a growing self-organizing map (GSOM) framework for task-agnostic continual learning in the context of a class-sequential data stream. Unlike conventional approaches, GSOM provides an adaptive, topology-preserving structure that expands incrementally as new patterns arrive [26], organizing its latent space into localized regions, which reduces interference (or neural cross-talk [2, 15]). Notably, our model “grows” new portions of its topology via a criterion we develop based on statistical “surprisal”, which is used to determine if incoming samples are poorly explained (side-stepping any need for predefined error thresholds). The GSOM’s combination of localized representation and probabilistic growth enables it to stably, continually adapt to data complexity without relying on task boundaries or explicitly-stored patterns. Furthermore, we integrate our GSOM with encoder-decoder structures (specifically convolutional VAEs [27] and pretrained visual encoders such as CLIP [28]) in order to handle complex data patterns, e.g., natural images.
In effect, the main contributions of this work are i) a GSOM-centric CL framework that combines generative modeling with topology-preserving clustering to enable interpretable, unsupervised learning from data streams; ii) a surprisal-driven growth mechanism for the GSOM that dynamically expands the internal map when current representations become insufficient to explain incoming samples (meaning the topology expands as needed, without task boundary triggers); and, iii) a generative replay scheme that stores compact summary statistics (mean, variance, and covariance) per GSOM unit, enabling rehearsal without buffers or data storage. We evaluate three variants of our model framework on MNIST, CIFAR-10/100, TinyImageNet, and MiniImageNet, under task-boundary-free protocols, and show improved or competitive performance with prior CL methodology.
2.1 Growing Self-Organizing Maps
Conventional SOMs require their topological grid size to be pre-defined, however growing SOMs (GSOMs) [29, 26] allow the map structure to expand when the existing representation becomes insufficient to capture local data variance (Figure 2, see Appendix). Growth is triggered when the accumulated error of a unit exceeds a predefined threshold derived from a spread factor parameter. When this occurs, new units are inserted at the map boundary so as to represent previously undermodeled regions of the data space. Through this mechanism, the GSOM allocates representational capacity where it is most needed. Dense, complex regions of the data distribution naturally receive more units, whereas simpler regions remain sparsely represented. Thus, GSOM learns a topology that more closely reflects the dataset's underlying structure without requiring a predetermined grid size.
In our approach, instead of relying solely on accumulated quantization error to trigger growth, we introduce a surprisal-driven growth mechanism that measures how poorly the current map representation “explains” an incoming sample. When surprisal of an observation exceeds a dynamically model-maintained threshold, our GSOM expands locally to accommodate the new information, allowing the topology to adapt continuously as new data arrives. Growth is triggered at a specific unit (referred to as the growth node) when its accumulated error or surprisal exceeds a predefined threshold. Instead of expanding globally, the map grows locally by inserting new units in the immediate 4-neighborhood of the growth node, i.e., at coordinates and . If a neighboring position is not occupied, a new unit is created at that location. The weights of newly-added units are initialized using the growth-triggering input data and surrounding existing units. This localized expansion allows the GSOM to incrementally refine regions where the current representation is insufficient while still preserving well-structured areas, balancing plasticity and stability.
Building on the above mechanism, we develop a task-agnostic class-incremental CL framework in which GSOM neurons act as generative memory units storing per-unit distributional summaries (mean, variance, and covariance) of previously observed data. The full training procedure is formalised in Algorithm 1 (see Appendix). At each batch , the model processes , where is the incoming batch and contains replayed samples from the current GSOM units. If a global encoder is used, it is updated on and the GSOM receives latent codes ; otherwise the GSOM operates directly on . After each batch, synthetic samples are drawn from each active BMU's bias-corrected statistics and decoded to form for the next step. The GSOM is then trained with batch for iterations, with growth only being allowed for the first iterations.
Our framework naturally extends to different data modalities; for high-dimensional visual datasets (e.g., CIFAR-10/100, TinyImageNet and MiniImageNet), our GSOM is applied over a learned latent space obtained from models such as variational autoencoders or pre-trained encoders. Importantly, the training process remains fully unsupervised: class labels are never used for representation learning or the GSOM updates and are only employed post-hoc for evaluation (via BMU-based labeling).
2.2 Tracking Neural Unit Distributional Statistics
Each GSOM neural unit maintains running estimates of the distribution of samples that are mapped to it. These statistics serve two purposes in the proposed framework: (i) enable generative replay, and (ii) drive our probabilistic surprisal criterion used to trigger our GSOM's topology growth. Given a GSOM unit at position and a momentum factor , an input sample mapped to the best matching unit (BMU) updates the unit's core properties as follows: (i), a running mean vector (or exponential moving average): ; (ii), a running variance vector , which captures per-dimension variability, calculated by: ; and, (iii), a running covariance matrix , which models inter-feature relationships, calculated via: . Here, denotes either a raw input pattern (when the GSOM operates directly on data) or a latent representation produced by an encoder model at step . These statistics characterize the local distribution of pattern vectors assigned to each GSOM unit. For a given BMU, neighboring units are updated according to the standard GSOM neighborhood adaptation rule to preserve topological smoothness. However, distributional statistics (mean, variance, and covariance) are updated only for the BMU associated with the input sample to maintain a localized and statistically consistent estimate of the underlying data distribution. We also further apply bias-correction similar to the Adam optimizer [30] to these statistics to alleviate bias during initialization (fully described in Appendix B).
2.3 Gaussian Surprisal for BMU-Based GSOM
Given our model’s per-unit Gaussian statistics, each GSOM neuron at position in the map models the distribution of the patterns assigned to it as a multivariate Gaussian , where is the data (or latent representation of it), is the running mean of unit , and is the corresponding covariance matrix. The resulting likelihood of observing under the BMU distribution is:
Consequently, we define the surprisal of sample under BMU as the negative log-likelihood . Substituting the Gaussian density, taking the negative logarithm, and applying standard log identities yields the following:
The full derivation is provided in the Appendix A. For topology growth decisions, additive constants in the negative log-likelihood can be omitted because they do not affect inequality-based threshold comparisons. The term is constant, while the log-determinant term reflects the global volume of the Gaussian region rather than the local deviation of from the BMU center. Since the goal of our GSOM’s growth is to detect when a sample lies far from the existing representation of a unit, our criterion can be based solely on the quadratic term. This leads to our GSOM’s normalized Mahalanobis surprisal measure:
which provides a dimension-independent measure of statistical deviation. When the surprisal of an incoming sample exceeds a threshold (defined later), the GSOM expands locally around the BMU to accommodate the new region of the data distribution.
This formulation provides a statistically grounded alternative to the traditional quantization error used in GSOM growth mechanisms. Instead of measuring only the distance between a sample and the BMU prototype, the surprisal measure also considers the spread and shape of the data assigned to that unit. As a result, our model is better equipped to detect when an incoming sample does not fit an existing representation. When such cases occur, the GSOM expands locally to create new units, allowing its topology to adapt to unseen regions of the data distribution in a streaming fashion.
Growth decision rule: Building on the surprisal measure defined before, growth decisions are governed by both distributional as well as structural criteria. Our model’s surprisal threshold adapts online to the recent history :
where the fallback value (the second case of the piece-wise function) provides a conservative cold-start threshold before sufficient history has been accumulated. Three constraints stabilize our GSOM's expansion: (i) a minimum hit count that ensures reliable per-unit statistics before growth is permitted, (ii) a cool-down which prevents repeated growth from the same unit in consecutive iterations, and (iii) a linearly decaying growth probability (given the ith iteration of the batch), , which reduces the GSOM's expansion pressure as training progresses through the growth phase of batches. The full growth condition at unit b for sample z at iteration i can then be defined as:
(5)
where . Here denotes the accumulated hit count of unit , the number of iterations since last triggered growth, and is the quantization error threshold derived from the spread factor [26]. denotes the accumulated quantization error of unit , updated whenever is selected as the BMU, and denotes the 4-neighbourhood of unit (i.e., adjacent grid locations) while is the set of currently active units. Values for , , and are provided in Table 6 in the Appendix.
When no free position exists in , i.e., an interior unit demands growth, growth cannot be applied directly. In this case, the accumulated error is redistributed to neighbouring units following the standard GSOM update rule [26]. This allows growth pressure to propagate toward nearby regions where expansion is feasible. A detailed formulation of the error update and propagation process is provided in Appendix C.
Growth expansion control: To control model expansion, GSOM growth is restricted to the early stages of training each batch, where the model is trained for a total of I iterations but growth is only permitted during the first iterations. During each growth batch, the number of newly added units is further limited to, at most, per iteration. After the growth phase, the GSOM structure is fixed and only weight updates are performed for remaining iterations. This strategy prevents uncontrolled expansion while allowing the model to adapt to the data distribution stably and gradually.
2.4 Task-Free Continual Learning with GSOM and Synthetic Replay
Unlike task-based CL, our model is never provided with task identitiers, class labels, or boundary signals. Samples arrive in a continuous stream (of mini-batches) and all components, including the GSOM and the integrated VAE or pretrained encoders, are updated solely based on the input stream and GSOM-replayed samples, all without distinguishing between real and synthetic data and without access to an explicit task boundary, sample classes, or transition signals. This places the framework squarely in a task-free unsupervised CL regime. Unlike classical buffer-based replay methods, which store explicit samples, our approach relies solely on distributional summaries for replay. Notably, even without explicit data storage, our model is still capable of generating meaningful and diverse samples that reflect the learned data distribution.
As described in Section 2.1, when a new mini-batch of samples arrives, synthetic samples are generated from the GSOM by sampling from the stored distributions of its neural units. These replayed samples are then combined with the mini-batch to mitigate forgetting. As each GSOM unit maintains distributional statistics over its assigned samples, synthetic samples are generated as:
For low-dimensional datasets, e.g., MNIST, synthetic sample generation using SOM-based statistics is generally effective, since the feature space grayscale pixels) is sufficiently less for independent mean–variance modeling. In this setting, per-dimension variance captures the data distribution reasonably well, enabling stable sampling and efficient replay.
However, this approach does not scale to higher-dimensional natural image datasets. In pixel space, mean–variance sampling produces low-quality samples and degrades downstream performance. Moreover, modeling full covariance in the original space is computationally prohibitive; for instance, a single BMU for a CIFAR10 image would require storing a covariance matrix for RGB images, which is infeasible in practice. To address these limitations, we perform replay in a lower-dimensional latent space. High-dimensional inputs are first mapped to lower-dimensional embeddings via an encoder, which allows the GSOM to operate on compact representations. This significantly reduces both storage and computational requirements while enabling full covariance modeling. For this covariance-based sampling, eigenvalue regularization is applied to ensure numerical stability and to maintain a valid positive semi-definite covariance matrix (see Algorithm 3 in Appendix E).
We study four configurations of our framework: (i) a GSOM operating directly on input space, (ii) a GSOM combined with a VAE where replay occurs in latent space and samples are decoded (i.e., ancestral sampled) into input space, (iii) a GSOM operating on pretrained embedding spaces such as those obtained from ResNet-18 and CLIP, where a trained decoder reconstructs images from our sampled latents (see Appendix J), and (iv) a modular form of replay where each GSOM unit is paired with its own local encoder-decoder (see Appendix D). Our methodology is usefully agnostic to the choice of encoder-decoder architecture and for the later configurations, the encoder produces latent codes (of dimensionality or ) making full covariance estimation for each BMU tractable.
In all cases, the GSOM serves as a structured memory that stores only statistical summaries (mean, variance, and covariance) for each neural unit. This enables exemplar-free replay and the storage scales with the number of GSOM units as opposed to the size of the dataset. The GSOM's topology-preserving structure further supports interpretability; Figure 1 shows synthetic CIFAR-100 samples decoded from BMU statistics and Appendix G provides further visualisations on other datasets. By decoding unit representations or sampled latent vectors, it is also possible to inspect the evolution of learned features over time (see Appendix K). Well-separated and coherent clusters on the GSOM grid indicate stable learning, whereas fragmentation may reflect forgetting or underfitting. This makes the framework not only generative but also inherently interpretable.
3 Results
Our approach is evaluated on standard CL benchmarks, including MNIST, CIFAR-10, CIFAR-100, TinyImageNet, and MiniImageNet. Experiments were conducted under a streaming setting where data from different classes was presented sequentially as well as under a split protocol in which the dataset was divided into disjoint class groups. To account for variability due to data ordering, results are averaged over 20 independent runs with different random class sequences. Performance is reported as the mean accuracy along with the standard deviation across runs. Hyperparameters were selected based on extensive ablation studies (see Appendix E). All experiments were conducted on a desktop workstation equipped with an Intel Core i7-14700F CPU, 32 GB RAM, and an NVIDIA GeForce RTX 4060 Ti GPU with 16GB VRAM, running Windows 11.

Figure 1: CIFAR-100 samples for the first 10 classes generated by sampling from a GSOM integrated with ResNet-18 embeddings. Each row corresponds to one class (0–9).
Label Usage and Evaluation Protocol. Note that all GSOM and encoder-decoder models were trained in an unsupervised manner without using class labels, task labels, or task identifiers – data was organized into class-wise or split-wise sequences only for evaluation purposes against existing work. After training, each unit is assigned the majority class of its mapped training samples; test samples inherit their BMU's label. Therefore, class-wise representations, task-wise accuracy matrices, forgetting metrics, and confusion matrix analyses (see Appendices H, I and K) are post-hoc evaluation tools and were not used to guide model training or replay.
3.1 Standard Split Multi Class Incremental Learning
Split Benchmarks without pretraining: Table 1 presents results on Split-MNIST, Split CIFAR-10, and Split CIFAR-100 without the use of pretrained representations. We compare our VAE-integrated GSOM (GSOM+VAE) framework with standard CL baselines, including regularization methods (EWC [9], SI [31], LwF [32]), replay-based methods (GEM [33], iCaRL [34], GSS [35]), and probabilistic approaches, e.g., CN-DPM [18]. As expected, regularization-based methods perform poorly across all datasets, with accuracies close to fine-tuning, indicating severe catastrophic forgetting. Replay-based methods – GEM, iCaRL, and GSS – provide improved retention, with iCaRL achieving 72.55% on Split-MNIST and GSS reaching 49.22% on Split CIFAR-10. CN-DPM achieves strong performance on Split-MNIST (93.81%) but does not generalize consistently across
Table 1: Classification accuracy for the class-incremental learning experiments on Split-MNIST, Split CIFAR-10, and Split CIFAR-100 without any pre-trained models. Our results are reported as mean ± standard deviation over 20 runs, whereas the compared results are over 5 runs. denotes task-free setup and denotes unsupervised training. Methods without symbols are task-aware and supervised.
| Method | Split-MNIST | Split-CIFAR-10 | Split-CIFAR-100 |
|---|---|---|---|
| iid-offline | 95.82 ± 0.33 | 80.54 ± 0.63 | 48.09 ± 0.90 |
| Fine-Tune | 19.68 ± 0.02 | 19.19 ± 0.06 | 8.32 ± 0.23 |
| EWC | 19.92 ± 0.35 | 16.18 ± 1.37 | 4.41 ± 0.37 |
| SI | 19.76 ± 0.01 | 17.27 ± 0.87 | 5.87 ± 0.21 |
| LwF | 20.54 ± 0.64 | 18.53 ± 0.12 | 6.93 ± 0.32 |
| GEM | 48.57 ± 5.26 | 25.54 ± 0.19 | 6.18 ± 0.20 |
| iCaRL | 72.55 ± 0.45 | 35.88 ± 1.43 | 15.76 ± 0.15 |
| GSS | 54.14 ± 4.68 | 49.22 ± 1.71 | 11.33 ± 0.40 |
| CN-DPM | 93.81 ± 0.07 | 46.98 ± 0.62 | - |
| Ours (GSOM + VAE) | |||
| GSOM only | 91.22 ± 1.23 | - | - |
| Global VAE-GSOM | 92.11 ± 0.98 | 50.11 ± 0.89 | 13.81 ± 1.05 |
| VAE-per-BMU-GSOM | 91.01 ± 0.12 | 47.12 ± 1.23 | 12.49 ± 2.01 |
more complex datasets. In comparison, our GSOM-based approach achieves competitive performance without relying on explicit task identity or exemplar storage. In particular, the global VAE-GSOM model attains 50.11% on Split CIFAR-10 and 13.81% on Split CIFAR-100, outperforming most baselines in these settings. On Split-MNIST, the global VAE-GSOM model achieves over 92.11% accuracy, approaching the best-performing methods.
Without pretrained representations, both SOM-only and VAE-based variants struggle to scale to high-dimensional data such as TinyImageNet and MiniImageNet (see Table 4). In particular, VAE-based GSOM models achieve only around accuracy on TinyImageNet and approximately on MiniImageNet, consistent with their CIFAR-100 performance. These results highlight the difficulty of learning meaningful generative representations from limited per-class data when training encoder-decoder models from scratch, motivating the use of stronger pretrained feature representations.
Split Benchmarks with pretrained models: Table 2 reports results on Split-MNIST, Split CIFAR-10, Split CIFAR-100, and Split MiniImageNet under a task-free evaluation setting. We compare against a broad range of baselines, including naive fine-tuning; replay-based methods such as GEM [33], iCARL [34], reservoir sampling, MIR, and GSS [35]; and expansion-based, probabilistic approaches such as CN-DPM [18], CURL [36], CoPE, CoPE-CE [19], and Dynamic OCM [37]. We also include memory-based variants such as A-GEM [38], ER, ER with data augmentation (ER_a) [39], and ER with gradient-based memory editing (GMED) [16], along with the iid-online upper bound. All methods use a common ResNet-18 backbone; ensuring that performance differences reflect the learning strategy rather than the underlying architecture. As expected, fine-tuning performs poorly due to catastrophic forgetting. Replay-based methods provide moderate improvements but remain limited on more complex datasets, even with more advanced sampling or memory strategies. Expansion-based and prototype-based approaches (CN-DPM, CoPE, and Dynamic OCM) achieve stronger performance, but still show limitations in high-dimensional settings.
In comparison, our GSOM-based methods consistently achieve superior or competitive performance across all benchmarks. A significant aspect of our results is the learning setting in which they are achieved. All compared baselines – except CURL – are trained with full class supervision, receiving ground-truth labels at every update step throughout the data stream, whereas our method is unsupervised. GSOM + ResNet-18 (Global FT) achieves the best results on Split-MNIST (97.21%) and Split CIFAR-10 (58.1%), while also outperforming all baselines on Split CIFAR-100 (35.67%) and Split MiniImageNet (33.60%). Notably, the gains are more pronounced on higher-complexity datasets such as CIFAR-100 and MiniImageNet, where catastrophic forgetting is more severe. Compared to strong baselines such as Dynamic OCM, CoPE, and ER-based methods, GSOM demonstrates improved stability, suggesting that its topology-preserving structure and distribution-driven replay better capture evolving data distributions. When combined with CLIP embeddings, GSOM further improves performance, achieving up to 81.92% on split CIFAR-10 and 65.01% on split CIFAR-100. The improved performance with CLIP highlights the importance of high-quality pretrained embeddings, which provide better class separability and more stable representations under non-i.i.d. streams. This, in turn, enables GSOM to construct more reliable local distributions and to generate more effective replay samples. Consistent improvements in both ResNet-18 and CLIP
Table 2: Performance comparison on Split-MNIST, Split-CIFAR10, and Split-CIFAR100. All methods use a pretrained ResNet-18 encoder and are evaluated over 20 independent runs. We additionally evaluate our method using a pretrained CLIP encoder, also over 20 independent runs. Results marked with * and † are quoted from [19] and [16], respectively. § denotes unsupervised training; methods without § are supervised. Global denotes a frozen shared encoder, Global FT denotes a globally fine-tuned shared encoder, and BMU Specific denotes BMU-wise encoder adaptation.
| Method | Split-MNIST | Split-CIFAR10 | Split-CIFAR100 | Split MiniImagenet |
|---|---|---|---|---|
| iid-online | 85.99 ± 0.03 | 62.23 ± 1.5 | 18.13 ± 0.80 | 17.53 ± 1.6 |
| finetune* | 19.75 ± 0.05 | 18.55 ± 0.34 | 3.53 ± 0.04 | 2.84 ± 0.4 |
| GEM* | 93.25 ± 0.36 | 24.13 ± 2.46 | 11.12 ± 2.48 | - |
| iCARL* | 83.95 ± 0.21 | 37.32 ± 2.66 | 10.80 ± 0.37 | - |
| CURL* § | 92.59 ± 0.66 | - | - | - |
| CN-DPM | 93.23 ± 0.09 | 45.21 ± 0.18 | 20.10 ± 0.12 | 27.07 ± 2.3 |
| reservoir* | 92.16 ± 0.75 | 42.48 ± 3.04 | 19.57 ± 1.79 | - |
| MIR* | 93.20 ± 0.36 | 42.80 ± 2.22 | 20.00 ± 0.57 | 25.21 ± 2.2 |
| GSS* | 92.47 ± 0.92 | 38.45 ± 1.41 | 13.10 ± 0.94 | - |
| CoPE* | 93.94 ± 0.20 | 48.92 ± 1.32 | 21.62 ± 0.69 | - |
| CoPE-CE* | 91.77 ± 0.87 | 39.73 ± 2.26 | 18.33 ± 1.52 | - |
| AGEM† | 29.02 ± 5.3 | 18.49 ± 0.6 | 2.40 ± 0.2 | 2.09 ± 0.3 |
| ER + GMED † | 82.67 ± 1.9 | 34.84 ± 2.2 | 27.27 ± 1.8 | 27.27 ± 1.8 |
| ER_a † | 80.14 ± 3.2 | 46.29 ± 2.7 | 30.77 ± 2.2 | |
| Dynamic OCM | 95.67 ± 0.22 | 51.27 ± 1.47 | 29.87 ± 0.69 | 28.03 ± 2.1 |
| Ours (GSOM + ResNet-18) | ||||
| Global§ | 96.12 ± 0.3 | 58.00 ± 1.31 | 35.67 ± 1.96 | 32.67 ± 1.23 |
| Global FT§ | 97.21 ± 0.45 | 58.1 ± 1.42 | 35.33 ± 1.28 | 33.60 ± 1.45 |
| BMU Specific§ | 94.34 ± 1.1 | 57.11 ± 1.56 | 34.89 ± 1.72 | 32.5 ± 1.06 |
| Ours (GSOM + CLIP) | ||||
| Global§ | 91.11 ± 1.42 | 75.22 ± 1.18 | 62.31 ± 1.67 | 52.78 ± 1.23 |
| Global FT§ | 92.23 ± 1.36 | 78.84 ± 1.52 | 65.01 ± 1.41 | 52.33 ± 1.45 |
| BMU Specific§ | 90.01 ± 1.58 | 81.92 ± 1.27 | 64.22 ± 1.49 | 51.56 ± 1.72 |
settings indicate that GSOM benefits from stronger feature spaces while maintaining robustness through its distribution-driven task-free learning mechanism.
Table 4 reports our GSOM performance on the Split-TinyImageNet benchmark using pretrained representations. With a ResNet-18 backbone, GSOM achieves stable performance in the range of 32–33%, indicating its ability to maintain consistent learning across multiple incremental tasks. When combined with CLIP embeddings, performance improves significantly, reaching up to 60.89%. This substantial gain highlights the impact of stronger pretrained feature representations on large-scale continual learning tasks. In particular, CLIP provides more discriminative and stable embeddings, which help to improve class separability and enable GSOM to construct more reliable local distributions for replay. Overall, our empirical results demonstrate that although GSOM performs competitively with standard pretrained backbones, its effectiveness scales notably with higher-quality representations, reinforcing the importance of feature space quality in CL.
3.2 Single Class Incremental Learning
Table 3 compares our GSOM-based methodology with several well-established CL approaches under the single-class incremental (SCI) setting, where each class is introduced sequentially (10, 100, and 200 tasks for MNIST, CIFAR-10, CIFAR-100, and TinyImageNet, respectively). While these baselines were originally designed for task-based class-incremental learning, we adapt them to the SCI protocol by treating each class arrival as an incremental update step. Importantly, these methods still rely on boundary-driven updates and are therefore not inherently task-free. In contrast, our GSOM-based approach operates in a fully task-free manner, where both representation learning and replay are driven continuously by the evolving data distribution without requiring explicit task or class boundaries. This distinction is especially important in the SCI setting, where the absence of task boundaries leads to more severe distribution shifts and increased forgetting.
As shown in Table 3, traditional regularization-based methods (EWC [9] and LwF [32]) exhibit significant performance degradation across datasets, particularly on CIFAR-10 and CIFAR-100, indicating their inability to retain knowledge under extreme class-sequential streams. More advanced methods, e.g., PGMA [40], RPSNet [41], and OWM [42], achieve moderate improvements but still struggle in high-dimensional settings. In contrast, our GSOM-based methods consistently achieve strong performance, particularly when combined with generative replay. The VAE-based GSOM variants outperform most baselines in the non-pretrained setting, achieving on CIFAR-10
Table 3: Final classification accuracy for single class incremental learning. All baseline methods in this table are task-aware and supervised; they rely on explicit class arrival signals to trigger incremental updates, as opposed to the proposed GSOM framework which is task-free and unsupervised.
| Method | w/o pretraining | w/ pretraining | |||
|---|---|---|---|---|---|
| MNIST | CIFAR10 | CIFAR100 | CIFAR10 | CIFAR100 | |
| EWC | 9.91 | 10.01 | 1.03 | 10.21 | 2.93 |
| LwF | 19.96 | 10.05 | 2.13 | 19.39 | 6.25 |
| IMM | 29.16 | 10.25 | 1.21 | 51.22 | 12.58 |
| PGMA | 71.36 | 20.08 | 1.86 | 56.22 | 12.37 |
| RPSNet | 40.29 | 16.31 | 1.96 | 55.54 | 4.13 |
| OWM | 94.46 | 19.63 | 3.67 | 83.03 | 63.26 |
| DisCOIL | 96.69 | 44.54 | - | - | - |
| Ours (GSOM-based) | |||||
| GSOM only | 92.12 ± 0.84 | - | - | - | - |
| VAE (FT global) | 91.11 ± 1.26 | 51.12 ± 0.57 | 11.22 ± 1.43 | - | - |
| VAE (FT BMU specific) | 90.55 ± 0.91 | 47.72 ± 1.68 | 11.91 ± 0.36 | - | - |
| ResNet-18 (global) | - | - | - | 58.21 ± 1.12 | 36.11 ± 0.49 |
| ResNet-18 (FT global) | - | - | - | 59.01 ± 1.75 | 35.91 ± 0.28 |
| ResNet-18 (FT BMU specific) | - | - | - | 58.65 ± 0.63 | 35.93 ± 1.34 |
| CLIP (global) | - | - | - | 76.11 ± 0.72 | 63.87 ± 1.19 |
| CLIP (FT global) | - | - | - | 79.21 ± 1.51 | 63.83 ± 0.41 |
| CLIP (BMU specific) | - | - | - | 79.03 ± 0.95 | 63.12 ± 1.07 |
Table 4: GSOM-based method performance on Split-TinyImageNet and single-class incremental learning (SCIL) TinyImageNet and MiniImageNet.
| Method | Split-TinyImageNet | TinyImageNet (SCIL) | MiniImageNet (SCIL) |
|---|---|---|---|
| VAE (Global FT) | 6.22 ± 0.67 | 6.12 ± 0.58 | 6.28 ± 1.12 |
| VAE (BMU Specific) | 6.33 ± 0.88 | 6.01 ± 0.73 | 5.94 ± 1.36 |
| GSOM + ResNet-18 (global) | 32.12 ± 0.78 | 30.67 ± 1.23 | 24.21 ± 0.92 |
| GSOM + ResNet-18 (global FT) | 32.78 ± 1.56 | 31.23 ± 0.15 | 25.04 ± 0.71 |
| GSOM + ResNet-18 (BMU Specific) | 32.59 ± 1.89 | 31.61 ± 1.51 | 24.63 ± 0.84 |
| GSOM + CLIP (global) | 57.98 ± 1.11 | 40.45 ± 1.02 | 33.18 ± 0.58 |
| GSOM + CLIP (global FT) | 58.25 ± 1.02 | 42.61 ± 0.91 | 34.02 ± 1.47 |
| GSOM + CLIP (BMU Specific) | 60.89 ± 0.72 | 40.91 ± 1.14 | 34.57 ± 1.52 |
and 11.22% on CIFAR-100, demonstrating the effectiveness of distribution-driven replay without relying on stored exemplars or task identifiers. When combined with pretrained representations, the gains are further amplified. Using CLIP embeddings, GSOM achieves up to 79.21% on CIFAR-10 and 63.87% on CIFAR-100, significantly outperforming most baseline approaches and the best performing rehearsal-based method, i.e., DisCOIL [43]. These results highlight that structured, topology-preserving replay combined with strong feature representations enables robust CL even under highly non-i.i.d. single-class streams.
Benchmark: Single Class Incremental Learning (SCIL) TinyImageNet (200 sequential classes) and MiniImageNet (100 sequential classes): To our knowledge, prior work does not report results under this protocol, as most studies adopt multi-class task splits. SCIL presents a significantly more challenging setting due to the absence of intra-task diversity, as the sequential batch of data consists of only a single class at a time. As shown in Table 4, while VAE-based variants trained from scratch perform poorly (6%), pretrained features substantially improve results, with GSOM + CLIP achieving 42.61% on TinyImageNet and 34.57% on MiniImageNet. These performance improvements are achieved without explicit task boundaries, suggesting that GSOM is better suited for realistic task-free continual learning scenarios when such information is unavailable.
4 Conclusion and Future Work
In this work, we developed a GSOM-based framework for task-free continual learning (CL) that combines surprisal-driven structural growth with generative replay. The GSOM model dynamically adapts its topology to evolving data distributions while its units maintain distributional statistics used to generate synthetic samples, eliminating the need to store raw data. By integrating encoder–decoder architectures, our framework scales from low- to high-dimensional settings. Experimental results on MNIST, CIFAR-10, CIFAR-100, TinyImageNet, and MiniImageNet demonstrate that the proposed approach mitigates catastrophic forgetting and remains competitive with existing CL schemes.
Despite the strengths shown by our proposed method, several limitations remain. The per-BMU encoder–decoder variant, while conceptually preferable for localized specialization, suffers from limited data availability per unit, leading to unstable training and reduced generative quality compared to global models. Additionally, our reliance on Gaussian-based distributional assumptions may not fully capture complex, multimodal data distributions, which can affect the fidelity of synthetic replay. In some cases, overlapping distributions across units may also reduce discriminative performance.
Future work will focus on improving both scalability and representation quality. Parallelizing GSOM updates is a natural direction for improving computational efficiency, particularly in large-scale settings. We will explore parameter-efficient per-BMU fine-tuning, where most encoder-decoder parameters are shared and only lightweight components (e.g., final layers or adapter modules) are BMU-specific. Extending the framework to a purely online learning regime, where each sample is processed in a single pass, is another key step toward real-world deployment. Additionally, more expressive generative models and non-Gaussian or mixture-based sampling strategies could improve our GSOM replay. In sum, this study demonstrates that combining topology-preserving structures with probabilistic growth and generative replay provides a promising direction for scalable, task-agnostic continual learning.
References
[1] Sebastian Thrun. Lifelong learning algorithms. In Learning to learn, pages 181–209. Springer, 1998.
[2] Robert M French. Catastrophic forgetting in connectionist networks. Trends in cognitive sciences, 3(4):128–135, 1999.
[3] Wickliffe Abraham and Anthony Robins. Memory retention - the synaptic stability versus plasticity dilemma. Trends in neurosciences, 28:73–8, 03 2005.
[4] Gido M. van de Ven, Tinne Tuytelaars, and Andreas S. Tolias. Three types of incremental learning. Nature Machine Intelligence, 4(12):1185–1197, 2022.
[5] Yutao Yang, Jie Zhou, Xuanwen Ding, Tianyu Huai, Shunyu Liu, Qin Chen, Yuan Xie, and Liang He. Recent advances of foundation language models-based continual learning: A survey. ACM Comput. Surv., 57(5), January 2025.
[6] Da-Wei Zhou, Hai-Long Sun, Jingyi Ning, Han-Jia Ye, and De-Chuan Zhan. Continual learning with pre-trained models: A survey, 2024.
[7] Buddhi Wickramasinghe, Gobinda Saha, and Kaushik Roy. Continual learning: A review of techniques, challenges, and future directions. IEEE Transactions on Artificial Intelligence, 5(6):2526–2546, 2024.
[8] Jonathan Schwarz, Jelena Luketina, Wojciech M. Czarnecki, Agnieszka Grabska-Barwinska, Yee Whye Teh, Razvan Pascanu, and Raia Hadsell. Progress & compress: A scalable framework for continual learning, 2018.
[9] James Kirkpatrick, Razvan Pascanu, Neil Rabinowitz, Joel Veness, Guillaume Desjardins, Andrei A. Rusu, Kieran Milan, John Quan, Tiago Ramalho, Agnieszka Grabska-Barwinska, Demis Hassabis, Claudia Clopath, Dharshan Kumaran, and Raia Hadsell. Overcoming catastrophic forgetting in neural networks. Proceedings of the National Academy of Sciences, 114(13):3521–3526, 2017.
[10] Andrei A. Rusu, Neil C. Rabinowitz, Guillaume Desjardins, Hubert Soyer, James Kirkpatrick, Koray Kavukcuoglu, Razvan Pascanu, and Raia Hadsell. Progressive neural networks, 2022.
[11] Pietro Buzzega, Matteo Boschini, Angelo Porrello, Davide Abati, and Simone Calderara. Dark experience for general continual learning: a strong, simple baseline, 2020.
[12] Da-Wei Zhou, Qi-Wei Wang, Han-Jia Ye, and De-Chuan Zhan. A model or 603 exemplars: Towards memory-efficient class-incremental learning, 2023.
[13] Rahaf Aljundi, Klaas Kelchtermans, and Tinne Tuytelaars. Task-free continual learning. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), June 2019.
[14] Nuwan Gunasekara, Bernhard Pfahringer, Heitor Murilo Gomes, and Albert Bifet. Survey on online streaming continual learning. In IJCAI, pages 6628–6637, 2023.
[15] Alexander G Ororbia. Continual competitive memory: A neural system for online task-free lifelong learning. arXiv preprint arXiv:2106.13300, 2021.
[16] Xisen Jin, Arka Sadhu, Junyi Du, and Xiang Ren. Gradient-based editing of memory examples for online task-free continual learning, 2021.
[17] Fei Ye and Adrian G Bors. Task-free continual learning via online discrepancy distance learning. Advances in Neural Information Processing Systems, 35:23675–23688, 2022.
[18] Soochan Lee, Junsoo Ha, Dongsu Zhang, and Gunhee Kim. A neural dirichlet process mixture model for task-free continual learning, 2020.
[19] Matthias De Lange and Tinne Tuytelaars. Continual prototype evolution: Learning online from non-stationary data streams, 2021.
[20] Nicolas Michel, Maorong Wang, Jiangpeng He, and Toshihiko Yamasaki. From offline to online memory-free and task-free continual learning via fine-grained hypergradients, 2025.
[21] Da-Wei Zhou, Qi-Wei Wang, Zhi-Hong Qi, Han-Jia Ye, De-Chuan Zhan, and Ziwei Liu. Class-incremental learning: A survey. IEEE Transactions on Pattern Analysis and Machine Intelligence, 46(12):9851–9873, 2024.
[22] T. Kohonen. The self-organizing map. Proceedings of the IEEE, 78(9):1464–1480, 1990.
[23] Pouya Bashivan, Martin Schrimpf, Robert Ajemian, Irina Rish, Matthew Riemer, and Yuhai Tu. Continual learning with self-organizing maps, 2019.
[24] Kosmas Pinitas, Spyridon Chavlis, and Panayiota Poirazi. Dendritic self-organizing maps for continual learning, 2021.
[25] Hitesh Vaidya, Travis Desell, and Alexander Ororbia. Reducing catastrophic forgetting in self-organizing maps with internally-induced generative replay. CoRR, abs/2112.04728, 2021.
[26] D. Alahakoon, S.K. Halgamuge, and B. Srinivasan. Dynamic self-organizing maps with controlled growth for knowledge discovery. IEEE Transactions on Neural Networks, 11(3):601–614, 2000.
[27] Diederik P. Kingma and Max Welling. An introduction to variational autoencoders. Foundations and Trends® in Machine Learning, 12(4):307–392, 2019.
[28] Alec Radford, Jong Wook Kim, Chris Hallacy, Aditya Ramesh, Gabriel Goh, Sandhini Agarwal, Girish Sastry, Amanda Askell, Pamela Mishkin, Jack Clark, Gretchen Krueger, and Ilya Sutskever. Learning transferable visual models from natural language supervision, 2021.
[29] Bernd Fritzke. A growing neural gas network learns topologies. Advances in neural information processing systems, 7, 1994.
[30] Diederik P. Kingma and Jimmy Ba. Adam: A method for stochastic optimization, 2017.
[31] Friedemann Zenke, Ben Poole, and Surya Ganguli. Continual learning through synaptic intelligence, 2017.
[32] Zhizhong Li and Derek Hoiem. Learning without forgetting. IEEE Transactions on Pattern Analysis and Machine Intelligence, 40(12):2935–2947, 2018.
[33] David Lopez-Paz and Marc’Aurelio Ranzato. Gradient episodic memory for continual learning, 2022.
[34] Sylvestre-Alvise Rebuffi, Alexander Kolesnikov, Georg Sperl, and Christoph H. Lampert. icarl: Incremental classifier and representation learning, 2017.
[35] Rahaf Aljundi, Min Lin, Baptiste Goujaud, and Yoshua Bengio. Gradient based sample selection for online continual learning, 2019.
[36] Dushyant Rao, Francesco Visin, Andrei Rusu, Razvan Pascanu, Yee Whye Teh, and Raia Hadsell. Continual unsupervised representation learning. Advances in neural information processing systems, 32, 2019.
[37] Fei Ye and Adrian G. Bors. Continual variational autoencoder learning via online cooperative memorization, 2022.
[38] Guannan Hu, Wu Zhang, Hu Ding, and Wenhao Zhu. Gradient episodic memory with a soft constraint for continual learning. CoRR, abs/2011.07801, 2020.
[39] David Rolnick, Arun Ahuja, Jonathan Schwarz, Timothy P. Lillicrap, and Greg Wayne. Experience replay for continual learning, 2019.
[40] Wenpeng Hu, Zhou Lin, Bing Liu, Chongyang Tao, Zhengwei Tao, Jinwen Ma, Dongyan Zhao, and Rui Yan. Overcoming catastrophic forgetting via model adaptation. In International Conference on Learning Representations, 2019.
[41] Jathushan Rajasegaran, Munawar Hayat, Salman Khan, Fahad Khan, Ling Shao, and Ming-Hsuan Yang. An adaptive random path selection approach for incremental learning. 01 2020.
[42] Guanxiong Zeng, Yang Chen, Bo Cui, and Shan Yu. Continuous learning of context-dependent processing in neural networks. CoRR, abs/1810.01256, 2018.
[43] Wenju Sun, Qingyong Li, Jing Zhang, Danyu Wang, Wen Wang, and Yangli-ao Geng. Exemplar-free class incremental learning via discriminative and comparable one-class classifiers. CoRR, abs/2201.01488, 2022.
[44] Barry Payne Welford. Note on a method for calculating corrected sums of squares and products. Technometrics, 4(3):419–420, 1962.
Appendix

Figure 2: The proposed GSOM growth mechanism. When a unit (highlighted in yellow) exceeds the growth threshold, new units are added in its immediate 4-neighborhood, i.e., at and if those positions are not already occupied.
A Negative Log-Likelihood of a Multivariate Gaussian
The surprisal (negative log-likelihood) of a sample under a Gaussian distribution is obtained by taking the negative logarithm of the probability density function and applying standard logarithmic identities.
Algorithm 1 Unified Algorithm for batch-wise Continual learning with the GSOM and optional encoder/decoder models.
Input: Stream of batches ; flags GLOBAL; replay samples per BMU Output: GSOM, (optional) global encoder/decoder
1: Initialize GSOM; initialize replay set 2: if GLOBAL then initialize global encoder/decoder 3: for to do 4: 5: // Encode features for GSOM update 6: if GLOBAL then 7: Train or update global encoder/decoder on 8: 9: Update GSOM with (including neighborhood and growth updates) 10: else 11: Update GSOM with (including neighborhood and growth updates) 12: end if 13: // Build replay for subsequent batches
14: for each active BMU do 15: Obtain BMU statistics 16: 17: BIASCORRECT 18: for to do 19: 20: 21: Append to 22: end for 23: end for 24: Set 25: end for 26: return GSOM, (global encoder/decoder if used)
B Running Distributional Statistic Bias Correction
A practical issue with exponential moving averages, as computed by the GSOM units, is their bias towards the initial value encountered during early training. For instance, when updating the running mean via , with initial condition , the estimate tends to underestimate the true mean because it implicitly incorporates a zero-initialization. This issue is particularly pronounced in continuous learning settings, where some units may initially receive only a small number of samples. To mitigate this effect, we apply a bias correction similar to that used in the well-established Adam optimizer [30]. The corrected estimates for each unit are then as follows: , , where denotes the number of
BMU updates received by the unit to date and are exponential decay rates for the corresponding statistics. This correction ensures that the estimated parameters remain unbiased during early training, providing stable distribution estimates and well-conditioned covariances for both generative replay and surprisal evaluation. Unlike unbiased online estimators, such as Welford's algorithm [44], exponential updates are used because the distribution of samples mapped to a GSOM unit may evolve as the topology grows and change as a result of the data stream.
C GSOM Error Accumulation and Redistribution
For each unit b, the accumulated quantization error is updated whenever the unit is selected as the Best Matching Unit (BMU):
where z is the input sample and is the weight vector of unit b. This formulation follows the standard GSOM definition, where the error accumulates as the Euclidean distance between the input and the BMU weight.
When growth is triggered at a boundary unit, the accumulated error at that unit is reset:
When an interior unit exceeds the growth threshold but no free neighbouring position exists in its four-neighbourhood , direct expansion is not possible. In this case, the accumulated error is redistributed to its neighbours following the standard GSOM rule [26]:
where denotes the set of the four adjacent grid neighbours of unit b.
This redistribution conserves the total accumulated error: the BMU retains half of its error, while the remaining half is distributed equally among its four neighbours. This mechanism allows growth pressure to propagate from interior regions toward nearby boundary units where expansion is feasible.
D Encoder-Decoder per BMU setup
While a global encoder–decoder uses single model memory only and benefits from training on the full dataset, it must generalize across diverse and often underrepresented regions of the latent space. In contrast, the per-BMU approach trains localized models using samples assigned to each unit, enabling region-specific specialization at the cost of additional memory (Algorithm 2). After mapping inputs to their corresponding BMUs, the associated samples are used to train local models, whose decoders focus on reconstructing data from specific regions of the latent space. During replay, latent samples drawn from GSOM statistics are decoded using the corresponding local model rather than a shared decoder. The motivation for this design is to align the generative capacity with the SOM topology, allowing each decoder to specialize in a local region of the latent space and improving the quality of reconstruction. However, this approach introduces additional memory overhead due to maintaining a separate model per active unit, and may become less scalable as the number of units increases. The results presented in the main paper for this variant are intended as an initial exploration of its potential with further discussion on scalability and potential improvements provided in the Discussion and Future Work section.
E Experimental Settings
Table 6 summarizes the hyperparameter configurations used across all GSOM-based experiments. Unless otherwise specified, GSOM units were initialized using random samples drawn from the input data or latent representations of the first batch of data observed during training, consistent with the class-incremental learning setup. Alternative initialization strategies, including uniform sampling over and initialization using the global mean of the data, were also evaluated but resulted in inferior performance. For each GSOM unit, the associated statistics were initialized as follows: the mean vector was initialized to zero, the variance vector to ones, and the covariance matrix to zero. We additionally explored diagonal covariance initialization and initialization using latent statistics.
Algorithm 2 Unified Algorithm for Batch-Wise Continual Learning with GSOM with Encoder/Decoder Models per GSOM unit
Input: Stream of batches ; replay samples per BMU Output: GSOM, global encoder/decoder, per-BMU encoder/decoder models
1: Initialize GSOM; initialize replay set 2: Initialize global encoder/decoder (, ) 3: Initialize per-BMU model dictionary 4: for to do 5: 6: Train or update global encoder/decoder on 7: 8: Update GSOM with (including neighborhood and growth updates) 9: // Train per-BMU local models on assigned subsets 10: Assign each to BMU using its current representation 11: ( if global encoder is used, else raw ) 12: for each BMU with assigned set do 13: Train or update local model on 14: Store/refresh 15: Re-encode with the encoder of to refine local GSOM updates
16: end for 17: // Build replay for subsequent batches 18: 19: for each BMU such that do 20: Obtain BMU statistics 21: 22: BIASCORRECT 23: for to do 24: 25: 26: Append to 27: end for 28: end for 29: Set 30: end for 31: return GSOM, global (, ), per-BMU models
from a pretrained VAE; however, these alternatives did not provide consistent improvements. During training, exponential moving averages were maintained for the mean, variance, and covariance of each unit. The Best Matching Units (BMUs) were identified using Euclidean distance between the input (or latent) vector and GSOM unit weights. While other distance metrics, including cosine similarity, Manhattan (L1) distance, and Mahalanobis distance, were explored, Euclidean distance as a measure for the BMUs consistently provided the most stable and accurate results across datasets. The following hyperparameter settings were explored for the bias correction:
Table 5: Bias-correction hyperparameters with best-performing values and additional settings tested.
| Parameter | Symbol | Best value | Other values tested |
|---|---|---|---|
| Mean | 0.99 | 0.98, 0.95 | |
| Variance / Cov. | 0.95 | 0.91, 0.99, 0.90 |
Unlike fixed SOMs, GSOM dynamically expands its topology during training. To control model growth, expansion was constrained using two hyperparameters: the number of growth iterations () and the maximum number of units added per iteration (). Growth was only permitted during the initial iterations of each batch, after which the map structure was fixed for the remaining training iterations. This design prevents uncontrolled expansion while allowing the model to adapt to new data.
We observed that increasing growth flexibility (i.e., larger and ) improves representational capacity and accuracy but leads to higher computational and memory costs. Conversely, more restrictive growth produces compact maps with faster training at the expense of reduced performance. For all reported experiments, we adopt conservative growth settings (e.g., , ) to balance accuracy and efficiency. Growth decisions were driven by a Mahalanobis-based surprisal criterion computed using the running statistics of each unit. The growth threshold was determined adaptively to ensure stable, data-driven expansion. The threshold was set to the 92nd percentile of the most recent values after sufficient observations had been collected, allowing growth sensitivity to adjust to the evolving data distribution.
For generative configurations, synthetic samples were generated using the estimated mean and covariance of each GSOM unit, following the procedure described in Algorithm 3. VAE hyperparameters, including latent dimensionality, learning rate, and batch size, were selected based on reconstruction quality and training stability. In pretrained encoder-based setups (e.g., CLIP ViT-B/32 and ResNet-18), embeddings were kept frozen by default to preserve learned representations, with optional fine-tuning of the final layers. These configurations provided stable performance across datasets while maintaining reasonable computational cost.
Algorithm 3 Synthetic Sample Generation using Mean and Covariance (bias-corrected, Appendix B)
Require: Trained SOM, BMU coordinates , number of samples , regularization constant 1: 2: 3: // Add diagonal regularization 4: Compute eigen-decomposition: 5: // Clamp eigenvalues 6: 7: Sample 8: return samples
F Ablation Studies
F.1 GSOM versus Fixed-Capacity SOM
The results in Table 7 compare fixed SOM and GSOM under bias-corrected settings across datasets and configurations. While the fixed SOM generally achieves higher accuracy—particularly in the CLIP-based setting—this is expected due to differences in the learning paradigm. The fixed SOM operates in a task-aware manner, with replay performed at the end of each class, thereby effectively leveraging known task boundaries. In contrast, GSOM is fully task-free and performs replay continuously at the batch level without access to class information, making the learning problem inherently more challenging due to the absence of explicit distribution shift signals.
In addition to accuracy, the table highlights differences in representational capacity. The fixed SOM uses a constant topology (1600 units) across all datasets, whereas GSOM dynamically adapts its size based on data complexity. As observed, GSOM produces significantly more compact maps for simpler datasets (e.g., 357–376 units for MNIST), while scaling to larger sizes for more complex datasets (e.g., 956–1392 units for VAE-based settings and up to 1508 units for CLIP-based settings).
Overall, these results highlight a trade-off between performance and flexibility. While fixed SOM benefits from task-aware replay and a fixed high-capacity topology, GSOM offers a fully task-agnostic alternative with adaptive capacity, achieving competitive performance while efficiently allocating representational resources based on the data.
F.2 Growth Sensitivity
The growth in GSOM is controlled by two key hyperparameters: the number of growth iterations ( ) and the maximum number of units added per iteration ( ). These parameters directly influence the trade-off between representational capacity and performance. Increasing and allows the map to expand more aggressively, leading to larger topologies and improved accuracy due to enhanced representation of incoming data. However, excessive growth leads to disproportionately large maps with diminishing returns in performance, increasing memory and computational cost without significant accuracy gains. Conversely, restricting growth results in more compact maps with reduced computational cost but lower accuracy. We use and as the baseline configuration for all primary comparisons. As shown in Table 8, GSOM demonstrates consistent behavior across datasets, where increased growth flexibility improves performance at the expense of model size. The selected baseline configuration balances this trade-off, providing stable accuracy with controlled expansion.
F.3 Growth Criterion
Table 9 compares three variants of the growth trigger: accumulated quantization error alone ( , equivalent to standard GSOM [26]), Mahalanobis surprisal alone ( ), and the proposed combined criterion. The results indicate that the original GSOM growth rule based solely on accumulated quantization error yields the lowest performance across all datasets. Replacing the error criterion with the proposed surprisal measure improves performance, suggesting that distribution-aware growth better captures emerging data structure. The combined criterion achieves the strongest overall results, indicating that the quantization error term acts as a stabilizing gate while the surprisal term enables more adaptive topology expansion.
Table 6: Unified hyperparameter configuration across all experiments. Shared GSOM parameters are consistent unless otherwise specified.
| Component | Parameter | Value |
|---|---|---|
| Datasets | ||
| MNIST | (grayscale) | |
| CIFAR-10 / CIFAR-100 | ||
| TinyImageNet / MiniImageNet | ||
| Shared GSOM Parameters | ||
| Initial Map Size | (MNIST), (CIFAR10) (CIFAR100/Mini/TinyImagenet) | |
| Max Nodes | 2000 | |
| SOM Iterations per Batch/Class | 30 (MNIST), 100 (Others) | |
| Learning Rate | 0.4–0.5 | |
| Sigma (Neighborhood Width) | 0.9–0.96 | |
| Neighborhood Function | Gaussian | |
| Distance Metric | Euclidean | |
| Batch Size | 32 (MNIST), 64–128 (others) | |
| Growth Parameters | ||
| Spread Factor | 0.7–0.8 | |
| Growth Iterations () | 5 (MNIST), 9 (ResNet/VAE), 10 (CLIP) | |
| Max Growth per Iterations () | 2 (MNIST), 4 (ResNet/VAE), 14 (CLIP) | |
| Min BMU Hits | 5–7 | |
| Growth Cooldown | 40 iterations | |
| Mahalanobis Threshold | 92–93 percentile (adaptive) | |
| Growth Probability | Linearly decayed () | |
| Error Decay | 0.85–0.88 | |
| Replay and Statistics | ||
| Sampling Method | Gaussian (per-BMU mean/covariance) | |
| Covariance Regularization | ||
| Replay Samples per BMU | ||
| VAE Configuration | ||
| Latent Dimension | 32, 64, 128 | |
| Iterations | 200 | |
| Batch Size | 128, 256 | |
| Learning Rate | to | |
| Optimizer | Adam | |
| Architecture | ResNet-style VAE | |
| Loss | Reconstruction + KL | |
| ResNet-18 Configuration | ||
| Encoder | ResNet-18 (ImageNet pretrained) | |
| Embedding Dimension | 512 | |
| Input Resolution | ||
| Fine-tuning | Frozen / last block FT | |
| Decoder | Conv / transposed conv | |
| Training | End-to-end with replay | |
| CLIP Configuration | ||
| Encoder | CLIP ViT-B/32 (OpenAI) | |
| Embedding Dimension | 512 | |
| Input Resolution | (upsampled) | |
| Fine-tuning | Frozen / last block FT | |
| Decoder | Transposed conv (attention-based) | |
| Feature Handling | Pooled embedding | |
F.4 Studying Bias versus No Bias Correction
We evaluate the impact of bias correction on the running statistics used within GSOM. Without bias correction, exponential moving averages are biased toward their initial values, particularly during early training when units receive limited updates, which leads to underestimation of the true mean and poorly conditioned variance and covariance estimates, which negatively affect both generative replay and surprisal-based growth decisions.
As observed in our experiments (Table 10), the bias-corrected variant consistently outperforms the non-corrected version across all datasets. Although the improvements are modest, they are consistent,
Table 7: Comparison of fixed SOM and GSOM (with bias) across datasets. Results are reported as accuracy (%), with the number of best-matching units (BMUs) after final training shown in parentheses. The fixed SOM uses a grid (1600 units) for all datasets.
| Method | Model | Split-MNIST | Split-CIFAR-10 | Split-CIFAR-100 | Split-TinyImageNet |
|---|---|---|---|---|---|
| SOM-only | |||||
| Fixed | SOM-only | 92.11 ± 1.18 (1600) | - | - | - |
| GSOM | GSOM-only | 91.22 ± 1.23 (357) | - | - | - |
| VAE (Global FT) | |||||
| Fixed | SOM + VAE | 91.23 ± 1.21 (1600) | 53.01 ± 1.18 (1600) | 14.63 ± 0.33 (1600) | 12.74 ± 0.84 (1600) |
| GSOM | GSOM + VAE | 92.11 ± 0.98 (376) | 50.11 ± 0.89 (956) | 13.81 ± 1.05 (1167) | 6.22 ± 0.67 (1241) |
| CLIP (Global FT) | |||||
| Fixed | SOM + CLIP | - | 81.24 (1600) | 67.19 (1600) | 60.13 (1600) |
| GSOM | GSOM + CLIP | 92.23 ± 1.36 (428) | 78.84 ± 1.52 (1034) | 65.01 ± 1.41 (1262) | 58.25 ± 1.02 (1408) |
Table 8: Growth sensitivity analysis of GSOM with global ResNet-18. Increasing growth parameters improves accuracy but increases map size. Results are reported as accuracy (%), with the number of best-matching units (BMUs) after final training shown in parentheses.
| Split-MNIST | Split-CIFAR-10 | Split-CIFAR-100 | Split-TinyImageNet | ||
|---|---|---|---|---|---|
| 6 | 3 | 95.01 (432) | 57.41 (1012) | 35.01 (1284) | 31.74 (1386) |
| 7 | 3 | 95.26 (468) | 57.72 (1089) | 35.32 (1352) | 32.05 (1438) |
| 9 | 4 | 96.12 (498) | 58.00 (956) | 35.67 (1161) | 32.12 (1312) |
| 10 | 5 | 96.42 (548) | 58.11 (1184) | 35.74 (1426) | 32.28 (1502) |
| 20 | 14 | 96.45 (712) | 58.18 (1621) | 35.81 (1895) | 32.36 (2143) |
indicating that bias correction provides more reliable statistical estimates and improves overall training stability.
G Generative Capability of the Proposed Method
Our proposed model can also be used as a generative model, which is capable of synthesizing samples without storing original data. For MNIST, as we only use the SOM for training, image samples are generated using Gaussian sampling as described in the paper. After training, each SOM unit stores the specific statistics in the form of mean and variance, and they are used to generate sample images. Figure 3 illustrates some of the samples generated for each class using this method.
For other datasets, we combine a VAE and the SOM trained on the VAE's latent space, where, after training, the SOM statistics store the mean, variance, and full covariance matrix of the latent samples. Synthetic latent samples are then generated using eigen-decomposition of the covariance, and then decoded using the VAE decoder to reconstruct the images. Figure 4 and 1 illustrate some of the samples generated for each class using this method.
H Class Level Analysis
To further analyze model behavior, we present row-normalized confusion matrices under the single-class incremental learning (SCIL) setting in Figure 5. We analyze the global VAE–GSOM behavior using row-normalized confusion matrices, which reveal how prediction mass is distributed for each true class as dataset complexity increases. For larger datasets (CIFAR-100, MiniImageNet, and TinyImageNet), classes are grouped into coarse categories to improve interpretability.
For MNIST, predictions are almost entirely concentrated along the diagonal, indicating strong class separability and effective retention with minimal interference. On CIFAR-10, the diagonal remains dominant but becomes broader, with noticeable confusion among visually similar classes, reflecting partial overlap in learned representations. This spread increases for CIFAR-100 and MiniImageNet, where predictions are more distributed across related groups. While correct classes still receive higher mass, the diagonals are less pronounced, and structured cross-group confusion becomes more evident. On TinyImageNet, the most challenging setting, the matrix is highly diffuse, with weak diagonal
Table 9: Ablation study of GSOM growth criteria across continual learning benchmarks on Split datasets.
| Method | MNIST | CIFAR-10 | CIFAR-100 |
|---|---|---|---|
| Global VAE-GSOM (Error only) | 89.42 ± 1.21 | 44.87 ± 1.03 | 10.92 ± 0.88 |
| Global VAE-GSOM (Surprisal only) | 91.26 ± 1.04 | 48.63 ± 0.95 | 12.97 ± 0.96 |
| Global VAE-GSOM (Error + Surprisal) | 92.11 ± 0.98 | 50.11 ± 0.89 | 13.81 ± 1.05 |
Table 10: Effect of bias correction across GSOM + ResNet-18 configurations. Results are reported as accuracy (%).
| Setting | Model | Split-MNIST | Split-CIFAR10 | Split-CIFAR100 | Split-MiniImageNet |
|---|---|---|---|---|---|
| No Bias | |||||
| Global | 95.84 ± 0.41 | 57.21 ± 1.44 | 34.72 ± 2.03 | 31.58 ± 1.37 | |
| Global FT | 96.58 ± 0.52 | 57.34 ± 1.51 | 34.91 ± 1.39 | 32.71 ± 1.53 | |
| BMU Specific | 93.61 ± 1.28 | 56.32 ± 1.67 | 34.02 ± 1.88 | 31.74 ± 1.21 | |
| Bias | |||||
| Global | 96.12 ± 0.30 | 58.00 ± 1.31 | 35.67 ± 1.96 | 32.67 ± 1.23 | |
| Global FT | 97.21 ± 0.45 | 58.10 ± 1.42 | 35.33 ± 1.28 | 33.60 ± 1.45 | |
| BMU Specific | 94.34 ± 1.10 | 57.11 ± 1.56 | 34.89 ± 1.72 | 32.50 ± 1.06 | |

Figure 3: Synthetic samples generated using Gaussian sampling from the trained SOM. Each row corresponds to one class (0–9), and each row contains 10 synthetic samples generated from BMUs labeled with that class.
dominance and significant mixing across groups. Despite this, the predictions are not entirely random, and some residual structure is preserved.
Overall, these matrices show a gradual shift from concentrated, confident predictions to more distributed outputs as task difficulty increases, highlighting both the robustness and the limitations of replay in complex, fine-grained scenarios.
I Continual Learning Metrics
Tables 11–14 report the full per-task accuracy matrices and corresponding continual learning metrics for CIFAR-10 and CIFAR-100 using the GSOM with a globally trained VAE (from scratch). We evaluate forward transfer (FWT), backward transfer (BWT), and forgetting using the standard formulation ([33]).
Across both datasets, the structure of the matrices reveals a gradual degradation of performance along the rows, indicating the presence of catastrophic forgetting. This effect is relatively mild for CIFAR-10, where earlier tasks retain moderate accuracy, but it becomes significantly more pronounced for CIFAR-100 due to increased task complexity and class diversity. Since the model operates in a single-head, fully unsupervised class-incremental setting, it has no prior capability on unseen

(a) CIFAR10

(b) CIFAR100
Figure 4: Synthetic CIFAR-10 samples generated by sampling latent vectors from a Self-Organizing Map (SOM) trained on VAE latent space. Each latent vector was sampled from the full-covariance Gaussian distribution of a Best Matching Unit (BMU) labeled with the target class. The sampled latents were then decoded into images using VAE. Each row corresponds to one class (0–9).
classes, resulting in before learning task t. Consequently, FWT is consistently negative and approximately equal in magnitude to the per-class baseline accuracy, confirming the absence of forward transfer. Backward transfer (BWT) is negative for early tasks, reflecting degradation in performance as new tasks are learned. For later tasks, BWT approaches zero and occasionally becomes slightly positive, indicating reduced interference and minor stabilization effects. Forgetting follows a similar trend: earlier tasks exhibit higher forgetting due to cumulative updates, while later tasks show reduced forgetting as fewer subsequent updates occur. The final task does not experience forgetting, as no further updates are applied after it is learned.
Table 11: Per-task class accuracy matrix for CIFAR-10 across 10 sequential tasks for GSOM with a global VAE (latent dimension ).
| t \ j | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 |
|---|---|---|---|---|---|---|---|---|---|---|
| 0 | 1 | - | - | - | - | - | - | - | - | - |
| 1 | 0.823 | 0.781 | - | - | - | - | - | - | - | - |
| 2 | 0.692 | 0.724 | 0.703 | - | - | - | - | - | - | - |
| 3 | 0.641 | 0.701 | 0.553 | 0.582 | - | - | - | - | - | - |
| 4 | 0.613 | 0.693 | 0.427 | 0.521 | 0.503 | - | - | - | - | - |
| 5 | 0.592 | 0.674 | 0.391 | 0.402 | 0.481 | 0.434 | - | - | - | - |
| 6 | 0.571 | 0.651 | 0.364 | 0.352 | 0.443 | 0.423 | 0.552 | - | - | - |
| 7 | 0.553 | 0.632 | 0.352 | 0.341 | 0.412 | 0.401 | 0.541 | 0.603 | - | - |
| 8 | 0.482 | 0.604 | 0.331 | 0.332 | 0.391 | 0.392 | 0.553 | 0.592 | 0.703 | - |
| 9 | 0.504 | 0.583 | 0.351 | 0.253 | 0.423 | 0.421 | 0.562 | 0.603 | 0.712 | 0.701 |
Table 12: Per-task Forward Transfer (FWT), Backward Transfer (BWT), and Forgetting for CIFAR-10 using GSOM with a VAE trained from scratch.
| Task | FWT | BWT | Forgetting |
|---|---|---|---|
| 0 | - | -0.4960 | 0.4960 |
| 1 | -0.6810 | -0.1980 | 0.1980 |
| 2 | -0.5130 | -0.3520 | 0.3520 |
| 3 | -0.6860 | -0.3290 | 0.3290 |
| 4 | -0.4900 | -0.0800 | 0.0800 |
| 5 | -0.5540 | -0.0130 | 0.0130 |
| 6 | -0.2680 | 0.0100 | -0.0090 |
| 7 | -0.4010 | 0.0000 | 0.0000 |
| 8 | -0.6150 | 0.0090 | -0.0090 |
| 9 | -0.8130 | 0.0000 | - |
Confusion Matrix (MNIST global VAE GSOM)

(a) MNIST
Confusion Matrix (CIFAR10 global VAE GSOM)

(b) CIFAR-10
Confusion Matrix (CIFAR100 global VAE GSOM)

(c) CIFAR-100
Confusion Matrix (MiniImageNet global VAE GSOM)

(d) MiniImageNet
Confusion Matrix (Tiny-ImageNet, global VAE GSOM)

(e) TinyImageNet
Figure 5: Row-normalized confusion matrices for the global VAE–GSOM model across datasets. Each row shows the prediction distribution for a given true class.
J Encoder Decoder architectures
For experiments involving pretrained encoders, we adopt a unified decoding strategy to reconstruct images from latent representations. Specifically, the ResNet-18 encoder (Table 16) produces a 512-dimensional feature vector, which is projected to a low-resolution spatial grid and progressively upsampled through a series of residual and transposed convolution blocks to recover the image. In parallel, CLIP-based configurations (Table 17) follow a similar decoding pipeline, but incorporate higher-capacity channels and attention modules to better capture the structure of semantic embeddings. By default, pretrained encoders are kept frozen to preserve their learned representations, with optional fine-tuning of the final layers (e.g., the last residual block in ResNet-18 or the final transformer block in CLIP) to improve adaptation in the continual learning setting. For models trained from scratch, we employ the residual VAE architecture (Table 15), which encodes images into compact latent representations and reconstructs them symmetrically using ResUp blocks. Across all configurations, decoded samples are used for generative replay, where latent representations are mapped onto GSOM grids of varying sizes depending on dataset complexity.
Table 13: Task accuracy matrix for CIFAR-100 across 10 sequential tasks for GSOM with a global VAE (latent dimension ).
| t \ j | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 |
|---|---|---|---|---|---|---|---|---|---|---|
| 0 | 0.937 | - | - | - | - | - | - | - | - | - |
| 1 | 0.781 | 0.574 | - | - | - | - | - | - | - | - |
| 2 | 0.384 | 0.356 | 0.342 | - | - | - | - | - | - | - |
| 3 | 0.342 | 0.351 | 0.329 | 0.318 | - | - | - | - | - | - |
| 4 | 0.311 | 0.326 | 0.304 | 0.317 | 0.292 | - | - | - | - | - |
| 5 | 0.284 | 0.302 | 0.281 | 0.297 | 0.278 | 0.265 | - | - | - | - |
| 6 | 0.263 | 0.281 | 0.267 | 0.279 | 0.264 | 0.252 | 0.241 | - | - | - |
| 7 | 0.241 | 0.259 | 0.247 | 0.262 | 0.251 | 0.239 | 0.229 | 0.221 | - | - |
| 8 | 0.181 | 0.198 | 0.193 | 0.204 | 0.199 | 0.191 | 0.186 | 0.179 | 0.173 | - |
| 9 | 0.106 | 0.112 | 0.101 | 0.198 | 0.102 | 0.134 | 0.137 | 0.136 | 0.095 | 0.101 |
Table 14: Per-task Forward Transfer (FWT), Backward Transfer (BWT), and Forgetting for CIFAR-100 using GSOM with a global VAE.
| Task | FWT | BWT | Forgetting |
|---|---|---|---|
| 0 | - | -0.8310 | 0.8310 |
| 1 | -0.1020 | -0.4620 | 0.4620 |
| 2 | -0.0890 | -0.2410 | 0.2410 |
| 3 | -0.0820 | -0.1200 | 0.1200 |
| 4 | -0.0790 | -0.1900 | 0.1900 |
| 5 | -0.0750 | -0.1310 | 0.1310 |
| 6 | -0.0730 | -0.1040 | 0.1040 |
| 7 | -0.0710 | -0.0850 | 0.0850 |
| 8 | -0.0690 | -0.0780 | 0.0780 |
| 9 | -0.0670 | 0.0000 | - |
Table 15: Architecture of the VAE model used for CIFAR-10/100 (input size: ). ResDown and ResUp denote residual blocks with downsampling and upsampling, respectively. All activations are ELU except for the output layer, which uses Tanh.
| Layer | Kernel / Type | Stride / Scale | Activation | Skip | Output Shape | Params |
|---|---|---|---|---|---|---|
| Encoder | ||||||
| Conv2d (Input) | 1 | - | No | 896 | ||
| ResDown Block 1 | ELU | Yes | 46.3K | |||
| ResDown Block 2 | ELU | Yes | 184.6K | |||
| ResDown Block 3 | ELU | Yes | 737.9K | |||
| ResDown Block 4 | ELU | Yes | 2.36M | |||
| ResBlock | ELU | Yes | 2.36M | |||
| Conv2d () | 1 | - | No | 16.4K | ||
| Conv2d () | 1 | - | No | 16.4K | ||
| Decoder | ||||||
| Conv2d (Latent) | 1 | ELU | No | 16.9K | ||
| ResBlock | ELU | Yes | 2.36M | |||
| ResUp Block 1 | Upsample | ELU | Yes | 627.4K | ||
| ResUp Block 2 | Upsample | ELU | Yes | 295.2K | ||
| ResUp Block 3 | Upsample | ELU | Yes | 184.5K | ||
| ResUp Block 4 | Upsample | ELU | Yes | 82.9K | ||
| Conv2d (Output) | 1 | Tanh | No | 2.4K | ||
| Total Parameters | 9.3M | |||||
K Visualization of Learned Representations
Figure 6–8 present the evolution of GSOM unit representations across tasks for MNIST, CIFAR10, and CIFAR100 datasets. For MNIST, the learned representations quickly organize into well-structured and visually coherent prototypes, with clear class-specific patterns emerging after each task and
Table 16: Decoder architecture used for ResNet-18 + GSOM experiments. The encoder is an ImageNet-pretrained ResNet-18 that outputs a 512-dimensional feature vector. The decoder maps this embedding back to the dataset-native RGB image resolution (32 × 32 for CIFAR-10/100, 64 × 64 for TinyImageNet, 84 × 84 for MiniImageNet). GN denotes GroupNorm.
| Layer | Operation / Details | Activation | Norm | Output Shape |
|---|---|---|---|---|
| Linear projection | FC(512 → 512 · 4 · 4), reshape | SiLU | GN | |
| ResBlock | Conv 3×3 + Conv 3×3 | SiLU | GN | |
| Upsample Block 1 | ConvTranspose2d 4×4, stride 2 | SiLU | GN | |
| ResBlock | Conv 3×3 + Conv 3×3 | SiLU | GN | |
| Upsample Block 2 | ConvTranspose2d 4×4, stride 2 | SiLU | GN | |
| ResBlock | Conv 3×3 + Conv 3×3 | SiLU | GN | |
| Upsample Block 3 | ConvTranspose2d 4×4, stride 2 | SiLU | GN | |
| ResBlock | Conv 3×3 + Conv 3×3 | SiLU | GN | |
| Optional Upsample Block | ConvTranspose2d 4×4, stride 2; used only for TinyImageNet/MiniImageNet | SiLU | GN | |
| Output Head | Conv 3×3 → 3 channels | Tanh | - | |
| Resize (MiniImageNet only) | Bilinear interpolation 64 × 64 → 84 × 84 | - | - |
Table 17: Decoder Architecture used for CLIP+SOM experiments. The encoder is the CLIP ViT-B/32 visual tower (pretrained) and is frozen by default; when finetune_last is enabled, only the last transformer block of ViT-B/32 is unfrozen. The decoder upsamples a single CLIP embedding to the target RGB image in . GN denotes GroupNorm(32).
| Layer | Operation / Details | Blocks | Activation | GN | Output Shape |
|---|---|---|---|---|---|
| Linear (embed→4×4) | FC(D→base_ch·4·4) | - | - | Yes | |
| ResBlock | Conv 3×3 (GN+SiLU) | 1+1 | SiLU | Yes | |
| Upsample | ConvTranspose2d 4×4 | ×2 | - | Yes | |
| ResBlock (ch↓) | Conv 3×3 (GN+SiLU) | 1+1 | SiLU | Yes | |
| Upsample | ConvTranspose2d 4×4 | ×2 | - | Yes | |
| ResBlock (+Attn) | Conv 3×3 + SelfAttn2d | 1+1 | SiLU | Yes | |
| ResBlock (ch↓) | Conv 3×3 (GN+SiLU) | 1+1 | SiLU | Yes | |
| Upsample | ConvTranspose2d 4×4 | ×2 | - | Yes | |
| ResBlock (+Attn) | Conv 3×3 + SelfAttn2d | 1+1 | SiLU | Yes | |
| ResBlock (ch↓) | Conv 3×3 (GN+SiLU) | 1+1 | SiLU | Yes | |
| Upsample | ConvTranspose2d 4×4 | ×2 | - | Yes | |
| ResBlock | Conv 3×3 (GN+SiLU) | 1+1 | SiLU | Yes | |
| Output head | GN → SiLU → 3×3 → Tanh | 1 | Tanh | Yes | |
| Resize (MiniImageNet only) | Bilinear interpolation 64 × 64 → 84×84 | - | - | - |
Notes: Encoder output dim for ViT-B/32. SelfAttention2d uses 4 heads with GN(32). By default, only the decoder is trainable; enabling finetune_last unfreezes the last ViT block. Decoder output target size is set to match dataset resolution ( for CIFAR-10/100, for TinyImageNet, for MiniImageNet).
remaining relatively stable over time. In CIFAR-10, the decoded representations are more diverse but still exhibit recognizable semantic structure, indicating that the global VAE is able to capture meaningful features despite increased complexity. For CIFAR-100, the representations become significantly more fragmented and less visually distinct, reflecting the higher intra-class variability and task difficulty. Overall, these visualizations highlight the ability of GSOM to progressively organize latent space representations, while also illustrating the challenges in maintaining distinct and stable prototypes under more complex data distributions.
GSOM Weights After Training Digit 0
GSOM Weights After Training Digit 1
GSOM Weights After Training Digit 2

GSOM Weights After Training Digit 3
GSOM Weights After Training Digit 4
GSOM Weights After Training Digit 5

GSOM Weights After Training Digit 6
GSOM Weights After Training Digit 7
GSOM Weights After Training Digit 8

GSOM Weights After Training Digit 9
GSOM Weights After Training Digit 9

Figure 6: Visualization of the GSOM unit vectors after each task(every single task) for MNIST.
L Societal Impacts
The proposed method promotes positive societal impacts through scalable and memory-efficient continual learning systems that can support long-term adaptive AI without storing large raw datasets, which may help reduce privacy concerns associated with exemplar replay. However, continually adapting models may also inherit biases from evolving data streams or exhibit unreliable behavior under distribution shifts. In safety-critical or decision-making applications, such failures could lead to unintended consequences if models are deployed without appropriate oversight and evaluation. Although the proposed approach is developed for research purposes, ensuring safe deployment and misuse prevention remains future work.




Figure 7: Visualization of decoded GSOM unit 26ctors after each task(every class) on CIFAR-10.




Figure 8: Visualization of decoded GSOM unit vectors after each task(every 10 classes) on CIFAR-100.