atlas

Research map / Large language models / Language, safety and interpretability

Prompt Risk Control: A Rigorous Framework for Responsible Deployment of Large Language Models

ICLR 2024 · Large language models › Language, safety and interpretability · approach: In-context learning analysis · 1 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes Prompt Risk Control, a framework that selects LLM prompts using high-probability upper bounds on risk measures (mean, quantile-based, and dispersion such as Gini), plus a covariate-shift extension, and validates on code generation, chatbot toxicity, and medical summarization.

Problem

Choosing a prompt by average validation performance can yield deployments with unexpectedly high losses for tail or worst-off users, and existing distribution-free risk control methods have not been applied to prompting.

Approach

Apply distribution-free uncertainty quantification (Learn Then Test, Quantile Risk Control, Statistical Dispersion Control) to prompt selection so that only prompts whose high-probability risk bound is below a threshold are returned, and extend the quantile bounds to covariate shift via importance weighting with a lower CDF bound correction.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Apply the distribution-shift correction to the source-data boundPrompt Risk Control · Anthropic Red Team target distributionmedian toxicity risk bound validity: 0.00078 -> 0.01541; empirical test risk 0.00083Helped
Use Hoeffding-Bentkus instead of Hoeffding for the mean-risk boundPrompt Risk Control on CodeLlama-7b · MBPPmean pass@10 error risk boundHelped
Select the prompt using the toxicity risk bound rather than best validation reward aloneFlan-T5-XXL chatbot · Anthropic HHVaR toxicity at β=0.925Helped
Select a prompt subject to a Gini coefficient bound rather than choosing by best ROUGE-L aloneFalcon Instruct 40B · MeQSumloss dispersion (Gini coefficient)Mixed

Surprising findings

Limitations

Experimental setup

Datasets: MBPP Anthropic HH Anthropic Red Team MeQSum CNN/Daily Mail XSum

Benchmarks: MBPP Anthropic HH Anthropic Red Team MeQSum

Metrics: pass@10 VaR CVaR median loss Gini coefficient ROUGE-L toxicity reward score

Baselines: Hoeffding bound naive bound on source data

Builds on: Learn Then Test Quantile Risk Control Statistical Dispersion Control Conformal Prediction

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy