Online-LoRA: Task-free Online Continual Learning via Low Rank Adaptation

Xiwen Wei, Guihong Li, Radu Marculescu
11/8/2024
cs.CVcs.LG

Official code: Christina200/Online-LoRA-official (62 stars, last commit 2025-08-26).

Abstract

Catastrophic forgetting is a significant challenge in online continual learning (OCL), especially for non-stationary data streams that do not have well-defined task boundaries. This challenge is exacerbated by the memory constraints and privacy concerns inherent in rehearsal buffers. To tackle catastrophic forgetting, in this paper, we introduce Online-LoRA, a novel framework for task-free OCL. Online-LoRA allows to finetune pre-trained Vision Transformer (ViT) models in real-time to address the limitations of rehearsal buffers and leverage pre-trained models' performance benefits. As the main contribution, our approach features a novel online weight regularization strategy to identify and consolidate important model parameters. Moreover, Online-LoRA leverages the training dynamics of loss values to enable the automatic recognition of the data distribution shifts. Extensive experiments across many task-free OCL scenarios and benchmark datasets (including CIFAR-100, ImageNet-R, ImageNet-S, CUB-200 and CORe50) demonstrate that Online-LoRA can be robustly adapted to various ViT architectures, while achieving better performance compared to SOTA methods. Our code will be publicly available at: https://github.com/Christina200/Online-LoRA-official.git.

View on arXivView PDF

Code Implementations(1)

[WACV 2025] Official implementation of "Online-LoRA: Task-free Online Continual Learning via Low Rank Adaptation" by Xiwen Wei, Guihong Li and Radu Marculescu

624Shell, PythonNov 7, 20241 years ago

Similar Papers

Cite this paper

@article{wei2024onlinelora,
  title  = {Online-LoRA: Task-free Online Continual Learning via Low Rank Adaptation},
  author = {Xiwen Wei and Guihong Li and Radu Marculescu},
  year   = {2024},
  eprint = {2411.05663},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2411.05663v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2411.05663.svg)](https://codeofpaper.com/paper/2411.05663)

Discussion