DocVXQA: Context-Aware Visual Explanations for Document Question Answering
Mohamed Ali Souibgui, Changkyu Choi, Andrey Barsky, Kangsoo Jung, Ernest Valveny, Dimosthenis Karatzas
TL;DR
DocVXQA tackles the opacity of DocVQA models by learning visually grounded, context-aware explanations via a learnable mask integrated with a DocVQA backbone. The approach leverages an information bottleneck framework to ensure explanations are minimal yet sufficient, augmented by a ColPali prior to guide mask learning and a postprocessing step to produce concise bounding boxes. Key contributions include the first self-explainable DocVQA model, a principled IB-based objective, model-agnostic integration with pretrained architectures, and thorough evaluation including human judgments showing improved interpretability and trustworthy reasoning. The method holds practical significance for transparent document understanding in high-stakes applications, enabling users to inspect and trust model decisions while maintaining competitive QA accuracy.
Abstract
We propose DocVXQA, a novel framework for visually self-explainable document question answering. The framework is designed not only to produce accurate answers to questions but also to learn visual heatmaps that highlight contextually critical regions, thereby offering interpretable justifications for the model's decisions. To integrate explanations into the learning process, we quantitatively formulate explainability principles as explicit learning objectives. Unlike conventional methods that emphasize only the regions pertinent to the answer, our framework delivers explanations that are \textit{contextually sufficient} while remaining \textit{representation-efficient}. This fosters user trust while achieving a balance between predictive performance and interpretability in DocVQA applications. Extensive experiments, including human evaluation, provide strong evidence supporting the effectiveness of our method. The code is available at https://github.com/dali92002/DocVXQA.
