Why do universal adversarial attacks work on large language models?: Geometry might be the answer

Varshini Subhash, Anna Bialas, Weiwei Pan, Finale Doshi-Velez
9/1/2023
cs.LGcs.CLcs.CR

No confident code implementation found for this paper. 3 possible matches can be shown below.

Abstract

Transformer based large language models with emergent capabilities are becoming increasingly ubiquitous in society. However, the task of understanding and interpreting their internal workings, in the context of adversarial attacks, remains largely unsolved. Gradient-based universal adversarial attacks have been shown to be highly effective on large language models and potentially dangerous due to their input-agnostic nature. This work presents a novel geometric perspective explaining universal adversarial attacks on large language models. By attacking the 117M parameter GPT-2 model, we find evidence indicating that universal adversarial triggers could be embedding vectors which merely approximate the semantic information in their adversarial training region. This hypothesis is supported by white-box model analysis comprising dimensionality reduction and similarity measurement of hidden representations. We believe this new geometric perspective on the underlying mechanism driving universal attacks could help us gain deeper insight into the internal workings and failure modes of LLMs, thus enabling their mitigation.

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. 3 weaker matches are hidden by default — 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{subhash2023universal,
  title  = {Why do universal adversarial attacks work on large language models?: Geometry might be the answer},
  author = {Varshini Subhash and Anna Bialas and Weiwei Pan and Finale Doshi-Velez},
  year   = {2023},
  eprint = {2309.00254},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2309.00254v1}
}

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

Discussion