MentalArena: Self-play Training of Language Models for Diagnosis and Treatment of Mental Health Disorders

Cheng Li, Yi Fung, Qingyun Wang, Chi Han, Manling Li, Jindong Wang, Heng Ji · Submission to ICLR 2025 · Withdrawn

TL;DR

MentalArena is a self-play framework that trains large language models (LLMs) for mental health diagnosis and treatment without needing sensitive patient records. By having an LLM simulate both a clinically grounded patient and an inquiring therapist—incorporating cognitive models and dynamic intent-alignment checks—the framework generates high-quality synthetic clinical trajectories. Fine-tuning base models (such as GPT-3.5-turbo and Llama-3-8b) on this self-generated data yields specialist models that surpass much larger generalist systems, including GPT-4o, across biomedical QA and mental health benchmarks.

What Problem Does This Paper Address?

Over 970 million people worldwide live with mental health disorders, yet healthcare systems face severe staffing shortages that leave most patients without adequate care. While AI-assisted clinical tools could expand access, training LLMs to diagnose and suggest treatments faces steep hurdles:

  1. Severe Data Scarcity and Privacy Constraints: Real clinical therapy transcripts and personalized patient records cannot be freely collected due to medical privacy protections. Prior attempts relying on public social media data (e.g., Reddit) suffer from demographic skew, unverified diagnoses, and poor coverage of clinical treatment.
  2. Patient Simulation Failures: Off-the-shelf LLMs lack structured internal representations of psychiatric conditions, resulting in shallow, unrealistic patient role-play.
  3. Intent Bias: In real and simulated therapy, miscommunications often occur when a therapist misinterprets ambiguous patient statements. Standard dialogue generation amplifies these misunderstandings, degrading diagnostic and therapeutic accuracy.

Methods

MentalArena addresses these issues through an iterative, closed-loop self-play framework comprised of three core components:

[ Cognitive Model + Behavioral Principles ]
                     │
                     ▼
             Symptom Encoder  ──(Patient S₀)──►  Symptom Decoder (Therapist)
                                                         │
                                               Semantic Alignment Check
                                               (Iterative conversation if < 0.9)
                                                         │
                                                         ▼
                                             Optimal Diagnosis, Treatment,
                                                and Medication (z_best)
                                                         │
                                                         ▼
                                                  Model Optimizer
                                              (Shared Fine-Tuning)
  • Symptom Encoder (Patient Modeling): Rather than using shallow persona prompts, simulated patients are grounded in Cognitive Behavioral Therapy (CBT) conceptualization diagrams (encompassing 8 dimensions: relevant history, core beliefs, intermediate beliefs, coping strategies, situations, automatic thoughts, emotions, and behaviors) combined with an expert-derived behavioral library.
  • Symptom Decoder (Therapist Interaction & Intent-Bias Mitigation):
  • During multi-turn dialogues, the therapist extracts decoded cognitive/behavioral impressions ($S_d$) and compares them via semantic similarity against the patient's ground-truth encoded symptoms ($S_0$).
  • If similarity is below $0.9$, an external supervisor (GPT-4-turbo) provides structured feedback to help the therapist probe deeper until alignment is achieved.
  • The therapist then generates candidate diagnostic, treatment, and medication options. The patient simulates step-by-step health progression ($S_1, S_2, \dots, S_k$) under these regimens to select the optimal outcomes ($z_{\text{best}}$).
  • Model Optimizer: The collected trajectories (18k paired examples covering symptoms, diagnoses, treatments, and medications) are used to fine-tune the base model using supervised fine-tuning or LoRA. Both the patient and therapist roles are powered by the same model, preventing divergent cross-model knowledge gaps across iterations.

Datasets

The authors evaluated MentalArena across 6 primary benchmarks covering clinical reasoning and psychiatric screening:

  • Biomedical QA: MedQA (173 USMLE psychosis questions), MedMCQA (314 entrance exam questions on psychosis), and PubMedQA (328 biomedical research QA instances evaluated zero-shot without context).
  • Mental Health Detection: CASM (625 posts evaluating causal attribution in depression/suicide), Dreaddit (414 posts for stress detection), and Irf (2,113 posts classifying interpersonal risk factors).

