"A CPU Inside an LLM": exact rules need a trigger audit
5 min read · For teams that let feedback turn into rules for their coding agents
TL;DR: A new arXiv preprint writes exact arithmetic straight into a language model's weights, with no training at all, and beats a 12,800-example fine-tune by a wide margin. Just as important is how it proves the graft is safe: it counts false triggers on a large set of unrelated input and reports 0 in 11,134. "It didn't fire" means little until you say how many times you checked. ThumbGate's new gate-audit command applies that test to rules learned from thumbs-down feedback.
What the paper did
A CPU Inside an LLM: Zero-Gradient Compilation of Exact Circuits into Pretrained Weights (Tanmay Sah, arXiv 2611.26450, November 19, 2026) is a preprint. It starts from a familiar problem: language models are unreliable at exact multi-digit arithmetic unless you fine-tune them or hand the work to an external tool.
Instead of training, the paper builds the computation in by hand, with closed-form math. Its own words: "zero training examples and zero runtime hooks." An automated five-stage compiler turns 4 to 8 digit signed add, subtract and multiply circuits, plus small Boolean, majority and parity circuits, into extra weights for an existing model.
What it reports
- Exact beats trained. On 6-digit arithmetic (1,200 problems), the compiled circuits reach 99.17% on IBM Granite 4.2 3B and 100.00% on Alibaba Qwen 3.5 4B (100% on both with a higher-precision sidecar). A LoRA fine-tune on 12,800 examples reached 42.2% and 61.7%, and 0% when the arithmetic appeared mid-sentence.
- Small footprint. The grafts use about 1.1 to 2.4 million non-zero weights, at most 0.057% of the model.
- Nothing else breaks. Both grafted models passed all 14 of 14 pre-registered checks that general reasoning and long-context ability did not get worse. The test plan was fixed before it ran.
- Quiet everywhere else. The circuits fired 0 times in 11,134 out-of-distribution cases, input they were never meant to handle.
The paper is open about what remains: full arithmetic on the 42-layer Gemma 4 model and fused GPU kernels are future work. It also notes that hidden triggers in weights are a reason to audit model checkpoints.
The lesson for agent rules
ThumbGate does not edit model weights. Its rules sit outside the model and check each tool call before it runs. But two ideas from the paper carry over directly.
- Hard rules should be exact, not trained. "Never force-push to main" is not a preference to nudge a model toward. It is a check that either matches or does not. The paper's gap between compiled and fine-tuned accuracy is a sharp reminder of why: training on examples gets you close, and close is not what you want for a hard rule. Use training data for taste, and exact checks for rules.
- An exact rule is only as good as its false-trigger count. A rule that blocks the mistake but also blocks ordinary work is a regression. And "0 false blocks" means nothing without a sample size. Zero false fires in 2 checks is almost no evidence. Zero in 300 is strong evidence.
What ThumbGate now does
ThumbGate already replays a new block rule against the agent's past allowed actions before it goes live. If the rule would have blocked any of them, it is held back to a warning instead. That check now also reports how much its answer is worth:
- A 95% upper bound on the false-fire rate. With zero fires in n past actions, the bound is 1 − 0.051/n, about 3/n (the "rule of three"). With some fires, it uses the Wilson score interval.
- An evidence label for each rule:
none (no past actions to check), weak (no fires, but the bound is still above 5%), strong (no fires and the bound is at or under 5%, which takes 59 or more clean checks), or fires-on-safe-actions.
- A command to audit every learned rule at any time:
npx thumbgate gate-audit (add --json for scripts). It is read-only. It skips the original mistake each rule was learned from, since that action was allowed before anyone thumbs-downed it.
Newly promoted block rules also keep their audit, so a rule's record shows "0 of 81 past actions, strong" instead of just "0".
What this does not do
- It does not change which rules get held back. A rule that fires on any past safe action is still held to a warning, and a rule with no history still goes live as before. The new numbers tell you how far to trust that decision.
- The audit only knows the actions your agent has taken. A rule can look strong on your history and still misfire on something new.
- The 95% bound treats past actions as independent samples, which repeated commands are not. Read it as a guide, not a guarantee.
- ThumbGate is not affiliated with the paper or its author, and has not been evaluated in it.
Try it this week
- Install or update:
npx thumbgate init. The gate-audit command ships in the first npm release after 1.45.2.
- Run
npx thumbgate gate-audit and look for weak and fires-on-safe-actions rows.
- Treat a
fires-on-safe-actions rule as one to narrow or remove before you turn on strict enforcement, and a weak rule as untested, not proven.
Sources
Rules that block mistakes, and stay out of the way
See how much evidence stands behind each learned rule.
npx thumbgate gate-audit