Skip to main navigation Skip to search Skip to main content

MentalQLM: A Lightweight Large Language Model for Mental Healthcare Based on Instruction Tuning and Dual LoRA Modules

  • Jiayu Shi
  • , Zexiao Wang
  • , Jiandong Zhou
  • , Chengyu Liu
  • , Poly Z.H. Sun
  • , Erying Zhao*
  • , Lei Lu*
  • *Corresponding author for this work
  • Shanghai Jiao Tong University
  • The University of Hong Kong
  • Southeast University, Nanjing
  • Harbin Medical University
  • King's College London

Research output: Contribution to journal › Article › peer-review

Abstract

Mental disorders pose significant challenges to healthcare systems and have profound social implications. The rapid development of large language model (LLM) presents new opportunities for improving mental healthcare. However, existing approaches primarily rely on instruction tuning and few-shot in-contextlearning with massive datasets and large-scale backbone models, leading to significant computational costs. To address these limitations, we propose MentalQLM, a novel lightweight LLM that leverages a dual Low-Rank Adaptation (LoRA) strategy for parameter-efficient fine-tuning. The development of our proposed MentalQLM includes two key stages. Firstly, we perform dataset pruning based on perplexity and diversity analysis to reduce computational load. The first LoRA module is applied during instruction tuning to adapt the base LLM for mental health classification. Secondly, we introduce a dense layer augmented with a second LoRA module, fine-tuned specifically to boost performance on complex multi-class classification problems. Experimental results demonstrate that our proposed MentalQLM, with only 0.5 billion parameters, achieves an average weighted F1-score of 0.778 on mental disorder diagnosis across five benchmark datasets. It outperforms the state-of-the-art instruction-tuned MentaLLaMA-Chat-13B model by 3.2%, and the few-shot tuned GPT-4 model by 17.7%. This promising performance, combined with its significantly lower resource requirements, positions our developed MentalQLM as a cost-effective and efficient solution for real-world mental healthcare applications, especially in computationally constrained environments.

Original languageEnglish
Pages (from-to)8150-8161
Number of pages12
JournalIEEE Journal of Biomedical and Health Informatics
Volume30
Issue number9
DOIs
StatePublished - 1 Sep 2026

UN SDGs

This output contributes to the following UN Sustainable Development Goals (SDGs)

  1. SDG 3 - Good Health and Well-being
    SDG 3 Good Health and Well-being

Keywords

  • Large language model
  • lightweight model
  • low-rank adaptation
  • mental health

Fingerprint

Dive into the research topics of 'MentalQLM: A Lightweight Large Language Model for Mental Healthcare Based on Instruction Tuning and Dual LoRA Modules'. Together they form a unique fingerprint.

Cite this