mlsanityData to 14 Oct 2026

Symbolic Rule Extraction from Attention-Guided Sparse Representations in Vision Transformers

arXiv 2505.06745 ↗First posted 10 May 2025cs.CV cs.AIcited by 3

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

  1. 2017Attention Is All You Needcited by 60,361
  2. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
  3. 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,139
  4. 2020Training data-efficient image transformers & distillation through attentioncited by 4,586
  5. 2020Supervised Contrastive Learningcited by 2,829
  6. 2024Sparse autoencoders reveal selective remapping of visual concepts during adaptationcited by 68
  7. 2018Constraint Answer Set Programming without Groundingcited by 38
  8. 2025Steering CLIP's vision transformer with sparse autoencoderscited by 38
  9. 2024LeGrad: An Explainability Method for Vision Transformers via Feature Formation Sensitivitycited by 33
  10. 2022FOLD-SE: An Efficient Rule-based Machine Learning Algorithm with Scalable Explainabilitycited by 15
  11. 2023A Simple Interpretable Transformer for Fine-Grained Image Classification and Analysiscited by 15
  12. 2020ERIC: Extracting Relations Inferred from Convolutionscited by 5
1 more
  1. 2023Using Logic Programming and Kernel-Grouping for Improving Interpretability of Convolutional Neural Networkscited by 4

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 3.

3 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2025Mechanistic Interpretability with Sparse Autoencoder Neural Operators
  2. 2024Interpreting Attention Layer Outputs with Sparse Autoencoders
  3. 2025Concept-RuleNet: Grounded Multi-Agent Neurosymbolic Reasoning in Vision Language Models
  4. 2026Sparse but not Simpler: A Multi-Level Interpretability Analysis of Vision Transformers
  5. 2026Inside the Visual Mind: Neuroscience-Motivated Concept Circuits for Interpreting and Steering Vision Transformers
  6. 2026A Geometric View for Understanding Concept Learning and Neuron Interpretation in Sparse Autoencoders
  7. 2025Interpretable and Testable Vision Features via Sparse Autoencoders
  8. 2025Interpretable and Steerable Concept Bottleneck Sparse Autoencoders