How to Turn an Attention Neural Network into an Interpretable Hard-Logic Predicate Circuit: Truth-Table Predicate Extraction and State-Machine Merging under Ship-of-Theseus Replacement
Not on the map. Why?
Abstract (arXiv)
We convert a trained attention network as a whole, attention included, into a hard-logic predicate circuit that runs in its place. Every unit of the circuit is a 0/1 predicate on tokens, and every map between predicates is a minimised truth table. Short tables, such as the product of a query code and a key code, are minimised exactly, and wide feature-to-feature transitions become implication rules by noise-tolerant minimisation. Blocks are replaced one at a time from the output down, in the manner of the Ship of Theseus, and after each replacement the remaining soft part re-adapts to the frozen circuit. Attention selection takes two forms, a row-wise comparison of integer scores (order selection) and a learned rule (rule selection). Both are fitted on the ordinary training set alone, and only on the examples that the teacher classifies correctly, so that the circuit imitates the teacher where the teacher is right. On TweetEval-emotion, the complete circuit of DistilGPT2 reaches a test gold accuracy of 66.5 ± 1.3% with order selection and 57.4 ± 2.5% with rule selection over three seeds, against 74.7% for the teacher and 64.0% for a bag of word pieces fitted on the same tweets, and that of BERT-base reaches 70.0 ± 0.5% with order selection and 63.7 ± 1.2% with rule selection against 77.8%. The circuit needs no multiplier and no weight traffic, and its exported hardware description reproduces it bit for bit. By a synthesis-based estimate it classifies one tweet in about 1-2 μs (DistilGPT2) and 3-5 μs (BERT) on an FPGA card and in 5-9 μs on a palm-sized board whose module draws 7.5-15 W, two to three orders of magnitude faster than the network on a GPU at batch 1 (measured, 0.9-2.6 ms for DistilGPT2 including an optimised CUDA-graph baseline), at a cost of 8.5 (DistilGPT2) and 8.6 (BERT) points of gold accuracy for the synthesised seed-0 circuits.
Key facts. No citing papers in the map yet (data through 24 Nov 2026). Builds on 24 of its 44 references that are in the map. Submitted 18 Nov 2026, announced 19 Nov 2026.
Builds on
24 of 44 references.
References · 24
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 41,272
- 2015Distilling the Knowledge in a Neural Networkcited by 10,967
- 2019DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lightercited by 4,481
- 2017Mixed Precision Trainingcited by 1,234
- 2020Intrinsic Dimensionality Explains the Effectiveness of Language Model Fine-Tuningcited by 718
- 2020TweetEval: Unified Benchmark and Comparative Evaluation for Tweet Classificationcited by 429
- 2019Intrinsic dimension of data representations in deep neural networkscited by 293
- 2022FP8 Formats for Deep Learningcited by 244
- 2017Incremental Network Quantization: Towards Lossless CNNs with Low-Precision Weightscited by 224
- 2020BinaryBERT: Pushing the Limit of BERT Quantizationcited by 182
- 2023Tracr: Compiled Transformers as a Laboratory for Interpretabilitycited by 125
- 2020BERT-of-Theseus: Compressing BERT by Progressive Module Replacingcited by 115
12 more
- 2022Deep Differentiable Logic Gate Networkscited by 73
- 2020LogicNets: Co-Designed Neural Networks and Circuits for Extreme-Throughput Applicationscited by 63
- 2021Scalable Rule-Based Representation Learning for Interpretable Classificationcited by 43
- 2021Multiplying Matrices Without Multiplyingcited by 32
- 2021Learning Accurate and Interpretable Decision Rule Sets from Neural Networkscited by 27
- 2023LUT-NN: Empower Efficient Neural Network Inference with Centroid Learning and Table Lookupcited by 21
- 2025LL-ViT: Edge Deployable Vision Transformers with Look Up Table Neuronscited by 6
- 2018NullaNet: Training Deep Neural Networks for Reduced-Memory-Access Inferencecited by 5
- 2021NullaNet Tiny: Ultra-low-latency DNN Inference Through Fixed-function Combinational Logiccited by 5
- 2023To Spike or Not to Spike? A Quantitative Comparison of SNN and CNN FPGA Implementationscited by 2
- 2025Gate-level boolean evolutionary geometric attention neural networkscited by 1
- 2026LEAF: LUT-aware Efficient Attention on FPGAscited by 1
Built on by
Not cited yet.