← Latest papers
🤖 AI

Empirical Characterization of Rationale Stability Under Controlled Perturbations for Explainable Pattern Recognition

This paper introduces a novel metric based on SHAP value cosine similarity to evaluate the stability of model explanations under label-preserving perturbations, demonstrating its effectiveness in identifying inconsistent attribution patterns and misaligned behaviors in sentiment analysis models like BERT and RoBERTa.

Original authors: Abu Noman Md Sakib, Zhensen Wang, Merjulah Roby, Zijie Zhang

Published 2026-04-07
📖 4 min read☕ Coffee break read

Original authors: Abu Noman Md Sakib, Zhensen Wang, Merjulah Roby, Zijie Zhang

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 hire a very smart but mysterious assistant to help you make important decisions, like approving a loan or diagnosing a medical condition. You ask them, "Why did you say 'Yes' to this application?" They give you a reason. Then, you show them a very similar application—maybe the only difference is that the applicant wrote "good" instead of "great."

If your assistant is truly reliable, they should give you almost the same reason for the second "Yes." But what if, for the second application, they suddenly say, "Oh, I said yes because of the font size"? That would be confusing and scary. It means your assistant isn't actually thinking logically; they are just guessing or reacting randomly.

This paper is about building a test to catch assistants who are inconsistent, even when they seem to be doing a good job.

The Problem: The "Whimsical" AI

In the world of Artificial Intelligence (AI), we have "Explainable AI" (XAI). These are tools that try to open the black box and tell us why an AI made a decision. Usually, we just check if the explanation makes sense for one specific case.

But the authors of this paper realized: Checking one case isn't enough. It's like judging a chef by how they cook a single egg. You need to know if they can cook every egg the same way. If an AI gives a great reason for one movie review being "positive," but a totally different, weird reason for a nearly identical review, the AI is unstable. It's unreliable.

The Solution: The "ESS" Score (The Consistency Meter)

The authors created a new tool called ESS (Explanation Stability Score). Think of ESS as a "Logic Consistency Meter."

Here is how it works, using a simple analogy:

  1. The Twin Test: Imagine you have two twins (two very similar sentences) who both love the same movie.
  2. The Reasoning Check: You ask the AI, "Why do you think Twin A likes this movie?" The AI highlights certain words (like "funny," "great acting").
  3. The Comparison: Then you ask, "Why do you think Twin B likes this movie?"
  4. The Score: The ESS score measures how much the AI's highlighted words overlap.
    • High Score (Close to 1): The AI highlighted the exact same words for both twins. "Great! You are consistent!"
    • Low Score (Close to 0): The AI highlighted "funny" for Twin A, but "the color of the poster" for Twin B. "Uh oh, you are being inconsistent!"

How They Tested It

The researchers took three famous AI models (think of them as three different students: BERT, RoBERTa, and DistilBERT) and taught them to understand movie reviews (Sentiment Analysis).

They then played a game of "Spot the Difference":

  • They took a sentence like "The movie was amazing."
  • They swapped a word to make it a paraphrase: "The movie was wonderful."
  • They asked the AI to explain both.

The Results:

  • RoBERTa was the most consistent student. It gave very similar reasons for similar sentences.
  • BERT was okay, but sometimes got a little confused when words were swapped.
  • DistilBERT (a smaller, faster model) was the least consistent. It seemed to have a very simple, almost random way of thinking that changed easily.

They also found that when they slightly changed the words (paraphrasing), the consistency scores dropped for everyone. This proves that even smart AI models can be fragile. If you tweak the input just a little, their reasoning can fall apart.

Why This Matters

Imagine a self-driving car. If it decides to stop for a red light because "it's red," that's good. But if you change the light slightly (maybe a different shade of red) and the car suddenly stops because "the sky is blue," that's a disaster.

This paper gives us a way to audit AI behavior. Instead of just asking, "Did you get the right answer?", we can now ask, "Did you use the same logic for similar situations?"

The Takeaway

The authors are saying: Trustworthy AI isn't just about being right; it's about being consistent.

If an AI's explanations jump around like a squirrel on caffeine, we can't trust it with important jobs like healthcare or finance. This new "ESS" score helps us find those squirrels and fix them before they cause trouble. It's a step toward building AI that doesn't just guess, but actually thinks logically and reliably.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →