arXiv:2610.24381cs.CVOct 2026

Manuscript Offprint

arXiv:2610.24381

Learning from the Right Regions: Class-Conditioned Explanation Guidance for Medical Imaging

Zubair Faruqui, Rahul Dubey

Zubair Faruqui, Rahul Dubey

Department of Computer Science, Missouri State University

Zubair10@MissouriState.edu, RahulDubey@MissouriState.edu

Abstract—Deep neural networks can achieve strong predictive performance in medical imaging while relying on regions unrelated to the predicted finding. Explanation-guided learning can address this problem, but multi-label classification introduces a key challenge: multiple abnormalities may coexist in an image, requiring each prediction to align with its corresponding spatial evidence. We propose a class-conditioned explanation-guided learning framework that constructs a separate explanation for each positive class and penalizes evidence outside its class-specific annotated regions. We instantiate the framework using Gradient-weighted Class Activation Mapping (Grad-CAM) and evaluate it on 14 abnormalities using EfficientNet-B1, ViT-B/16, ViT-B/32, and Swin-B. Explanation guidance substantially improves annotation alignment across all architectures: All-Saliency Precision increases from 0.140 to 0.625, 0.052 to 0.551, 0.060 to 0.403, and 0.095 to 0.570, respectively. These improvements are accompanied by smaller, architecture-dependent changes in classification performance. Our results show that class-conditioned explanation guidance can substantially improve where multi-label classifiers concentrate their explanatory evidence while largely preserving predictive performance.

Index Terms—Explanation, Imaging, Grad-CAM, CNN, Transformer

I. INTRODUCTION

Deep neural networks have achieved strong predictive performance in medical image analysis, including the classification of abnormalities in chest radiographs [1], [2]. However, predictive performance alone does not reveal whether a model arrives at its predictions using appropriate image evidence. A classifier may exploit artifacts, acquisition-specific patterns, or other correlated features that are predictive in the training data but unrelated to the abnormality of interest [3], [4]. Such reliance can lead to unexpected behavior when imaging conditions, institutions, or patient populations change. In medical imaging, it is therefore important not only to predict the correct abnormality, but also to determine whether the prediction is based on spatial evidence relevant to that abnormality.

Post-hoc explanation methods provide one way to examine which image regions contribute to a model's prediction [5]. Grad-CAM, for example, generates class-specific heatmaps that highlight regions associated with a model output [6]. However, these explanations are generated after training and therefore do not influence which image regions the model learns to use. Explanation-guided learning takes a different approach by using spatial information during training to encourage model explanations to align with domain-provided annotations [7], [8]. In chest radiographs, radiologist-provided bounding boxes offer a practical source of such supervision by identifying regions associated with specific abnormalities without requiring pixel-level segmentation masks [9], [10].

Extending explanation-guided learning to multi-label medical images introduces an additional challenge. A single chest X-ray may contain multiple abnormalities, and each abnormality may be associated with a different spatial region. If their annotations are treated as a common source of spatial supervision, an explanation for one abnormality could be rewarded for focusing on a region annotated for another abnormality. Explanation supervision in the multi-label setting must therefore preserve the correspondence between each abnormality and its own spatial annotation.

To address this problem, we propose a class-conditioned explanation-guided learning framework for multi-label medical image classification. For each positive abnormality in an image, we generate a separate class-specific Grad-CAM explanation and compare it only with the spatial annotations for that abnormality. Saliency that falls outside the corresponding annotated regions is penalized during training. The class-specific penalties are first aggregated within each abnormality and then across abnormalities to form the explanation loss. This loss is combined with the conventional multi-label classification loss, encouraging each prediction to rely on spatial evidence associated with the corresponding abnormality.

We evaluate the proposed framework on VinDr-CXR [10] across 14 abnormalities using EfficientNet-B1 [11], ViT-B/16, ViT-B/32, and Swin-B. For each architecture, we examine classification performance and class-specific explanation alignment across different strengths of explanation guidance. The results show substantial improvements in explanation alignment across all four architectures, while changes in classification performance are comparatively smaller and architecture dependent. These findings indicate that explanation guidance can strongly influence where models concentrate their explanatory evidence, although its interaction with predictive performance varies across architectures. The main contributions of this work are:

• We propose a class-conditioned explanation-guided learning framework for multi-label medical image classification, where the explanation for each positive class is supervised only by the spatial annotations corresponding to that class.

• We evaluate the framework on 14 abnormalities using four architectures: EfficientNet-B1, ViT-B/16, ViT-B/32, and Swin-B, and examine both classification performance and class-specific explanation alignment across different explanation-guidance strengths.

• We show that explanation guidance consistently improves explanation–annotation alignment across the evaluated architectures, while its effect on classification performance is smaller and architecture dependent.

References (32)