HackerPapers

arXiv:2306.03423cs.AI

I'm Afraid I Can't Do That: Predicting Prompt Refusal in Black-Box Generative Language Models

Max Reuter, William Schulze

Early discovery. Linked by one identifiable commenter. This paper is outside the main ranking; a mention is not an endorsement.

Abstract

Since the release of OpenAI's ChatGPT, generative language models have attracted extensive public attention. The increased usage has highlighted generative models' broad utility, but also revealed several forms of embedded bias. Some is induced by the pre-training corpus; but additional bias specific to generative models arises from the use of subjective fine-tuning to avoid generating harmful content. Fine-tuning bias may come from individual engineers and company policies, and affects which prompts the model chooses to refuse. In this experiment, we characterize ChatGPT's refusal behavior using a black-box attack. We first query ChatGPT with a variety of offensive and benign prompts (n=1,706), then manually label each response as compliance or refusal. Manual examination of responses reveals that refusal is not cleanly binary, and lies on a continuum; as such, we map several different kinds of responses to a binary of compliance or refusal. The small manually-labeled dataset is used to train a refusal classifier, which achieves an accuracy of 96%. Second, we use this refusal classifier to bootstrap a larger (n=10,000) dataset adapted from the Quora Insincere Questions dataset. With this machine-labeled data, we train a prompt classifier to predict whether ChatGPT will refuse a given question, without seeing ChatGPT's response. This prompt classifier achieves 76% accuracy on a test set of manually labeled questions (n=985). We examine our classifiers and the prompt n-grams that are most predictive of either compliance or refusal. Our datasets and code are available at https://github.com/maxwellreuter/chatgpt-refusals.

arXiv comments
Submitted for review to KDD 2023 via the workshop "Foundations and Applications in Large-scale AI Models: Pre-training, Fine-tuning, and Prompt-based Learning"
Journal reference
DOI
Subjects
cs.AIArtificial Intelligence

On Hacker News

Linked by 1 identifiable commenter in 1 comment across 1 thread, from Jan 2025 to Jan 2025. Found in 2 HN submissions from Jun 2023 to Jun 2023. Open submission discussions.

Comments linking this paper, per year.

Discussed in comments1 thread

  1. Questions censored by DeepSeek 1 comment
    • I distinctly remember someone making an experiment by asking ChatGPT to write jokes (?) about different groups and calculating the likelihood of it refusing, to produce a ranking. I think it was a medium article, but now I cannot find it anymore. Does anyone have a link? EDIT…

      patapongView on HNParent context

Submitted to Hacker News

  • I'm afraid I can't do that: Prompt refusal in generative language models
  • Show HN: GalenAI – An AI Powered Search Engine for Clinicians

    Hi HN, I would like to introduce GalenAI to hackernews, an AI search engine for clinicians that uses an expert-curated knowledge base, search engine context, and generative AI to give clinicians the human-friendliness of AI, with the backing and the context of legitimate references and scientific evidence. (Make sure to make an account to see the references, as these are much more valuable and provide excellent context to complicated questions - but the product will work without needing an…

Connected through shared HN threads, not inferred similarity or a recommendation.