TL;DR
This paper introduces MentaLLaMA, the first open-source instruction-following Large Language Model (LLM) specifically designed for interpretable mental health analysis on social media. They address the limitations of existing methods by creating a comprehensive dataset (IMHI) and fine-tuning LLaMA2 models to provide both accurate predictions and human-understandable explanations for mental health conditions detected in social media posts.
What Problem Does This Paper Address?
The increasing prevalence of mental health issues, coupled with the vast amount of personal disclosures on social media, presents a critical opportunity for early detection and intervention. However, traditional automated methods for mental health analysis on social media often suffer from poor interpretability, meaning they can't explain why they made a certain prediction. While recent LLMs like ChatGPT show promise in generating explanations, they still struggle with classification accuracy in zero-shot or few-shot settings. Furthermore, fine-tuning these powerful models is hindered by a lack of high-quality, domain-specific training data and the unavailability of open-source foundation models for this specialized task. This paper aims to bridge this gap by developing an interpretable, open-source LLM solution for mental health analysis.
Methods
The core of this work lies in creating a novel dataset and fine-tuning LLMs.
- Dataset Construction (IMHI): The authors built the Interpretable Mental Health Instruction (IMHI) dataset, the first multi-task and multi-source dataset for this domain. They collected data from 10 existing sources covering 8 mental health analysis tasks. To generate explanations, they used expert-designed few-shot prompts to query ChatGPT. Crucially, they performed rigorous automatic and human evaluations to ensure the correctness, consistency, and quality of these generated explanations. This data was then transformed into instruction-based query-answer pairs.
- Model Fine-tuning (MentaLLaMA): Leveraging the IMHI dataset, the researchers fine-tuned LLaMA2 foundation models. They developed three MentaLLaMA models: MentaLLaMA-7B, MentaLLaMA-chat-7B, and MentaLLaMA-chat-13B. The "chat" versions were further optimized using instruction tuning and Reinforcement Learning from Human Feedback (RLHF), aiming to improve their ability to follow instructions and generate high-quality, human-aligned responses.
Datasets
- Training/Evaluation: The primary dataset introduced is the IMHI (Interpretable Mental Health Instruction) dataset, containing 105K data samples. This dataset is derived from 10 existing sources covering 8 mental health analysis tasks.
- Existing Datasets Used: The paper mentions utilizing data from sources like Reddit, Twitter, and SMS texts, specifically referencing datasets for depression detection (DR, CLP), stress detection (Dreaddit, SAD), mental disorder detection (SWMH, T-SID), loneliness detection, interpersonal risk factors (IRF), and wellness dimensions (MultiWD).
- Benchmark: The authors also established the IMHI evaluation benchmark, comprising 19K test samples across 10 test sets, designed for holistic evaluation of interpretable mental health analysis tasks.
Key Insights and Ideas
- LLMs can generate human-like explanations, but accuracy is key: While LLMs like ChatGPT can produce fluent and seemingly insightful explanations, their utility is significantly hampered if the underlying classification is inaccurate. This highlights the need for models that excel in both prediction and explanation.
- Domain-specific instruction tuning is crucial: Simply using general LLMs in a zero-shot or few-shot manner for mental health analysis is insufficient. Fine-tuning on a specialized dataset like IMHI, which incorporates instruction-following capabilities, dramatically improves performance.
- Open-source models are vital for research advancement: The lack of open-source LLMs for interpretable mental health analysis was a significant bottleneck. MentaLLaMA aims to democratize this research area by providing accessible, fine-tuned models.
- RLHF and larger model sizes enhance explanation quality: The "chat" versions of MentaLLaMA, benefiting from RLHF and larger parameter counts, demonstrated superior explanation quality, suggesting these are effective strategies for improving LLM interpretability.
- Generalizability is a strength of LLMs, but needs careful training: MentaLLaMA showed promising generalizability to unseen tasks, outperforming other models, indicating that instruction tuning on a diverse dataset can equip LLMs to handle novel mental health analysis challenges.
Key Results
- Correctness: MentaLLaMA-chat-13B achieved performance comparable to state-of-the-art discriminative methods on 7 out of 10 test sets in the IMHI benchmark.
- Explanation Quality: MentaLLaMA models generated explanations on par with ChatGPT, consistently outperforming other generative PLMs. Human evaluations indicated that MentaLLaMA's explanations were highly consistent and reliable.
- Generalizability: MentaLLaMA models demonstrated strong generalizability to unseen tasks, outperforming other generative PLMs in both prediction correctness and explanation quality.
- Comparison to Discriminative Models: While discriminative models like MentalBERT and MentalRoBERTa still hold an edge in pure classification accuracy on some tasks, they lack interpretability, a key differentiator for MentaLLaMA.
Limitations and Future Work
- Domain-Specific Knowledge: The authors acknowledge that MentaLLaMA, while strong, still lacks the depth of domain-specific knowledge compared to models like ChatGPT, particularly in "professionality" of explanations.
- Future Work:
- Continual Pre-training: To address the professionality gap, they propose continual pre-training of MentaLLaMA on large-scale, high-quality mental health-related data (e.g., textbooks, psychology questionnaires).
- Improved Automatic Evaluation: The paper notes that BART-score, while useful, has only moderate correlation with human evaluations for interpretable mental health analysis. Future work will focus on developing more reliable automatic evaluation metrics.
Summary updated