Abstract
Large language models (LLMs) now mediate many web-based mental- health, crisis, and other emotionally sensitive services, yet their psychosocial safety in these settings remains poorly understood and weakly evaluated. We present DialogGuard, a multi-agent frame- work for assessing psychosocial risks in LLM-generated responses along five high-severity dimensions: privacy violations, discrimi- natory behaviour, mental manipulation, psychological harm, and insulting behaviour. DialogGuard can be applied to diverse gen- erative models through four LLM-as-a-judge pipelines, including single-agent scoring, dual-agent correction, multi-agent debate, and stochastic majority voting, grounded in a shared three-level rubric usable by both human annotators and LLM judges. Using PKU-SafeRLHF with human safety annotations, we show that multi- agent mechanisms detect psychosocial risks more accurately than non-LLM baselines and single-agent judging; dual-agent correction and majority voting provide the best trade-off between accuracy, alignment with human ratings, and robustness, while debate attains higher recall but over-flags borderline cases. We release Dialog- Guard as open-source software with a web interface that provides per-dimension risk scores and explainable natural-language ratio- nales. A formative study with 12 practitioners illustrates how it supports prompt design, auditing, and supervision of web-facing applications for vulnerable users.
Abstract (translated)
大型语言模型(LLMs)现在在许多基于网络的心理健康、危机以及其他涉及情感敏感的服务中发挥作用,但这些环境中的心理社会安全问题仍然理解不足且评价薄弱。我们提出了DialogGuard,这是一个多代理框架,用于评估LLM生成响应中的五种高严重性维度上的心理社会风险:隐私侵犯、歧视行为、精神操纵、心理伤害和侮辱行为。DialogGuard可以通过四种基于LLM作为裁判的管道应用于各种生成模型,包括单个代理评分、双重代理校正、多代理辩论和随机多数投票机制,并且这些机制都建立在由人类标注者和LLM裁判共同使用的三级标准之上。 使用带有人类安全注释的PKU-SafeRLHF数据集,我们展示了多代理机制比非LLM基准以及单个代理评判更准确地检测心理社会风险;双重代理校正和多数投票提供了最优化的准确性、与人类评分的一致性和稳健性的平衡,而辩论则达到了更高的召回率但同时过度标记了一些边缘案例。DialogGuard作为一个开源软件发布,并提供一个包含每个维度风险分数及解释性自然语言理由的网络界面。 一项由12名从业者参与的初步研究表明,它支持提示设计、审计和对易受害用户的网页应用程序进行监督。
URL
https://arxiv.org/abs/2512.02282