Unveiling Decision-Making in LLMs for Text Classification : Extraction of influential and interpretable concepts with Sparse Autoencoders

Mathis Le Bail, Jérémie Dentan, Davide Buscaldi, Sonia Vanier
6/30/2025
cs.CL

No official code found. Best implementation: orailix/ClassifSAE (3 stars, Apache-2.0, last commit 2026-01-20).

Abstract

Sparse Autoencoders (SAEs) have been successfully used to probe Large Language Models (LLMs) and extract interpretable concepts from their internal representations. These concepts are linear combinations of neuron activations that correspond to human-interpretable features. In this paper, we investigate the effectiveness of SAE-based explainability approaches for sentence classification, a domain where such methods have not been extensively explored. We present a novel SAE-based model ClassifSAE tailored for text classification, leveraging a specialized classifier head and incorporating an activation rate sparsity loss. We benchmark this architecture against established methods such as ConceptShap, Independent Component Analysis, HI-Concept and a standard TopK-SAE baseline. Our evaluation covers several classification benchmarks and backbone LLMs. We further enrich our analysis with two novel metrics for measuring the precision of concept-based explanations, using an external sentence encoder. Our empirical results show that ClassifSAE improves both the causality and interpretability of the extracted features.

View on arXivView PDF

Code Implementations(1)

orailix/ClassifSAECommunity77%
Apache-2.0

Unveiling Decision-Making in LLMs for Text Classification : Extraction of influential and interpretable concepts with Sparse Autoencoders

30Shell, PythonJun 9, 20259 months agoApache-2.0

Similar Papers

Cite this paper

@article{bail2025unveiling,
  title  = {Unveiling Decision-Making in LLMs for Text Classification : Extraction of influential and interpretable concepts with Sparse Autoencoders},
  author = {Mathis Le Bail and Jérémie Dentan and Davide Buscaldi and Sonia Vanier},
  year   = {2025},
  eprint = {2506.23951},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2506.23951v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2506.23951.svg)](https://codeofpaper.com/paper/2506.23951)

Discussion