Adapter Learning in Pretrained Feature Extractor for Continual Learning of Diseases

Wentao Zhang, Yujun Huang, Tong Zhang, Qingsong Zou, Wei-Shi Zheng, Ruixuan Wang

Introduction

In clinical settings, medical AI models must adapt to new diseases and data without losing previously acquired knowledge. Standard deep learning models suffer from "catastrophic forgetting," where training on new tasks overwrites weights for old ones. While retraining from scratch is a solution, it is often infeasible due to data privacy constraints or lack of access to historical datasets. This paper presents Adapter-based Continual Learning (ACL), a framework designed to maintain model plasticity for new tasks while ensuring stability for old ones.

Methodology

The ACL framework introduces a modular approach to continual learning by utilizing a frozen pretrained backbone and task-specific components.

Architecture

The core architecture consists of three main elements:

  1. Fixed Feature Extractor: The pretrained backbone (e.g., ResNet18) remains frozen to preserve fundamental feature representations.
  2. Lightweight Adapters: Small, two-layer convolutional modules are inserted between stages of the feature extractor. These adapters learn task-specific features without significantly increasing model parameters.
  3. Task-Specific Heads with OOD Detection: Each task is assigned a dedicated classifier head. These heads include an "Others" category to identify samples that do not belong to the current task, facilitating out-of-distribution (OOD) detection.
Architecture of the ACL framework showing the fixed feature extractor and lightweight adapters.

Collaborative Fine-Tuning

To ensure comparability between independent task heads, a final calibration step is performed. A small, balanced subset of data is used to fine-tune the system, allowing for accurate cross-task inference.

Experimental Results

The framework was evaluated on medical datasets (Skin8, Path16, MedMNIST) and general-purpose benchmarks (CIFAR100).

Performance Comparison

ACL consistently outperformed established continual learning baselines such as iCaRL, DynaER, and DER++. On the Skin8 dataset, ACL achieved a Mean Class Recall (MCR) of 50.38% at the final round, compared to 41.94% for iCaRL.

Performance comparison of ACL against baselines across different datasets and task orders.

Key Insights

  • Efficiency: Adapters provide a lightweight alternative to full model expansion, preventing exponential growth in parameters.
  • Stability: ACL exhibits graceful performance decay as more tasks are added, maintaining higher accuracy over time compared to rehearsal-based or expansion-based methods.
  • Generalizability: The method is architecture-agnostic, showing consistent gains across ResNet, EfficientNet, and MobileNet backbones.

Conclusion

ACL offers a robust solution for sequential disease learning in medical AI. By leveraging frozen feature extractors and task-specific adapters, it mitigates catastrophic forgetting while remaining computationally efficient. Future work will explore extending this framework to more complex vision tasks such as lesion detection and segmentation.

Summary updated

BibTeX
@inproceedings{zhang2023adapter,
  author = {Wentao Zhang and Yujun Huang and Tong Zhang and Qingsong Zou and Wei-Shi Zheng and Ruixuan Wang},
  title = {{Adapter Learning in Pretrained Feature Extractor for Continual Learning of Diseases}},
  booktitle = {International Conference on Medical Image Computing and Computer-Assisted Intervention},
  year = {2023},
  doi = {10.1007/978-3-031-43895-0\_7},
}
Figure