← Latest papers
🤖 AI

Adaptive auditing of AI systems with anytime-valid guarantees

This paper introduces an adaptive auditing framework for generative AI systems that leverages Safe Anytime-Valid Inference (SAVI) and a "testing by betting" approach to provide statistically rigorous, anytime-valid guarantees on model robustness with significantly fewer observations than traditional methods.

Original authors: Siyu Zhou, Patrick Vossler, Venkatesh Sivaraman, Yifan Mai, Jean Feng

Published 2026-05-11
📖 5 min read🧠 Deep dive

Original authors: Siyu Zhou, Patrick Vossler, Venkatesh Sivaraman, Yifan Mai, Jean Feng

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you are a quality control inspector for a new, super-smart robot chef. You want to know if this chef is truly "robust"—meaning, can it cook a perfect meal no matter what ingredients you throw at it, or does it have secret weaknesses (like burning toast if the bread is slightly stale)?

The problem is, checking every single possible ingredient combination takes forever and costs a fortune. So, instead of checking everything, you decide to be a smart, adaptive inspector. You look at the robot's past mistakes, guess where it might fail next, and test only those tricky spots.

This paper introduces a new, mathematically rigorous way to do exactly that without breaking the rules of statistics. Here is how it works, broken down into simple concepts:

1. The Problem: "Peeking" Breaks the Rules

In traditional science, if you want to test a hypothesis, you must decide beforehand exactly how many tests you will run and which ones. If you change your mind halfway through (e.g., "Oh, this test looks interesting, let's do one more!"), you risk tricking yourself into thinking you found a problem when you didn't. This is called "peeking," and it usually ruins the math.

But in the real world, AI auditors must peek. They need to adapt their tests based on what they see. The authors say: "Okay, let's stop pretending we can't peek. Let's build a new rulebook that allows peeking but keeps the math honest."

2. The Solution: A "Dueling" Game

The authors propose viewing the audit as a game between two players: The Model (the robot chef) and The Auditor (you, the inspector).

  • Player 1: The Model's Claim (The "I'm Perfect" Hypothesis)
    The model says: "I am robust! I can handle any group of ingredients you throw at me. There are no weak spots."

    • Goal: If you find even one group where the robot fails, you win (you reject the model's claim).
  • Player 2: The Auditor's Claim (The "I Can Find a Flaw" Hypothesis)
    The auditor says: "I have a strategy. If I keep testing long enough, I will eventually find a weak spot."

    • Goal: If you run out of time or resources and still can't find a flaw, you win (you reject the auditor's claim, meaning the robot passed your specific audit).

The Magic Twist:
Usually, these two claims aren't perfect opposites. But the authors prove that if the Auditor is smart enough (asymptotically consistent), these two claims become perfect mirrors of each other.

  • If the Model is truly perfect, the Auditor will eventually give up and say, "I can't find a flaw."
  • If the Model has a flaw, the smart Auditor will eventually find it.

This turns the audit into a binary switch: Either the robot is globally robust, or it isn't.

3. The Mechanism: "Testing by Betting"

How do you keep the math honest while peeking? The authors use a concept called "Safe Anytime-Valid Inference" (SAVI), which they describe as "Testing by Betting."

Imagine you are a gambler at a casino:

  • The House (The Null Hypothesis): The casino claims the game is fair (the robot is robust).
  • The Gambler (The Auditor): You are betting against the casino. You bet money that the robot will fail on the next specific test case you choose.
  • The Rule: If the casino is actually fair (the robot is perfect), you should never be able to double your money consistently. Your "wealth" (a statistical score called an e-process) should stay low.
  • The Win: If you do manage to accumulate a huge amount of "wealth" (your score crosses a high threshold), it proves the casino is rigged (the robot has a flaw).

Because of the math behind "e-processes," you can stop betting at any moment. If your wealth is high, you can stop immediately and say, "I win, the robot is broken!" without worrying that you cheated by peeking.

4. The Results: Faster and Smarter

The authors tested this method in two ways:

  1. Simulated Data: They created fake AI scenarios with known flaws. Their "betting" method found the flaws much faster (sometimes with as few as 20 tests) than traditional methods that required pre-planned, rigid testing.
  2. Real-World Medical AI: They tested an AI that reads doctor's notes to find social issues (like homelessness or mental health). Their method successfully identified that the AI was bad at certain categories (like "patient contacts") and stopped the audit quickly once the flaw was confirmed.

Summary

This paper gives AI auditors a "safe" way to be flexible. Instead of being forced to stick to a rigid, pre-written script, auditors can now adaptively hunt for weaknesses in real-time. They use a "betting" system that guarantees: If you find a flaw, it's a real flaw. If you don't find one after a rigorous search, the system is likely robust.

It turns the chaotic process of "trying to break an AI" into a mathematically sound game where you can stop playing the moment you have a definitive answer.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →