Megadose Built for builders and researchers.

A CPU Inside an LLM: Zero-Gradient Compilation of Exact Circuits into Pretrained Weights

· HF Daily Papers ·
Qwen reached 100% accuracy on the paper’s six-digit arithmetic test after circuit insertion without training examples.

Tanmay Sah describes a compiler that embeds arithmetic and Boolean circuits into pretrained model weights without gradient updates or runtime hooks. Across 1,200 six-digit arithmetic cases in BF16, the paper reports 99.17% ALU-prefix accuracy for IBM Granite 4.2 3B and 100% for Alibaba Qwen 3.5 4B. The models resumed text mid-sentence in 98%–100% of tests, while the paper’s LoRA comparison scored 42.2% and 61.7% on arithmetic and failed inline continuation. These results cover the paper’s specified circuits and evaluations.

HF Daily Papers' note

score 5

Categories: Research