Certification from Examples is Hard for Circuits and Transformers under Minimal Overparametrization
This paper demonstrates that even minimal overparametrization in threshold circuits and log-precision Transformers can render exact and approximate certification exponentially hard, a theoretical barrier that is empirically validated by the difficulty of detecting errors in trained models performing binary addition.
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 teacher trying to verify that a student has truly learned a specific math rule, like "how to add two numbers." You have a list of examples (input-output pairs) and you want to be 100% sure the student isn't just guessing or following a trick.
This paper asks a fundamental question: How many examples do you need to show a student to prove they know the exact rule, and not just a very similar one?
The authors, Artur Back de Luca and Kimon Fountoulakis, discovered a surprising and somewhat scary truth: Even a tiny, almost invisible change to the student's "brain" (the model) can make it impossible to prove they are correct, no matter how many examples you show them.
Here is the breakdown of their findings using simple analogies:
1. The "Imposter" Problem
Imagine you have a perfect student who knows the rule for adding numbers. You want to prove they are the only one who knows it.
- The Easy Scenario: If the student is the only one in the room, you might only need to show them 5 or 10 examples to prove they know the rule.
- The Hard Scenario: Now, imagine you invite 1,000 "imposters" into the room. These imposters are almost perfect. They get the answer right 99.9% of the time. The only time they get it wrong is on a very specific, hidden set of numbers (like numbers that start with the digit '7').
The paper shows that if you add just one extra "neuron" (a tiny bit of extra brain power) to a model, you can create millions of these imposters. Each imposter agrees with the perfect student on almost everything, but they all disagree on a different, tiny, hidden set of numbers.
2. The "Needle in a Haystack" Analogy
To prove the student is the real one and not an imposter, you have to find the specific number where they disagree.
- If you have 1,000 imposters, and each one hides their mistake in a different, tiny corner of the universe of numbers, you have to check every single corner to be sure.
- The paper proves that if you add just one extra gate to a circuit (or one extra "attention head" to a Transformer AI), the number of these hidden corners explodes.
- The Result: To catch all the imposters, you might need to check billions of examples. If you only check a few thousand (a "polynomial" number), you will likely miss the imposters, and the student will pass your test even though they are actually wrong.
3. The Two Main Characters
The authors tested this on two types of "students":
- Circuits: Think of these as simple, rigid logic machines (like a calculator). They found that adding just one extra switch to a circuit of depth 2 or more makes it exponentially harder to certify the answer.
- Transformers: These are the powerful AI models behind tools like chatbots. The authors showed that adding just one extra attention head (a tiny architectural tweak) and a few extra numbers to the model's memory makes it impossible to certify with a reasonable number of examples.
4. The "Almost Perfect" Trap
You might think, "Okay, but what if we just accept that the student makes a few mistakes? What if we say, 'If they get 99% right, that's good enough'?"
The paper says: Be careful.
- Absolute Mistakes: If you say, "You can only make 10 mistakes total," the imposters still hide. You still need billions of examples to find those 10 mistakes because they are scattered across billions of possibilities.
- Relative Mistakes: If you say, "You can make 1% mistakes," the imposters can hide millions of errors, as long as that 1% is small enough. The model can be wildly wrong in absolute terms but still pass your "99% accuracy" test.
5. The Real-World Experiment
To prove this isn't just math theory, they actually built these models:
- The Circuit Experiment: They built a circuit that adds numbers and then created thousands of "broken" versions that only fail on specific inputs. They showed that even with a huge number of test examples, many of these broken circuits still looked perfect.
- The Transformer Experiment: They trained AI models to add numbers. Even after training them until they passed strict validation tests (getting 99.9% right), they found that some models still had hidden errors. When they tried to "audit" these models with random examples, the models kept passing the test even though they weren't actually perfect.
The Bottom Line
The paper concludes that certification is extremely fragile.
If you want to guarantee that an AI or a circuit is doing exactly what you think it's doing, you cannot rely on average performance. If the model has even a tiny bit of "extra capacity" (overparametrization), it can hide an exponential number of ways to be wrong.
To be truly sure, you might need to test the model on a number of examples so large it becomes impossible to do in practice. It's like trying to prove a magician isn't cheating by watching them perform a trick a few times; if they have a secret extra card in their sleeve, you might never see it unless you check every single card in the deck.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.