IMMACULATE: A Practical LLM Auditing Framework via Verifiable Computation
IMMACULATE is a practical auditing framework that detects economically motivated deviations in black-box commercial LLMs, such as model substitution and token overbilling, by leveraging verifiable computation to achieve strong detection guarantees with minimal throughput overhead and without requiring trusted hardware or model access.
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 order a gourmet steak from a high-end restaurant. You pay a premium price for a specific cut of beef, cooked to perfection. But because you can't see into the kitchen, you have to trust the chef.
The Problem:
What if the chef secretly swaps your expensive steak for a cheap, frozen burger? Or what if they use a dull knife and a low-quality pan but still charge you for the premium experience? In the world of Artificial Intelligence (AI), this is exactly what happens. Companies sell access to powerful AI models via the internet (like a black box). They claim to use a top-tier "super-brain" to answer your questions, but they might secretly use a weaker, cheaper model to save money, or they might lie about how much "computing power" they used to bill you more.
The Solution: IMMACULATE
The paper introduces IMMACULATE, a clever system that acts like a "food inspector" for AI, but without needing to break into the kitchen or see the secret recipes.
Here is how it works, using simple analogies:
1. The "Spot Check" Strategy (Randomized Auditing)
Imagine a tax auditor trying to catch a business that is cheating on its books. They can't check every single receipt in the world; that would take forever and cost a fortune. Instead, they pick a tiny, random sample of receipts to check.
- The Logic: If a restaurant is cheating on 10% of its orders, and the inspector picks 3,000 random orders to check, they are almost guaranteed to catch the cheater.
- In AI: The auditor doesn't check every single AI request. They send a few random questions. If the AI provider is cheating, they will likely get caught on these random checks. This keeps the cost of checking very low (less than 1% extra work).
2. The "Fingerprint" of the Math (Logit Distance Distribution)
This is the trickiest part. AI models do math with numbers that have tiny rounding errors (like how a calculator might say 1/3 is 0.33333333). Because of this, even a honest AI might give slightly different answers if you ask the same question twice. You can't just say, "Your answer is wrong because it's not identical to mine."
The Analogy:
Think of the AI's internal math as a fingerprint.
- Honest AI: When an honest chef cooks a steak, the "smell" and "texture" might vary slightly every time due to the heat of the day, but it always smells like steak.
- Cheating AI: If the chef swaps the steak for a burger, the smell changes completely. It's not just a little off; it's a different animal.
IMMACULATE measures the "Logit Distance Distribution" (LDD).
- It doesn't check if the final answer is perfect.
- Instead, it checks the "internal math steps" (the logits) the AI took to get there.
- If the AI is using a cheap model or cutting corners (quantization), the "math fingerprint" will look weird and chaotic compared to the promised high-quality model. It's like the burger smelling like a burger, not a steak.
3. The "Magic Receipt" (Verifiable Computation)
How does the auditor know the AI isn't just lying about its math steps?
The Analogy:
Imagine the chef has to write down every step of the cooking process on a piece of paper, seal it in an unbreakable glass box, and hand it to you.
- The box is cryptographically sealed. The chef cannot change the paper inside without breaking the glass (which is impossible).
- The auditor can look at the box and verify, using a special mathematical key, that the steps inside match the rules of the "premium steak" recipe.
- The auditor doesn't need to see the recipe (the AI's secret code); they just need to verify the steps were followed correctly.
Why This Matters
- No Special Hardware Needed: Previous methods required expensive, special computers (like "Trusted Execution Environments") to do the checking. IMMACULATE works on standard computers.
- Protects Secrets: The AI company doesn't have to show their secret code or model to the auditor. They just prove they followed the rules.
- Cheap and Fast: Because it only checks a tiny fraction of requests, it doesn't slow down the service. It's like a speed camera that only flashes on a few cars but still keeps everyone driving safely.
Summary
IMMACULATE is a practical way to stop AI companies from cutting corners. It uses random spot checks to catch cheaters and mathematical fingerprints to prove they are using the right tools, all without needing to see their secret recipes or buy expensive new hardware. It brings trust back to the "black box" of AI services.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.