Mental-LLM: Leveraging Large Language Models for Mental Health Prediction via Online Text Data

Xuhai Xu, Bingsheng Yao, Yuanzhe Dong, Saadia Gabriel, Hong Yu +4 more
7/26/2023
270 citations
cs.CL

Official code: neuhai/Mental-LLM (95 stars, last commit 2023-09-22).

Abstract

Advances in large language models (LLMs) have empowered a variety of applications. However, there is still a significant gap in research when it comes to understanding and enhancing the capabilities of LLMs in the field of mental health.

Show full abstract

In this work, we present a comprehensive evaluation of multiple LLMs on various mental health prediction tasks via online text data, including Alpaca, Alpaca-LoRA, FLAN-T5, GPT-3.5, and GPT-4. We conduct a broad range of experiments, covering zero-shot prompting, few-shot prompting, and instruction fine-tuning. The results indicate a promising yet limited performance of LLMs with zero-shot and few-shot prompt designs for mental health tasks. More importantly, our experiments show that instruction finetuning can significantly boost the performance of LLMs for all tasks simultaneously. Our best-finetuned models, Mental-Alpaca and Mental-FLAN-T5, outperform the best prompt design of GPT-3.5 (25 and 15 times bigger) by 10.9% on balanced accuracy and the best of GPT-4 (250 and 150 times bigger) by 4.8%. They further perform on par with the state-of-the-art task-specific language model. We also conduct an exploratory case study on LLMs' capability on mental health reasoning tasks, illustrating the promising capability of certain models such as GPT-4. We summarize our findings into a set of action guidelines for potential methods to enhance LLMs' capability for mental health tasks. Meanwhile, we also emphasize the important limitations before achieving deployability in real-world mental health settings, such as known racial and gender bias. We highlight the important ethical risks accompanying this line of research.

View on arXivView PDF

Code Implementations(1)

neuhai/Mental-LLMOfficial100%

The repo for paper "Mental-LLM: Leveraging Large Language Models for Mental Health Prediction via Online Text Data"

9510Aug 12, 20233 years ago

Similar Papers

Cite this paper

@article{xu2023mentalllm,
  title  = {Mental-LLM: Leveraging Large Language Models for Mental Health Prediction via Online Text Data},
  author = {Xuhai Xu and Bingsheng Yao and Yuanzhe Dong and Saadia Gabriel and Hong Yu and James Hendler and Marzyeh Ghassemi and Anind K. Dey and Dakuo Wang},
  year   = {2023},
  eprint = {2307.14385},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2307.14385v4}
}

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/2307.14385.svg)](https://codeofpaper.com/paper/2307.14385)

Discussion