When Superpixels Fail on Documents: A Study of Segmentation for LIME Explanations
Quentin Telnoff, Emanuela Boros, Mickaël Coustaty, Robin Jarry, Fabrice Crohas, Antoine Doucet
Abstract
Post-hoc explanation methods are widely used to inspect image classifiers, but their reliability depends on design choices that are often treated as implementation details. We study this issue for LIME on document image classification, focusing on the segmentation step that defines the interpretable units being perturbed. Standard image-based LIME typically relies on natural-image superpixels, which are poorly aligned with document structure such as text regions, layout blocks, and identification codes. Using RVL-CDIP, we compare Quickshift and SLIC with document-aware segmentations based on OCR bounding boxes and regular grids. Our results show that segmentation strongly affects explanation consistency, correctness, and local fidelity. Document-aware segmentations produce more stable and faithful explanations, require fewer perturbations to converge, and expose shortcut behaviour based on document identification codes, a known RVL-CDIP bias that superpixel-based LIME often obscures. These findings show that reliable post-hoc explanation requires domain-aware interpretable representations, and that segmentation should be treated as part of the explanation method rather than as neutral preprocessing.
Create a lesson
Metadata
- Categories
- cs.CV, cs.AI
- Comments
- 9 pages, 6 figures, 1 table, XAI Workshop @ IJCAI 2026
Related papers
DynMF2: Rigid Motion Factorization by Expectation-Maximization for Monocular 4D Reconstruction and Motion Segmentation
Shared title terminologycs.CVAgelos Kratimenos, Yile Hua, Kostas Daniilidis
Focus Only on What's Important: Training-Free Focus Maps for Frozen Vision Transformers in Long-Video Object Segmentation
Shared title terminologycs.CVHarsha Karipineni, Rajesh Reddy Chintha
DocDUR-Net: Degradation-Aware Unified Document Image Restoration
Shared title terminologycs.CVHaowei Xu, Peirong Zhang, Xuhan Zheng et al.
CIRKDV2: Cross-Image Relational Knowledge Distillation with Contextual Modeling for Efficient Semantic Segmentation
Shared title terminologycs.CVChuanguang Yang, Yu Wang, Chengqing Yu et al.
Who Is Ego? Scaling Cross-View Camera Wearer Identification and Segmentation beyond Humans
Shared title terminologycs.CVYifan Jin, Zheng Zhang, Tianwen Qian et al.
DocSEAM: Bidirectional Cross-Page Encoding for Multi-Page Document Understanding
Shared title terminologycs.CVHoang-Nhat Nguyen, Chen Change Loy