Source-linked AI summary

CBT-LLM: A Chinese Large Language Model for Cognitive Behavioral Therapy-based Mental Health Question Answering

Hongbin Na

arXiv:2403.16008v1cs.CL

TL;DR

Chinese mental health language-model support faces data scarcity, quality challenges, and limited coverage of CBT. This study creates a CBT-based Chinese Q&A dataset and fine-tunes a model with it; evaluations report structured, professional, and relevant responses for psychological health support.

  • Problem

    Chinese mental health support datasets face data scarcity and do not adequately cover CBT, a well-established psychological intervention.

    Source: §1 · p. 1, §3.2 · p. 3
  • Method

    The study designs a CBT-based prompt, uses it to develop a Chinese mental health Q&A dataset, and fine-tunes a large language model as CBT-LLM.

    Source: §1 · p. 2, §3.4 · p. 5
  • Results

    Evaluations find that CBT-LLM follows CBT structure and generates professional, structured, highly relevant psychological health support responses.

    Source: §1 · p. 2
  • Takeaways & Limitations

    The evaluations support CBT-LLM’s practicality for generating structured responses in psychological health support tasks.

    Source: §1 · p. 2, §5 · p. 8

    The study lacks well-defined annotations for cognitive distortions, which may lead to inaccurate categorizations and reduce response usefulness and relevance.

    Source: §6 · p. 8

Abstract

from arXiv · show

The recent advancements in artificial intelligence highlight the potential of language models in psychological health support. While models trained on data from mental health service platform have achieved preliminary success, challenges persist in areas such as data scarcity, quality, and ensuring a solid foundation in psychological techniques. To address these challenges, this study introduces a novel approach to enhance the precision and efficacy of psychological support through large language models. Specifically, we design a specific prompt derived from principles of Cognitive Behavioral Therapy (CBT) and have generated the CBT QA dataset, specifically for Chinese psychological health Q&A based on CBT structured intervention strategies. Unlike previous methods, our dataset emphasizes professional and structured response. Utilizing this dataset, we fine-tuned the large language model, giving birth to CBT-LLM, the large-scale language model specifically designed for Cognitive Behavioral Therapy techniques. Empirical evaluations demonstrate that CBT-LLM excels in generating structured, professional, and highly relevant responses in psychological health support tasks, showcasing its practicality and quality. The model is available on Hugging Face: https://huggingface.co/Hongbin37/CBT-LLM.

1. Introduction

The study addresses gaps in Chinese mental-health Q&A by grounding a prompt, dataset, and fine-tuned model in CBT. It reports improved support-task performance while cautioning that the model is not a substitute for professionally supervised treatment.

  • The authors do not recommend using the model as a substitute for psychological treatment without professional supervision.Source: §1 · p. 1
  • Pre-trained language models have potential for mental-health support, and preliminary systems have explored their use for psychological assistance.The cited systems include Liu et al. (2021), Cheng et al. (2023), and Lai et al. (2023).Source: §1 · p. 1
  • Existing mental-health Q&A approaches still struggle to provide precise, effective support, and large datasets alone do not ensure constructive, empathetic responses.The introduction identifies a scarcity of data grounded in bona fide psychological counseling techniques and a gap between current systems and professional standards.Source: §1 · pp. 1–2
  • The study creates a CBT-based counseling prompt and structured Chinese mental-health QA dataset, then instruction-fine-tunes CBT-LLM on that dataset.The authors present CBT’s structured intervention strategies as the theoretical foundation for the dialogue model.Source: §1 · p. 2
  • Automatic metrics and human evaluation show CBT-LLM significantly outperforms existing models in mental health support.The introduction also reports that its responses adhere to CBT structure and are professional, structured, and relevant to users’ needs.Source: §1 · p. 2

2. Related Work

The related work situates CBT among established counseling approaches and describes an emerging role for LLMs in mental-health support, including data-building and intervention approaches.

