arXiv論文メモ
新着一覧
cs.LG / cs.AI / cs.CL · 査読状況未確認

右から左へ読む言語でSHAPとLIMEの表示を正す

When Explanations Cannot Be Read: Measuring and Correcting SHAP and LIME Rendering for Right-to-Left Languages

Rameesha Zia and Muhammad Shahid Iqbal Malik

この論文をやさしく読む

ひとことで言うと

右から左へ読む言語で、説明用グラフの文字が崩れる問題を修正する表示方法を調べた。

何に役立つ?

考えられる用途は、アラビア語などの文章分類器について、SHAPやLIMEの寄与値を変えずに読める図として提示すること。

この研究の面白いところ

各言語200語をOCRで読み戻して表示を測り、よく使われる回避策がウルドゥー語では無修正より悪いことも示した。

どこまで分かった?

検証対象は四言語の憎悪表現・攻撃的言語データと指定の分類器。生成した短い説明文の質はこの研究では評価していない。

v1のアブストラクトに基づくAI解説。日本語訳とは別に、用途の解釈を含みます。

アブストラクトの日本語訳

SHAPやLIMEのような事後的説明手法は文章分類器の解釈に広く使われるが、可視化は主に左から右へ読む言語向けに作られている。ウルドゥー語、アラビア語、ペルシャ語、ヘブライ語など右から左へ読む言語に適用すると、寄与値は数学的に正しくても、語の順序が乱れ、つながるはずの文字が分離し、図の配置も自然な読む方向に従わない。本研究は、説明手法そのものの限界ではなく、表示の問題としてこれに取り組む。 言語ごとにフォントを選び、SHAPとLIMEの表示で読む方向と文字の連結を修正する描画層SHAP-RTLを提案する。元の寄与値、特徴量の順序、モデル出力は維持する。ウルドゥー語、アラビア語、ヘブライ語、ペルシャ語の憎悪表現・攻撃的言語のデータセットで、TF-IDFとロジスティック回帰による分類器を使って評価した。各言語200個の特徴語をOCRで読み戻し、表示の正しさを測定した。 標準の表示では文字誤り率が0.820~0.979となり、ラベルが元の語を表さなくなった。一般的な文字形の修正と並べ替えによる回避策は、ウルドゥー語で0.998と、無修正より悪かった。Matplotlib 3.11.0の文字描画の変更では、この回避策の効果が逆転したが、SHAP-RTLは両バージョンで正しい表示を保った。この枠組みは、特定された特徴量に限定しつつ、同じ寄与値を読者の言語の短い文脈付き説明としても表現する。本稿で評価したのは表示の正しさであり、生成された説明の評価は今後の課題である。言語を考慮した可視化は、異なる表記体系で事後的な説明を利用しやすくする上で重要である。

v1の要旨から自動生成。本文の精読・人による確認は未実施。

初稿
2026-09-23(UTC)
最新改訂
2026-09-23 · v1
査読・掲載
査読状況未確認
arXivで読むPDF

更新履歴

取得できた版を表示。版の更新は査読済みを意味しません。過去版の本文差分は未解析です。

原文の要旨

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.

著者のコメント

28 pages, 18 figures, 5 Tables

arXiv ID: 2609.28565 / 要約の誤りについて