Organizations: School of Information Engineering, Henan Kaifeng College of Science Technology and Communication, Kaifeng, 475000, Henan, China. · Henan Engineering Research Center for AI Technology of Converged Media, Kaifeng, 475000, Henan, China. · School of Computer and Information Engineering, Henan University, Kaifeng, 475001, Henan, China.
Biological learning systems acquire knowledge incrementally through broad, reusable representations established early and kept largely stable, while integrating new experience with minimal interference with previously learned knowledge. Replay-based methods approximate this by storing samples or features from previous tasks and mixing them into the current task. However, memory buffers grow with the number of tasks and may retain task-specific noise that reduces generalization. To address these limitations, we propose PatchAdaNet (Patch Adapter Network), an unsupervised class-incremental learning method for image classification that continually updates feature representations using autoencoders. Since images share structural features such as edges, corners, and shapes, we first divide each image into patches and train independent autoencoders on external data to reconstruct each patch. The layers of all patch encoders are aggregated into global frozen layers that generalize across tasks and remain fixed throughout learning. Learnable adapters then build global image representations from these features to reconstruct the entire image. To prevent feature drift without storing data, we introduce the Global Feature Centroid (GFC), a fixed-size running average of adapter outputs updated after each task to penalizes representation drift. Elastic Weight Consolidation (EWC) is applied to the learnable layers to preserve previously learned features by constraining important weights. Finally, a linear classifier is trained on the frozen latent representation and GFC for class-incremental evaluation. We evaluate PatchAdaNet in both CNN and Vision Transformer settings on CIFAR-10, CIFAR-100, miniImageNet and 5-Datasets, providing a comparative study of the two architectures under identical class-incremental settings. Code is available.
Figures & tables
Figure 1: Challenges of existing methods, and solutions of PatchAdaNet.
Figure 2: Visual illustration of the proposed PatchAdaNet. (a) CNN-based framework: frozen patch-level features are pretrained using a patch-level CNN autoencoder (CNN-PatchAE); continual learning then refines tiled frozen feature maps through adapter layers via image reconstruction (CNN-ImageAE). (b) ViT-based framework: frozen patch-level features are pretrained using a patch-level ViT autoencoder (ViT-PatchAE). In continual learning phase, frozen tokens are concatenated and combined with the previous depth’s adapted tokens, then refined through adapter Transformer blocks via image reconstruction (ViT-ImageAE).
Figure 3: Illustration of patch partitioning and training a dedicated autoencoder per patch index using CNN-PatchAE or ViT-PatchAE.
Figure 4: Detailed illustration of PatchAdaNet training process in CNN settings (a), and in ViT settings (b). A linear classifier is trained on top of the resulting Flatten GFM and Flatten Bottleneck features for class incremental learning evaluation.
Method
Memory
CIFAR-10
CIFAR-100
AGEM Chaudhry et al. ()
✓
17.7±0.3
5.8±0.1
GSS Aljundi et al. (2019a)
✓
18.4±0.2
8.1±0.2
MIR Aljundi et al. (2019b)
✓
20.7±0.7
9.7±0.3
GDumb Prabhu et al. (2020)
✓
23.3±1.3
8.2±0.2
ASER Shim et al. (2021)
✓
20.0±1.0
11.0±0.3
SCR Mai et al. (2021)
✓
40.2±1.3
19.3±0.6
Table 1: Class-Incremental Learning (CIL) results on CIFAR-10 (5 splits) and CIFAR-100 (20 splits) averaged over 15 runs with different random seeds. Memory: exemplar replay buffer (100 samples, all methods). ×: replay-free.
Method
Memory
miniImageNet
Naive-SGD Mirzadeh et al. (2020)
×
36.1±1.3
EWC Kirkpatrick et al. (2017)
×
34.8±2.3
KCL Derakhshani et al. (2021)
✓
53.3±0.6
Ours (CNN)
×
51.6 ± 0.6
Ours (ViT)
×
57.0 ± 0.3
Table 2: Task-Incremental Learning (TIL) results on miniImageNet (20 splits) averaged over 5 runs with different random seeds. Memory: exemplar replay buffer. ×: replay-free.
Method
Reply
Accuracy
CIFAR-10
Co 2 L Cha et al. (2021)
M
65.6±1.4
CaSSLe (SimCLR) Fini et al. (2022)
Dis
58.3
CaSSLe (Barlow) Fini et al. (2022)
Dis
62.7
Ours (CNN)
×
65.9 ± 0.7
Ours (ViT)
×
64.5 ± 0.4
Table 3: Unsupervised Class-Incremental Learning (CIL) results. M: buffer of features (20 samples) averaged over 15 runs with different random seeds. × : replay-free. Dis: distillation from the previous tasks.
Configuration
CNN
ViT
Frozen
Adapter
GFC
Acc.
Δ vs full
Acc.
Δ vs full
✓
✓
✓
65.9 ± 0.7
—
64.5 ± 0.4
—
×
✓
✓
52.9 ± 2.4
− 13.0
61.1 ± 1.1
− 3.4
✓
×
×
49.8 ± 3.2
− 16.1
61.7 ± 0.9
− 2.8
✓
✓
×
51.8 ± 1.6
− 14.1
61.0 ± 1.4
− 3.5
×
×
×
50.1 ± 2.8
− 15.8
61.6 ± 0.7
− 2.9
Table 4: Ablation study on CIFAR-10 across 5 runs to evaluate the effect of each component on the average accuracy. Frozen = (✓: frozen patches, × : learnable patches), Adapter = (✓with or × without adapter layers), GFC = Global Feature Centroid (✓with or × without GFC). Δ vs full: change in accuracy relative to the full configuration (all-✓).
Dataset
Model
Runs
Mean ±σ (%)
95% CI
CV
[min, max] (%)
Seed
CIFAR-10
CNN
15
65.9±0.7
[65.5, 66.3]
1.0
[64.8, 67.0]
ViT
15
64.5±0.4
[64.3, 64.7]
0.6
[63.8, 65.1]
CIFAR-100
CNN
15
22.3±4.1
[20.0, 24.5]
18.4
[17.9, 28.5]
ViT
15
32.0±1.1
[31.4, 32.6]
3.5
[29.3, 32.9]
miniImageNet
CNN
5
51.6±0.6
[50.9, 52.3]
1.1
[51.0, 52.3]
ViT
5
57.0±0.3
[56.6, 57.4]
0.6
[56.7, 57.5]
Table 5: Statistical robustness of average class incremental learning accuracy under two sources of randomness: random seed (repeated runs at fixed class order) and class order (random class-to-task permutations at fixed seed). Runs is the number of seeds or class orders. CI : 95% confidence interval for the mean. CV : coefficient of variation.
Figure 5: Class incremental learning sensitivity to random seed on CIFAR-10 (5 splits), CIFAR-100 (20 splits), and miniImageNet (20 splits).
Figure 6: Class incremental learning sensitivity to random class order permutation on CIFAR-10 (5 splits), CIFAR-100 (20 splits), and miniImageNet (20 splits).
Figure 7: Effect of the absence of GFC on the CIL accuracy, evaluated on CIFAR-10 with 5 tasks.
Figure 8: Effect of the GFC weight α and the EWC weight λ on CIL accuracy, evaluated on CIFAR-10 with 5 tasks.
Figure 9: Per task CIL and TIL accuracy on CIFAR-10, CIFAR-100, and miniImagenet.
Figure 10: Max forgetting after each task in CNN vs VIT settings.
Figure 11: Sensitivity of class-incremental accuracy to dataset order across heterogeneous dataset domains on the 5-Dataset sequence.
Figure 12: Effect of local shared frozen features versus task-specific adapter representations. (a) CNN: tiled frozen CNN-PatchAE feature maps capture local, separated structure, while adapter layers in CNN-ImageAE learn global shapes. (b) ViT: frozen token activation maps focus on general-purpose local regions, while adapter token activation maps focus on task-specific object regions.