[Paper Review] PyCIL: A Python Toolbox for Class-Incremental Learning
PyCIL is a Python-based toolbox that implements 11 state-of-the-art class-incremental learning (CIL) algorithms, including fine-tuning, replay, EWC, LwF, iCaRL, GEM, BiC, WA, PODNet, DER, and Coil. It enables researchers to efficiently evaluate and compare CIL methods on benchmark datasets like CIFAR100 and ImageNet100 with consistent, reproducible experiments, achieving performance on par with or better than original reports.
Traditional machine learning systems are deployed under the closed-world setting, which requires the entire training data before the offline training process. However, real-world applications often face the incoming new classes, and a model should incorporate them continually. The learning paradigm is called Class-Incremental Learning (CIL). We propose a Python toolbox that implements several key algorithms for class-incremental learning to ease the burden of researchers in the machine learning community. The toolbox contains implementations of a number of founding works of CIL such as EWC and iCaRL, but also provides current state-of-the-art algorithms that can be used for conducting novel fundamental research. This toolbox, named PyCIL for Python Class-Incremental Learning, is available at https://github.com/G-U-N/PyCIL
Motivation & Objective
- To address catastrophic forgetting in continual learning by enabling incremental learning of new classes without retraining on old data.
- To provide a unified, user-friendly, and extensible Python toolbox for class-incremental learning research.
- To support both foundational and state-of-the-art CIL algorithms with consistent API and reproducible evaluation.
- To facilitate benchmarking on standard datasets like CIFAR100 and ImageNet100 with configurable hyperparameters.
- To promote reproducibility and ease of use in academic and industrial CIL research.
Proposed method
- Implements 11 CIL algorithms, including fine-tuning, replay, EWC, LwF, iCaRL, GEM, BiC, WA, PODNet, DER, and Coil, using PyTorch for neural network architecture.
- Uses exemplar sets to mitigate catastrophic forgetting by storing representative samples from previous classes.
- Applies knowledge distillation in LwF and iCaRL to align output probabilities between old and new models.
- Employs Fisher Information Matrix in EWC to regularize important parameters and reduce forgetting.
- Utilizes herding algorithm to select diverse and representative exemplars for rehearsal-based methods.
- Supports configurable hyperparameters such as memory size, initial class count, incremental class count, and backbone network type.
Experimental results
Research questions
- RQ1How can a unified, accessible toolbox improve reproducibility and efficiency in class-incremental learning research?
- RQ2To what extent do the re-implemented CIL algorithms in PyCIL match or exceed the performance reported in original papers?
- RQ3How does the integration of exemplar sets and knowledge distillation affect incremental learning performance across different benchmarks?
- RQ4Can a consistent, modular Python framework effectively support both foundational and state-of-the-art CIL methods?
- RQ5How do hyperparameter choices such as memory size and incremental class count influence model accuracy over time?
Key findings
- The PyCIL toolbox successfully re-implemented 11 CIL algorithms with consistent and reproducible code, enabling easy benchmarking and comparison.
- Reproduced results on CIFAR100 and ImageNet100 show that most algorithms achieve performance equal to or better than the original reports.
- The exemplar-based methods, particularly iCaRL and its variants (e.g., BiC, WA), demonstrate strong performance in preserving knowledge of previously seen classes.
- The use of PyTorch and standard open-source libraries ensures portability and compatibility across Linux, macOS, and Windows systems.
- The toolbox supports flexible configuration of global parameters such as memory size, initial class count, and incremental class count, enabling diverse experimental setups.
- The source code is publicly available at https://github.com/G-U-N/PyCIL, promoting transparency and community contributions.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.