Am I getting the model I paid for?
A first case study for my master's research. When you pay an unknown provider to run an open model, how do you check they really ran it? And could a blockchain make that check cheap enough to open up the market?
This is the concrete follow-up to Can decentralization keep AI from concentrating?. There I ended up with a narrow idea: in one layer of AI, a blockchain might make it cheaper to check a provider and cheaper to leave a bad one. I want to try it on inference first, mostly because it’s small enough to test on a laptop.
The question
More and more people run open models through third-party providers. You send a prompt, pay per token, and get an answer back. You have no way to see what’s running on the other side, though. A provider could serve a smaller model, or a quantized one (the same model stored with less precision, which is cheaper to run and can answer worse), and still charge you for the full thing.
It’s not just theory, either. Gao, Liang and Guestrin tested 31 commercial API endpoints that claimed to serve Llama models, and 11 of them gave a different output distribution from the published model. That measures a difference, not fraud. Still, it’s enough to make you want a way to check. The documented problems come from open-model hosts and resellers. I didn’t find evidence of this with the big labs. With them, the issue is simply that you have to trust them.
The idea I’m exploring
A language model doesn’t give you the same answer every time. It samples text from a distribution, and if a provider swaps the model, that distribution shifts a bit. So an auditor can send the same prompts to the provider and to a reference copy of the model, then run a two-sample test to check whether the answers come from the same place. Basically the kind of hypothesis test I’m seeing in my courses, just applied to text.
Checking a sample is much cheaper than proving every single answer. To make cheating a bad deal, providers lock up a deposit (a stake) and lose part of it if the auditor catches them. The blockchain part is just to hold those deposits and the rules. If a single company sat in the middle deciding who gets paid and who gets kicked out, it would just become the new gatekeeper.
What’s still open
The test is never perfect, and both mistakes cost something. Missing a cheater means cheating pays. The other direction is accusing an honest provider, which costs them part of their deposit. Honestly, that second one worries me more. Small, new providers take the hardest hit because they have the least money to absorb unfair penalties. If staying safe takes a big deposit, only big players can join and you’re back to a concentrated market.
That’s the gap I want to look at. Shang and colleagues model deposits and audits as a repeated game. They acknowledge that audits can be noisy, but they don’t model an auditor with explicit error rates. And Cai and colleagues show that detecting quantization from the outside is hard. I think that might mean some kinds of cheating just can’t be caught this way, which would still be a real result.
What I’d try first
I’d start with a small experiment on a laptop. Take a small open model at full precision as the reference, use the same model quantized to 4 bits as the “cheater”, and run the test many times over a few hundred public prompts. From there I’d measure how many cheaters it catches and how many false alarms it gives, and then see what deposit that implies for an honest newcomer. I haven’t run it yet.
Inference is only my first case. I’m also interested in the data side: letting anyone contribute data to train a model and get paid based on how much it helped.