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

教会模型理解(而非生成)高风险数据

Teaching Models to Understand (but not Generate) High-risk Data

Department of Computer Science, University of Southern California(计算机科学系,南加州大学);Allen Institute for AI(人工智能研究所)

Ryan Wang, Matthew Finlayson, Luca Soldaini, Swabha Swayamdipta, Robin Jia

AI总结:

提出SLUNG预训练范式,通过选择性损失使模型理解高风险数据而不生成,提升识别能力且不增加生成毒性。

摘要:

语言模型开发者通常会从其预训练数据中过滤掉高风险内容(如有毒或受版权保护的文本),以防止模型生成类似输出。然而,完全移除这些数据会限制模型识别并恰当回应有害或敏感内容的能力。在本文中,我们引入了选择性损失以理解但不生成(SLUNG),这是一种预训练范式,通过该范式,模型能够学会理解高风险数据,而不学习生成这些数据。SLUNG 并非统一应用下一个词元预测损失,而是选择性地避免激励高风险词元的生成,同时确保它们保留在模型的上下文窗口内。当模型学习预测紧随高风险词元之后的低风险词元时,它被迫理解高风险内容。通过我们的实验,我们展示了 SLUNG 能够持续提升模型对高风险数据的理解能力(例如,识别有毒内容的能力),而不会增加其生成(例如,模型响应的毒性)。总体而言,我们的 SLUNG 范式使模型能够从原本会被过滤掉的高风险文本中获益。

英文摘要:

Language model developers typically filter out high-risk content -- such as toxic or copyrighted text -- from their pre-training data to prevent models from generating similar outputs. However, removing such data altogether limits models' ability to recognize and appropriately respond to harmful or sensitive content. In this paper, we introduce Selective Loss to Understand but Not Generate (SLUNG), a pre-training paradigm through which models learn to understand high-risk data without learning to generate it. Instead of uniformly applying the next-token prediction loss, SLUNG selectively avoids incentivizing the generation of high-risk tokens while ensuring they remain within the model's context window. As the model learns to predict low-risk tokens that follow high-risk ones, it is forced to understand the high-risk content. Through our experiments, we show that SLUNG consistently improves models' understanding of high-risk data (e.g., ability to recognize toxic content) without increasing its generation (e.g., toxicity of model responses). Overall, our SLUNG paradigm enables models to benefit from high-risk text that would otherwise be filtered out.

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

↑