IDER: IDempotent Experience Replay for Reliable Continual Learning
Organizations: School of Computer Science, Shanghai Jiao Tong University · State Key Laboratory of General Artificial Intelligence, BIGAI · Lehigh University · Shanghai Innovation Institute
Abstract
Catastrophic forgetting, the tendency of neural networks to forget previously learned knowledge when learning new tasks, has been a major challenge in continual learning (CL). To tackle this challenge, CL methods have been proposed and shown to reduce forgetting. Furthermore, CL models deployed in mission-critical settings can benefit from uncertainty awareness by calibrating their predictions to reliably assess their confidences. However, existing uncertainty-aware continual learning methods suffer from high computational overhead and incompatibility with mainstream replay methods. To address this, we propose idempotent experience replay (IDER), a novel approach based on the idempotent property where repeated function applications yield the same output. Specifically, we first adapt the training loss to make model idempotent on current data streams. In addition, we introduce an idempotence distillation loss. We feed the output of the current model back into the old checkpoint and then minimize the distance between this reprocessed output and the original output of the current model. This yields a simple and effective new baseline for building reliable continual learners, which can be seamlessly integrated with other CL approaches. Extensive experiments on different CL benchmarks demonstrate that IDER consistently improves prediction reliability while simultaneously boosting accuracy and reducing forgetting. Our results suggest the potential of idempotence as a promising principle for deploying efficient and trustworthy continual learning systems in real-world applications.Our code is available at https://github.com/YutingLi0606/Idempotent-Continual-Learning.
Figures & tables
| Method | CIFAR-10 | CIFAR-100 | Tiny-ImageNet | |||
| Buffer 200 | Buffer 500 | Buffer 500 | Buffer 2000 | Buffer 500 | Buffer 4000 | |
| Joint (upper bound) | 91.93±0.29 | 71.15±0.51 | 59.52±0.33 | |||
| iCaRL ? | 58.37±3.51 | 62.49±5.42 | 46.81±0.41 | 52.51±0.44 | 22.53±0.62 | 26.38±0.23 |
| ER ? | 44.46±2.87 | 58.84±3.85 | 23.41±1.15 | 40.47±0.95 | 10.13±0.39 | 25.12±0.56 |
| BiC ? | 52.61±5.37 | 71.95±1.82 | 37.82±1.67 | 47.17±1.17 | 15.36±1.31 | 18.67±0.57 |
| LUCIR ? | 49.18±7.61 | 65.26±2.54 | 37.91±1.18 | 50.42±0.76 | 28.79±0.51 | 31.64±0.51 |
| Method | Uniform | Longtail | ||||||
| Buffer 200 | Buffer 500 | Buffer 200 | Buffer 500 | |||||
| Joint (upper bound) | 58.36±1.02 | 56.94±1.56 | ||||||
| DER++ ? | 19.36±0.65 | 33.66±0.96 | 27.05±1.11 | 25.98±0.81 | ||||
| SCoMMER ? | 28.56±2.26 | 35.70±0.86 | 28.47±1.12 | 32.99±0.49 | ||||
| ER ? | 16.34±0.74 | 28.76±0.66 | 19.55±0.69 | 20.02±1.05 | ||||
| Ours (ER+ID) | 26.66±0.63 | +10.32 | 40.54±0.46 | +11.78 | 30.04±0.58 | +10.49 | 35.92±0.35 | +15.90 |
| Method | CIFAR-10 | CIFAR-100 | Tiny-ImageNet | |||||||||
| Buffer 200 | Buffer 500 | Buffer 500 | Buffer 2000 | Buffer 500 | Buffer 4000 | |||||||
| DER ? | 29.91 | 16.20 | 24.84 | 10.79 | 22.80 | 10.52 | ||||||
| NPCL ? | 21.03 | - | 19.95 | - | - | - | ||||||
| RC ? | 16.39 | 12.84 | 19.43 | 19.31 | 21.32 | 16.49 | ||||||
| T-CIL ? | 22.50 | 10.51 | 15.79 | 8.67 | 14.50 | 10.30 | ||||||
| ER ? | 45.53 | 32.69 | 64.59 | 45.64 | 67.50 | 51.37 | ||||||
| Platform | CIFAR-10 | CIFAR-100 | Tiny-ImageNet | ||
| Buffer 200 | Buffer 500 | Buffer 500 | Buffer 2000 | Buffer 4000 | |
| RTX 4090 | 71.02±1.98 | 74.74±0.42 | 44.82±0.85 | 56.59±0.35 | 43.05±1.40 |
| Ascend 910B | 71.13±0.92 | 74.68±0.37 | 44.87±0.76 | 56.44±0.41 | 43.01±1.26 |
Appendix figures & tables5 assets
Supplementary material from the paper’s appendix.
Appendix
| Method | CIFAR-10 | CIFAR-100 | Tiny-ImageNet | |||
| Buffer 200 | Buffer 500 | Buffer 500 | Buffer 2000 | Buffer 500 | Buffer 4000 | |
| Joint | 0.00 | 0.00 | 0.00 | 0.00 | 0.00 | 0.00 |
| iCaRL ? | 36.00±7.29 | 30.19±3.38 | 28.58±0.84 | 24.24±0.58 | 20.82±1.31 | 15.29±0.53 |
| ER ? | 71.35±7.77 | 52.12±7.56 | 71.92±0.74 | 51.82±0.75 | 74.79±0.67 | 57.47±0.57 |
| BiC ? | 53.63±7.18 | 24.87±0.98 | 48.87±0.91 | 38.50±1.09 | 67.57±1.98 | 63.48±0.28 |
| LUCIR ? | 59.79±10.16 | 37.58±3.80 | 50.22±1.26 | 32.48±0.76 | 35.02±0.56 | 30.59±0.95 |
| SIM | IDM | ER | FAA |
| ✓ | ✗ | ✗ | 8.23 |
| ✓ | ✗ | ✓ | 24.73 |
| ✓ | ✓ | ✓ | 44.82 |
| beta | alpha=0.1 | alpha=0.2 | alpha=0.5 | alpha=1 |
| 0.1 | 44.77 | 44.24 | 41.74 | 40.42 |
| 0.2 | 44.41 | 44.43 | 44.25 | 43.02 |
| 0.5 | 43.82 | 44.33 | 44.82 | 43.87 |
| 1 | 41.20 | 41.58 | 42.72 | 40.93 |
| P | 0.2 | 0.3 | 0.4 | 0.5 | 0.6 | 0.7 | 0.8 | 0.9 | 1 |
| FAA | 20.9 | 22.24 | 27.03 | 29.19 | 31.46 | 37.48 | 42.24 | 44.82 | 43.26 |
Continual Learning
Continual Learning studies how models acquire knowledge from changing data streams while retaining or selectively revising what they learned before.
See all 305 papers