From Text to Graph: Lightweight Graph Surrogates for Auditable Text Classification
Preprint
- 2 March 2026
- preprint
- Published by Elsevier in SSRN Electronic Journal
Abstract
Transformer-based language models are widely used for text classification, but producing explanations suitable for deployment—e.g., for verification/validation, auditing, and failure diagnosis—can be computationally expensive and often yields token-level rationales that are difficult to interpret semantically. This paper proposes a methodology that converts sentences into constituency-based graphs and distills a fine-tuned language model into a lightweight graph neural network (GNN), enabling phrase-structured expla-nations grounded in linguistic constituents. Explanations are extracted with a post-hoc connected-subgraph method (SubgraphX) whose hyperparameters are optimized with multi-objective search (AutoGOAL) to obtain sparse subgraphs with high confidence scores. On AG News and SST-2, the GNN surrogate achieves F1 scores of 0.93 and 0.85, and the explanation optimization score reaches 0.87 and 0.79, respectively. The resultingsemantic and structural analyses support actionable diagnostics by highlighting critical phrases in correct predictions and recurring patterns in misclassifications, enabling model debugging with reduced computational overhead.Keywords
This publication has 8 references indexed in Scilit:
- RDGCN: Reinforced Dependency Graph Convolutional Network for Aspect-based Sentiment Analysis2024
- DecompX: Explaining Transformers Decisions by Propagating Token Decomposition2023
- Transformer Feed-Forward Layers Build Predictions by Promoting Concepts in the Vocabulary Space2022
- Deep Bi-LSTM Networks for Sequential RecommendationEntropy, 2020
- Attention is Not Only a Weight: Analyzing Transformers with Vector Norms2020
- Grad-CAM: Visual Explanations from Deep Networks via Gradient-Based LocalizationInternational Journal of Computer Vision, 2019
- Model Cards for Model Reporting2019
- Recursive Deep Models for Semantic Compositionality Over a Sentiment Treebank2013