Unveiling Decision-Making in LLMs for Text Classification : Extraction of influential and interpretable concepts with Sparse Autoencoders
This paper introduces ClassifSAE, a novel Sparse Autoencoder-based architecture tailored for text classification that outperforms existing explainability methods by improving the causality and interpretability of extracted features through a specialized classifier head and activation rate sparsity loss.
Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer
Imagine you have a super-smart robot librarian (a Large Language Model, or LLM) that can read millions of books and instantly tell you if a news article is about Sports, Business, or Science. It does this incredibly well, but there's a catch: the robot is a "black box." You can see the input (the article) and the output (the category), but you have no idea how it decided. It's like watching a magician pull a rabbit out of a hat, but you can't see the trick.
This paper introduces a new tool called ClassifSAE to peek behind the curtain and understand the robot's thought process.
Here is the breakdown using simple analogies:
1. The Problem: The Robot's "Brain" is a Messy Attic
Inside the robot's brain, information isn't stored in neat, labeled folders. Instead, it's like a giant, chaotic attic where millions of items are piled on top of each other.
- The Issue: When the robot reads a sentence about "Olympic basketball," it activates thousands of neurons at once. Some neurons care about "sports," others about "news agencies," and others about "numbers." Because they are all mixed together (a problem called polysemanticity), it's hard to tell which specific thought led to the "Sports" label.
- The Goal: We want to find the specific "thoughts" or concepts the robot uses to make its decision, and we want those thoughts to be clear and human-readable.
2. The Old Tools: Trying to Sort the Attic
Previous methods tried to sort this attic, but they had flaws:
- The "Guess and Check" Method: Some methods asked humans to label what they thought the robot was thinking. This is slow and subjective.
- The "Blind Search": Other methods tried to find patterns without any guidance, but they often found "ghosts"—patterns that looked like concepts but didn't actually make sense to humans.
- The "Heavy Hitters": Some methods could find concepts that caused the robot to change its mind, but the concepts themselves were still gibberish to humans.
3. The New Solution: ClassifSAE (The Smart Sorter)
The authors built ClassifSAE, which acts like a super-intelligent sorting machine for the robot's attic. Here is how it works:
A. The "Specialized Librarian" (Joint Classifier)
Imagine you don't just want to sort any books; you specifically want to sort books for a "Sports" section.
- How it works: ClassifSAE trains a small, specialized "librarian" (a classifier) alongside the sorting machine. This librarian only looks at the sorted items to decide if they belong in "Sports" or "Business."
- The Result: Because the librarian needs to make a decision, the sorting machine is forced to organize the attic into clear, distinct piles that actually help the librarian. It stops mixing "basketball" with "bankruptcy" and keeps them separate.
B. The "No Overcrowding" Rule (Sparsity)
In a messy attic, one big pile might contain everything, making it useless.
- How it works: The authors added a rule: "Only a few items can be in the spotlight at once." This forces the robot to pick the most important concept for a specific sentence, rather than activating 50 vague ideas.
- The Result: Instead of a blurry cloud of ideas, you get a sharp, focused concept like "Olympic Games" or "Airline Stocks."
4. The Proof: Did it Work?
The team tested this new sorter against the old methods using four different "libraries" (datasets: News, Movie Reviews, Offensive Language, and Sentiment).
- Clarity (Interpretability): They invented a new way to measure "clarity." If the robot says a sentence is about "Sports," do the concepts it used actually sound like sports?
- Analogy: If the robot says "This is a sports article," and the concepts it pulled out are "Goal," "Team," and "Score," that's a high score. If it pulled out "Money," "Politics," and "Weather," that's a low score. ClassifSAE got the highest scores.
- Cause and Effect (Causality): If you remove a concept, does the robot change its mind?
- Analogy: If you take away the word "Olympic" from the robot's thought process, does it stop thinking "Sports"? ClassifSAE's concepts were very good at this, though a rival method (HI-Concept) was slightly better at forcing the robot to change its mind, but at the cost of making the concepts harder to understand.
- Speed: ClassifSAE was up to 83% faster to train than the best existing methods. It's like using a vacuum cleaner instead of sweeping with a toothbrush.
5. The Big Picture
The paper shows that you don't have to choose between understanding the robot and trusting its decisions.
- Old Way: You could have a robot that was very accurate but a mystery, or a robot that was easy to understand but made mistakes.
- New Way (ClassifSAE): You can have a robot that is accurate, makes decisions based on clear, human-like concepts (like "Airline Bankruptcy" or "Cybersecurity Spam"), and you can do it quickly.
In short: ClassifSAE is a new tool that helps us translate the robot's chaotic, high-speed brain into a neat, organized list of "thoughts" that humans can actually read and understand, revealing exactly why the robot made the decision it did.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.