arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2603.03206cs.LGcs.AIcs.CL
收藏

理解并缓解LLM引导中的数据集损坏

Understanding and Mitigating Dataset Corruption in LLM Steering

Department of Computer Science, University of Massachusetts Amherst(马萨诸塞大学阿默斯特分校计算机科学系);Kahlert School of Computing, University of Utah(犹他大学凯尔特计算学校)

Cullen Anderson, Narmeen Oozeer, Foad Namjoo, Remy Ogasawara, Amirali Abdullah, Jeff M. Phillips

AI总结:

研究对比引导在数据集损坏下的鲁棒性,发现其对中等损坏较稳健,但恶意篡改会引发副作用,通过替换高维均值计算为鲁棒估计器可缓解影响。

摘要:

对比引导已被证明是一种简单而有效的调整LLM生成行为的方法。它使用带有和不带有特定特征的提示响应示例来确定中间激活层中的方向,然后在该一维子空间中移动激活。然而,尽管其在AI安全应用中日益普及,对比引导对噪声或对抗性数据损坏的鲁棒性仍缺乏深入理解。我们启动了对这一过程在训练数据集损坏方面的鲁棒性的研究。我们的第一个观察是,对比引导对中等程度的损坏具有相当的鲁棒性,但当训练数据的非平凡比例被篡改时, unwanted side effects 可以被明显且恶意地表现出来。第二,我们分析了各种类型损坏的几何结构,并识别了一些保护措施。值得注意的是,学习引导方向的关键步骤涉及高维均值计算,我们显示用最近开发的鲁棒均值估计器替代此步骤通常可以缓解大多数恶意损坏带来的不良影响。

英文摘要:

Contrastive steering has been shown as a simple and effective method to adjust the generative behavior of LLMs at inference time. It uses examples of prompt responses with and without a trait to identify a direction in an intermediate activation layer, and then shifts activations in this 1-dimensional subspace. However, despite its growing use in AI safety applications, the robustness of contrastive steering to noisy or adversarial data corruption is poorly understood. We initiate a study of the robustness of this process with respect to corruption of the dataset of examples used to train the steering direction. Our first observation is that contrastive steering is quite robust to a moderate amount of corruption, but unwanted side effects can be clearly and maliciously manifested when a non-trivial fraction of the training data is altered. Second, we analyze the geometry of various types of corruption, and identify some safeguards. Notably, a key step in learning the steering direction involves high-dimensional mean computation, and we show that replacing this step with a recently developed robust mean estimator often mitigates most of the unwanted effects of malicious corruption.

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

↑