PoisonBench: Assessing Large Language Model Vulnerability to Data Poisoning

Tingchen Fu, Mrinank Sharma, Philip Torr, Shay B. Cohen, David Krueger +1 more
10/11/2024
cs.CRcs.AIcs.CL

No official code found. Best implementation: TingchenFu/PoisonBench (10 stars, last commit 2024-10-19).

Abstract

Preference learning is a central component for aligning current LLMs, but this process can be vulnerable to data poisoning attacks. To address this concern, we introduce PoisonBench, a benchmark for evaluating large language models' susceptibility to data poisoning during preference learning. Data poisoning attacks can manipulate large language model responses to include hidden malicious content or biases, potentially causing the model to generate harmful or unintended outputs while appearing to function normally. We deploy two distinct attack types across eight realistic scenarios, assessing 21 widely-used models. Our findings reveal concerning trends: (1) Scaling up parameter size does not inherently enhance resilience against poisoning attacks; (2) There exists a log-linear relationship between the effects of the attack and the data poison ratio; (3) The effect of data poisoning can generalize to extrapolated triggers that are not included in the poisoned data. These results expose weaknesses in current preference learning techniques, highlighting the urgent need for more robust defenses against malicious models and data manipulation.

View on arXivView PDF

Code Implementations(1)

102Shell, PythonOct 8, 20242 years ago

Similar Papers

Cite this paper

@article{fu2024poisonbench,
  title  = {PoisonBench: Assessing Large Language Model Vulnerability to Data Poisoning},
  author = {Tingchen Fu and Mrinank Sharma and Philip Torr and Shay B. Cohen and David Krueger and Fazl Barez},
  year   = {2024},
  eprint = {2410.08811},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2410.08811v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2410.08811.svg)](https://codeofpaper.com/paper/2410.08811)

Discussion