Manuscript Offprint

arXiv:2610.36929

DocXEval: A Systematic Evaluation of Explainability in Multimodal Document Understanding

Saifullah Saifullah, David Dembinsky, Stefan Agne, Andreas Dengel, Sheraz Ahmed

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

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 DOCXEVAL, 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 DOCXEVAL, 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/, along with the torchxai library implementing all multimodal and multi-target method and metric adaptations at https://atriaml.github.io/torchxai/.

1 Introduction

Deep learning has driven state-of-the-art performance in document understanding across a wide range of tasks, including document classification [1, 2], information extraction [3, 4], document visual question answering [5], and more [6, 7]. As multimodal document understanding models become increasingly integrated into automated decision-making pipelines [2, 8–11], ensuring the transparency of their decisions has become critical, especially for deployment in high-stakes sectors where inadvertent errors can lead to devastating legal, financial, or societal consequences [12, 13]. However, despite a vast array of explainable AI (XAI) methods [14, 15] and an equally diverse set of XAI evaluation metrics [16–18] proposed for vision and language models [19–22], there is little guidance on extending these methods and metrics to the multimodal document understanding context, where models typically combine multiple heterogeneous input modalities, such as text, layout, and visual/image features, in an end-to-end fashion [2, 4, 10, 23].

Existing XAI methods and evaluation metrics are typically sensitive to numerous configurable parameters, including the choice of baselines, feature grouping strategies, and attribution aggregation schemes [14–16]. In multimodal document understanding, where features originate from multiple modalities, these design choices become even more complex, as decisions must be made separately for each modality. For example, a meaningful baseline (i.e., one representing the absence of information) for text tokens differs fundamentally from one for continuous layout coordinates or visual patches. Analogous decisions arise for feature grouping and aggregation. For instance, should text attributions be aggregated at the token, word, or line level, and should visual attributions be aggregated at the pixel or patch level? Each such decision critically affects both the resulting explanations and the evaluation metrics used to assess them [17, 18], yet no principled guidelines exist for these choices in the existing XAI literature on document understanding.

A separate challenge arises from the nature of the tasks themselves. Many core document understanding tasks, such as semantic entity recognition and question answering, involve multiple predictions per input sequence. For example, in semantic entity recognition, each token is independently classified, resulting in numerous explanation targets per sample. In contrast, existing XAI methods [15, 16, 24] and evaluation metrics [18, 25] are typically designed around single-target scenarios such as image classification. This makes them either computationally infeasible or conceptually ill-suited for direct application to multi-target document tasks.

In the absence of a principled framework for reasoning about these design choices in the multimodal document understanding context, several fundamental research questions (RQs) remain unanswered. RQ1: How should existing XAI methods and evaluation metrics be adapted to handle multiple heterogeneous input modalities and multi-target prediction tasks in document understanding? RQ2: Which XAI methods yield the most faithful and interpretable explanations in multimodal document understanding? RQ3: Given the widespread metric disagreement documented in prior work [25, 26], what agreement and disagreement patterns emerge among evaluation metrics in this domain? RQ4: How can the resulting explanations be systematically analyzed to gain insights into model behavior across modalities? To address these RQs, we make the following contributions:

  1. We introduce DOCXEVAL, the first comprehensive explainability framework for multimodal document understanding that adapts 13 XAI methods and 17 evaluation metrics to generate and evaluate multimodal explanations, and additionally introduces efficient adaptations of both methods and metrics for multi-target tasks such as semantic entity recognition.

  2. Using DOCXEVAL, we systematically benchmark these methods across 3 tasks, 8 datasets, and 4 models, and find that only a few methods perform consistently across all evaluation criteria, with Occlusion (OCC) [27] emerging as the most faithful and interpretable overall.

  3. We conduct a dedicated meta-evaluation of metrics and find moderate to strong agreement among several faithfulness and complexity metrics, while identifying Monotonicity (MON) [28] and Infidelity (INFID) [18] 1^{1} as unreliable.

  4. Through multiple dataset-wide diagnostic analyses, we uncover key insights into model behavior, such as variable modality reliance across tasks and labels, potential reliance on task-irrelevant features, and spatial attribution patterns around target entities.

1^{1}Note that Infidelity in this work refers to the noisy baseline formulation proposed in the original work [18].

References (71)