Piaa, my voice assistant, runs a large AI model on one gaming graphics card at home. Models come in versions that are squeezed to different sizes, and I had to choose between two versions of the same model: a 3-bit one, which is smaller and faster, and a 4-bit one, which needs more memory and is slower but should be a little more accurate.
So I tested them, and my test said they were the same. That turned out to be a statement about my test, not about the models. This note is about how I found that out, and what I check now before I trust a result that says "no difference".
What my first test said
My first test was a set of 20 questions, each of which needs Piaa to pick the right tool, such as the calendar, the mail or a web search. I ran both versions through it, back to back, at the same settings. The 4-bit version scored a little lower, and I wrote down that it was worse.
A few days later I ran the same setup twice on the same day, with nothing changed. The two runs differed by 1.2 points. The gap between the two versions was only 0.8 points, which is smaller than the difference between two identical runs. My test could not tell the versions apart, so I corrected my note from "the 4-bit version is worse" to "no measured advantage".
The same check caught a second mistake. Earlier I had compared a new number against an old one from another day, and it showed a penalty for a new engine. When I measured both engines back to back, the penalty disappeared. I now compare only within the same session.
Building a sharper test
"No measured advantage" was honest, but it wasn't useful. A public comparison by someone else, on a different setup, suggested the 4-bit version really was closer to the original model, and my test was too blunt to confirm or rule that out.
So I built a harness that compares the two versions word by word. For every position in a long text, a model gives a probability to each possible next word. The harness measures how far apart the two versions' probabilities are (a measure called KL divergence, or KLD), and how often they pick a different most likely word. I ran it on 140,000 characters of Piaa's own code, since that is the kind of text I care about.
I had first estimated this as an overnight job. Reading the source code of the tool, instead of guessing, showed it scores 8,160 tokens per run and needs about ~15 s of GPU time. The uncertainty on its main number came out at ±0.00067 KLD, so it can see differences far smaller than my 20-question test ever could.
What it showed
The two versions pick a different most likely word 6.2% of the time. That is not noise, and it is exactly what my first test could not see.
The difference isn't spread evenly. On a typical word the two versions are almost identical, with a difference of 0.0094 KL divergence, but at the 99th percentile it is 0.189 KL divergence. Most of the disagreement sits in a small number of uncertain positions, which are the places where the choice of word matters most. Overall, the 3-bit version predicts my code 0.7% worse.
There was one thing this didn't tell me: which version is better. It measured how far apart the two are, not which one is closer to the original model. For that I needed a reference.
Which one is better
A full-size copy of the model doesn't fit on my graphics card, so I used the next best thing: an 8-bit copy, run partly from the computer's main memory. I also made the test harder. This time I scored 24,573 tokens, all deep into a long context, where a model has the most to keep track of.
Against that reference, the 3-bit version sits at 0.0293 KLD and the 4-bit version at 0.0177 KLD. The 4-bit version is 40% closer to the original. My first test had said they were equal, and the second could only say they were different. This one finally says which is better.
The same run measured something my 20-question test could never have caught. Piaa also compresses the model's working memory (its cache) to save space on the card. That compression moves the 3-bit version a further 6.8% away from the reference. It's a real cost, and now that I can see it, I can weigh it.
I still run the 3-bit version as Piaa's default, because it replies noticeably faster, and the 4-bit version stays as a separate "smart" profile. The difference is that it's now a decision about a cost I've measured, not a guess.
A broken test can look fine
The first time I ran the harness, it pointed at the wrong files. A folder filter missed one of my Python environments, so the "code" it measured was an image library's plugins, not Piaa's code. It ran without errors and produced a clean-looking number. Nothing about the result looked wrong. I only caught it by checking what the harness had actually read.
What I check now
- How noisy is the test? I run the same setup twice before I believe a difference between two different ones. If the gap is smaller than that noise, the honest result is "I can't tell", not "they're equal".
- Same session, same settings. I never compare a new number with one from another day.
- What did it actually measure? I check the input the test really used, not the input I meant to give it.
- "No difference" means no difference my test can see. When the decision matters, I build a test that could see it.
Seen it differently, or hit the same wall? Email me.
Written by me.