DocXEval: A Systematic Evaluation of Explainability in Multimodal Document Understanding
Organizations: Smart Data and Knowledge Services (SDS), German Research Center for Artificial Intelligence (DFKI), Trippstadter Str. 122, Kaiserslautern, 67663, Germany. · Department of Computer Science, University of Kaiserslautern-Landau (RPTU), Erwin-Schrödinger-Str. 52, Kaiserslautern, 67663, Germany. · DeepReader GmbH, Kaiserslautern, 67663, Germany.
Abstract
Multimodal transformer models have driven unprecedented performance breakthroughs in modern document understanding. However, the inherent black-box nature of these models remains a major obstacle to their safe deployment in high-stakes sectors. Despite significant progress in explainability for vision and language tasks, explainable AI (XAI) research tailored to multimodal document understanding has received little attention. To address this gap, we present \ourframework{}, the first comprehensive explainability framework that adapts existing XAI methods and evaluation metrics to the multimodal (text, layout, and image) document understanding context, while introducing efficient multi-target adaptations of both methods and metrics for domain-specific tasks such as semantic entity recognition. Using \ourframework{}, we systematically evaluate 13 XAI methods across 3 document understanding tasks, 8 datasets, 4 models, and 17 evaluation metrics, and find that only a few methods perform consistently across all evaluation criteria, with Occlusion emerging as the most faithful and interpretable method overall. Through a dedicated meta-evaluation, we observe moderate to strong agreement among several faithfulness and complexity metrics while identifying certain ones that produce unreliable results. Finally, through multiple dataset-wide diagnostic analyses, we uncover key insights into model behavior, including the contribution of individual modalities across tasks and labels, spatial attribution patterns around target entities, and potential dataset biases. Overall, this work serves as both a benchmark and a practical guide for future XAI research in multimodal document understanding. To support reproducibility, we publicly release our code at https://github.com/saifullah3396/docxeval/.
Figures & tables
| Type | Metric | Perturbation Type | Requires Model | Requires Baseline | FS support | MT Support | Chunking |
| Completeness ( compl ) ( 35 ) ( ) | N/A | ✓ | ✓ | N/A | ✓ | ||
| Axiomatic | Non-Sensitivity ( non-sens ) ( 53 ) ( ) | Unordered | ✓ | ✓ | ✓ | ✓ | ✓ |
| Area Over Perturbation Curve ( aopc ) ( 54 ) ( ) | Ordered | ✓ | ✓ | ✓ | ✓ | ||
| Area Between Perturbation Curves ( abpc ) ( 54 ) ( ) | Ordered | ✓ | ✓ | ✓ | ✓ | ||
| Sufficiency ( suf ) ( 55 ) ( ) | Ordered | ✓ | ✓ | ✓ | ✓ | ||
| Sensitivity-N ( sens-n ) ( 56 ) ( ) | Unordered | ✓ | ✓ | ✓ | ✓ | ✓ |
| Task | Dataset | Classes | Train | Validation | Test | XAI Eval. Set | Metric |
| Tobacco3482 ( 60 ) | 10 | 2504 | 278 | 700 | 700 | Accuracy | |
| RVL-CDIP [ 50 ] | 16 | 320000 | 40000 | 40000 | 1000 | Accuracy | |
| CLS | DocLayNet ( 61 ) | 11 | 69103 | 6480 | 4999 | 1000 | Accuracy |
| FUNSD [ 51 ] | 4 | 149 | — | 50 | 50 | F1 | |
| CORD ( 62 ) | 30 | 800 | 100 | 100 | 100 | F1 | |
| SROIE ( 63 ) | 5 | 626 | — | 347 | 100 | F1 |
| Task | Dataset | Metric | BERT [ 66 ] | RoBERTa [ 67 ] | LiLT [ 10 ] | LayoutLMv3 [ 2 ] |
|---|---|---|---|---|---|---|
| Tobacco3482 ( 60 ) | Acc. | 86.38 | 87.81 | 88.53 | 94.27 | |
| RVL-CDIP [ 50 ] | Acc. | 89.70 | 90.05 | 91.20 | 94.12 | |
| Classification | DocLayNet ( 61 ) | Acc. | 97.50 | 97.90 | 97.78 | 98.97 |
| FUNSD [ 51 ] | F1 | 64.69 | 67.47 | 76.19 | 88.09 | |
| CORD ( 62 ) | F1 | 95.10 | 96.28 | 96.85 | 97.01 | |
| SROIE ( 63 ) | F1 | 89.63 | 93.33 | 94.12 | 95.28 |
Appendix figures & tables19 assets
Supplementary material from the paper’s appendix.
Appendix
| Task | Model | Modality | Learning Rate | Batch Size | Epochs | Optimizer | Weight Decay | Warmup Ratio | Dropout | Early Stopping | Image Size |
|---|---|---|---|---|---|---|---|---|---|---|---|
| BERT [ 66 ] | ; | 1.00e-5 | 32/64 | 40 | Adam | 0 | 1000 | 0.1 | ✓ | — | |
| RoBERTa [ 67 ] | ; | 1.00e-5 | 32/64 | 40 | Adam | 0 | 1000 | 0.1 | ✓ | — | |
| LiLT [ 10 ] | ; ; | 1.00e-5 | 32/64 | 40 | Adam | 0 | 1000 | 0.1 | ✓ | — | |
| CLS | LayoutLMv3 [ 2 ] | ; ; ; | 1.00e-5 | 32/64 | 40 | Adam | 0 | 1000 | 0.1 | ✓ | 224 224 |
| BERT [ 66 ] | ; | 2.00e-5 | 16 | 100 | Adam-W | 0.01 | 100 | 0.1 | ✓ | — | |
| RoBERTa [ 67 ] | ; | 2.00e-5 | 16 | 100 | Adam-W | 0.01 | 100 | 0.1 | ✓ | — |
| Method | Hyperparameter | Value |
|---|---|---|
| Integrated Gradients (IG) [ 35 ] | n_steps | 200 |
| GradientSHAP (GS) [ 24 ] | n_samples | 200 |
| DeepSHAP (DS) [ 24 ] | num_baselines | 100 |
| Occlusion (OCC) [ 27 ] | sliding_window (token) | 8 d |
| Occlusion (OCC) [ 27 ] | stride (token) | 4 d |
| Occlusion (OCC) [ 27 ] | sliding_window (image) | 16 16 3 |
| Type | Metric | Hyperparameter | Value |
| Axiomatic | n_perturbations_per_feature | 1 | |
| chunk_size | 1% | ||
| 1.00e-3 | |||
| 1.00e-1 | |||
| Non-Sensitivity ( ns ) ( ) | max_features_per_batch | 100 | |
| Faithfulness | total_feature_bins | 200 |
| Dataset | Model | Explainer | Token | Position | Layout | Image |
|---|---|---|---|---|---|---|
| Tobacco3482 | BERT | IG | 0.91 | 0.09 | N/A | N/A |
| Occ. | 0.88 | 0.12 | N/A | N/A | ||
| RA | 1.00 | N/A | N/A | N/A | ||
| RoBERTa | IG | 0.80 | 0.20 | N/A | N/A | |
| Occ. | 0.65 | 0.35 | N/A | N/A | ||
| RA | 1.00 | N/A | N/A | N/A |
| Dataset | Model | Explainer | Token | Position | Layout | Image |
|---|---|---|---|---|---|---|
| FUNSD | BERT | IG | 0.88 | 0.12 | N/A | N/A |
| Occ. | 0.76 | 0.24 | N/A | N/A | ||
| RA | 1.00 | N/A | N/A | N/A | ||
| RoBERTa | IG | 0.46 | 0.54 | N/A | N/A | |
| Occ. | 0.53 | 0.47 | N/A | N/A | ||
| RA | 1.00 | N/A | N/A | N/A |
| Dataset | Model | Explainer | Token | Position | Layout | Image |
|---|---|---|---|---|---|---|
| DocVQA | BERT | IG | 0.83 | 0.17 | N/A | N/A |
| Occ. | 0.66 | 0.34 | N/A | N/A | ||
| RA | 1.00 | N/A | N/A | N/A | ||
| RoBERTa | IG | 0.65 | 0.35 | N/A | N/A | |
| Occ. | 0.59 | 0.41 | N/A | N/A | ||
| RA | 1.00 | N/A | N/A | N/A |
Multimodal Model Interpretability
Multimodal model interpretability studies how AI systems combine and use images, text, audio, video, and other signals, and how to explain their decisions.
See all 130 papers