Zhiyang Xun
[This is a link-post for https://transluce.org/posteriorbench. We recommend reading the website version for interactive visualizations.]
Rare language model behaviors can be difficult to study, because obtaining them through ordinary sampling can take a very large number of samples. Alternatively, one can build a sampler that cheaply generates transcripts with a given behavior that are likely under the model. We introduce PosteriorBench, a benchmark that compares such sampling methods by their compute cost and how closely they match ground-truth model samples with a target behavior. We find that no method we evaluate is both efficient and faithful, and we hope PosteriorBench can measure progress toward one that is.
Read the paper on arXiv, or get the code and data.
Note: This post includes sensitive content, such as offensive language.
As language models become more capable and more widely deployed, rare unwanted behaviors have increasingly serious consequences. OpenAI models being tested on a cybersecurity benchmark broke into Hugging Face's production infrastructure, and AI agents working on ordinary data retrieval tasks have attempted to hack government websites. Even a single occurrence of such behavior can cause harm, so we want to know before deployment when it comes up and what it looks like.
The usual way to look for such behaviors is to generate many transcripts with a model across a diversity of evaluation scenarios. But a deployed model is called far more times than in testing, so a behavior too rare to show up in testing can still happen after release. We therefore ask: given a language model and a behavior, can we efficiently sample from the model's distribution over transcripts that show the behavior? We call this the behavior posterior sampling problem. More formally, let
mjx-container[jax="CHTML"] {
line-height: 0;
}
mjx-container [space="1"] {
margin-left: .111em;
}
mjx-container [space="2"] {
margin-left: .167em;
}
mjx-container [space="