MeLo: Low-rank Adaptation is Better than Fine-tuning for Medical Image Diagnosis

Yitao Zhu, Zhenrong Shen, Zihao Zhao, Sheng Wang, Xin Wang +3 more
11/14/2023
60 citations
cs.CV
transformer-attentionlora-peft-merging

Official code: JamesQFreeman/LoRA-ViT (437 stars, Python, GPL-3.0, last commit 2026-04-14).

Abstract

The common practice in developing computer-aided diagnosis (CAD) models based on transformer architectures usually involves fine-tuning from ImageNet pre-trained weights. However, with recent advances in large-scale pre-training and the practice of scaling laws, Vision Transformers (ViT) have become much larger and less accessible to medical imaging communities.

Show full abstract

Additionally, in real-world scenarios, the deployments of multiple CAD models can be troublesome due to problems such as limited storage space and time-consuming model switching. To address these challenges, we propose a new method MeLo (Medical image Low-rank adaptation), which enables the development of a single CAD model for multiple clinical tasks in a lightweight manner. It adopts low-rank adaptation instead of resource-demanding fine-tuning. By fixing the weight of ViT models and only adding small low-rank plug-ins, we achieve competitive results on various diagnosis tasks across different imaging modalities using only a few trainable parameters. Specifically, our proposed method achieves comparable performance to fully fine-tuned ViT models on four distinct medical imaging datasets using about 0.17% trainable parameters. Moreover, MeLo adds only about 0.5MB of storage space and allows for extremely fast model switching in deployment and inference. Our source code and pre-trained weights are available on our website (https://absterzhu.github.io/melo.github.io/).

View on arXivView PDF

Code Implementations(1)

GPL-3.0

Low rank adaptation for Vision Transformer

43726Python, Jupyter NotebookFeb 23, 20237 months agoGPL-3.0

Similar Papers

Cite this paper

@article{zhu2023melo,
  title  = {MeLo: Low-rank Adaptation is Better than Fine-tuning for Medical Image Diagnosis},
  author = {Yitao Zhu and Zhenrong Shen and Zihao Zhao and Sheng Wang and Xin Wang and Xiangyu Zhao and Dinggang Shen and Qian Wang},
  year   = {2023},
  eprint = {2311.08236},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2311.08236v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2311.08236.svg)](https://codeofpaper.com/paper/2311.08236)

Discussion