用多智能体自检机制让精神分裂症聊天机器人更听话、更安全。
Prompt Engineering a Schizophrenia Chatbot: Utilizing a Multi-Agent Approach for Enhanced Compliance with Prompt Instructions
- 设计多智能体系统实时审查并修正聊天机器人回复
- 启用自检后合规率从8.7%提升至67.0%
- 适合开发需严格遵守指南的医疗AI应用
精神分裂症患者常伴有认知障碍,难以理解自身病情。基于大语言模型(如GPT-4)的教育平台可提供灵活、易懂的信息支持,但其黑箱特性带来伦理与安全风险。提示工程可生成受控聊天机器人,但对话中易偏离预设范围。本文提出一种关键分析过滤器(Critical Analysis Filter),由多个提示驱动的LLM智能体协同工作,实时评估并优化聊天机器人输出。通过构建精神分裂症信息聊天机器人,在未启用过滤器时观察到其行为漂移。随后,利用AI生成诱导其越界的对话样本,并人工标注每条回复的合规度(衡量来源准确性与局限性透明度)。启用过滤器后,67.0%的回复达到合规标准(得分≥2),而关闭时仅8.7%达标。结果表明,自反思机制能有效保障大模型在心理健康平台中的安全性与可靠性。
原文摘要 · Abstract (English)
Patients with schizophrenia often present with cognitive impairments that may hinder their ability to learn about their condition. These individuals could benefit greatly from education platforms that leverage the adaptability of Large Language Models (LLMs) such as GPT-4. While LLMs have the potential to make topical mental health information more accessible and engaging, their black-box nature raises concerns about ethics and safety. Prompting offers a way to produce semi-scripted chatbots with responses anchored in instructions and validated information, but prompt-engineered chatbots may drift from their intended identity as the conversation progresses. We propose a Critical Analysis Filter for achieving better control over chatbot behavior. In this system, a team of prompted LLM agents are prompt-engineered to critically analyze and refine the chatbot's response and deliver real-time feedback to the chatbot. To test this approach, we develop an informational schizophrenia chatbot and converse with it (with the filter deactivated) until it oversteps its scope. Once drift has been observed, AI-agents are used to automatically generate sample conversations in which the chatbot is being enticed to talk about out-of-bounds topics. We manually assign to each response a compliance score that quantifies the chatbot's compliance to its instructions; specifically the rules about accurately conveying sources and being transparent about limitations. Activating the Critical Analysis Filter resulted in an acceptable compliance score (>=2) in 67.0% of responses, compared to only 8.7% when the filter was deactivated. These results suggest that a self-reflection layer could enable LLMs to be used effectively and safely in mental health platforms, maintaining adaptability while reliably limiting their scope to appropriate use cases.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。