2.1. Counseling Techniques

  • CBT targets cognition–emotion–behavior links and distorted thoughts, while ACT, humanistic therapy, and DBT emphasize values-based flexibility, self-growth, and acceptance/change with mindfulness, respectively.The passage also describes counseling as supporting people in identifying, resolving, and coping with psychological issues.Source: §2.1 · p. 2

2.2. LLMs for Mental Health Support

3. Methodology

The methodology generates CBT-oriented answers from PsyQA using CBT-structured prompts, analyzes the resulting dataset and prompt quality, and fine-tunes a language model for CBT question answering.

3.1. Problem Definition

  • For each PsyQA question and description, ChatGPT applies the CBT prompts to generate an answer; the resulting question-description-answer triples make up the CBT QA dataset for instruction fine-tuning.Source: §3.1 · p. 3

3.2. Generation of CBT Responses

  • The CBT Prompt generated answers with gpt-3.5-turbo-16k from PsyQA questions and descriptions, addressing the dataset’s limited CBT coverage and the impracticality of writing responses individually.The authors also tested a sample with GPT-4 and incorporated its prototype answer into the prompt for subsequent generation.Source: §3.2 · pp. 3–4
  • The single-turn CBT response structure has five components: empathy, identifying beliefs, reflection, practical strategies, and encouragement.The components aim to guide CBT-consistent responses from validating feelings through encouraging strategy use and noting that further support may be needed.Source: §3.2 · p. 4

3.3.1. General Statistical Analysis

  • 22,327 entries form the CBT QA dataset, with 522.8-character average responses and cognitive dissonance identified in 12,136 instances (54.4%).Questions average 21.6 characters and descriptions 168.9 characters.Source: §3.3.1 · p. 4, Table 1 · p. 4

3.3.2. Cognitive Distortion Statistical Analysis

  • 7,115 samples (approximately 59%) show All-or-Nothing Thinking, while 7,782 (about 64%) show Overgeneralization among the 12,136 distortion instances.Distortions can co-occur; Emotional Reasoning, Catastrophizing, and Mind Reading account for 29% of cases.Source: §3.3.2 · p. 4, Table 2 · p. 5

3.3.3. Recognition of Quality Analysis

  • 0.69 accuracy, 0.93 recall, and 0.65 F1 score measure the CBT Prompt’s cognitive-distortion recognition against professional annotations.The evaluation used 500 randomly selected samples; the authors interpret the accuracy–F1 gap as indicating false positives.Source: §3.3.3 · pp. 4–5, Table 3 · p. 5

3.4. CBT-LLM

  • Instruction tuning and LoRA adapt the Transformer-decoder language model to CBT Q&A, with cross-entropy loss used for training.LoRA augments layers using low-rank matrices while leaving the original weights unchanged.Source: §3.4 · p. 5

4. Experiment

The experiments fine-tuned CBT-LLM on a CBT QA dataset and evaluated it against other models using automatic metrics, professional ratings, and a case study. The reported results favor CBT-LLM over three benchmark models, while the human evaluation and case study describe additional findings.

4.1. Data Preparation

  • The CBT QA dataset was split 90% for training and 10% for testing, with question and description as input and the CBT response as output.Each fine-tuning example used an instruction, input, and output, including a therapist-role instruction.Source: §4.1 · p. 6

4.2. Baselines

  • The baselines were LLaMA-Chinese-7B (Cui et al., 2023), Alpaca-Chinese-7B (Cui et al., 2023), Qwen-7B (Bai et al., 2023), and Baichuan-7B.Their descriptions cite Chinese processing, instruction following, multilingual processing, and Chinese-language performance as relevant characteristics.Source: §4.2 · p. 6

4.3. Experimental Setups

  • Training used an NVIDIA V100 32G GPU for three epochs, with gradient accumulation of four batches, a 5 × 10^-5 learning rate, cosine scheduling, and 16-bit precision.Fine-tuning was implemented with LLaMA Factory (hiyouga, 2023).Source: §4.3 · p. 6

