"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

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.

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:

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

Try it this week

  1. Install or update: npx thumbgate init. The gate-audit command ships in the first npm release after 1.45.2.
  2. Run npx thumbgate gate-audit and look for weak and fires-on-safe-actions rows.
  3. 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
Audit your learned rules for false triggers npx thumbgate init Setup guide