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

统一文本评分模型中的对抗鲁棒性与训练

Unifying Adversarial Robustness and Training Across Text Scoring Models

uwaterloo(滑铁卢大学)

Manveer Singh Tamber, Hosna Oyarhoseini, Jimmy Lin

AI总结:

本文提出统一文本评分模型中对抗鲁棒性与训练的方法,通过引入多种对抗训练方法提升模型鲁棒性和任务效果,并展示其在RLHF中的应用价值。

摘要:

针对语言模型中对抗鲁棒性在不同应用和攻击之间碎片化的问题,本文提出统一研究文本评分模型(包括密集检索器、重排序器和奖励模型)中的对抗鲁棒性。这促使在不同模型角色中适应攻击和对抗训练方法。与开放性生成不同,文本评分失败可以直接测试:攻击成功当无关或被拒绝的文本评分超过相关或被选择的文本。基于此文本评分的原理视角,我们证明当前语言模型的对抗训练公式往往短视,无法有效跨攻击泛化。为此,我们引入多种针对文本评分模型的对抗训练方法,并展示结合互补训练方法可获得强鲁棒性同时提升任务效果。我们还强调了该方法在RLHF中的实际价值,证明我们的对抗训练奖励模型可缓解奖励黑客问题并支持训练更对齐的LLMs。我们提供了代码和模型供进一步研究。

英文摘要:

Research on adversarial robustness in language models is currently fragmented across applications and attacks, obscuring shared vulnerabilities. In this work, we propose unifying the study of adversarial robustness in text scoring models spanning dense retrievers, rerankers, and reward models. This motivates adapting both attacks and adversarial training methods across model roles. Unlike open-ended generation, text scoring failures are directly testable: an attack succeeds when an irrelevant or rejected text outscores a relevant or chosen one. Using this principled lens of text scoring, we demonstrate that current adversarial training formulations for language models are often short-sighted, failing to effectively generalize across attacks. To address this, we introduce multiple adversarial training methods for text scoring models and show that combining complementary training methods can yield strong robustness while also improving task effectiveness. We also highlight the practical value of our approach for RLHF, showing that our adversarially trained reward models mitigate reward hacking and support the training of better-aligned LLMs. We provide our code and models for further study.

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

↑