Understanding and Mitigating Dataset Corruption in LLM Steering
AI 摘要
研究对比引导在LLM中对数据集污染的鲁棒性,并提出缓解恶意污染的方法。
主要贡献
- 分析对比引导对数据污染的鲁棒性
- 识别恶意污染的副作用
- 提出使用鲁棒均值估计器缓解污染
方法论
通过实验分析不同类型的数据污染对对比引导的影响,并提出缓解策略。
原文摘要
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.