当解释无法阅读时:测量和校正面向右到左语言的 SHAP 与 LIME 渲染
摘要
本研究引入 SHAP-RTL,一个渲染层,用于校正针对右到左语言的 SHAP 和 LIME 解释可视化,解决标记序列和文本塑形等问题,同时保留原始归因值。
查看缓存全文
缓存时间: 2026/09/25 09:28
# When Explanations Cannot Be Read: Measuring and Correcting SHAP and LIME Rendering for Right-to-Left Languages Source: [https://arxiv.org/abs/2609.28565](https://arxiv.org/abs/2609.28565) [View PDF](https://arxiv.org/pdf/2609.28565) > Abstract:Post hoc explanation methods such as SHAP and LIME are widely used to interpret text classifiers, but their visualizations are mainly designed for left\-to\-right languages\. When applied to right\-to\-left \(RTL\) languages such as Urdu, Arabic, Persian, and Hebrew, the attribution values remain mathematically valid, while their visual presentation fails\. Tokens appear out of sequence, connected letterforms break apart, and plot layouts do not follow the natural reading direction\. This study addresses this gap as a visualization problem rather than a limitation of the explanation methods themselves\. We present SHAP\-RTL, a rendering layer that corrects reading direction and script shaping in SHAP and LIME visualizations, with per\-language font selection, while preserving the original attribution values, feature ordering, and model outputs\. The approach is evaluated on Urdu, Arabic, Hebrew, and Persian hate and offensive\-language datasets using TF\-IDF and logistic regression classifiers\. Rendering correctness is measured by an OCR round trip over 200 feature words per language\. Default rendering yields character error rates of 0\.820 to 0\.979, meaning the label no longer carries its token; the common reshape\-and\-reorder workaround fails for Urdu at 0\.998, worse than no correction; and the Matplotlib 3\.11\.0 text rewrite inverts that workaround, while SHAP\-RTL remains correct under both versions\. The framework also verbalizes the same attributions as short contextual explanations in the reader's language, constrained to the identified features\. Evaluation in this paper concerns rendering correctness; assessment of the generated explanations is left to future work\. The study highlights the importance of language\-aware visualization in making post hoc explainability more accessible across different writing systems\. ## Submission history From: Muhammad Shahid Iqbal Malik Dr\. \[[view email](https://arxiv.org/show-email/72929c92/2609.28565)\] **\[v1\]**Wed, 23 Sep 2026 11:04:09 UTC \(810 KB\)
相似文章
从评分到解释:评估基于量规的教学质量评估中的SHAP与LLM理由
本文提出一个用于基于量规评分的句子级可解释性框架,比较了SHAP和LLM生成的理由。研究发现,微调预训练语言模型在预测准确性上优于LLM,且SHAP提供了更忠实和可迁移的解释。
RelShap: Relationally Consistent Shapley Explanations
This paper proposes RelShap, a framework that incorporates relational constraints and data provenance into Shapley value computation, making explanations more faithful to the data-generating process. It is estimator-agnostic and composes with existing SHAP estimators while exploiting functional dependencies to reduce runtime.
应用于大语言模型的可解释性研究:对比分析
一项对比研究,评估了三种可解释性技术(Integrated Gradients、Attention Rollout、SHAP)在微调 DistilBERT 模型上的表现,用于情感分类任务,重点突出了基于梯度、基于注意力和模型无关方法在大语言模型可解释性中的权衡。
分析传统与神经网络方法在多语言可读性评估中的应用
本文研究变压器模型是否在多语言可读性评估中内化了与传统模型相同的语言特征,通过在五种语言上使用SHAP和TCAV进行分析。
语言塑造多语言大语言模型中指令层级遵循度
本文介绍了XIH-Bench,一个用于评估多语言大语言模型中指令层级遵循度的基准,揭示了语言依赖的不对称性以及语言边界效应,即跨语言冲突比同语言冲突产生更高的遵循度。