Unifying Detection and Adaptation in Task-Free Continual Learning
Organizations: School of Control Science and Engineering, Shandong University, Jinan, China · Department of ECE, The Hong Kong University of Science and Technology, Hong Kong · National Medicine-Engineering Interdisciplinary Industry-Education Integration Innovation Platform, Shandong University, Jinan, China · Shandong Key Laboratory: Magnetic Field-free Medicine & Functional Imaging, Qilu Hospital of Shandong University, Jinan, China
Abstract
To mitigate catastrophic forgetting in downstream continual learning (CL) for large language models (LLMs), existing methods typically constrain parameter updates or introduce task-specific adaptation modules. However, these methods often rely on explicit task boundaries during training, limiting their applicability to realistic task-free scenarios. In this paper, we propose a Fisher-guided unified (FiUni) framework for batch-level task detection and parameter-efficient continual adaptation. FiUni is motivated by a key observation about the Fisher information matrix (FIM) of pre-trained models: the orthogonality among the principal subspaces of its Kronecker-Factored Approximate Curvature (K-FAC) approximation, estimated from a small number of downstream task samples, can reflect the similarity between different tasks. Based on this observation, FiUni constructs FIM-derived frozen subspaces to guide low-rank adaptation (LoRA), while matching the Fisher principal subspace of each incoming batch window with historical subspaces. This enables FiUni to adaptively determine whether to reuse existing knowledge, expand a related subspace, or create a new subspace, dynamically balancing knowledge sharing and task isolation. Experiments show that FiUni can effectively infer latent batch-level task affiliations and achieve competitive performance against advanced task-aware CL methods with fewer trainable parameters.
Figures & tables
| Methods | Standard CL Benchmark (SC) | Long Sequence Benchmark (LS) | TRACE | |||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Order 1 | Order 2 | Order 3 | Avg | Order 4 | Order 5 | Order 6 | Avg | Order 7 | ||
| T5-Large | SeqLoRA † | 39.5 | 31.9 | 46.6 | 39.3 | 4.9 | 3.5 | 4.2 | 4.2 | 12.1 |
| SeqLoRAReplay | 74.0 | 73.1 | 73.0 | 73.3 | 74.2 | 72.7 | 73.9 | 73.6 | 34.0 | |
| IncLoRA | 63.4 | 62.2 | 65.1 | 63.6 | 63.0 | 57.9 | 60.4 | 60.5 | - | |
| EWC Kirkpatrick et al. (2017) | 46.3 | 45.3 | 52.1 | 47.9 | 44.9 | 44.0 | 45.4 | 44.8 | - | |
| L2P Wang et al. (2022) | 60.3 | 61.7 | 61.1 | 60.7 | 57.5 | 53.8 | 56.9 | 56.1 | - | |
Appendix figures & tables12 assets
Supplementary material from the paper’s appendix.
Appendix
| Dataset Name | Category | Task | Domain | Metric |
|---|---|---|---|---|
| Yelp | CL Benchmark | Sentiment Analysis | Yelp Reviews | Accuracy |
| Amazon | CL Benchmark | Sentiment Analysis | Amazon Reviews | Accuracy |
| DBpedia | CL Benchmark | Topic Classification | Wikipedia | Accuracy |
| Yahoo | CL Benchmark | Topic Classification | Yahoo Q&A | Accuracy |
| AG News | CL Benchmark | Topic Classification | News | Accuracy |
| MNLI | GLUE | Natural Language Inference | Various | Accuracy |
| Dataset | Source | Avg. Len. | Metric | Language | #Data |
| Domain-specific | |||||
| ScienceQA | Science | 210 | Accuracy | English | 5,000 |
| FOMC | Finance | 51 | Accuracy | English | 5,000 |
| MeetingBank | Meeting | 2853 | ROUGE-L | English | 5,000 |
| Multi-lingual | |||||
| C-STANCE | Social Media | 127 | Accuracy | Chinese | 5,000 |
| Benchmark | Order | Task Sequence |
| Standard CL Benchmark | 1 | DBpedia Amazon Yahoo AG News |
| 2 | DBpedia Amazon AG News Yahoo | |
| 3 | Yahoo Amazon AG News DBpedia | |
| Long Sequence Benchmark | 4 | MNLI CB WiC COPA QQP BoolQA RTE IMDB Yelp Amazon SST-2 DBpedia AG News MultiRC Yahoo |
| 5 | MultiRC BoolQA WiC MNLI CB COPA QQP RTE IMDB SST-2 DBpedia AG News Yelp Amazon Yahoo | |
| 6 | Yelp Amazon MNLI CB COPA QQP RTE IMDB SST-2 DBpedia AG News Yahoo MultiRC BoolQA WiC |
| Hyperparameter | T5-large | Llama-3.1-8B | ||||
|---|---|---|---|---|---|---|
| SC | LS | TRACE | SC | LS | TRACE | |
| Batch size | 32 | |||||
| Learning rate | 1e-3 | 1e-4 | ||||
| Epochs | 1 | |||||
| FiLoRA rank | 32 | 128 | ||||
| Dropout | 0 | 0.05 | 0 | 0.1 | 0.1 | 0 |
| Hyperparameter | T5-large | Llama-3.1-8B | ||||
| SC | LS | TRACE | SC | LS | TRACE | |
| Detection rank | 4 | 8 | ||||
| Expansion rank | 0 | 4 | 4 | 8 | 8 | 8 |
| 0.5 | 0.6 | |||||
| 0.7 | ||||||
| Detection layers | 23 | 31 | ||||
| Metric | O-LoRA | SpaRTA | FiUni (ours) |
|---|---|---|---|
| Trainable Params | 35.39M | 44.24M | 3.62M |