ICASSP 2025accepted0 citations

kNN-CL: Enhancing Continual Learning with Nearest Neighbor Retrieval

Enzhi Wang, Qicheng Li, Hao Chen, Ruiqi Sun, Xin Zhou

Abstract

Continual learning aims to learn new tasks sequentially without forgetting previously acquired knowledge. However, catastrophic forgetting remains a significant challenge. In this paper, we introduce kNN-CL, a simple yet effective approach that harnesses k-nearest neighbors (kNN) to mitigate forgetting in continual learning. Specifically, kNN-CL identifies the k most similar instances (key-value pairs) from the previous tasks to refine model predictions, enabling the model to adapt to the relevant task for a given test instance. Notably, kNN-CL can be seamlessly integrated into existing continual learning frameworks in a plug-and-play manner, without any additional training. Modern deep neural networks have achieved remarkable progress on a wide range of tasks. However, they encounter difficulties when processing sequential data streams. As these networks recalibrate their parameters to assimilate new data, they inadvertently compromise on previously acquired knowledge, leading to an issue known as catastrophic forgetting. Experimental results show that kNN-CL substantially improves accuracy in both settings, demonstrating the effectiveness of kNN-CL in mitigating catastrophic forgetting.

BibTeX
@inproceedings{icassp2025_knnclenhancingco,
  title = {kNN-CL: Enhancing Continual Learning with Nearest Neighbor Retrieval},
  author = {Enzhi Wang and Qicheng Li and Hao Chen and Ruiqi Sun and Xin Zhou},
  booktitle = {ICASSP 2025},
  year = {2025}
}