1 00:00:01,000 --> 00:00:09,300 [Hal Turing] Alrighty! Thanks for tuning in! Hello AI world! I am your host, Hal Turing, and my co-host is Dr. Ada Shannon. 2 00:00:09,300 --> 00:00:49,700 [Hal Turing] Today's paper is Compact Proofs of Model Performance via Mechanistic Interpretability, by Jason Gross, Lawrence Chan, and colleagues. They credit support from the Alignment Research Center and the MARS program at the Cambridge AI Safety Hub, among others. It's arXiv 2406.11779, first posted in June 2024. The latest version we have is dated December 2024 and is still labelled a preprint under review. The question is whether you can reverse-engineer a small transformer into an algorithm, then use that algorithm to write a much shorter formal proof of a lower bound on its accuracy. 3 00:00:49,700 --> 00:01:05,250 [Dr. Ada Shannon] Today we mostly trust models because they scored well on a test set. That's a statistical estimate. This paper asks what a guarantee over every possible input would cost, and whether understanding the model makes that guarantee affordable. 4 00:01:05,250 --> 00:01:12,525 [Hal Turing] Formal guarantees on neural nets already exist, though. Isn't that what verification tools do? 5 00:01:12,525 --> 00:01:41,100 [Dr. Ada Shannon] They answer a different question. Reluplex, by Guy Katz and colleagues in 2017, uses an SMT solver to check properties of ReLU networks. Typically that's local robustness: nudge this one input a little, does the answer stay the same? That says nothing about accuracy across the whole input space. PAC-Bayes bounds go the other way. They bound generalization for a training procedure, and for modern nets they tend to be vacuous. This paper certifies one specific trained model's global performance, from its actual weights. 6 00:01:41,100 --> 00:01:43,300 [Hal Turing] So where's the tension? 7 00:01:43,300 --> 00:02:04,175 [Dr. Ada Shannon] Two trivial proofs sit at the extremes. Brute force runs the model on every input and counts. It's perfectly tight and completely valid, but the cost scales with the input space. The null proof says accuracy is at least zero. It's instant and true, and useless. A bound near zero is called vacuous. The interesting region is the middle: short proofs with bounds that still mean something. 8 00:02:04,175 --> 00:02:09,550 [Hal Turing] Then the test model has to be tiny enough for brute force to run at all. 9 00:02:09,550 --> 00:02:32,875 [Dr. Ada Shannon] It is. Max-of-K: the model reads K integers drawn from 64 values and outputs the largest. They use K equals 4, the largest setting where brute force is still feasible. That's about sixteen million input sequences. The model is a one-layer transformer with a single attention head and no MLP, LayerNorm, or biases, with a model dimension of 32. Across 151 trained seeds, average accuracy is 99.92 percent. 10 00:02:32,875 --> 00:02:38,974 [Hal Turing] Define the interpretability part for me. What counts as understanding the weights? 11 00:02:38,974 --> 00:03:09,424 [Dr. Ada Shannon] Mechanistic interpretability means reverse-engineering trained weights into a human-readable algorithm, usually with ablations and singular value decomposition. This work builds on Nanda and colleagues' 2023 progress-measures-for-grokking paper, and on Elhage and colleagues' 2021 transformer-circuits framework. That framework splits an attention-only model into three pieces. The QK circuit decides which tokens to attend to. The OV circuit decides what gets copied from them. The direct path is the skip connection from input to output. 12 00:03:09,424 --> 00:03:12,324 [Hal Turing] And what did the interpretation find? 13 00:03:12,324 --> 00:03:35,125 [Dr. Ada Shannon] The model attends more to larger tokens and copies what it attends to. The QK part is essentially rank one: one dominant direction, with a scale around 7,800 against about 13 for the next. The OV circuit is close to an identity copy. The direct path and position-dependent terms look negligible. Zeroing out the position term in the attention scores moves accuracy from 0.9992 to 0.9993. 14 00:03:35,125 --> 00:03:41,775 [Hal Turing] So the evidence for the story is that deleting a piece does nothing. How does that become a proof? 15 00:03:41,775 --> 00:04:02,925 [Dr. Ada Shannon] By a stronger version of ablation, which they call pessimal ablation. Treat everything your interpretation doesn't explain as adversarially bad, then check the model is still correct. If it survives the worst case, you've certified a bound. Here, length means the cost of running the checking computation, measured in FLOPs, not the pages of written argument. The tightness is the certified bound divided by the true accuracy. 16 00:04:02,925 --> 00:04:08,175 [Hal Turing] So a better interpretation should let you assume less in the worst case. 17 00:04:08,175 --> 00:04:15,075 [Dr. Ada Shannon] That's the hypothesis. The paper tests it on this one small model, which is the limit to keep in mind. 18 00:04:15,075 --> 00:04:20,325 [Hal Turing] Let's make the proof concrete. What is the thing a reader would actually check? 19 00:04:20,325 --> 00:04:39,575 [Dr. Ada Shannon] Two pieces. A computation C takes the model weights and outputs a number b. A written argument Q shows that C's output is a valid lower bound on the true accuracy. Q is ordinary math. C is something a machine runs. The proof's length is the cost of running C, counted in floating-point operations. 20 00:04:39,575 --> 00:04:43,125 [Hal Turing] So the cheaper C gets, the shorter the proof. 21 00:04:43,125 --> 00:05:04,575 [Dr. Ada Shannon] Yes. Start with the cubic proof. Its first step is a convexity property of one-layer attention-only transformers. If the model gets a restricted kind of sequence right, it gets every sequence built from the same ingredients right. The restricted kind is a pure sequence, with at most three distinct values: the max, the query token, and one other smaller token. So you check far fewer cases than all 64 to the fourth sequences. 22 00:05:04,575 --> 00:05:06,100 [Hal Turing] And order? 23 00:05:06,100 --> 00:05:20,475 [Dr. Ada Shannon] That is the second saving. The interpretation says position barely matters, so you assume the worst ordering and check that one case. The number of cases drops to roughly the vocabulary cubed, times the context length. 24 00:05:20,475 --> 00:05:23,175 [Hal Turing] What does that buy in practice? 25 00:05:23,175 --> 00:05:44,925 [Dr. Ada Shannon] Brute force costs about 1.4 times ten to the fourteenth operations. The cubic proof costs about 3.5 times ten to the seventh. That is roughly four million times less work. The certified accuracy drops from the true 99.9% to 95.3%, so you give up under five points. Those are means over the 151 models, and the cost still grows with vocabulary size cubed. 26 00:05:44,925 --> 00:05:47,250 [Hal Turing] And going below cubic? 27 00:05:47,250 --> 00:06:10,774 [Dr. Ada Shannon] Each move saves work and gives up some tightness. First, treat any token sufficiently smaller than the max as one worst-case token. Second, decouple axes. Instead of pairing every query token with every max token, take the worst direct-path effect over queries once, so the sum no longer depends on the query. Third, use SVD, a decomposition into rank-one pieces, on the attention matrix and the direct path. Keep the big rank-one piece exactly and bound the leftover cheaply. 28 00:06:10,774 --> 00:06:15,699 [Hal Turing] Cheap bounds on leftovers sound like where the looseness creeps in. 29 00:06:15,699 --> 00:06:37,925 [Dr. Ada Shannon] Right, and two tricks fight that. The mean+diff trick splits a term into its average plus a deviation, so a part that barely varies isn't minimized separately and wastefully. The max row-diff trick bounds a matrix product's error from the pieces without multiplying them out. With the full set of tricks, the best subcubic row certifies about 70%, for roughly two million operations. Without them, some variants certify about three in a million, which is vacuous. 30 00:06:37,925 --> 00:06:44,325 [Hal Turing] Does a more faithful interpretation get you a tighter bound? Or does the proof just get cheaper? 31 00:06:44,325 --> 00:07:07,050 [Dr. Ada Shannon] They test that. Among subcubic proofs that approximate the attention matrix as rank one, they compare how close each model's matrix is to rank one, measured by the ratio of its top two singular values, against the bound. Closer to rank one gives a tighter bound at the same cost. The cleanest strategy explains about 41% of the variance. The paper calls this suggestive, which fits: it is a correlation across seeds of one architecture. 32 00:07:07,050 --> 00:07:12,225 [Hal Turing] Where does the claim that compact proofs need understanding come from? 33 00:07:12,225 --> 00:07:39,325 [Dr. Ada Shannon] From unexplained dimensionality: how many free parameters you still have to fit empirically once the proof's structural assumptions are granted. Brute force leaves about a billion. The cubic proof leaves about twelve thousand. Figure 5 shows cheaper proofs leaving fewer unexplained dimensions. The reverse direction is the example I like. Replacing every row of the direct-path matrix with the row average barely moves the bound. So the proof itself tells you the direct path doesn't depend on the query token. 34 00:07:39,325 --> 00:07:41,875 [Hal Turing] So what blocks going further? 35 00:07:41,875 --> 00:08:03,325 [Dr. Ada Shannon] Compounding structureless error. Approximate the attention matrix as rank one and the leftover is small. But that matrix is a product of embedding, query and key matrices. Approximate each factor separately, and without knowing how the errors compose, the proof must assume the worst way. That worst case comes out orders of magnitude larger than the real error, and the bound becomes trivial. That's the paper's finding. 36 00:08:03,325 --> 00:08:11,175 [Hal Turing] Everything so far is one model family. Does anything in the paper say these strategies survive outside it? 37 00:08:11,175 --> 00:08:42,500 [Dr. Ada Shannon] No. Every model is a one-layer, one-head, attention-only transformer on Max-of-4. The 151 seeds and the extra models with different K vary the random seed and the sequence length. They don't vary the architecture. The authors concede in their limitations that MLPs, LayerNorm, multiple heads and deeper models are untested. The framing, though, is about verifying increasingly large models. Also, the convexity argument behind the cubic proof depends on this exact structure. Nothing in the paper says a deeper model has an analogue. 38 00:08:42,500 --> 00:08:52,150 [Hal Turing] Then the headline number. We heard about a roughly 70 percent subcubic result. But the paper's first figure advertises something lower. 39 00:08:52,150 --> 00:09:18,525 [Dr. Ada Shannon] Right. Figure 1 shows a subcubic bound of about 28 percent. The table has a variant at about 70 percent that is also cheaper. My reading is that the figure shows the SVD-only variant, because the numbers match. The figure doesn't say so, so that's an inference. The practical point is that the subcubic curve is very sensitive to which tricks you include. Drop the mean-plus-difference trick and the bound falls to about 35 percent. Some low-rank variants certify roughly three in a million, which is nothing. 40 00:09:18,525 --> 00:09:20,951 [Hal Turing] And who chose those tricks? 41 00:09:20,951 --> 00:09:52,651 [Dr. Ada Shannon] The authors, after they had reverse-engineered the models. That makes the claim that shorter proofs need more understanding partly circular. The strategies are built from the interpretation, then their success is read as validating it. The unexplained-dimensionality axis is also computed from the proof's own structure. So the correlation with proof length is partly definitional. An independent check would help, such as loss recovered under causal scrubbing, which is Chan and colleagues' 2022 method for testing interpretability hypotheses. 42 00:09:52,651 --> 00:09:55,151 [Hal Turing] How do those two relate? 43 00:09:55,151 --> 00:10:16,551 [Dr. Ada Shannon] Scrubbing is the statistical cousin. It replaces parts of the model with resampled activations and measures how much loss survives. The proof is the worst-case version: pessimal ablation with a certified bound. Scrubbing gives an estimate, and the proof gives a guarantee that is usually looser. And the faithfulness link is the thinnest one: R-squared of 0.41 is the strongest trend they report. 44 00:10:16,551 --> 00:10:23,976 [Hal Turing] I'll give them credit for calling it suggestive. What about the obstacle you named earlier, the compounding error? 45 00:10:23,976 --> 00:10:44,376 [Dr. Ada Shannon] It's the most transferable finding. If the leftover noise has no known structure, the proof must assume the worst, and the bound collapses. The paper's proposed fix is to replace worst-case reasoning with typical-case heuristic arguments, from Christiano, Neyman and Xu's 2022 work on formalizing the presumption of independence. That's a proposal. They didn't test it. 46 00:10:44,376 --> 00:10:49,076 [Hal Turing] Does the grokking work tell us how this evolves during training? 47 00:10:49,076 --> 00:11:06,751 [Dr. Ada Shannon] The grokking paper by Nanda and colleagues, 2023, shares the SVD and Fourier-style methodology on small algorithmic transformers. But this paper doesn't study how proof tightness changes during training. The only variation is across seeds, so that's unknown. 48 00:11:06,751 --> 00:11:12,476 [Hal Turing] What about the property itself? Accuracy under uniform inputs seems benign. 49 00:11:12,476 --> 00:11:34,976 [Dr. Ada Shannon] It is, and it's all they certify. The paper doesn't compare against a sampling-based statistical bound, so we can't say what the worst-case guarantee buys over one on this toy. Rare or adversarial inputs aren't addressed at all. And 'length' counts only the checker's FLOPs. The human effort to find the interpretation and write the argument isn't counted. The OV circuit also couldn't be compacted, and the authors report no qualitatively new insights from the proofs. 50 00:11:34,976 --> 00:11:40,876 [Hal Turing] So the proof machinery hasn't yet told us anything the interpretation didn't. 51 00:11:40,876 --> 00:11:50,176 [Dr. Ada Shannon] Not in this paper. What it adds is a graded, checkable score for an interpretation. That's real, but it's narrower than the framing suggests. 52 00:11:50,176 --> 00:12:06,226 [Hal Turing] Let me try to say what this establishes, and you tell me where I'm overreaching. On one small transformer, reading the weights as an algorithm let the authors write proofs that are far cheaper than brute force, and the bounds are still non-vacuous. 53 00:12:06,226 --> 00:12:22,501 [Dr. Ada Shannon] That's right, and the grading part matters too. When the interpretation is more faithful, the cheap proof certifies more. So a proof's tightness becomes a score for how good your understanding was. The correlation is moderate, but it's a measurable signal rather than an impression. 54 00:12:22,501 --> 00:12:24,251 [Hal Turing] And the boundary? 55 00:12:24,251 --> 00:12:40,576 [Dr. Ada Shannon] Nothing in the paper shows that the strategies, or the split into a large size component plus small noise, survive in a model with MLPs, LayerNorm, more heads or more layers. And the trade-off is steep. The more compact the proof, the weaker the bound. 56 00:12:40,576 --> 00:12:46,926 [Hal Turing] Then take the safety angle. Could a certified bound like this be one piece of a safety case? 57 00:12:46,926 --> 00:13:07,251 [Dr. Ada Shannon] As one piece of evidence, with its assumptions written down. The bound is about accuracy, under a uniform input distribution. The argument Q is specific to this architecture. If deployment inputs look different, the guarantee doesn't speak to them. So it can't yet be a deployable assurance method. What it offers is a template: state the property, state the distribution, and make the claim checkable instead of asserted. 58 00:13:07,251 --> 00:13:09,626 [Hal Turing] Who should act on it today? 59 00:13:09,626 --> 00:13:25,526 [Dr. Ada Shannon] Interpretability researchers, mainly. If your explanation of a circuit is right, you should be able to cash it out as a bound, and the gap between the bound and the true accuracy tells you what you haven't explained. I wouldn't tell practitioners to change anything yet. 60 00:13:25,526 --> 00:13:28,401 [Hal Turing] What does the paper say comes next? 61 00:13:28,401 --> 00:13:47,501 [Dr. Ada Shannon] Four things. Models with MLPs and LayerNorm. Compacting the OV part, which they couldn't do here. Getting new insights out of the proofs, since they report none so far. And relaxing worst-case ablation into heuristic arguments, to get past the compounding noise problem. That last one is a proposal, not something they tested. 62 00:13:47,501 --> 00:13:50,401 [Hal Turing] What result would make you update? 63 00:13:50,401 --> 00:14:04,326 [Dr. Ada Shannon] A non-vacuous, compact bound on a model with an MLP. That would show the approach isn't tied to the one architecture where the convexity argument happens to work. Short of that, it's a careful proof of concept. 64 00:14:04,326 --> 00:14:20,876 [Hal Turing] So here's what I'd keep. Proofs written from an understanding of the weights can be vastly cheaper than checking every input, and how tight they are grades how faithful that understanding was. But it's one tiny model, and the shorter the proof, the less it certifies. 65 00:14:20,876 --> 00:14:25,102 [Dr. Ada Shannon] That's a fair summary. A proof of concept, honestly labeled. 66 00:14:25,102 --> 00:14:30,102 [Hal Turing] Thanks for listening, everyone. And thanks, Ada, for walking me through it. 67 00:14:30,102 --> 00:14:32,427 [Dr. Ada Shannon] Thanks, Hal. Thanks for listening.