← Latest papers
💻 computer science

Benchmarking Individual and Ensemble XAI Methods for Arabic Transformer-Based Text Classification

This paper presents a comprehensive benchmark of individual and ensemble Explainable AI methods for Arabic transformer-based text classification, revealing that while selective ensembling offers modest improvements in model-centered faithfulness, it does not significantly enhance human-centered plausibility, alongside the introduction of a cost-effective automated rationale-selection method.

Original authors: Youssef Chafiqui, Houda Anoun

Published 2026-10-28
📖 5 min read🧠 Deep dive

Original authors: Youssef Chafiqui, Houda Anoun

Original paper licensed under CC BY 4.0 (https://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

In the modern world of artificial intelligence, computers have become remarkably good at reading and understanding human language. They can sort through thousands of tweets to find angry voices, or scan reviews to determine if a customer was happy or disappointed. These systems, built on complex structures called transformers, act like powerful engines that process text by looking at how words relate to one another in a sentence. However, there is a catch: while these engines are excellent at making decisions, they are often opaque black boxes. When a computer decides that a specific sentence is hateful or positive, it does not naturally explain which words led it to that conclusion. This lack of transparency is a problem, especially in critical situations where understanding the "why" behind a decision is just as important as the decision itself. Scientists have developed tools to shine a light into these black boxes, a field known as explainable artificial intelligence. These tools attempt to highlight the specific words or phrases that a computer model considered most important when it made a prediction. Yet, for languages like Arabic, which is rich in dialects and complex word structures, it remains unclear which of these explanation tools actually work best, or if combining them together creates a clearer picture than using them alone.

A team of researchers at Hassan II University in Casablanca set out to solve this uncertainty by putting the most popular explanation tools to the test. They focused on two very different tasks: determining the sentiment of text, such as whether a review is positive or negative, and detecting hate speech. To do this, they trained three different computer models specifically designed for the Arabic language and then asked four distinct explanation methods to justify the models' decisions. These methods, which include techniques that test how predictions change when words are removed or altered, were evaluated not just on whether they looked logical to humans, but on whether they accurately reflected the internal logic of the computer model itself. The researchers also tested a new, automated way to decide exactly how many words should be highlighted in an explanation, aiming to find a balance between being too vague and being too specific.

The study revealed that while no single tool was perfect, combining two specific methods—one that learns from small changes in the text and another that calculates the mathematical contribution of each word—produced the most reliable results. When the researchers paired these two approaches, the resulting explanation was slightly more accurate at reflecting the model's true reasoning than using either tool on its own. This improvement was consistent across both the sentiment analysis and the hate speech detection tasks, suggesting that the benefit is real and not just a fluke of one specific dataset. However, the gain was modest; the combined method did not revolutionize the quality of the explanation, but rather provided a small, statistically significant boost in reliability. The researchers found that simply adding more tools to the mix did not help; in fact, including a third or fourth method sometimes made the explanation worse. This suggests that the quality of the explanation depends more on choosing the right partners than on having a large crowd of them.

Perhaps the most surprising discovery was that being faithful to the computer's logic does not always mean being convincing to a human. The researchers compared the computer-generated explanations against a set of text where humans had manually highlighted the words they believed were important. They found that the method which performed best at mimicking the computer's internal logic was not necessarily the one that matched the human annotations the best. In some cases, the tool that was most accurate to the machine's math was only marginally better at aligning with human intuition than a tool that was less accurate to the machine. This distinction is crucial: it means that a system can be technically correct about how it works without necessarily making sense to the person reading the explanation. The study concludes that to truly understand these systems, we must evaluate them from both angles—the machine's perspective and the human's—rather than assuming one guarantees the other.

To make these explanations practical, the team also introduced a new, automated method for deciding how many words to highlight. Traditionally, researchers had to guess a number or set a fixed rule, which often led to explanations that were either too long or too short. The new method looks at the pattern of importance scores and automatically finds the point where the importance of words drops off sharply, similar to how a hiker might spot a sudden change in the terrain to decide where a trail ends. This approach requires no manual settings and runs much faster than existing automated techniques, taking only a fraction of a second to process a sentence. While it did not outperform every other method in every single category, it offered a highly efficient way to generate concise, relevant explanations without needing a human to tweak the settings. The work provides a clear roadmap for developers working with Arabic text, showing that while combining tools can help, the most effective strategy involves careful selection and a clear understanding that what is mathematically true for the model is not always what feels right to a human reader.

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 →