Symbolic Rule Extraction from Attention-Guided Sparse Representations in Vision Transformers
Not on the map. Why?
Abstract (arXiv)
Recent neuro-symbolic approaches have successfully extracted symbolic rule-sets from CNN-based models to enhance interpretability. However, applying similar techniques to Vision Transformers (ViTs) remains challenging due to their lack of modular concept detectors and reliance on global self-attention mechanisms. We propose a framework for symbolic rule extraction from ViTs by introducing a sparse concept layer inspired by Sparse Autoencoders (SAEs). This linear layer operates on attention-weighted patch representations and learns a disentangled, binarized representation in which individual neurons activate for high-level visual concepts. To encourage interpretability, we apply a combination of L1 sparsity, entropy minimization, and supervised contrastive loss. These binarized concept activations are used as input to the FOLD-SE-M algorithm, which generates a rule-set in the form of logic programs. Our method achieves a 5.14% better classification accuracy than the standard ViT while enabling symbolic reasoning. Crucially, the extracted rule-set is not merely post-hoc but acts as a logic-based decision layer that operates directly on the sparse concept representations. The resulting programs are concise and semantically meaningful. This work is the first to extract executable logic programs from ViTs using sparse symbolic representations. It bridges the gap between transformer-based vision models and symbolic logic programming, providing a step forward in interpretable and verifiable neuro-symbolic AI.
Key facts. Cited by 3 papers in the map (data through 14 Oct 2026). Builds on 13 of its 29 references that are in the map. First posted on arXiv 10 May 2025.
Builds on
13 of 29 references.
References · 13
- 2017Attention Is All You Needcited by 60,361
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
- 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,139
- 2020Training data-efficient image transformers & distillation through attentioncited by 4,586
- 2020Supervised Contrastive Learningcited by 2,829
- 2024Sparse autoencoders reveal selective remapping of visual concepts during adaptationcited by 68
- 2018Constraint Answer Set Programming without Groundingcited by 38
- 2025Steering CLIP's vision transformer with sparse autoencoderscited by 38
- 2024LeGrad: An Explainability Method for Vision Transformers via Feature Formation Sensitivitycited by 33
- 2022FOLD-SE: An Efficient Rule-based Machine Learning Algorithm with Scalable Explainabilitycited by 15
- 2023A Simple Interpretable Transformer for Fine-Grained Image Classification and Analysiscited by 15
- 2020ERIC: Extracting Relations Inferred from Convolutionscited by 5
Built on by
Citing papers per year: 2026: 3.
3 papers.
- 2026Visual Commonsense Driven Knowledge Refinements for Scene Graph Generationcited by 0
- 2026Answer Set Programming Energised! End-to-End Neurosymbolic Reasoning and Learning with ASP and Energy Based Modelscited by 0
- 2026SpIn-ViT: Designing a Sparsity-Induced Vision Transformer That Is Mechanistically Interpretablecited by 0
- 2026SpIn-ViT: Designing a Sparsity-Induced Vision Transformer That Is Mechanistically Interpretable14 Aug 2026
- 2026Answer Set Programming Energised! End-to-End Neurosymbolic Reasoning and Learning with ASP and Energy Based Models9 Jul 2026
- 2026Visual Commonsense Driven Knowledge Refinements for Scene Graph Generation4 Jun 2026
Similar, not cited
Close in wording, no citation either way
- 2025Mechanistic Interpretability with Sparse Autoencoder Neural Operators
- 2024Interpreting Attention Layer Outputs with Sparse Autoencoders
- 2025Concept-RuleNet: Grounded Multi-Agent Neurosymbolic Reasoning in Vision Language Models
- 2026Sparse but not Simpler: A Multi-Level Interpretability Analysis of Vision Transformers
- 2026Inside the Visual Mind: Neuroscience-Motivated Concept Circuits for Interpreting and Steering Vision Transformers
- 2026A Geometric View for Understanding Concept Learning and Neuron Interpretation in Sparse Autoencoders
- 2025Interpretable and Testable Vision Features via Sparse Autoencoders
- 2025Interpretable and Steerable Concept Bottleneck Sparse Autoencoders