LLM Whisperer: An Inconspicuous Attack to Bias LLM Responses

Weiran Lin, Anna Gerchanovsky, Omer Akgul, Lujo Bauer, Matt Fredrikson +1 more
6/7/2024
cs.CRcs.AIcs.HC

No confident code implementation found for this paper.

Abstract

Writing effective prompts for large language models (LLM) can be unintuitive and burdensome. In response, services that optimize or suggest prompts have emerged.

Show full abstract

While such services can reduce user effort, they also introduce a risk: the prompt provider can subtly manipulate prompts to produce heavily biased LLM responses. In this work, we show that subtle synonym replacements in prompts can increase the likelihood (by a difference up to 78%) that LLMs mention a target concept (e.g., a brand, political party, nation). We substantiate our observations through a user study, showing that our adversarially perturbed prompts 1) are indistinguishable from unaltered prompts by humans, 2) push LLMs to recommend target concepts more often, and 3) make users more likely to notice target concepts, all without arousing suspicion. The practicality of this attack has the potential to undermine user autonomy. Among other measures, we recommend implementing warnings against using prompts from untrusted parties.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{lin2024whisperer,
  title  = {LLM Whisperer: An Inconspicuous Attack to Bias LLM Responses},
  author = {Weiran Lin and Anna Gerchanovsky and Omer Akgul and Lujo Bauer and Matt Fredrikson and Zifan Wang},
  year   = {2024},
  eprint = {2406.04755},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2406.04755v4}
}

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/2406.04755.svg)](https://codeofpaper.com/paper/2406.04755)

Discussion