This is an introductory post about enabling evaluators to do their jobs better. The goal is to develop protocols that allow evaluators to allocate compute better to test models better than naive sampling. I think this kind of work will be very useful to ensure at least a reasonable safety standard for deployed models by giving evaluators new tools to work with.
Imagine you give an AI agent access to a company email account. Is there a way to certify that the agent sends a confidential attachment to the wrong person less than once in a million trajectories? Less than once in ten million? Can current evaluators catch this sort of behavior without running one million cases for that one single agent? And what about finding the most harmful events that the AI agent can do?
One way would be to build a tool for evaluators that sample better than naive sampling, for example using the model’s weights and other information. This tool could then flag an interaction just before it goes wrong (e.g. before the AI agent sends an email).
This post is an intro post, and my intention is to make more technical nuanced follow ups. I figured I could post something partial to spark discussion, with more technical follow-ups to come.
Introduction
Recently at a talk, Stuart Russell described a hypothetical world where the aviation industry never built mechanical airplanes, and instead bred giant birds to carry passengers.
Suppose regulators asked these airlines to prove their birds were safe. Under FAA standards, airworthiness certification requires catastrophic failures to be "extremely improbable", about one in a billion per flight hour, meaning such a failure isn't expected to happen across the entire lifetime of every plane of that model.[1]
What protocols could airlines possibly rely on to guarantee the safety of passengers flying on creatures nobody understands?
A bird airplane. Image generated by Astra.
An obvious practical way to lower catastrophic failures of future systems is for humans to select birds through a long time period, till they satisfy certain requirements (e.g. become immune to shiny objects, not dropping passengers, etc...).
We would fly these birds thousands of times, with lots of accidents (and limited harm), and hope they learn the best behaviors. We may still assign a human supervisor on top of each bird to make sure travel is smoother.[2] Perhaps the human supervisor has access to an electrocardiograph to predict with good confidence if something is off. But it is not obvious that we would guarantee with certainty an FAA approval and it is not clear that we would succeed in this.[3]
If you instead build mechanical airplanes, you may reach a catastrophic failure rate without the need to fly a new jet for a billion hours.[4] While the early aviation industry had some failures and accidents, today flying is considered one of the safest ways to travel from one place to another.
This is without any doubt thanks to protocols and safety standards the industry as a whole converged on. As can be seen from the plot below, engineers demand stricter probability bounds as the severity of the failure grows.
Unfortunately, the current AI industry has lower deployment standards compared to that of mechanical airplanes, even though AI and bird airplanes have a few things in common, as they:
may have wants and goals,
may act adversarial to humans,
may act differently when tested.
If our goal is to build an AI that is aligned and deploy it safely, then we need to raise standards for current and near-future artificial intelligence. And one way to raise standards is by asking evaluators to give stricter quality assurances about the models they are evaluating and the suggestions they make for deployment.[5]
Sampling more efficiently for more robust evaluations
Let's say you are sampling to look for bad behavior in some fixed scenario. Perhaps you are at two thirds of your trajectory, and you start sampling to see what the model does, e.g. if you wanted to see if a Hugging-face like event was just a statistical fluke or not, or if you wanted to explore the worst possible behavior of your model under your conditions.
Can the model’s weights, activations, and other information, help us choose where to branch and estimate the failure rate more accurately at the same total compute?
Most recently, the Alignment Research Center (ARC) has pushed to the opposite extreme: competing with sampling using purely analytical, white-box algorithms that estimate expected outputs of wide random MLPs directly from their weights (e.g. via cumulant propagation) without drawing samples at all.
Purely analytical methods still struggle as networks get deeper or trained. But we don't need to choose between pure black-box sampling and pure white-box theory. My broader point is that there is a large, still underexplored space of hybridevaluationmethods that use theory to make sampling more compute-efficient.
As a concrete first example, let's look at one of the simplest ways to combine ARC's weight-based estimates with sampling.
Estimating rare events, Part 1
Going back to the email assistant case, imagine writing down a 1 for each request if confidential information goes to an unauthorized address and a 0 otherwise. In this case, the probability of failure can be estimated with random sampling via
where is the total number of samples, and is an indicator variable that is 1 if a sample is bad, 0 otherwise. The difficulty in estimating the failure probability is that we could spend most of our compute on collecting zeros. A process with can therefore easily give you a test result of .
But remember that probabilities can be seen as expectations, as can also be seen from the above expression. To calculate an expectation better you do not necessarily need more careful sampling. If you have a rough idea of what to theoretically expect, you can use that information to strengthen your estimate.
A technique that is quite used in several areas of science is that of control variates. Imagine you would like to measure some parameter using an unbiased estimator expensive to evaluate. Imagine you have another cheap estimator on the same samples, with calculated from weights, correlated with . Then,
is also an unbiased estimator of . The scalar can be chosen in such a way that you can for example minimize the variance of the estimator . A simple calculation yields
where is the correlation coefficient between and . Then, I can reach the same precision on my parameter of interest with fewer and fewer samples as .[6]
One can try this idea on the algorithm developed by ARC on simple random neural nets and combine that with some sampling. While ARC's algorithm is not yet perfect, one may have a practical path towards developing an hybrid methodology that could help evaluators achieve better results than what is already present.
Here is an example where we may combine sampling and theory to produce better estimates, with respect to the Mean Squared Error (MSE), of the mean output of a random neural network under random inputs.
The orange line is an ARC base algorithm. The grey line is naive sampling, and purple line is a more structured kind of sampling. The green line is what happens if you combine purple and orange with the control variates technique: in the way it was done here, you can get an 8% improvement with respect to the structured sampling, at similar compute cost. Finally, the blue line is a modification of ARC's algorithms combined with structured sampling. Could similar and new ideas help us estimate how often an email assistant sends a confidential attachment to the wrong person?
I plan to write more about this. But for now the idea is that while ARC makes progress towards a bigger goal of aligned models, one can use existing techniques to augment sampling and build tools to help evaluators finally arrive at FAA or even higher standards of deployment.
Cover from the original book Estimation of Rare Event Probabilities in Complex Aerospace and Other Systems modified with GPT-6.2 Astra.
After all, imagine you wanted to create a bus by putting people on top of a T-Rex. Do you think you would succeed with a high chance in breeding it by not to eat humans?
In this current industry where the mindset of be quick and develop fast percolates every aspect including safety, I think giving people better tools to work with is one of the best ways to steer towards safely deploying current AI models. If you think about it, the available tools at your disposal induce habits that induce practices that induce standards. If your tools allow you up to a certain level of scrutiny, you may develop habits of doing things quickly but not in a good way.
To be more precise: on its own, a control variate only gives a constant-factor improvement, as we would still want to combine white-box surrogates with branching or importance sampling (e.g. multifidelity importance sampling). There are also other caveats, like what happens if our theory mean is biased. But I do not want to make this post about control variates. It is just one variance reduction technique and used here as an example. My point is focusing on an eclectic approach that can deliver something practical.
This is an introductory post about enabling evaluators to do their jobs better. The goal is to develop protocols that allow evaluators to allocate compute better to test models better than naive sampling. I think this kind of work will be very useful to ensure at least a reasonable safety standard for deployed models by giving evaluators new tools to work with.
Imagine you give an AI agent access to a company email account. Is there a way to certify that the agent sends a confidential attachment to the wrong person less than once in a million trajectories? Less than once in ten million? Can current evaluators catch this sort of behavior without running one million cases for that one single agent? And what about finding the most harmful events that the AI agent can do?
One way would be to build a tool for evaluators that sample better than naive sampling, for example using the model’s weights and other information. This tool could then flag an interaction just before it goes wrong (e.g. before the AI agent sends an email).
This post is an intro post, and my intention is to make more technical nuanced follow ups. I figured I could post something partial to spark discussion, with more technical follow-ups to come.
Introduction
Recently at a talk, Stuart Russell described a hypothetical world where the aviation industry never built mechanical airplanes, and instead bred giant birds to carry passengers.
Suppose regulators asked these airlines to prove their birds were safe. Under FAA standards, airworthiness certification requires catastrophic failures to be "extremely improbable", about one in a billion per flight hour, meaning such a failure isn't expected to happen across the entire lifetime of every plane of that model.[1]
What protocols could airlines possibly rely on to guarantee the safety of passengers flying on creatures nobody understands?
A bird airplane. Image generated by Astra.
An obvious practical way to lower catastrophic failures of future systems is for humans to select birds through a long time period, till they satisfy certain requirements (e.g. become immune to shiny objects, not dropping passengers, etc...).
We would fly these birds thousands of times, with lots of accidents (and limited harm), and hope they learn the best behaviors. We may still assign a human supervisor on top of each bird to make sure travel is smoother.[2] Perhaps the human supervisor has access to an electrocardiograph to predict with good confidence if something is off. But it is not obvious that we would guarantee with certainty an FAA approval and it is not clear that we would succeed in this.[3]
If you instead build mechanical airplanes, you may reach a catastrophic failure rate without the need to fly a new jet for a billion hours.[4] While the early aviation industry had some failures and accidents, today flying is considered one of the safest ways to travel from one place to another.
This is without any doubt thanks to protocols and safety standards the industry as a whole converged on. As can be seen from the plot below, engineers demand stricter probability bounds as the severity of the failure grows.
Relationship between Probability and Severity of Failure Condition Effects, from Figure 4.1 of https://www.faa.gov/documentLibrary/media/Advisory_Circular/AC_25.1309-1B.pdf.
Unfortunately, the current AI industry has lower deployment standards compared to that of mechanical airplanes, even though AI and bird airplanes have a few things in common, as they:
If our goal is to build an AI that is aligned and deploy it safely, then we need to raise standards for current and near-future artificial intelligence. And one way to raise standards is by asking evaluators to give stricter quality assurances about the models they are evaluating and the suggestions they make for deployment.[5]
Sampling more efficiently for more robust evaluations
Let's say you are sampling to look for bad behavior in some fixed scenario. Perhaps you are at two thirds of your trajectory, and you start sampling to see what the model does, e.g. if you wanted to see if a Hugging-face like event was just a statistical fluke or not, or if you wanted to explore the worst possible behavior of your model under your conditions.
Can the model’s weights, activations, and other information, help us choose where to branch and estimate the failure rate more accurately at the same total compute?
There has already been some work and explorations towards developing methods better than sampling, such as Weighted Ensemble Sampling for Rare-Event Estimation in Language Models, Estimating the Probabilities of Rare Outputs in Language Models, Forecasting Rare Language Model Behaviors, Adapting Probabilistic Risk Assessment for AI, Rare Event Estimation via Iterative Unalignment, Estimating Rare Events in Language Models with Proper Evaluation, etc...
Most recently, the Alignment Research Center (ARC) has pushed to the opposite extreme: competing with sampling using purely analytical, white-box algorithms that estimate expected outputs of wide random MLPs directly from their weights (e.g. via cumulant propagation) without drawing samples at all.
Purely analytical methods still struggle as networks get deeper or trained. But we don't need to choose between pure black-box sampling and pure white-box theory. My broader point is that there is a large, still underexplored space of hybrid evaluation methods that use theory to make sampling more compute-efficient.
As a concrete first example, let's look at one of the simplest ways to combine ARC's weight-based estimates with sampling.
Estimating rare events, Part 1
Going back to the email assistant case, imagine writing down a 1 for each request if confidential information goes to an unauthorized address and a 0 otherwise. In this case, the probability of failure can be estimated with random sampling via
where is the total number of samples, and is an indicator variable that is 1 if a sample is bad, 0 otherwise. The difficulty in estimating the failure probability is that we could spend most of our compute on collecting zeros. A process with can therefore easily give you a test result of .
But remember that probabilities can be seen as expectations, as can also be seen from the above expression. To calculate an expectation better you do not necessarily need more careful sampling. If you have a rough idea of what to theoretically expect, you can use that information to strengthen your estimate.
A technique that is quite used in several areas of science is that of control variates. Imagine you would like to measure some parameter using an unbiased estimator expensive to evaluate. Imagine you have another cheap estimator on the same samples, with calculated from weights, correlated with . Then,
is also an unbiased estimator of . The scalar can be chosen in such a way that you can for example minimize the variance of the estimator . A simple calculation yields
where is the correlation coefficient between and . Then, I can reach the same precision on my parameter of interest with fewer and fewer samples as .[6]
One can try this idea on the algorithm developed by ARC on simple random neural nets and combine that with some sampling. While ARC's algorithm is not yet perfect, one may have a practical path towards developing an hybrid methodology that could help evaluators achieve better results than what is already present.
Here is an example where we may combine sampling and theory to produce better estimates, with respect to the Mean Squared Error (MSE), of the mean output of a random neural network under random inputs.
The orange line is an ARC base algorithm. The grey line is naive sampling, and purple line is a more structured kind of sampling. The green line is what happens if you combine purple and orange with the control variates technique: in the way it was done here, you can get an 8% improvement with respect to the structured sampling, at similar compute cost. Finally, the blue line is a modification of ARC's algorithms combined with structured sampling. Could similar and new ideas help us estimate how often an email assistant sends a confidential attachment to the wrong person?
I plan to write more about this. But for now the idea is that while ARC makes progress towards a bigger goal of aligned models, one can use existing techniques to augment sampling and build tools to help evaluators finally arrive at FAA or even higher standards of deployment.
Cover from the original book Estimation of Rare Event Probabilities in Complex Aerospace and Other Systems modified with GPT-6.2 Astra.
See Chapter 3 of https://www.faa.gov/documentLibrary/media/Advisory_Circular/AC_25.1309-1B.pdf for a more detailed classification.
Indeed, at least to my knowledge, we do not let horses move people without supervision, even after centuries of breeding.
After all, imagine you wanted to create a bus by putting people on top of a T-Rex. Do you think you would succeed with a high chance in breeding it by not to eat humans?
Assuming the system is not aware of your testing.
In this current industry where the mindset of be quick and develop fast percolates every aspect including safety, I think giving people better tools to work with is one of the best ways to steer towards safely deploying current AI models. If you think about it, the available tools at your disposal induce habits that induce practices that induce standards. If your tools allow you up to a certain level of scrutiny, you may develop habits of doing things quickly but not in a good way.
To be more precise: on its own, a control variate only gives a constant-factor improvement, as we would still want to combine white-box surrogates with branching or importance sampling (e.g. multifidelity importance sampling). There are also other caveats, like what happens if our theory mean is biased. But I do not want to make this post about control variates. It is just one variance reduction technique and used here as an example. My point is focusing on an eclectic approach that can deliver something practical.