Skip to content
NewA calmer, faster ZeroHour

Circuit grafting puts exact arithmetic into pretrained LLM weights

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

Hugging Face daily papersby Tanmay Sah ()1 min read1
AI summary · x-ai/grok-4.7Summaries by Vani AI

On 6-digit tests, grafted Granite 4.2 3B and Qwen 3.5 4B reach 99.17% and 100% ALU-prefix accuracy, beating LoRA.

The paper describes closed-form primitives that compile exact arithmetic and Boolean circuits into pretrained language-model weights with no gradient updates, training examples, or runtime hooks. On 6-digit arithmetic, grafted IBM Granite 4.2 3B and Alibaba Qwen 3.5 4B reach 99.17% and 100.00% ALU-prefix accuracy, versus 42.2% and 61.7% for a 12.8K-sample LoRA baseline. A block-sparse sidecar keeps A100 memory at 7.89 and 10.65 GiB and passes all 14 pre-registered Tango splits.

Key facts
  • Six-digit tests used N=1,200 samples in BF16; an FP32 sidecar lifts both models to 100%.
  • Granite edits 1.07M-1.33M active non-zeros, at most 0.036% of weights.
  • Qwen edits 2.25M-2.39M non-zeros, at most 0.057%.
  • Boolean and 5-bit Majority/Parity circuits are reported at 100%.
  • LoRA inline continuation is 0%, versus 98%-100% mid-sentence resumption after grafting.
Explain this AI news with Vani AIWhat was announced, what is new and why it matters, in a new chat

From the original article

1 min read at huggingface.co

Pretrained language models (LMs) remain unreliable on exact multi-digit arithmetic without gradient fine-tuning or external tool interpreters.

Hugging Face daily papers

By Tanmay Sah · huggingface.co

Read the full article at Hugging Face daily papers

A short excerpt; the article and its images belong to the publisher. Summary, key facts and assessment above are AI-written from the article and can be wrong.