Verified Arithmetic, Audited Inference: Ternary Language Models on an Edge FPGA

Ternary language models, whose weights are restricted to {−1, 0, +1}, turn matrix multiplication into additions and promise cheap inference hardware. We ask whether such hardware can be designed by untrusted generators, including a large language model, and still be trusted, all the way from the arithmetic circuit to the words a model writes. A layered Z3 prover checks every candidate circuit against a trusted reference before acceptance, so that design candidates can come from anywhere. Hard-wired 16 × 16 and 64 × 64 blocks of real BitNet weights, produced this way, have a 4.0× and 5.7× lower area–delay product (LUTs × clock period) than an adder-tree baseline on an AMD Kria KV260. Streaming engines built around a proven core run three published ternary models end to end on the same board: Microsoft BitNet b1.58 2B4T at 13.2 tokens/s (4.3× bitnet.cpp on the board's own CPU, same text), Falcon3-7B-1.58bit at 4.6 tokens/s, and OpenBMB BitCPM-CANN-8B at 5.1 tokens/s, the best-answering of the three (0.83 on ARC-Challenge, multiple choice). BitNet uses about 0.5 J per token on the board, 3× less than bitnet.cpp. Two mechanisms make every run checkable. First, a replay audit recomputes all of the up to 140 million integer products of a run from the original checkpoint and replays the host's floating-point work bit for bit. Second, a certified argmax lets the output layer run on int8 engines while proving that each emitted token equals the first argmax of the full float32 logits. Every check is exercised by planted faults. We also report what did not work, and find that on this board inference is bound by DRAM bandwidth rather than by logic.

Authors

Publication Details

Journal
Zenodo (CERN European Organization for Nuclear Research)
Published
2026-11-30
DOI
https://doi.org/10.5281/zenodo.24688831
Primary Topic
Embedded Systems Design Techniques
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
article

Verified Arithmetic, Audited Inference: Ternary Language Models on an Edge FPGA

Valdas Klicmanas
Zenodo (CERN European Organization for Nuclear Research)
Embedded Systems Design Techniques
article

Verified Arithmetic, Audited Inference: Ternary Language Models on an Edge FPGA

Valdas Klicmanas
article en

Abstract

Ternary language models, whose weights are restricted to {−1, 0, +1}, turn matrix multiplication into additions and promise cheap inference hardware. We ask whether such hardware can be designed by untrusted generators, including a large language model, and still be trusted, all the way from the arithmetic circuit to the words a model writes. A layered Z3 prover checks every candidate circuit against a trusted reference before acceptance, so that design candidates can come from anywhere. Hard-wired 16 × 16 and 64 × 64 blocks of real BitNet weights, produced this way, have a 4.0× and 5.7× lower area–delay product (LUTs × clock period) than an adder-tree baseline on an AMD Kria KV260. Streaming engines built around a proven core run three published ternary models end to end on the same board: Microsoft BitNet b1.58 2B4T at 13.2 tokens/s (4.3× bitnet.cpp on the board's own CPU, same text), Falcon3-7B-1.58bit at 4.6 tokens/s, and OpenBMB BitCPM-CANN-8B at 5.1 tokens/s, the best-answering of the three (0.83 on ARC-Challenge, multiple choice). BitNet uses about 0.5 J per token on the board, 3× less than bitnet.cpp. Two mechanisms make every run checkable. First, a replay audit recomputes all of the up to 140 million integer products of a run from the original checkpoint and replays the host's floating-point work bit for bit. Second, a certified argmax lets the output layer run on int8 engines while proving that each emitted token equals the first argmax of the full float32 logits. Every check is exercised by planted faults. We also report what did not work, and find that on this board inference is bound by DRAM bandwidth rather than by logic.

Zenodo (CERN European Organization for Nuclear Research)
Embedded Systems Design Techniques
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon