Shawn’s Blog
  • πŸ—‚οΈ Collections
    • πŸ–₯️ Slides Gallery
    • 🧠 Q&A Knowledge Base
    • πŸ’» LeetCode Notes
    • πŸ§‘β€πŸ³οΈ Cooking Ideas
    • 🍱 Cookbook
    • πŸ’¬ Language Learning
    • 🎼 Songbook
  • βš™οΈ Projects
    • βš› Continual Learning Arena
  • πŸ“„ Papers
    • AdaHAT
    • FG-AdaHAT
    • AmnesiacHAT
  • πŸŽ“ CV
    • CV (English)
    • CV (Mandarin)
  • About
  1. Components
  2. MTL Dataset
  • 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
  • Custom Implementation
    • CL Dataset
    • MTL Dataset
    • STL Dataset
    • CL Algorithm
    • CUL Algorithm
    • MTL Algorithm
    • STL Algorithm
    • Backbone Network
    • Callback
  • API Reference
  • FAQs
  1. Components
  2. MTL Dataset

Configure MTL Dataset

Modified

January 16, 2026

The multi-task learning dataset consists of multiple datasets corresponding to multiple learning tasks, each of which has their own training, validation and test data. MTL dataset can also be converted from continual learning dataset.

MTL dataset is a sub-config under the index config of:

  • Multi-task learning experiment and evaluation

To configure a custom MTL dataset, you need to create a YAML file in mtl_dataset/ folder. Below shows examples of the MTL dataset config.

Example

configs
β”œβ”€β”€ __init__.py
β”œβ”€β”€ entrance.yaml
β”œβ”€β”€ index
β”‚   β”œβ”€β”€ example_mtl_expr.yaml
β”‚   └── ...
β”œβ”€β”€ mtl_dataset
β”‚   └── from_cl_split_mnist.yaml
...
example_configs/index/example_mtl_expr.yaml
defaults:
  ...
    - /mtl_dataset: from_cl_split_mnist.yaml
  ...
example_configs/mtl_dataset/from_cl_split_mnist.yaml
_target_: clarena.mtl_datasets.MTLDatasetFromCL
cl_dataset:
  _target_: clarena.cl_datasets.SplitMNIST
  root: data/MNIST
  class_split: 
    1: [0, 1]
    2: [2, 3]
    3: [4, 5]
    4: [6, 7]
    5: [8, 9]
  validation_percentage: 0.1
sampling_strategy: mixed
batch_size: 128

Supported MTL Datasets & Required Config Fields

All CL datasets in CLArena can be converted into MTL datasets. Please refer to Supported CL Datasets & Required Config Fields. Please use MTLDatasetFromCL. Raw single-task dataset can be directly applied to each task to form a MTL dataset. Please use MTLCombinedDataset.

In CLArena, we have also implemented many MTL datasets as Python classes in clarena.mtl_datasets module that you can use for your experiments and evaluations.

To choose a MTL dataset, assign the _target_ field to the class name of the MTL dataset. For example, to use the multi-task learning dataset from continual learning, set _target_ field to clarena.mtl_datasets.MTLDatasetFromCL. Each MTL dataset has its own hyperparameters and configurations, which means it has its own required fields. The required fields are the same as the arguments of the class specified by _target_. The arguments of each MTL dataset class can be found in API documentation.

API Reference (MTL Datasets) Source Code (MTL Datasets)

Below is the full list of supported MTL datasets. We only support image classification datasets. Note that the β€œMTL Dataset” is exactly the class name that the _target_ field is assigned.

MTL Dataset Description Required Config Fields
Combined Combined MTL dataset. We currently support: CIFAR-10, CIFAR-100, MNIST, SVHN, Fashion-MNIST, TrafficSigns, FaceScrub, NotMNIST, EMNIST Digits, EMNIST Letters, Arabic Handwritten Digits, Kannada-MNIST, Sign Language MNIST, Kuzushiji-MNIST, Food-101, Linnaeus 5, Caltech 101, EuroSAT, DTD, Country 211 Same as Combined class arguments
Back to top
CL Dataset
STL Dataset
 
 

©️ 2025 Pengxiang Wang. All rights reserved.