4.4. Automatic Evaluation

  • Automatic evaluation used BLEU, METEOR, CHRF, BLEURT, and BERTSCORE to assess lexical, character-level, and representation-based similarity against reference answers.The July toolkit (Cavusoglu et al., 2023) computed the metrics; results are presented in Table 4.Source: §4.4 · pp. 6–7

4.5. Main Results

  • CBT-LLM outperformed LLaMA-Chinese-7B, Alpaca-Chinese-7B, and Qwen-7B on CBT structured-intervention tasks.The paper attributes the gap to CBT-LLM’s task-specific tailoring, while the baselines were optimized for Chinese processing, CBT adherence, or multilingual processing.Source: §4.5 · p. 7, Table 4 · p. 7

4.6. Human Evaluation

  • The human evaluation found Baichuan-7B marginally outperformed Alpaca-Chinese-7B across relevance, CBT structure, and helpfulness.Four senior psychology students and one experienced psychotherapist rated 100 randomly selected test samples on three 0–2 scales.Source: §4.6 · p. 7, Table 5 · p. 7

4.7. Case Study

  • The case study shows CBT-LLM validating emotions, identifying cognitive biases, offering practical strategies, and encouraging users facing social isolation and loneliness.The response emphasized social engagement and professional counseling, then offered positive encouragement.Source: §4.7 · pp. 7–8, Figure 4 · p. 8

5. Conclusions and Future Work

The study presents CBT-LLM, built from a CBT-specific prompt and tailored Chinese mental-health QA dataset, and reports that it generates structured, professional, and relevant support responses. Future work will extend therapeutic approaches and move from single-turn Q&A to multi-turn dialogue.

Conclusions

  • CBT-LLM combines a CBT-specific prompt and tailored Chinese mental-health QA dataset, with evaluations reporting structured, professional, and highly relevant support responses.The model was created by fine-tuning a large language model on the dataset.Source: §5 · p. 8

Future Work

  • Integrating ACT and DBT alongside CBT could broaden the model to address diverse therapeutic needs.The paper identifies this as a future direction.Source: §5 · p. 8
  • Moving from single-turn Q&A to multi-turn dialogue could better reflect counseling sessions and deepen model-patient interactions.The paper identifies this as a second future direction.Source: §5 · p. 8

6. Limitations

The approach lacks guided annotations for cognitive distortions, which may reduce response precision and CBT effectiveness. Delivering the full CBT process in one response may pressure or overwhelm users, especially through consecutive questions.

  • Without guided annotations for cognitive distortions, the model may misidentify them, reducing the precision and effectiveness of its CBT advice.Source: §6 · p. 8
  • Delivering the comprehensive CBT process in one response may pressure or overwhelm users, particularly when it presents consecutive questions.Source: §6 · pp. 8–9

Ethical Statement

The authors will release the CBT QA dataset for research only and anonymize forum questions to protect privacy. They clarify that questions come from online mental health forums and responses are generated by ChatGPT, not professionals, so the work provides no therapeutic recommendations or diagnoses.

Ethical Statement

  • The CBT QA dataset will be publicly released for research purposes only, and online forum questions have been anonymized to protect participant privacy.The release follows PsyQA data copyright protocols.Source: Ethical Statement · p. 9
  • Dataset questions originate from online mental health forums, while responses are generated by ChatGPT rather than professionals; therefore, the work offers no therapeutic recommendations or diagnostic statements.Source: Ethical Statement · p. 9

Bibliographical References · A. Human Evaluation Guidelines

The guidelines evaluate CBT-based counseling answers for relevance, adherence to CBT structure, and psychological benefit. Each entry contains a question, its description, and the answer text.

A. Human Evaluation Guidelines

Loading 2403.16008v1…