Legible-by-Construction Transformers Convert Attention Heads into Readable Detectors
July 7, 2026
This method reconstructs transformer attention heads using sigmoid-activated value channels to act as explicit feature detectors. A Boolean variant utilizes within-token intersection and negation-capable set-difference to make the attention mechanism interpretable without losing model quality.
HOW THIS AFFECTS YOU
●
researcherYou can analyze transformer internal states through explicit logical operators instead of opaque weight matrices.