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
Presents novel interpretability and hardware acceleration techniques for ML researchers working on model compression and explainable AI.
AI Summary
Researchers convert attention neural networks into interpretable hard-logic predicate circuits, achieving 2-3 orders of magnitude speedup on FPGAs with minimal accuracy loss.
Excerpt
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 man
