Abstract
As large language models (LLMs) become deeply embedded in daily life, the urgent need for safer moderation systems, distinguishing between naive from harmful requests while upholding appropriate censorship boundaries, has never been greater. While existing LLMs can detect harmful or unsafe content, they often struggle with nuanced cases such as implicit offensiveness, subtle gender and racial biases, and jailbreak prompts, due to the subjective and context-dependent nature of these issues. Furthermore, their heavy reliance on training data can reinforce societal biases, resulting in inconsistent and ethically problematic outputs. To address these challenges, we introduce GuardEval, a unified multi-perspective benchmark dataset designed for both training and evaluation, containing 106 fine-grained categories spanning human emotions, offensive and hateful language, gender and racial bias, and broader safety concerns. We also present GemmaGuard (GGuard), a QLoRA fine-tuned version of Gemma3-12B trained on GuardEval, to assess content moderation with fine-grained labels. Our evaluation shows that GGuard achieves a macro F1 score of 0.832, substantially outperforming leading moderation models, including OpenAI Moderator (0.64) and Llama Guard (0.61). We show that multi-perspective, human-centered safety benchmarks are critical for reducing biased and inconsistent moderation decisions. GuardEval and GGuard together demonstrate that diverse, representative data materially improve safety, fairness, and robustness on complex, borderline cases.
Abstract (translated)
随着大型语言模型(LLM)在日常生活中的应用越来越广泛,建立一个既能区分无害请求和有害请求又能保持适当审查边界的更安全的审核系统的需求变得前所未有的迫切。尽管现有的LLM能够检测出有害或不安全的内容,但它们往往难以处理诸如隐含冒犯性、微妙的性别和种族偏见以及越狱提示等复杂情况,因为这些问题具有主观性和情境依赖性的特点。此外,这些模型对训练数据的高度依赖可能导致社会偏见被强化,进而产生不一致且有伦理问题的输出结果。 为了解决上述挑战,我们介绍了GuardEval,这是一个统一的多角度基准测试数据集,既用于培训也用于评估,涵盖了106种细粒度分类,包括人类情感、冒犯性和仇恨言论、性别和种族偏见以及更广泛的安全性问题。此外,我们还推出了GemmaGuard(GGuard),这是基于Gemma3-12B模型经过QLoRA微调后的版本,并在GuardEval数据集上进行训练,以使用细粒度标签评估内容审核。我们的评估结果显示,GGuard实现了0.832的宏F1分数,在性能上显著优于领先的审核模型,包括OpenAI Moderator(0.64)和Llama Guard(0.61)。我们展示了多角度、以人为中心的安全基准对于减少带有偏见且不一致的审核决定的重要性。GuardEval与GGuard共同证明了多样化且具有代表性的数据在复杂边缘案例中显著提高了安全性和公平性,并增强了模型的稳健性。
URL
https://arxiv.org/abs/2601.03273