Generalization & Forgetting Tests: - Evaluated on MedMCQA across 10 distinct non-psychiatric medical specialties (Anatomy, Pharmacology, Surgery, etc.) and MMLU (6 biology and clinical medicine sub-disciplines). - Catastrophic forgetting was assessed across 21 reasoning and language tasks in BIG-Bench-Hard (BBH).

Key Insights and Ideas

  • Symptom Verification Prevents Model Drift: Self-play often risks compounding errors ("hallucination loops"). Enforcing explicit semantic checks ($\text{Sim}(S_d, S_0) \ge 0.9$) prevents the therapist agent from confirming misdiagnoses.
  • Diversity Gain Dictates Self-Play Stopping Points: Tracking diversity gain against previous iterations revealed a clear borderline: as long as diversity gain stayed above a threshold, downstream task accuracy rose; once it dropped below that threshold (after iteration 2 for GPT-3.5 and iteration 4 for Llama-3-8b), performance plateaued or deteriorated.
  • Therapy Modeling Enhances General Clinical Reasoning: Fine-tuning on CBT-structured psychiatric dialogues did not lead to catastrophic forgetting; rather, it improved performance across non-psychiatric medical topics (MedMCQA/MMLU) and slightly boosted general reasoning on BBH. The authors hypothesize that learning structured hypothesis testing in therapy transfers positively to general analytical tasks.

Key Results

  • Outperforming Strong Baselines: Fine-tuned GPT-3.5-turbo achieved an average accuracy of 68.28% across the 6 tasks (a +20.74% absolute jump over the 47.54% base model), surpassing zero-shot GPT-4o (60.58%) and prompting-enhanced GPT-4o + MedPrompt (64.22%).
  • Llama-3-8b Gains: Fine-tuned Llama-3-8b reached 61.39% (up from 54.75%), outperforming prior mental health-specialized models such as MentaLLaMa-13b (35.98%) and Mental-LLM-alpaca (31.24%).
  • Ablation Evidence: Training with full diagnostic, treatment, and medication trajectories outperformed training with diagnosis alone. Both the Symptom Encoder and Symptom Decoder contributed measurable performance boosts.
  • Authenticity and Validity: In blind evaluations by GPT-4o, dialogues produced by MentalArena patients were rated as authentically human 82.55% of the time (vs. 63.82% for baseline GPT-3.5), and generated QA training pairs had a 93.13% clinical validity rate.

Limitations and Future Work

  • LLM-as-a-Judge Dependencies: Verification of patient authenticity, data validity, and alignment feedback heavily leveraged GPT-4o / GPT-4-turbo, which may introduce model-specific assessment biases.
  • Compute Constraints on Open Models: Iterative self-play training on open weights was only scaled up to Llama-3-8b and capped at modest epoch schedules due to computational limitations.
  • Clinical Safety and Deployment: While the framework produces high-quality QA data, the authors emphasize that these models are research artifacts intended to support human clinicians rather than operate as autonomous therapeutic agents without licensed oversight.

Summary updated

Abstract

Mental health disorders are one of the most serious diseases in the world. Most people with such a disease lack access to adequate care, which highlights the importance of training models for the diagnosis and treatment of mental health disorders. However, in the mental health domain, privacy concerns limit the accessibility of personalized treatment data, making it challenging to build powerful models. In this paper, we introduce MentalArena, a self-play framework to train language models by generating domain-specific personalized data, where we obtain a better model capable of making a personalized diagnosis and treatment (as a therapist) and providing information (as a patient). To accurately model human-like mental health patients, we devise Symptom Encoder which simulates a real patient from both cognition and behavior perspectives. To address intent bias during patient-therapist interactions, we propose Symptom Decoder to compare diagnosed symptoms with encoded symptoms, and dynamically manage the dialogue between patient and therapist according to the identified deviations. We evaluated MentalArena against $6$ benchmarks, including biomedicalQA and mental health tasks, compared to $6$ advanced models. Our models, fine-tuned on both GPT-3.5 and Llama-3-8b, significantly outperform their counterparts, including GPT-4o. We hope that our work can inspire future research on personalized care.
BibTeX
@misc{li2024mentalarena,
  author = {CHENG LI and Yi Fung and Qingyun Wang and Chi Han and Manling Li and Jindong Wang and Heng Ji},
  title = {{MentalArena: Self-play Training of Language Models for Diagnosis and Treatment of Mental Health Disorders}},
  year = {2024},
  eprint = {2410.06845},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2410.06845},
}
Figure