Shawn’s Blog
  • 🗂️ Collections
    • 🖥️ Slides Gallery
    • 🧑‍🍳️ Cooking Ideas
    • 🍱 Cookbook
    • 💬 Language Learning
    • 🎼 Songbook
  • ⚙️ Projects
    • ⚛ Continual Learning Arena
  • 📄 Papers
    • AdaHAT
    • FG-AdaHAT
  • 🎓 CV
    • CV (English)
    • CV (Mandarin)
  • About
  1. Getting Started
  • Welcome to CLArena
  • Getting Started
  • Configure Pipelines
  • Continual Learning (CL)
    • CL Main Experiment
    • Save and Evaluate Model
    • Full Experiment
    • Output Results
  • Continual Unlearning (CUL)
    • CUL Main Experiment
    • Full Experiment
    • Output Results
  • Multi-Task Learning (MTL)
    • MTL Experiment
    • Save and Evaluate Model
    • Output Results
  • Single-Task Learning (STL)
    • STL Experiment
    • Save and Evaluate Model
    • Output Results
  • Components
    • CL Dataset
    • MTL Dataset
    • STL Dataset
    • CL Algorithm
    • CUL Algorithm
    • MTL Algorithm
    • STL Algorithm
    • Backbone Network
    • Optimizer
    • Learning Rate Scheduler
    • Trainer
    • Metrics
    • Lightning Loggers
    • Callbacks
    • Other Configs
  • Implement Your Modules (TBC)
  • API Reference

On this page

  • 1 Installation
  • 2 Run Default Experiment
  • 3 Check the Results

Getting Started

Modified

August 26, 2025

This guide provides step-by-step instructions for setting up CLArena, running your first experiment, and checking the results.

This quickstart focuses on the continual learning main experiment. For details on other pipelines, see Configure Pipelines.

1 Installation

Follow these steps to install CLArena in your Python environment:

# create a new conda environment (optional but recommended)
conda create -n clarena-env python=3.12
conda activate clarena-env
  • Option 1, install from PyPI (recommended):
pip install clarena
  • Option 2, install from source:
# clone the repository
git clone https://github.com/pengxiang-wang/continual-learning-arena
cd continual-learning-arena

pip install .
Important: GPU Configuration

CLArena installs the CPU version of PyTorch by default. For GPU acceleration, install the appropriate PyTorch version for your CUDA setup in your environment by following the official PyTorch installation guide.

2 Run Default Experiment

This section walks you through running a default continual learning main experiment to verify your installation and familiarize yourself with CLArena’s workflow.

CLArena uses configuration files to define experiment parameters. Download the example configurations:

Download Example Configs View on GitHub

  1. Extract the downloaded zip file to your working directory;
  2. Rename the extracted folder to configs/.

Run the following command to start training with the default configuration:

clarena pipeline=CL_MAIN_EXPR experiment=example_cl_main_expr

This command will train a continual learning model using the default settings described below.

Default Experiment Settings (Click to expand)

The default experiment uses the following configuration:

Component Setting Description
CL Paradigm Task-Incremental Learning (TIL) Global seed: 1
CL Dataset Permuted MNIST Classification task with 10 tasks
Backbone Network Multi-Layer Perceptron (MLP) Hidden layers: 256, 100, 64 with batch normalization
CL Algorithm Finetuning Initializes from the last trained task
Training SGD Optimizer Learning rate: 0.001, 2 epochs per task, batch size: 64, CPU training

To run experiments with custom configurations, see Configure Pipelines.

3 Check the Results

After executing the training command, CLArena automatically creates an output directory containing all experiment data and results.

Results are saved in outputs/example_cl_main_expr/<timestamp>/, where <timestamp> represents the execution time. (This structure allows multiple experimental runs to be stored separately. )

Example of experiment output directory structure.

You can monitor experiment progress and check intermediate results at any time during execution. The output directory is updated in real-time along with the progress.

The generated results are controlled by configuration settings. For detailed information, please refer to the Output Results (CL) section.

Back to top
Welcome to CLArena
Configure Pipelines
 
 

©️ 2025 Pengxiang Wang. All rights reserved.