Configure Your CL Algorithm
The continual learning algorithm is the core component of continual learning, determining how sequential tasks are learned and how interactions between previous and new tasks are managed. If you are not familiar with continual learning algorithms, feel free to get some knowledge from my CL beginnerβs guide: the baseline algorithms and methodology.
To configure the continual learning algorithm for your experiment, link the cl_algorithm
field in the main YAML file to sub-config file in the sub-directory clarena.cl_algorithms
, see the full list below.
Here is an example:
./clarena/example_configs
βββ __init__.py
βββ entrance.yaml
βββ experiment
β βββ example.yaml
β βββ ...
βββ cl_algorithm
β βββ finetuning.yaml
...
example_configs/experiment/example.yaml
defaults:
...
- /cl_algorithm: finetuning.yaml
...
example_configs/cl_algorithm/finetuning.yaml
_target_: clarena.cl_algorithms.Finetuning
Supported Algorithm List
Here is the full list of supported CL algorithms so far. To select a algorithm, replace with the class name. Please refer to the documentation of each class to know what fields (arguments) are required for the class.
Make sure the algorithm is compatible with the CL dataset, backbone and paradigm.
CL Algorithm (Class Name) | Published In | Category | Description |
---|---|---|---|
Finetuning (SGD) | - | (Naive) | Simply initialise from the last task. |
Fix | - | (Naive) | Fix the network from updating after training the first task. |
LwF [paper] | ArXiv 2016 | Regularisation-based | Make predicted labels for the new task close to those of the previous tasks. |
EWC [paper] | PNAS 2017 | Regularisation-based | Regularisation on weight change based on their fisher importance calculated regarding previous tasks. |
HAT [paper][code] | PMLR 2018 | Architecture-based | Learning hard attention masks to each task on the model. |
AdaHAT [paper][code] (my work!) | ECML PKDD 2024 | Architecture-based | Adaptive HAT by managing network capacity adaptively with information from previous tasks. |