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

面向自然语言生成的中毒鲁棒性认证

Towards Poisoning Robustness Certification for Natural Language Generation

Department of Computing, Imperial College London, London, UK(计算系,伦敦帝国学院,伦敦,英国)

Mihnea Ghitu, Matthew Wicker

AI总结:

本文提出TPA算法,通过计算最小中毒预算认证自然语言生成的有效性和稳定性,为安全关键应用提供可证明的鲁棒性保障。

摘要:

理解自然语言生成的可靠性对于在安全敏感领域部署基础模型至关重要。尽管认证中毒防御提供了对分类任务的可证明鲁棒性界限,但它们本质上无法应对自回归生成:它们无法处理顺序预测或语言模型的指数级输出空间。为了建立认证自然语言生成的框架,我们正式化了两个安全属性:稳定性(对生成任何变化的鲁棒性)和有效性(对针对性有害变化的鲁棒性)。我们引入了目标分区聚合(TPA),这是首个能够通过计算诱导特定有害类别、标记或短语所需的最小中毒预算来认证有效性/针对性攻击的算法。进一步,我们扩展TPA,利用混合整数线性规划(MILP)提供更紧的多轮生成保证。实证上,我们在多种设置中展示了TPA的有效性,包括:在对手修改数据集最多0.5%时认证代理工具调用的有效性,以及在基于偏好对齐的场景中认证8个标记的稳定性范围。尽管推理时间延迟仍是一个开放挑战,我们的贡献使语言模型在安全关键应用中的认证部署成为可能。

英文摘要:

Understanding the reliability of natural language generation is critical for deploying foundation models in security-sensitive domains. While certified poisoning defenses provide provable robustness bounds for classification tasks, they are fundamentally ill-equipped for autoregressive generation: they cannot handle sequential predictions or the exponentially large output space of language models. To establish a framework for certified natural language generation, we formalize two security properties: stability (robustness to any change in generation) and validity (robustness to targeted, harmful changes in generation). We introduce Targeted Partition Aggregation (TPA), the first algorithm to certify validity/targeted attacks by computing the minimum poisoning budget needed to induce a specific harmful class, token, or phrase. Further, we extend TPA to provide tighter guarantees for multi-turn generations using mixed integer linear programming (MILP). Empirically, we demonstrate TPA's effectiveness across diverse settings including: certifying validity of agent tool-calling when adversaries modify up to 0.5% of the dataset and certifying 8-token stability horizons in preference-based alignment. Though inference-time latency remains an open challenge, our contributions enable certified deployment of language models in security-critical applications.

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

↑