Journal of Computer Applications ›› 2026, Vol. 46 ›› Issue (7): 2054-2063.DOI: 10.11772/j.issn.1001-9081.2025060783

• Artificial intelligence • Previous Articles    

Dual-role interaction mechanism-based large language model for psychological health

Yadian CHENG1, Yingying LI2(), Ping ZHANG1, Fangbing QIU3, Xiaonan CHAI3, Yuqiao SHU3   

  1. 1.School of Cyberspace Security,Information Engineering University,Zhengzhou Henan 450001,China
    2.National Research Center of Parallel Computer Engineering Technology,Jiangnan Institute of Computing Technology,Wuxi Jiangsu 214000,China
    3.National Supercomputing Center in Zhengzhou (Zhengzhou University),Zhengzhou Henan 450001,China
  • Received:2025-07-16 Revised:2025-10-23 Accepted:2025-10-29 Online:2025-11-27 Published:2026-07-10
  • Contact: Yingying LI
  • About author:CHENG Yadian, born in 2002, M. S. candidate. Her research interests include large language models, advanced compilation.
    ZHANG Ping, born in 1969, Ph. D., professor. Her research interests include advanced compilation, information system security.
    QIU Fangbing, born in 1995, M. S. Her research interests include large language models, deep learning.
    CHAI Xiaonan, born in 1996, M. S. Her research interests include deep learning compilation, algorithm parallelization.
    SHU Yuqiao, born in 1998, M. S. Her research interests include large language models, operator optimization.
  • Supported by:
    Advanced Computing and Intelligent Engineering Laboratory Project(1017406)

基于双角色交互机制的心理健康大语言模型

程雅典1, 李颖颖2(), 张平1, 邱芳冰3, 柴晓楠3, 舒玉巧3   

  1. 1.信息工程大学 网络空间安全学院,郑州 450001
    2.国家并行计算机工程技术研究中心(江南计算技术研究所),江苏 无锡 214000
    3.国家超级计算郑州中心(郑州大学),郑州 450001
  • 通讯作者: 李颖颖
  • 作者简介:程雅典(2002—),女,河南新乡人,硕士研究生,CCF会员,主要研究方向:大语言模型、先进编译
    张平(1969—),女,吉林通化人,教授,博士,主要研究方向:先进编译、信息系统安全
    邱芳冰(1995—),女,河南南阳人,硕士,主要研究方向:大语言模型、深度学习
    柴晓楠(1996—),女,河南新乡人,硕士,主要研究方向:深度学习编译、算法并行
    舒玉巧(1998—),女,河南信阳人,硕士,主要研究方向:大语言模型、算子优化。
  • 基金资助:
    先进计算与智能工程实验室项目(1017406)

Abstract:

Existing Artificial Intelligence (AI) psychological counseling systems are generally limited to the counselor role, making it difficult to address users' dual needs for both professional advice and emotional support dynamically. To overcome this limitation, a psychological health Large Language Model (LLM) based on dual-role interaction mechanism, named STAR (Supportive Therapeutic Adaptive Responder), was proposed. First, a dynamic role switching mechanism based on system prompts was designed to enable stylistic shifts between the psychological counselor and friend roles, thereby addressing users' dual needs for both professional advice and emotional support in psychological counseling scenarios. Then, a training process incorporating data quality control was implemented, where model feedback was continuously collected to dynamically optimize both data generation strategies and system prompt design, thereby forming a closed loop between data generation and model training and enhancing dataset quality. Experimental results on the Chinese psychology benchmark testing framework CPsyCoun (Chinese Psychological Counseling) show that the STAR model achieves improvements of 9.80% in comprehensive score of comprehensiveness, professionalism, and authenticity over the base model Qwen2.5-7B-Instruct, and 26.81% over the single-role psychological LLM EmoLLM (Emotional Large Language Model). STAR model also outperforms models fine-tuned on open-source datasets such as SoulChat, as well as general-purpose LLMs like GPT-4o-mini. The STAR model achieves dual-role adaptive responding effectively, significantly enhancing both effect and experience of psychological counseling.

Key words: Large Language Model (LLM), psychological counseling, dual-role interaction, emotional support, instruction fine-tuning

摘要:

针对现有的人工智能(AI)心理咨询系统仅扮演单一咨询师角色,而难以动态适应用户对专业建议与情感支持的双重需求的问题,提出一种基于双角色交互机制的心理健康大语言模型——STAR (Supportive Therapeutic Adaptive Responder)。首先,设计基于系统提示的角色动态切换机制,实现心理咨询师与朋友角色的风格转换,满足用户在心理咨询场景中对专业建议和情感支持的双重需求;其次,采用数据质量控制的训练流程,持续收集模型反馈,动态优化数据生成策略与系统提示词设计,形成数据生成与模型训练的闭环,提升数据集质量。实验结果表明,在中文心理学基准测试框架CPsyCoun (Chinese Psychological Counseling)中, STAR模型在全面性、专业性与真实性上的综合得分相较于基座模型Qwen2.5-7B-Instruct提升了9.80%,较单角色的心理大模型EmoLLM (Emotional Large Language Model)提升了26.81%,并优于使用灵心(SoulChat)等开源数据集微调的模型以及GPT-4o-mini等通用LLM。 STAR模型能够有效实现双角色自适应响应,并有效提升心理咨询的效果和体验。

关键词: 大语言模型, 心理咨询, 双角色交互, 情感支持, 指令微调

CLC Number: