arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2509.04512cs.CLcs.LG
收藏

大语言模型在不同规模与任务下情感安全分类的缩放行为

Scaling behavior of large language models in emotional safety classification across sizes and tasks

Leibniz Institute for Resilience Research(莱比锡韧性研究所);University Medical Center Halle(哈雷医学院);German Center for Mental Health (DZPG)(德国心理健康中心(DZPG));University Medical Center of the Johannes Gutenberg-University Mainz(美因茨约瑟夫·冯·拉贝大学医学院)

Edoardo Pinzuti, Oliver Tüscher, André Ferreira Castro

AI总结:

该研究构建超1.5万样本的情感安全数据集,评估不同规模LLaMA模型在两类情感安全分类任务中的缩放行为,发现轻量微调的小模型可实现媲美大模型的性能,为隐私友好的端侧敏感应用提供可行方案。

摘要:

理解大语言模型(LLM)如何处理情感敏感内容,对构建安全可靠的系统至关重要,尤其是在心理健康场景中。我们研究了LLM在两项核心任务上的缩放行为:情感安全的三分类(安全、不安全、边界类)以及基于六类安全风险分类体系的多标签分类。为此,我们通过合并多个人工标注的心理健康数据集(超1.5万个样本),并辅以ChatGPT生成的情感重解读提示进行数据增强,构建了一个全新数据集。我们在零样本、少样本和微调设置下评估了4个LLaMA模型(1B、3B、8B、70B)。结果显示,更大的LLM平均性能更强,尤其在精细的多标签分类和零样本设置中表现突出。不过,轻量微调后的1B模型在多个高数据量类别中性能可与更大模型及BERT相当,且推理时显存占用不到2GB。这些发现表明,更小的端侧模型可作为敏感应用中可行且隐私友好的替代方案,具备解读情感语境、维持安全对话边界的能力。本研究凸显了对治疗类LLM应用及安全关键系统可扩展对齐的关键启示。

英文摘要:

Understanding how large language models (LLMs) process emotionally sensitive content is critical for building safe and reliable systems, particularly in mental health contexts. We investigate the scaling behavior of LLMs on two key tasks: trinary classification of emotional safety (safe vs. unsafe vs. borderline) and multi-label classification using a six-category safety risk taxonomy. To support this, we construct a novel dataset by merging several human-authored mental health datasets (> 15K samples) and augmenting them with emotion re-interpretation prompts generated via ChatGPT. We evaluate four LLaMA models (1B, 3B, 8B, 70B) across zero-shot, few-shot, and fine-tuning settings. Our results show that larger LLMs achieve stronger average performance, particularly in nuanced multi-label classification and in zero-shot settings. However, lightweight fine-tuning allowed the 1B model to achieve performance comparable to larger models and BERT in several high-data categories, while requiring <2GB VRAM at inference. These findings suggest that smaller, on-device models can serve as viable, privacy-preserving alternatives for sensitive applications, offering the ability to interpret emotional context and maintain safe conversational boundaries. This work highlights key implications for therapeutic LLM applications and the scalable alignment of safety-critical systems.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