Open Interpretability Models Contributors Research Posts About

How to Turn an Attention Neural Network into an Interpretable Hard-Logic Predicate Circuit

Source

Citation. Yuchen Li, Zongqi Fan, Xintong Li, Nguyen H. Tran and Ken-Tye Yong (The University of Sydney). "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". arXiv:2611.24381v1, submitted 18 November 2026, cs.LG with cs.AR. Paper. Preprint, no venue given. No code is linked. The data and checkpoints are public: TweetEval, DistilGPT2 and BERT-base. We saw no funding statement. The paper states: "An AI assistant (Claude, Anthropic) assisted with engineering code, data organisation and the writing of the paper."

Status. Not applicable. The paper turns a fine-tuned text classifier into a logic circuit for an FPGA, and it doesn't test what any predicate or state means. No code, skill or protocol here depends on it. One idea carries over to the patch format's compiled operation (Use in this repo).

Read. On 2026-11-24 a web-fetch subagent read the abstract page and the HTML full text. A model read the source for us. We have the body's own text up to the references. That is Sections 1 to 7, Equations 1 to 3, Algorithm 1 and Tables 1 to 3. It also covers the statements on software, impact and AI use. Appendices A to F came back only as a summary, so this page uses no number from them. We didn't see the figures, the PDF or the TeX source.

Summary

Claim. A trained attention network can be replaced, block by block, with a hard-logic circuit of predicates, small integer tables and rules. The circuit keeps most of the network's accuracy on a 4-class tweet task, and runs in microseconds on an FPGA.

Method.

Findings, as the source reports them.

Setting Result
DistilGPT2 test accuracy, teacher 0.747
DistilGPT2 circuit, order selection, 3 seeds 0.665 ± 0.013 (agreement with the teacher 0.695 ± 0.012)
DistilGPT2 circuit, rule selection, 3 seeds 0.574 ± 0.025
BERT test accuracy, teacher 0.778
BERT circuit, order selection, 3 seeds 0.700 ± 0.005 (agreement 0.711 ± 0.007)
Bag of word pieces 0.640 for each model
Size, order selection, seed 0 DistilGPT2 47.87 Mbit against 655.3, BERT 29.62 against 875.9
One to three circuit blocks, the rest soft, seed 0 0.752–0.757 for DistilGPT2, 0.779–0.786 for BERT
Latency per tweet, DistilGPT2 circuit on an Alveo U55C (estimated) 1.06–1.91 µs, against 2.21 ms for the teacher on an RTX 5090
Bit-exactness The integer evaluator matches on all 1,421 test tweets

Where the claims go beyond the evidence

Use in this repo