REVIEW 3 major objections 5 minor 23 references
Gradient Attention Map Based Verification of Deep Convolutional Neural Networks with Application to X-ray Image Datasets
T0 review · 3 major / 5 minor · reviewed 2026-08-16 · deepseek-v4-flash
Pith's one-line read This paper proposes a three-part verification framework that uses Grad-CAM attention, early-layer features, and a garbage class to catch deep learning models applied to the wrong X-ray dataset.
desk verdict Plausible verification framework for medical-image models, but the evaluation labels 'suitability' as same-dataset provenance, so the headline claim of generalizable verification is not supported as written. read the letter →
The pith
A machine-rendered reading of the paper's core claim, the machinery that carries it, and where it could break.
The reading
What carries the argument
The central object is the Gradient Attention Map (GAM), defined as the median-thresholded binarization of a Grad-CAM heatmap $H_M(I)$, which converts 'where the model looks' into a binary region that can be compared across models. Seven similarity metrics—IoU, Dice, SSIM, Cosine, Pearson, KL Divergence, and Wasserstein Distance—quantify spatial, perceptual, and distributional agreement between a candidate GAM and the reference GAM, and these metrics are the features for a Random Forest classifier. A second mechanism extracts early convolutional feature maps and treats the summed absolute activations as a 2D distribution, comparing Layer 1 and Layer 2 responses with the same metric suite. A third mechanism extends the output space with a garbage class trained on structurally similar but unrelated X-rays, so out-of-distribution inputs can be assigned a rejection label. The GAM-based Random Forest is the main verification decision maker; the feature maps provide a more sensitive check for gross dataset mismatch, and the garbage class handles per-input rejection.
What would settle it
Take a model trained on a third X-ray anatomy not used in the paper and compare its Grad-CAM to the SOS reference model: if the Random Forest labels it acceptable while a dental expert judges its attention to be clinically irrelevant, then the attention-alignment labels are not capturing clinical validity. A complementary test is to replace the reference GAM with expert-segmented anatomical regions of interest; if the seven similarity metrics then no longer separate acceptable from misaligned models, the choice of reference model, rather than clinical alignment, is responsible for the reported accuracy.
Extended reading notes
Core claim
The central claim is that model-dataset mismatch leaves a signature in the model's internal representations, and that signature can be read by comparing a candidate model against a reference model known to be clinically appropriate. For each image, the framework computes a Gradient Attention Map (GAM) by thresholding the Grad-CAM heatmap, then measures against the reference map using IoU, Dice, SSIM, Cosine Similarity, Pearson Correlation, KL Divergence, and Wasserstein Distance. A Random Forest trained on these seven features separates acceptable from misaligned model-dataset pairs, and the paper argues the same comparison applied to early-layer feature maps catches structural misalignments that Grad-CAM misses. A third mechanism, a $k{+}1$-th garbage class trained on unrelated X-ray images, gives the network an explicit rejection option. The reported consequence is that unsuitable models and inputs are identified reliably enough to gate clinical deployment: 87.54% accuracy and 93.52% ROC AUC for the Random Forest, 99.36% accuracy for the Layer 1 feature comparison, and 1.00 recall for the garbage class.
Load-bearing premise
The whole verification chain assumes the reference model's attention is a correct proxy for clinically meaningful regions and that the acceptable/misaligned labels derived from training-data origin transfer to every future model-dataset pair; if either assumption fails, a model can pass or fail verification for the wrong reason.
Editorial extensions
If this is right
- A model that passes the Random Forest check can be trusted to focus on the same anatomical regions as the reference model, even if its classification accuracy alone would not reveal a mismatch.
- High-accuracy models that attend to irrelevant anatomy are filtered out before deployment, addressing cases where accuracy and attention diverge.
- The garbage class gives the classifier an explicit way to reject corrupted, partial, or wrong-anatomy X-rays instead of forcing a prediction into one of the known classes.
- The Layer 1 feature-map check can distinguish a model trained on a different dataset at 99.36% accuracy, making early-layer activations a particularly strong signal for gross model-data mismatch.
Reading between the lines
- My inference: the garbage class strategy is only demonstrated on datasets it was trained on (Chin and CVM), so a natural next test is to expose the 6th class to a third X-ray anatomy never seen in training and measure whether the 1.00 recall persists.
- My inference: because the reference model is the sole judge of good attention, replacing its Grad-CAM with expert-segmented anatomical regions of interest would make the verification independent of any particular trained network and could be tested on the same 586-point dataset.
- My inference: the Layer 1 check's drop under rotation (99.36% to 80.13%) implies that part of the signal is low-level and geometry-sensitive, so test-time augmentation or rotation-invariant preprocessing may restore accuracy on rotated inputs.
Signed reviews
Editorial analysis
A structured set of objections, weighed in public.
Referee Report
Summary. The paper proposes a three-part verification framework for deep convolutional neural networks used in medical X-ray image classification. The first part computes Grad-CAM attention maps and compares candidate models against a reference model using seven similarity metrics, which are then fed into a Random Forest classifier to label models as aligned or misaligned. The second part extends the comparison to early-layer feature maps. The third part appends a "garbage" class to the classifier to reject out-of-distribution inputs. Experiments on an SOS fusion staging dataset and a Class III malocclusion dataset report Random Forest accuracy of 87.54% and ROC AUC of 93.52%, near-perfect Layer 1 feature separation (99.36% accuracy), and perfect garbage-class rejection (1.00 recall) when Chin or CVM images are used as the garbage class. The authors conclude that the framework "effectively identif[ies] unsuitable models and inputs," promoting safer clinical deployment.
Significance. If the reported results generalized, the framework would address an important practical problem: detecting when a trained model is applied to data outside its intended domain, which is a known failure mode in medical imaging. The paper has several strengths: it combines complementary signals (attention maps, early features, and a rejection class), uses standard similarity metrics, includes a rotation-robustness check, and provides per-class results. These elements are sensible and potentially useful. However, the significance is entirely conditional on the validity of the "suitability" labels and the generalizability of the out-of-distribution rejection, both of which are problematic in the current experimental design. As presented, the empirical claims support only that the classifier can separate models by training-data provenance, not that it identifies clinically meaningful attention or rejects genuinely unseen out-of-distribution inputs.
major comments (3)
- [§4.1] The Random Forest labels are assigned by training-data origin rather than by any independent measure of clinical suitability. Specifically, 312 "not acceptable" points are from models not trained on similar data and 274 "acceptable" points are from models trained on similar data. This makes the reported 87.54% accuracy and 93.52% ROC AUC measures of dataset-provenance separability, not of model-verification performance. The term "suitable" is thus operationally defined as "trained on the same dataset as the reference model," which is circular for the claim that the framework identifies clinically meaningful attention. The authors need an external ground truth (e.g., expert annotation of attention regions, clinical outcome data, or at least a held-out model-dataset pair not used in label construction) to support the verification claim.
- [§3.4 and §4.3] The garbage class is trained on the exact out-of-distribution categories that it later rejects, namely Chin images when Chin is the garbage class and CVM images when CVM is the garbage class. The reported 1.00 precision, recall, and F1-score for the 6th class therefore reflect the supervised training signal on those specific categories, not a general ability to reject unfamiliar inputs. To support the claim that the framework "detects out-of-distribution inputs," the garbage class must be evaluated on categories not seen during its training (e.g., a held-out OOD dataset), or the paper must clearly restrict its claim to known OOD categories.
- [§3.2 and Figure 2] The reference model (ConvNeXt+Attn trained on the SOS dataset) is treated as a gold standard for "clinically meaningful" attention without any expert or quantitative validation. Figure 2 shows that SOS-trained models focus on "relevant anatomical regions" and Class III-trained models do not, but no comparison to expert-defined regions of interest is provided. If the reference model's attention is not in fact clinically correct, the entire alignment/no-alignment distinction inherits that error. The authors should validate the reference model's attention against expert segmentations or an equivalent clinical standard, and report agreement statistics for the reference attention maps.
minor comments (5)
- [Eq. (9)] The Wasserstein Distance formula is written as a sum over i of d(i)|P(i)-Q(i)|, which is not the standard 1D Wasserstein-1 distance unless d(i) is properly defined as the ground distance between support points or the formula is meant as an approximation. Please clarify the definition and the support of the distributions.
- [Eq. (8)] The KL Divergence formula includes an epsilon term in the denominator but the value of epsilon is not specified. Please state the value used in the experiments.
- [Tables 5 and 6] The acronyms "Chin" and "CVM" are used without definition. Please expand these terms when first introduced.
- [§4.2 and Table 4] The rotation-robustness experiments mention "rotated SOS" images but do not describe the rotation angle or augmentation procedure. Please specify the experimental setup for this condition.
- [Table 1] The column header "CLASS III - Chin" is confusing; the connection between the Class III malocclusion dataset and the term "Chin" should be explained in the text.
Circularity Check
Verification labels are defined by training-data provenance, so the Random Forest and garbage-class results report separability of the training labels rather than an independent test of model suitability.
-
fitted input called prediction
[Section 4.1, Model Verification Outcomes (Random Forest)]
"For evaluation, we compute the gradient attention map for each sample and compare it against the reference average gradient attention map. From this comparison, we extract seven similarity features that quantify spatial, perceptual, and statistical similarities between the attention maps. This results in a dataset of 586 data points, where each sample is characterized by these seven features."
The Random Forest target labels are defined by whether the candidate model was trained on 'similar data' (i.e., the SOS dataset, like the reference ConvNeXt+Attn model). The seven features are similarities between the candidate Grad-CAM map and the same SOS reference map. Therefore the reported 87.54% accuracy and 93.52% ROC AUC measure how well the features separate training-data provenance. The conclusion that the framework 'identifies unsuitable models' is not an independent prediction: 'suitability' is, by construction, the label the classifier was fit to predict. The cross-validated metrics confirm class separability, not an external or clinical validity of the attention alignment.
-
self definitional
[Sections 3.4 and 4.3, Garbage Class Strategy]
"To detect out-of-distribution inputs, we introduce a k + 1 class for models originally trained for k-class classification. This additional ”garbage” class is trained using unrelated datasets such as Chin or CVM samples. ... Tables 5 and 6 demonstrate that the 6th class achieves perfect 1.00 precision, recall, and F1-score, indicating its ability to correctly isolate mismatched data."
The inputs later counted as rejected (Chin images when Chin is the 6th class; CVM images when CVM is the 6th class) are the very samples used to train the garbage class. For the k+1-class network, these images are not out-of-distribution; they are in-distribution for class 6. The reported 1.00 recall is thus the supervised training/test accuracy of the garbage-class label, by construction, not an independent demonstration that the model detects inputs outside its training distribution. The out-of-distribution rejection claim reduces to the definition of the garbage class.
full rationale
The central verification outcome is a Random Forest fitted to labels whose operational meaning is 'trained on the same dataset as the reference model.' The reported ROC AUC and accuracy therefore demonstrate that Grad-CAM similarity features separate the two provenance groups used as training labels; this is a fitted-input-called-prediction pattern rather than an independent verification of clinical suitability. The garbage-class method is similarly self-definitional: the so-called out-of-distribution images are included in the training set as the garbage class, so their perfect recall is the direct result of supervised training, not an independent detection result. I score this 6 rather than higher because there is still an empirical feature-label relationship learned from data, and the similarity metrics themselves are standard and externally defined; the circularity is specifically in how the target concept ('suitable' vs 'unsuitable', 'out-of-distribution') is operationalized by the same training provenance or training images that are later reported as predictions. The paper's self-citations [22,23] are not load-bearing for the verification claims, and no uniqueness theorem is invoked, so no additional circular steps are identified.
Assumptions & free parameters
free parameters (3)
- Random Forest classifier parameters =
not reported (trained on 586 labeled samples)
- Early convolutional layer selection =
Layer 1 and Layer 2
- Reference model choice =
ConvNeXt+Attn trained on SOS
assumptions (5)
- domain assumption Grad-CAM heatmaps reflect clinically meaningful attention
- domain assumption Similarity between candidate and reference attention indicates clinical suitability
- ad hoc to paper Reference model attention is a valid gold standard
- ad hoc to paper Aligned/misaligned labels are transferable to new model-dataset pairs
- ad hoc to paper The garbage class training distribution covers real out-of-distribution inputs
Cite this review
Pith. "Pith review of Gradient Attention Map Based Verification of Deep Convolutional Neural Networks with Application to X-ray Image Datasets." pith.science (2026). https://pith.science/paper/LBTHISH2
@misc{pith2026250421227,
author = {Pith},
title = {Pith review of: Gradient Attention Map Based Verification of Deep Convolutional Neural Networks with Application to X-ray Image Datasets},
year = {2026},
howpublished = {\url{https://pith.science/paper/LBTHISH2}},
note = {Machine review of arXiv:2504.21227}
}
read the original abstract
Deep learning models have great potential in medical imaging, including orthodontics and skeletal maturity assessment. However, applying a model to data different from its training set can lead to unreliable predictions that may impact patient care. To address this, we propose a comprehensive verification framework that evaluates model suitability through multiple complementary strategies. First, we introduce a Gradient Attention Map (GAM)-based approach that analyzes attention patterns using Grad-CAM and compares them via similarity metrics such as IoU, Dice Similarity, SSIM, Cosine Similarity, Pearson Correlation, KL Divergence, and Wasserstein Distance. Second, we extend verification to early convolutional feature maps, capturing structural mis-alignments missed by attention alone. Finally, we incorporate an additional garbage class into the classification model to explicitly reject out-of-distribution inputs. Experimental results demonstrate that these combined methods effectively identify unsuitable models and inputs, promoting safer and more reliable deployment of deep learning in medical imaging.
Figures
Reference graph
Works this paper leans on
-
[1]
Powell, T. V., and Brodie, A. G. (1963). Closure of the spheno-occipital synchondrosis. The Anatomical Record, 147(1), 15–23
work page 1963
-
[2]
S., Al-Attab, R., Al-Tayar, B., et al
Al-Gumaei, W. S., Al-Attab, R., Al-Tayar, B., et al. (2022). Comparison of spheno-occipital synchondrosis maturation stages with three-dimensional assessment of mandibular growth. BMC Oral Health, 22(1), 654
work page 2022
-
[3]
He, K., Zhang, X., Ren, S., and Sun, J. (2016). Deep residual learning for image recog- nition. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recog- nition, 770–778. 11
work page 2016
-
[4]
Liu, Z., Mao, H., Wu, C.-Y., Feichtenhofer, C., Darrell, T., and Xie, S. (2022). A convnet for the 2020s. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), 11976–11986. IEEE
work page 2022
-
[5]
R., Cogswell, M., Das, A., Vedantam, R., Parikh, D., and Batra, D
Selvaraju, R. R., Cogswell, M., Das, A., Vedantam, R., Parikh, D., and Batra, D. (2017). Grad-CAM: Visual explanations from deep networks via gradient-based localization. In Proceedings of the IEEE International Conference on Computer Vision , 618–626
work page 2017
-
[6]
Lisboa, C. de O., et al. (2017). Orthodontic-surgical retreatment of facial asymmetry with occlusal cant and severe root resorption: A 3-year follow-up. American Journal of Orthodontics and Dentofacial Orthopedics , 152(2), 268–280
work page 2017
-
[7]
Kawai, N., et al. (2021). Treatment decision of camouflage or surgical orthodontic treat- ment for skeletal Class III patients based on analysis of masticatory function. Journal of Dental Sciences , S1991790221002464
work page 2021
-
[8]
LeCun, Y., Bottou, L., Bengio, Y., and Haffner, P. (1998). Gradient-based learning applied to document recognition. Proceedings of the IEEE, 86(11), 2278–2324
work page 1998
Show all 23 references
-
[9]
Doshi-Velez, F., and Kim, B. (2017). Towards a rigorous science of interpretable machine learning. arXiv preprint arXiv:1702.08608
2017 arXiv
-
[10]
N., Str¨ umke, I., and Ihlen, E
Pellano, K. N., Str¨ umke, I., and Ihlen, E. A. F. (2024). From movements to metrics: Evaluating explainable AI methods in skeleton-based human activity recognition. Sen- sors, 24(6), 1940
2024
-
[11]
E., Pintelas, E., Kiriakidou, N., and Pintelas, P
Livieris, I. E., Pintelas, E., Kiriakidou, N., and Pintelas, P. (2023). Explainable image similarity: Integrating Siamese networks and Grad-CAM. Journal of Imaging , 9(10), 224
2023
-
[12]
Adebayo, J., Gilmer, J., Muelly, M., Goodfellow, I., Hardt, M., and Kim, B. (2018). Sanity checks for saliency maps. Advances in Neural Information Processing Systems , 31
2018
-
[13]
Hase, P., and Bansal, M. (2020). Evaluating explainable AI: Which algorithmic expla- nations help users predict model behavior? arXiv preprint arXiv:2005.01831
2020 arXiv
-
[14]
R., Cogswell, M., Das, A., Vedantam, R., Parikh, D., and Batra, D
Selvaraju, R. R., Cogswell, M., Das, A., Vedantam, R., Parikh, D., and Batra, D. (2020). Grad-CAM: Visual explanations from deep networks via gradient-based localization. International Journal of Computer Vision , 128, 336–359
2020
-
[15]
K., and M¨ uller, K.-R
Samek, W., Montavon, G., Vedaldi, A., Hansen, L. K., and M¨ uller, K.-R. (2019). Explainable AI: Interpreting, explaining and visualizing deep learning (Vol. 11700). Springer Nature
2019
-
[16]
Ras, G., Xie, N., Van Gerven, M., and Doran, D. (2022). Explainable deep learning: A field guide for the uninitiated. Journal of Artificial Intelligence Research , 73, 329–396. 12
2022
-
[17]
C., and Chen, L
Li, X.-H., Shi, Y., Li, H., Bai, W., Cao, C. C., and Chen, L. (2021). An experimental study of quantitative evaluations on saliency methods. In Proceedings of the 27th ACM SIGKDD Conference on Knowledge Discovery & Data Mining , 3200–3208
2021
-
[18]
Chakraborty, T., Trehan, U., Mallat, K., and Dugelay, J.-L. (2022). Generalizing ad- versarial explanations with Grad-CAM. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition , 187–193
2022
-
[19]
Chaddad, A., Peng, J., Xu, J., and Bouridane, A. (2023). Survey of explainable AI techniques in healthcare. Sensors, 23(2), 634
2023
-
[20]
M., and Zemel, Y
Panaretos, V. M., and Zemel, Y. (2019). Statistical aspects of Wasserstein distances. Annual Review of Statistics and Its Application , 6(1), 405–431
2019
-
[21]
Koonce, B. (2021). ResNet 34. In Convolutional Neural Networks with Swift for Ten- sorFlow: Image Recognition and Dataset Categorization , 51–61. Springer
2021
-
[22]
H., Atici, S
Milani, O. H., Atici, S. F., Allareddy, V., Ramachandran, V., Ansari, R., Cetin, A. E., and Elnagar, M. H. (2024). A fully automated classification of third molar development stages using deep learning. Scientific Reports, 14(1), 13082
2024
-
[23]
H., Allareddy, V., Milani, O
Rhee, M., Elnagar, M. H., Allareddy, V., Milani, O. H., Cetin, A. E., and Sanchez, F. J. (2025). Integrating machine learning for treatment decisions in anterior open bite orthodontic cases: A retrospective study. Journal of the World Federation of Orthodon- tists. Elsevier. 13
2025
Reviewed August 16, 2026 · model on record in the stance chip above.
Discussion (0). Continue with ORCID to comment.