Output Scouting: Auditing Large Language Models for Catastrophic Responses

Andrew Bell, Joao Fonseca
10/4/2024
cs.CLcs.AI

Official code: joaopfonseca/outputscouting (0 stars, MIT, last commit 2024-11-08).

Abstract

Recent high profile incidents in which the use of Large Language Models (LLMs) resulted in significant harm to individuals have brought about a growing interest in AI safety. One reason LLM safety issues occur is that models often have at least some non-zero probability of producing harmful outputs. In this work, we explore the following scenario: imagine an AI safety auditor is searching for catastrophic responses from an LLM (e.g. a "yes" responses to "can I fire an employee for being pregnant?"), and is able to query the model a limited number times (e.g. 1000 times). What is a strategy for querying the model that would efficiently find those failure responses? To this end, we propose output scouting: an approach that aims to generate semantically fluent outputs to a given prompt matching any target probability distribution. We then run experiments using two LLMs and find numerous examples of catastrophic responses. We conclude with a discussion that includes advice for practitioners who are looking to implement LLM auditing for catastrophic responses. We also release an open-source toolkit (https://github.com/joaopfonseca/outputscouting) that implements our auditing framework using the Hugging Face transformers library.

View on arXivView PDF

Code Implementations(1)

MIT
00Python, MakefileOct 3, 20241 years agoMIT

Similar Papers

Cite this paper

@article{bell2024output,
  title  = {Output Scouting: Auditing Large Language Models for Catastrophic Responses},
  author = {Andrew Bell and Joao Fonseca},
  year   = {2024},
  eprint = {2410.05305},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2410.05305v2}
}

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

Discussion